aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-02-15 02:00:29 (GMT)
committerfluxgen <fluxgen>2003-02-15 02:00:29 (GMT)
commit0a01f73b51766fc5619c5e38424e4aa344b47583 (patch)
treec8867712b4b3a5b4ab29ea8ad60e08707ba51c80 /src/Toolbar.hh
parentf25cf733d6fc1496f02514695948c09797755dae (diff)
downloadfluxbox_pavel-0a01f73b51766fc5619c5e38424e4aa344b47583.zip
fluxbox_pavel-0a01f73b51766fc5619c5e38424e4aa344b47583.tar.bz2
fixed indentation and added theme listener object
Diffstat (limited to 'src/Toolbar.hh')
-rw-r--r--src/Toolbar.hh18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/Toolbar.hh b/src/Toolbar.hh
index 9accc20..eb7af70 100644
--- a/src/Toolbar.hh
+++ b/src/Toolbar.hh
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Toolbar.hh,v 1.21 2003/01/12 18:52:35 fluxgen Exp $ 25// $Id: Toolbar.hh,v 1.22 2003/02/15 02:00:29 fluxgen Exp $
26 26
27#ifndef TOOLBAR_HH 27#ifndef TOOLBAR_HH
28#define TOOLBAR_HH 28#define TOOLBAR_HH
@@ -33,6 +33,7 @@
33#include "EventHandler.hh" 33#include "EventHandler.hh"
34#include "FbWindow.hh" 34#include "FbWindow.hh"
35#include "ArrowButton.hh" 35#include "ArrowButton.hh"
36#include "Observer.hh"
36 37
37#include <memory> 38#include <memory>
38 39
@@ -144,6 +145,7 @@ private:
144 145
145 virtual void timeout(); 146 virtual void timeout();
146 } hide_handler; 147 } hide_handler;
148 friend class HideHandler;
147 149
148 BScreen *m_screen; 150 BScreen *m_screen;
149 FbTk::ImageControl &image_ctrl; 151 FbTk::ImageControl &image_ctrl;
@@ -156,8 +158,18 @@ private:
156 158
157 ToolbarTheme m_theme; 159 ToolbarTheme m_theme;
158 Placement m_place; 160 Placement m_place;
159 161 //!! TODO this is just temporary
160 friend class HideHandler; 162 class ThemeListener: public FbTk::Observer {
163 public:
164 ThemeListener(Toolbar &tb):m_tb(tb) { }
165 void update(FbTk::Subject *subj) {
166 m_tb.reconfigure();
167 }
168 private:
169 Toolbar &m_tb;
170 };
171
172 ThemeListener m_themelistener;
161}; 173};
162 174
163 175