diff options
Diffstat (limited to 'src/IconbarTool.hh')
-rw-r--r-- | src/IconbarTool.hh | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/IconbarTool.hh b/src/IconbarTool.hh index 6ce3c35..074a317 100644 --- a/src/IconbarTool.hh +++ b/src/IconbarTool.hh | |||
@@ -56,15 +56,12 @@ public: | |||
56 | void show(); | 56 | void show(); |
57 | void hide(); | 57 | void hide(); |
58 | void setAlignment(FbTk::Container::Alignment a); | 58 | void setAlignment(FbTk::Container::Alignment a); |
59 | void setMode(std::string mode); | ||
60 | void parentMoved() { m_icon_container.parentMoved(); } | 59 | void parentMoved() { m_icon_container.parentMoved(); } |
61 | 60 | ||
62 | unsigned int width() const; | 61 | unsigned int width() const; |
63 | unsigned int height() const; | 62 | unsigned int height() const; |
64 | unsigned int borderWidth() const; | 63 | unsigned int borderWidth() const; |
65 | 64 | ||
66 | std::string mode() const { return *m_rc_mode; } | ||
67 | |||
68 | void setOrientation(FbTk::Orientation orient); | 65 | void setOrientation(FbTk::Orientation orient); |
69 | FbTk::Container::Alignment alignment() const { return m_icon_container.alignment(); } | 66 | FbTk::Container::Alignment alignment() const { return m_icon_container.alignment(); } |
70 | 67 | ||
@@ -73,6 +70,7 @@ private: | |||
73 | enum UpdateReason { LIST_ORDER, LIST_ADD, LIST_REMOVE, LIST_RESET, ALIGN }; | 70 | enum UpdateReason { LIST_ORDER, LIST_ADD, LIST_REMOVE, LIST_RESET, ALIGN }; |
74 | 71 | ||
75 | void updateSizing(); | 72 | void updateSizing(); |
73 | void setupModeMenu(FbTk::Menu &menu); | ||
76 | 74 | ||
77 | /// render single button, and probably apply changes (clear) | 75 | /// render single button, and probably apply changes (clear) |
78 | /// @param button the button to render | 76 | /// @param button the button to render |
@@ -96,6 +94,11 @@ private: | |||
96 | 94 | ||
97 | /// called when the list emits a signal | 95 | /// called when the list emits a signal |
98 | void update(UpdateReason reason, Focusable *win); | 96 | void update(UpdateReason reason, Focusable *win); |
97 | /// called when the mode changes | ||
98 | void modeChanged(const std::string &mode); | ||
99 | |||
100 | class ToolbarModeMenuItem; | ||
101 | class ToolbarAlignMenuItem; | ||
99 | 102 | ||
100 | BScreen &m_screen; | 103 | BScreen &m_screen; |
101 | FbTk::Container m_icon_container; | 104 | FbTk::Container m_icon_container; |
@@ -107,7 +110,6 @@ private: | |||
107 | 110 | ||
108 | std::auto_ptr<FocusableList> m_winlist; | 111 | std::auto_ptr<FocusableList> m_winlist; |
109 | IconMap m_icons; | 112 | IconMap m_icons; |
110 | std::string m_mode; | ||
111 | FbTk::StringResource m_rc_mode; | 113 | FbTk::StringResource m_rc_mode; |
112 | /// alignment of buttons | 114 | /// alignment of buttons |
113 | FbTk::Resource<FbTk::Container::Alignment, FbTk::EnumTraits<FbTk::Container::Alignment> > m_rc_alignment; | 115 | FbTk::Resource<FbTk::Container::Alignment, FbTk::EnumTraits<FbTk::Container::Alignment> > m_rc_alignment; |