diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2008-08-14 05:52:39 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2008-08-14 05:52:39 (GMT) |
commit | e169d33552c8e7070aa6e13da0187f2013b4cfc3 (patch) | |
tree | ae9e92c7e885791c7f47645184070cbcd441ab94 /src/FbMenu.hh | |
parent | c82e7c0080f8a5c14dcf95ec92dc42f59ea9dd8b (diff) | |
parent | 91ca3bc5c8e2b892a9a81b18246f72aba7deebfd (diff) | |
download | fluxbox-e169d33552c8e7070aa6e13da0187f2013b4cfc3.zip fluxbox-e169d33552c8e7070aa6e13da0187f2013b4cfc3.tar.bz2 |
Merge branch 'master' into to_push
Diffstat (limited to 'src/FbMenu.hh')
-rw-r--r-- | src/FbMenu.hh | 7 |
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 | ||
28 | class FluxboxWindow; | 31 | class 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 | ||
50 | private: | 56 | private: |
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 | ||