Fawkes API  Fawkes Development Version
config_remove_dialog.h
00001 
00002 /***************************************************************************
00003  *  config_remove_dialog.h - Remove config entries
00004  *
00005  *  Created: Thu Sep 25 18:49:58 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_REMOVE_DIALOG_H_
00024 #define __TOOLS_CONFIG_EDITOR_CONFIG_REMOVE_DIALOG_H_
00025 
00026 #include <gtkmm.h>
00027 
00028 class ConfigRemoveDialog : public Gtk::Dialog
00029 {
00030  public:
00031   ConfigRemoveDialog(Gtk::Label *lbl_path, Gtk::CheckButton *chb_is_default);
00032   ConfigRemoveDialog(BaseObjectType* cobject,
00033                      const Glib::RefPtr<Gtk::Builder> &builder);
00034   virtual ~ConfigRemoveDialog();
00035 
00036   void init(const Glib::ustring& path, bool is_default);
00037   bool get_remove_default() const;
00038 
00039  protected:
00040   Gtk::Label* m_lbl_path;
00041   Gtk::CheckButton* m_chb_is_default;
00042 };
00043 
00044 #endif /* __TOOLS_CONFIG_EDITOR_CONFIG_REMOVE_DIALOG_H_ */