42bda9c27bfa7b14adb528cef6ef3148c40ff7e0
[simple-launcher] / settings-dialog.h
1 // This file is a part of Simple Launcher
2 //
3 // Copyright (C) 2006, 2007, Mikhail Sobolev
4 //
5 // Simple Launcher is free software; you can redistribute it and/or modify it
6 // under the terms of the GNU General Public License version 2 as published by
7 // the Free Software Foundation.
8 //
9 // This program is distributed in the hope that it will be useful, but WITHOUT
10 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12 // more details.
13 //
14 // You should have received a copy of the GNU General Public License along with
15 // this program; if not, write to the Free Software Foundation, Inc., 51
16 // Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17
18 #ifndef __SETTINGS_DIALOG_H_
19 #define __SETTINGS_DIALOG_H_
20
21 #include <vector>
22
23 #include <gtk/gtkdialog.h>
24
25 #include "gconf-wrapper.h"
26 #include "sla-list.h"
27 #include "launcher-item.h"
28 #include "dialog-entry.h"
29 #include "settings-page.h"
30
31 class SettingsDialog {
32 public:
33   SettingsDialog(GtkWindow *parent, LauncherItems& items, GConfBooleanOption& transparent, GConfIntegerOption& icon_size);
34  ~SettingsDialog();
35
36   gint run();
37
38   void updateValues();
39
40   void addPage(const std::string&, SettingsPage *);
41
42 private:
43   std::vector<SettingsPage *> myPages;
44
45   GtkDialog *myDialog;
46   GtkNotebook *myNotebook;
47
48   SettingsDialogBooleanEntry myTransparent;
49   SettingsDialogIntegerEntry myIconSize;
50 };
51
52 #endif
53
54 // vim:ts=2:sw=2:et