ConfigEditDialog Class Reference
Dialog to edit a config value. More...
#include <tools/config_editor/config_edit_dialog.h>
Public Member Functions | |
| ConfigEditDialog (BaseObjectType *cobject, const Glib::RefPtr< Gnome::Glade::Xml > &ref_xml) | |
| 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. | |
Detailed Description
Dialog to edit a config value.
Definition at line 29 of file config_edit_dialog.h.
Constructor & Destructor Documentation
| ConfigEditDialog::ConfigEditDialog | ( | BaseObjectType * | cobject, | |
| const Glib::RefPtr< Gnome::Glade::Xml > & | ref_xml | |||
| ) |
Constructor.
- Parameters:
-
cobject pointer to base object type ref_xml Glade XML file
Definition at line 58 of file config_edit_dialog.cpp.
References fawkes::get_widget(), m_chb_is_default, m_cob_bool_value, m_ent_value, and m_type_pages.
| ConfigEditDialog::~ConfigEditDialog | ( | ) | [virtual] |
Member Function Documentation
| bool ConfigEditDialog::get_is_default | ( | ) | const |
Get the default flag of the new entry.
- Returns:
- if true edit the default config database
Definition at line 113 of file config_edit_dialog.cpp.
References m_chb_is_default.
| Glib::ustring ConfigEditDialog::get_value | ( | ) | const |
Get the value of the entry widget.
- Returns:
- the text in the entry widget
Definition at line 94 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.
- Parameters:
-
path config path type type of config entry value value of the config entry
Definition at line 74 of file config_edit_dialog.cpp.
References is_bool, m_chb_is_default, m_cob_bool_value, m_ent_value, and m_type_pages.
Member Data Documentation
ConfigEditDialog::is_bool [protected] |
A flag to store wether the config value is boolean.
Definition at line 42 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 46 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 44 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 43 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 45 of file config_edit_dialog.h.
Referenced by ConfigEditDialog(), and init().
The documentation for this class was generated from the following files:
- src/tools/config_editor/config_edit_dialog.h
- src/tools/config_editor/config_edit_dialog.cpp

