started proper implementation of icon size selection: hackish and dirty at the moment
[simple-launcher] / dialog-entry.h
index daa5e81..5f13bd9 100644 (file)
@@ -71,6 +71,29 @@ private:
   HildonNumberEditor *mySpinBox;
 };
 
+class SettingsDialogChoiceEntry : public SettingsDialogEntry {
+public:
+  SettingsDialogChoiceEntry(GConfIntegerOption& option, const std::string& name);
+
+  virtual const std::string& text(int index) const = 0;
+  virtual int numberOfChoices() const = 0;
+  virtual int initialValue() const = 0;
+
+  void updateValue();
+  GtkWidget *getWidget() const { return myWidget; }
+
+private:
+  GtkWidget *myWidget;
+};
+
+class SettingsDialogIconSizeEntry : public SettingsDialogChoiceEntry {
+  SettingsDialogIconSizeEntry(GConfIntegerOption& option, const std::string& name): SettingsDialogChoiceEntry(option, name) {}
+
+  const std::string& text(int index) const;
+  int numberOfChoices() const;
+  int initialValue() const;
+};
+
 #endif
 
 // vim:ts=2:sw=2:et