23 #include <tools/config_editor/config_edit_dialog.h>
58 Gtk::Notebook *type_pages, Gtk::CheckButton *chb_is_default)
72 const Glib::RefPtr<Gtk::Builder> &builder)
73 : Gtk::Dialog(cobject)
88 const Glib::ustring& value )
113 Gtk::TreeRow row = *iter;
116 row.get_value(0, type);
virtual ~ConfigEditDialog()
Destructor.
Gtk::Entry * m_ent_value
An entry field to edit the config value.
Glib::ustring get_value() const
Get the value of the entry widget.
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.
ConfigEditDialog(Gtk::Entry *ent_value, Gtk::ComboBox *cob_bool_value, Gtk::Notebook *type_pages, Gtk::CheckButton *chb_is_default)
Constructor.
bool is_bool
A flag to store wether the config value is boolean.
void init(const Glib::ustring &path, const Glib::ustring &type, const Glib::ustring &value)
Initialize the dialog.
bool get_is_default() const
Get the default flag of the new entry.
Gtk::CheckButton * m_chb_is_default
The Gtk::CheckButton to set the default flag.