aboutsummaryrefslogtreecommitdiff
path: root/src/ToolbarItem.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/ToolbarItem.hh')
-rw-r--r--src/ToolbarItem.hh8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ToolbarItem.hh b/src/ToolbarItem.hh
index f5d1a2a..bd5b38f 100644
--- a/src/ToolbarItem.hh
+++ b/src/ToolbarItem.hh
@@ -23,7 +23,7 @@
23#ifndef TOOLBARITEM_HH 23#ifndef TOOLBARITEM_HH
24#define TOOLBARITEM_HH 24#define TOOLBARITEM_HH
25 25
26#include "FbTk/Subject.hh" 26#include "FbTk/Signal.hh"
27#include "FbTk/Orientation.hh" 27#include "FbTk/Orientation.hh"
28 28
29/// An item in the toolbar that has either fixed or relative size to the toolbar 29/// An item in the toolbar that has either fixed or relative size to the toolbar
@@ -62,7 +62,7 @@ public:
62 // just update theme items that affect the size 62 // just update theme items that affect the size
63 virtual void updateSizing() = 0; 63 virtual void updateSizing() = 0;
64 64
65 FbTk::Subject &resizeSig() { return m_resize_sig; } 65 FbTk::Signal<> &resizeSig() { return m_resize_sig; }
66 66
67 void setType(Type type) { m_type = type; } 67 void setType(Type type) { m_type = type; }
68 Type type() const { return m_type; } 68 Type type() const { return m_type; }
@@ -70,14 +70,12 @@ public:
70 FbTk::Orientation orientation() const { return m_orientation; } 70 FbTk::Orientation orientation() const { return m_orientation; }
71 virtual void setOrientation(FbTk::Orientation orient) { m_orientation = orient; } 71 virtual void setOrientation(FbTk::Orientation orient) { m_orientation = orient; }
72 72
73 class ToolbarItemSubject : public FbTk::Subject {};
74
75private: 73private:
76 Type m_type; 74 Type m_type;
77 75
78 FbTk::Orientation m_orientation; 76 FbTk::Orientation m_orientation;
79 77
80 ToolbarItemSubject m_resize_sig; 78 FbTk::Signal<> m_resize_sig;
81}; 79};
82 80
83#endif // TOOLBARITEM_HH 81#endif // TOOLBARITEM_HH