config_edit_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_EDIT_DIALOG_H_
00024 #define __TOOLS_CONFIG_EDITOR_CONFIG_EDIT_DIALOG_H_
00025
00026 #include <gtkmm.h>
00027 #ifdef HAVE_GLADEMM
00028 # include <libglademm/xml.h>
00029 #endif
00030
00031 class ConfigEditDialog : public Gtk::Dialog
00032 {
00033 public:
00034 ConfigEditDialog(Gtk::Entry *ent_value, Gtk::ComboBox *cob_bool_value,
00035 Gtk::Notebook *type_pages, Gtk::CheckButton *chb_is_default);
00036 #ifdef HAVE_GLADEMM
00037 ConfigEditDialog(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& ref_xml);
00038 #endif
00039 virtual ~ConfigEditDialog();
00040
00041 void init( const Glib::ustring& path, const Glib::ustring& type,
00042 const Glib::ustring& value );
00043
00044 Glib::ustring get_value() const;
00045 bool get_is_default() const;
00046
00047 protected:
00048 bool is_bool;
00049 Gtk::Entry *m_ent_value;
00050 Gtk::ComboBox *m_cob_bool_value;
00051 Gtk::Notebook *m_type_pages;
00052 Gtk::CheckButton *m_chb_is_default;
00053 };
00054
00055 #endif