23 #include <tools/config_editor/config_add_dialog.h> 64 Gtk::Entry *ent_value,
65 Gtk::ComboBox *cob_bool_value,
66 Gtk::Notebook *type_pages,
67 Gtk::ComboBox *cmb_type,
68 Gtk::CheckButton *chb_is_default)
85 const Glib::RefPtr<Gtk::Builder> &builder)
86 : Gtk::Dialog(cobject)
131 Gtk::TreeIter iter =
m_cmb_type->get_active();
132 Gtk::TreeRow row = *iter;
135 row.get_value(0, type);
150 Gtk::TreeRow row = *iter;
153 row.get_value(0, type);
void init(const Glib::ustring &path)
Initialize the dialog.
Glib::ustring get_value() const
Get the value of the new 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.