config_add_dialog.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __TOOLS_CONFIG_EDITOR_CONFIG_ADD_DIALOG_H_
00024 #define __TOOLS_CONFIG_EDITOR_CONFIG_ADD_DIALOG_H_
00025
00026 #include <gtkmm.h>
00027 #ifdef HAVE_GLADEMM
00028 # include <libglademm/xml.h>
00029 #endif
00030
00031 class ConfigAddDialog : public Gtk::Dialog
00032 {
00033 public:
00034 ConfigAddDialog(Gtk::Entry *ent_path,
00035 Gtk::Entry *ent_value,
00036 Gtk::ComboBox *cob_bool_value,
00037 Gtk::Notebook *type_pages,
00038 Gtk::ComboBox *cmb_type,
00039 Gtk::CheckButton *chb_is_default);
00040 #ifdef HAVE_GLADEMM
00041 ConfigAddDialog(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& ref_xml);
00042 #endif
00043 virtual ~ConfigAddDialog();
00044
00045 void init(const Glib::ustring& path);
00046
00047 Glib::ustring get_path() const;
00048 Glib::ustring get_type() const;
00049 Glib::ustring get_value() const;
00050 bool get_is_default() const;
00051
00052 protected:
00053 void on_my_changed();
00054
00055 Gtk::Entry *m_ent_path;
00056 Gtk::Entry *m_ent_value;
00057 Gtk::ComboBox *m_cob_bool_value;
00058 Gtk::Notebook *m_type_pages;
00059 Gtk::ComboBox *m_cmb_type;
00060 Gtk::CheckButton *m_chb_is_default;
00061 };
00062
00063 #endif