config_edit_dialog.h

00001
00002 /***************************************************************************
00003  *  config_edit_dialog.h - Edit config entries
00004  *
00005  *  Created: Wed Sep 24 15:41:27 2008
00006  *  Copyright  2008  Daniel Beck
00007  *
00008  ****************************************************************************/
00009
00010 /*  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU Library General Public License for more details.
00019  *
00020  *  Read the full text in the LICENSE.GPL file in the doc directory.
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 #include <libglademm/xml.h>
00028
00029 class ConfigEditDialog : public Gtk::Dialog
00030 {
00031  public:
00032   ConfigEditDialog(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& ref_xml);
00033   virtual ~ConfigEditDialog();
00034
00035   void init( const Glib::ustring& path, const Glib::ustring& type,
00036              const Glib::ustring& value );
00037
00038   Glib::ustring get_value() const;
00039   bool get_is_default() const;
00040
00041  protected:
00042   bool              is_bool;
00043   Gtk::Entry       *m_ent_value;
00044   Gtk::ComboBox    *m_cob_bool_value;
00045   Gtk::Notebook    *m_type_pages;
00046   Gtk::CheckButton *m_chb_is_default;
00047 };
00048
00049 #endif /* __TOOLS_CONFIG_EDITOR_CONFIG_EDIT_DIALOG_H_ */