aboutsummaryrefslogtreecommitdiff
path: root/src/FbMenu.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbMenu.hh')
-rw-r--r--src/FbMenu.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/FbMenu.hh b/src/FbMenu.hh
index b9c4654..11ed3c3 100644
--- a/src/FbMenu.hh
+++ b/src/FbMenu.hh
@@ -22,8 +22,11 @@
22#ifndef FBMENU_HH 22#ifndef FBMENU_HH
23#define FBMENU_HH 23#define FBMENU_HH
24 24
25#include <memory>
26
25#include "FbTk/Menu.hh" 27#include "FbTk/Menu.hh"
26#include "FbTk/XLayerItem.hh" 28#include "FbTk/XLayerItem.hh"
29#include "FbTk/AutoReloadHelper.hh"
27 30
28class FluxboxWindow; 31class FluxboxWindow;
29 32
@@ -44,11 +47,15 @@ public:
44 void buttonReleaseEvent(XButtonEvent &be); 47 void buttonReleaseEvent(XButtonEvent &be);
45 void keyPressEvent(XKeyEvent &ke); 48 void keyPressEvent(XKeyEvent &ke);
46 49
50 void setReloadHelper(FbTk::AutoReloadHelper *helper) { m_reloader.reset(helper); }
51 FbTk::AutoReloadHelper *reloadHelper() { return m_reloader.get(); }
52
47 static void setWindow(FluxboxWindow *win) { s_window = win; } 53 static void setWindow(FluxboxWindow *win) { s_window = win; }
48 static FluxboxWindow *window() { return s_window; } 54 static FluxboxWindow *window() { return s_window; }
49 55
50private: 56private:
51 FbTk::XLayerItem m_layeritem; 57 FbTk::XLayerItem m_layeritem;
58 std::auto_ptr<FbTk::AutoReloadHelper> m_reloader;
52 static FluxboxWindow *s_window; 59 static FluxboxWindow *s_window;
53}; 60};
54 61