23 #ifndef __TOOLS_CONFIG_EDITOR_CONFIG_EDIT_DIALOG_H_ 24 #define __TOOLS_CONFIG_EDITOR_CONFIG_EDIT_DIALOG_H_ 32 Gtk::Notebook *type_pages, Gtk::CheckButton *chb_is_default);
34 const Glib::RefPtr<Gtk::Builder> &builder);
37 void init(
const Glib::ustring& path,
const Glib::ustring& type,
38 const Glib::ustring& value );
virtual ~ConfigEditDialog()
Destructor.
Gtk::Entry * m_ent_value
An entry field to edit the config value.
Dialog to edit a 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.