summaryrefslogtreecommitdiff
path: root/src/gui/widgets/setuptabscroll.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-05 17:47:46 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-19 18:46:08 +0300
commit40764f894c6ef0def1d0eb0677d064da13701bcd (patch)
tree4400b0b56d20ebb3e66187990a01615a0c2adb3a /src/gui/widgets/setuptabscroll.h
parent0b31fa647c786513c9addc5f8c55708f05226e03 (diff)
downloadplus-40764f894c6ef0def1d0eb0677d064da13701bcd.tar.gz
plus-40764f894c6ef0def1d0eb0677d064da13701bcd.tar.bz2
plus-40764f894c6ef0def1d0eb0677d064da13701bcd.tar.xz
plus-40764f894c6ef0def1d0eb0677d064da13701bcd.zip
Redesign Misc setup page.
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