aboutsummaryrefslogtreecommitdiff
path: root/src/ToolbarItem.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ToolbarItem.hh')
-rw-r--r--src/ToolbarItem.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ToolbarItem.hh b/src/ToolbarItem.hh
index 3137fc8..a240880 100644
--- a/src/ToolbarItem.hh
+++ b/src/ToolbarItem.hh
@@ -26,6 +26,7 @@
26#define TOOLBARITEM_HH 26#define TOOLBARITEM_HH
27 27
28#include "FbTk/Subject.hh" 28#include "FbTk/Subject.hh"
29#include "FbTk/Text.hh" // orientation
29 30
30/// An item in the toolbar that has either fixed or relative size to the toolbar 31/// An item in the toolbar that has either fixed or relative size to the toolbar
31class ToolbarItem { 32class ToolbarItem {
@@ -65,11 +66,16 @@ public:
65 void setType(Type type) { m_type = type; } 66 void setType(Type type) { m_type = type; }
66 Type type() const { return m_type; } 67 Type type() const { return m_type; }
67 68
69 inline FbTk::Orientation orientation() const { return m_orientation; }
70 virtual void setOrientation(FbTk::Orientation orient) { m_orientation = orient; }
71
68 class ToolbarItemSubject : public FbTk::Subject {}; 72 class ToolbarItemSubject : public FbTk::Subject {};
69 73
70private: 74private:
71 Type m_type; 75 Type m_type;
72 76
77 FbTk::Orientation m_orientation;
78
73 ToolbarItemSubject m_resize_sig; 79 ToolbarItemSubject m_resize_sig;
74}; 80};
75 81