major refactoring of the settings dialog; SLAList class is renamed to SettingsPageWit...
[simple-launcher] / settings-dialog.h
index a3b452c..42bda9c 100644 (file)
 #ifndef __SETTINGS_DIALOG_H_
 #define __SETTINGS_DIALOG_H_
 
+#include <vector>
+
 #include <gtk/gtkdialog.h>
 
 #include "gconf-wrapper.h"
 #include "sla-list.h"
 #include "launcher-item.h"
 #include "dialog-entry.h"
+#include "settings-page.h"
 
 class SettingsDialog {
 public:
-  SettingsDialog(GtkWindow *parent, LauncherItems& items, GConfBooleanOption& transparent, GConfIntegerOption& icon_size, GConfIntegerOption& canvas_size);
+  SettingsDialog(GtkWindow *parent, LauncherItems& items, GConfBooleanOption& transparent, GConfIntegerOption& icon_size);
  ~SettingsDialog();
 
   gint run();
 
   void updateValues();
 
+  void addPage(const std::string&, SettingsPage *);
+
 private:
-  SLAList myList;
+  std::vector<SettingsPage *> myPages;
 
   GtkDialog *myDialog;
+  GtkNotebook *myNotebook;
 
   SettingsDialogBooleanEntry myTransparent;
   SettingsDialogIntegerEntry myIconSize;
-  SettingsDialogIntegerEntry myCanvasSize;
 };
 
 #endif