Fawkes API  Fawkes Development Version
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
config_remove_dialog.h
1 
2 /***************************************************************************
3  * config_remove_dialog.h - Remove config entries
4  *
5  * Created: Thu Sep 25 18:49:58 2008
6  * Copyright 2008 Daniel Beck
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Library General Public License for more details.
19  *
20  * Read the full text in the LICENSE.GPL file in the doc directory.
21  */
22 
23 #ifndef __TOOLS_CONFIG_EDITOR_CONFIG_REMOVE_DIALOG_H_
24 #define __TOOLS_CONFIG_EDITOR_CONFIG_REMOVE_DIALOG_H_
25 
26 #include <gtkmm.h>
27 
28 class ConfigRemoveDialog : public Gtk::Dialog
29 {
30  public:
31  ConfigRemoveDialog(Gtk::Label *lbl_path, Gtk::CheckButton *chb_is_default);
32  ConfigRemoveDialog(BaseObjectType* cobject,
33  const Glib::RefPtr<Gtk::Builder> &builder);
34  virtual ~ConfigRemoveDialog();
35 
36  void init(const Glib::ustring& path, bool is_default);
37  bool get_remove_default() const;
38 
39  protected:
40  Gtk::Label* m_lbl_path;
41  Gtk::CheckButton* m_chb_is_default;
42 };
43 
44 #endif /* __TOOLS_CONFIG_EDITOR_CONFIG_REMOVE_DIALOG_H_ */