Fawkes API
Fawkes Development Version
|
Dialog to edit a config value. More...
#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. | |
ConfigEditDialog (BaseObjectType *cobject, const Glib::RefPtr< Gtk::Builder > &builder) | |
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. |
Dialog to edit a config value.
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_ent_value, m_cob_bool_value, m_type_pages, and m_chb_is_default.
ConfigEditDialog::ConfigEditDialog | ( | BaseObjectType * | cobject, |
const Glib::RefPtr< Gtk::Builder > & | builder | ||
) |
Constructor.
cobject | pointer to base object type |
builder | Gtk builder |
Definition at line 71 of file config_edit_dialog.cpp.
References m_ent_value, m_cob_bool_value, m_type_pages, and m_chb_is_default.
ConfigEditDialog::~ConfigEditDialog | ( | ) | [virtual] |
Destructor.
Definition at line 99 of file config_edit_dialog.cpp.
bool ConfigEditDialog::get_is_default | ( | ) | const |
Get the default flag of the new entry.
Definition at line 126 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 107 of file config_edit_dialog.cpp.
References is_bool, m_ent_value, and m_cob_bool_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 87 of file config_edit_dialog.cpp.
References is_bool, m_ent_value, m_cob_bool_value, m_type_pages, and m_chb_is_default.
ConfigEditDialog::is_bool [protected] |
A flag to store wether the config value is boolean.
Definition at line 44 of file config_edit_dialog.h.
Referenced by init(), and get_value().
ConfigEditDialog::m_chb_is_default [protected] |
The Gtk::CheckButton to set the default flag.
Definition at line 48 of file config_edit_dialog.h.
Referenced by ConfigEditDialog(), init(), and get_is_default().
ConfigEditDialog::m_cob_bool_value [protected] |
A combo box to select TRUE or FALSE.
Definition at line 46 of file config_edit_dialog.h.
Referenced by ConfigEditDialog(), init(), and get_value().
ConfigEditDialog::m_ent_value [protected] |
An entry field to edit the config value.
Definition at line 45 of file config_edit_dialog.h.
Referenced by ConfigEditDialog(), init(), and get_value().
ConfigEditDialog::m_type_pages [protected] |
A Gtk::Notebook element to switch between boolean values and the rest.
Definition at line 47 of file config_edit_dialog.h.
Referenced by ConfigEditDialog(), and init().