23 #ifndef __TOOLS_CONFIG_EDITOR_CONFIG_ADD_DIALOG_H_
24 #define __TOOLS_CONFIG_EDITOR_CONFIG_ADD_DIALOG_H_
32 Gtk::Entry *ent_value,
33 Gtk::ComboBox *cob_bool_value,
34 Gtk::Notebook *type_pages,
35 Gtk::ComboBox *cmb_type,
36 Gtk::CheckButton *chb_is_default);
38 const Glib::RefPtr<Gtk::Builder> &builder);
41 void init(
const Glib::ustring& path);
void init(const Glib::ustring &path)
Initialize the dialog.
Glib::ustring get_value() const
Get the value of the new entry.
Dialog to add a config entry.
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.
Glib::ustring get_path() const
Get the path of the new entry.
Gtk::Notebook * m_type_pages
A Gtk::Notebook element to switch between boolean values and the rest.
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.
Glib::ustring get_type() const
Get the type of the new entry.
virtual ~ConfigAddDialog()
Destructor.
Gtk::ComboBox * m_cob_bool_value
A combo box to select TRUE or FALSE.
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.
void on_my_changed()
Swiches the (invisible) pages to add either a bool or a different type value.
Gtk::ComboBox * m_cmb_type
The Gtk::ComboBox to select the type of the new entry.