summaryrefslogtreecommitdiff
path: root/src/gui/widgets/setuptabscroll.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/setuptabscroll.h')
-rw-r--r--src/gui/widgets/setuptabscroll.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/gui/widgets/setuptabscroll.h b/src/gui/widgets/setuptabscroll.h
index 83a5e272c..119756969 100644
--- a/src/gui/widgets/setuptabscroll.h
+++ b/src/gui/widgets/setuptabscroll.h
@@ -23,6 +23,16 @@
#include "gui/widgets/setuptab.h"
+#include <map>
+#include <set>
+
+#ifdef __GNUC__
+#define _UNUSED_ __attribute__ ((unused))
+#else
+#define _UNUSED_
+#endif
+
+class SetupItem;
class ScrollArea;
class VertContainer;
@@ -33,9 +43,27 @@ class SetupTabScroll : public SetupTab
~SetupTabScroll();
+ void addControl(SetupItem *widget);
+
+ void addControl(SetupItem *widget, std::string event);
+
+ VertContainer *getContainer()
+ { return mContainer; }
+
+ virtual void apply();
+
+ virtual void cancel();
+
+ virtual void externalUpdated();
+
+ virtual void action(const gcn::ActionEvent &event _UNUSED_)
+ { }
+
protected:
VertContainer *mContainer;
ScrollArea *mScroll;
+ std::map<std::string,SetupItem*> mItems;
+ std::set<SetupItem*> mAllItems;
};
#endif