#include <config_edit_dialog.h>
Public Member Functions | |
ConfigEditDialog (Gtk::Entry *ent_value, Gtk::ComboBox *cob_bool_value, Gtk::Notebook *type_pages, Gtk::CheckButton *chb_is_default) | |
Constructor. | |
virtual | ~ConfigEditDialog () |
Destructor. | |
void | init (const Glib::ustring &path, const Glib::ustring &type, const Glib::ustring &value) |
Initialize the dialog. | |
Glib::ustring | get_value () const |
Get the value of the entry widget. | |
bool | get_is_default () const |
Get the default flag of the new entry. | |
Protected Attributes | |
bool | is_bool |
A flag to store wether the config value is boolean. | |
Gtk::Entry * | m_ent_value |
An entry field to edit the config value. | |
Gtk::ComboBox * | m_cob_bool_value |
A combo box to select TRUE or FALSE. | |
Gtk::Notebook * | m_type_pages |
A Gtk::Notebook element to switch between boolean values and the rest. | |
Gtk::CheckButton * | m_chb_is_default |
The Gtk::CheckButton to set the default flag. |
Definition at line 31 of file config_edit_dialog.h.
ConfigEditDialog::ConfigEditDialog | ( | Gtk::Entry * | ent_value, | |
Gtk::ComboBox * | cob_bool_value, | |||
Gtk::Notebook * | type_pages, | |||
Gtk::CheckButton * | chb_is_default | |||
) |
Constructor.
ent_value | entry field for value | |
cob_bool_value | combo box for bool value | |
type_pages | pages for types | |
chb_is_default | checkbutton to mark default values |
Definition at line 57 of file config_edit_dialog.cpp.
References m_chb_is_default, m_cob_bool_value, m_ent_value, and m_type_pages.
ConfigEditDialog::~ConfigEditDialog | ( | ) | [virtual] |
bool ConfigEditDialog::get_is_default | ( | ) | const |
Get the default flag of the new entry.
Definition at line 128 of file config_edit_dialog.cpp.
References m_chb_is_default.
Glib::ustring ConfigEditDialog::get_value | ( | ) | const |
Get the value of the entry widget.
Definition at line 109 of file config_edit_dialog.cpp.
References is_bool, m_cob_bool_value, and m_ent_value.
void ConfigEditDialog::init | ( | const Glib::ustring & | path, | |
const Glib::ustring & | type, | |||
const Glib::ustring & | value | |||
) |
Initialize the dialog.
path | config path | |
type | type of config entry | |
value | value of the config entry |
Definition at line 89 of file config_edit_dialog.cpp.
References is_bool, m_chb_is_default, m_cob_bool_value, m_ent_value, and m_type_pages.
ConfigEditDialog::is_bool [protected] |
A flag to store wether the config value is boolean.
Definition at line 48 of file config_edit_dialog.h.
Referenced by get_value(), and init().
ConfigEditDialog::m_chb_is_default [protected] |
The Gtk::CheckButton to set the default flag.
Definition at line 52 of file config_edit_dialog.h.
Referenced by ConfigEditDialog(), get_is_default(), and init().
ConfigEditDialog::m_cob_bool_value [protected] |
A combo box to select TRUE or FALSE.
Definition at line 50 of file config_edit_dialog.h.
Referenced by ConfigEditDialog(), get_value(), and init().
ConfigEditDialog::m_ent_value [protected] |
An entry field to edit the config value.
Definition at line 49 of file config_edit_dialog.h.
Referenced by ConfigEditDialog(), get_value(), and init().
ConfigEditDialog::m_type_pages [protected] |
A Gtk::Notebook element to switch between boolean values and the rest.
Definition at line 51 of file config_edit_dialog.h.
Referenced by ConfigEditDialog(), and init().