Dialog to add a config entry. More...
#include <config_add_dialog.h>
Public Member Functions | |
ConfigAddDialog (Gtk::Entry *ent_path, Gtk::Entry *ent_value, Gtk::ComboBox *cob_bool_value, Gtk::Notebook *type_pages, Gtk::ComboBox *cmb_type, Gtk::CheckButton *chb_is_default) | |
Constructor. | |
virtual | ~ConfigAddDialog () |
Destructor. | |
void | init (const Glib::ustring &path) |
Initialize the dialog. | |
Glib::ustring | get_path () const |
Get the path of the new entry. | |
Glib::ustring | get_type () const |
Get the type of the new entry. | |
Glib::ustring | get_value () const |
Get the value of the new entry. | |
bool | get_is_default () const |
Get the default flag of the new entry. | |
Protected Member Functions | |
void | on_my_changed () |
Swiches the (invisible) pages to add either a bool or a different type value. | |
Protected Attributes | |
Gtk::Entry * | m_ent_path |
The Gtk::Entry that contains the path of the new entry. | |
Gtk::Entry * | m_ent_value |
The Gtk::Entry that contains the value of the new entry. | |
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::ComboBox * | m_cmb_type |
The Gtk::ComboBox to select the type of the new entry. | |
Gtk::CheckButton * | m_chb_is_default |
The Gtk::CheckButton to set the default flag. |
Dialog to add a config entry.
Definition at line 31 of file config_add_dialog.h.
ConfigAddDialog::ConfigAddDialog | ( | Gtk::Entry * | ent_path, | |
Gtk::Entry * | ent_value, | |||
Gtk::ComboBox * | cob_bool_value, | |||
Gtk::Notebook * | type_pages, | |||
Gtk::ComboBox * | cmb_type, | |||
Gtk::CheckButton * | chb_is_default | |||
) |
Constructor.
ent_path | entry field for path | |
ent_value | entry field for value | |
cob_bool_value | combo box for bool values | |
type_pages | pages for different types | |
cmb_type | combo box for type | |
chb_is_default | check button for default values |
Definition at line 63 of file config_add_dialog.cpp.
References m_chb_is_default, m_cmb_type, m_cob_bool_value, m_ent_path, m_ent_value, m_type_pages, and on_my_changed().
ConfigAddDialog::~ConfigAddDialog | ( | ) | [virtual] |
Destructor.
Definition at line 101 of file config_add_dialog.cpp.
bool ConfigAddDialog::get_is_default | ( | ) | const |
Get the default flag of the new entry.
Definition at line 165 of file config_add_dialog.cpp.
References m_chb_is_default.
Glib::ustring ConfigAddDialog::get_path | ( | ) | const |
Get the path of the new entry.
Definition at line 122 of file config_add_dialog.cpp.
References m_ent_path.
Glib::ustring ConfigAddDialog::get_type | ( | ) | const |
Get the type of the new entry.
Definition at line 131 of file config_add_dialog.cpp.
References m_cmb_type.
Referenced by get_value(), and on_my_changed().
Glib::ustring ConfigAddDialog::get_value | ( | ) | const |
Get the value of the new entry.
Definition at line 146 of file config_add_dialog.cpp.
References get_type(), m_cob_bool_value, and m_ent_value.
void ConfigAddDialog::init | ( | const Glib::ustring & | path | ) |
Initialize the dialog.
path | the config path of the selected row |
Definition at line 109 of file config_add_dialog.cpp.
References m_chb_is_default, m_cmb_type, m_cob_bool_value, m_ent_path, and m_ent_value.
void ConfigAddDialog::on_my_changed | ( | ) | [protected] |
Swiches the (invisible) pages to add either a bool or a different type value.
Definition at line 174 of file config_add_dialog.cpp.
References get_type(), and m_type_pages.
Referenced by ConfigAddDialog().
ConfigAddDialog::m_chb_is_default [protected] |
The Gtk::CheckButton to set the default flag.
Definition at line 60 of file config_add_dialog.h.
Referenced by ConfigAddDialog(), get_is_default(), and init().
ConfigAddDialog::m_cmb_type [protected] |
The Gtk::ComboBox to select the type of the new entry.
Definition at line 59 of file config_add_dialog.h.
Referenced by ConfigAddDialog(), get_type(), and init().
ConfigAddDialog::m_cob_bool_value [protected] |
A combo box to select TRUE or FALSE.
Definition at line 57 of file config_add_dialog.h.
Referenced by ConfigAddDialog(), get_value(), and init().
ConfigAddDialog::m_ent_path [protected] |
The Gtk::Entry that contains the path of the new entry.
Definition at line 55 of file config_add_dialog.h.
Referenced by ConfigAddDialog(), get_path(), and init().
ConfigAddDialog::m_ent_value [protected] |
The Gtk::Entry that contains the value of the new entry.
Definition at line 56 of file config_add_dialog.h.
Referenced by ConfigAddDialog(), get_value(), and init().
ConfigAddDialog::m_type_pages [protected] |
A Gtk::Notebook element to switch between boolean values and the rest.
Definition at line 58 of file config_add_dialog.h.
Referenced by ConfigAddDialog(), and on_my_changed().