diff options
Diffstat (limited to 'src/ToolbarItem.hh')
-rw-r--r-- | src/ToolbarItem.hh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ToolbarItem.hh b/src/ToolbarItem.hh index 57088e0..78f1f12 100644 --- a/src/ToolbarItem.hh +++ b/src/ToolbarItem.hh | |||
@@ -20,11 +20,13 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: ToolbarItem.hh,v 1.3 2003/10/31 10:37:09 rathnor Exp $ | 23 | // $Id: ToolbarItem.hh,v 1.4 2004/06/20 10:29:51 rathnor Exp $ |
24 | 24 | ||
25 | #ifndef TOOLBARITEM_HH | 25 | #ifndef TOOLBARITEM_HH |
26 | #define TOOLBARITEM_HH | 26 | #define TOOLBARITEM_HH |
27 | 27 | ||
28 | #include "FbTk/Subject.hh" | ||
29 | |||
28 | /// An item in the toolbar that has either fixed or realive size to the toolbar | 30 | /// An item in the toolbar that has either fixed or realive size to the toolbar |
29 | class ToolbarItem { | 31 | class ToolbarItem { |
30 | public: | 32 | public: |
@@ -50,11 +52,17 @@ public: | |||
50 | // some items might be there, but effectively empty, so shouldn't appear | 52 | // some items might be there, but effectively empty, so shouldn't appear |
51 | virtual bool active() { return true; } | 53 | virtual bool active() { return true; } |
52 | 54 | ||
55 | FbTk::Subject &resizeSig() { return m_resize_sig; } | ||
56 | |||
53 | void setType(Type type) { m_type = type; } | 57 | void setType(Type type) { m_type = type; } |
54 | Type type() const { return m_type; } | 58 | Type type() const { return m_type; } |
55 | 59 | ||
60 | class ToolbarItemSubject : public FbTk::Subject {}; | ||
61 | |||
56 | private: | 62 | private: |
57 | Type m_type; | 63 | Type m_type; |
64 | |||
65 | ToolbarItemSubject m_resize_sig; | ||
58 | }; | 66 | }; |
59 | 67 | ||
60 | #endif // TOOLBARITEM_HH | 68 | #endif // TOOLBARITEM_HH |