aboutsummaryrefslogtreecommitdiff
path: root/src/FbMenu.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-02-11 18:17:45 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-02-11 18:17:45 (GMT)
commit611b6aa57e34ed8e52cb6b88c9adbafe4d67c6e2 (patch)
tree0d8edbf9e0356f7f93e87ca6970f684aabaae419 /src/FbMenu.hh
parentcd128d7a3e19e0608b992d5211d7ea88a73ed3cd (diff)
downloadfluxbox_pavel-611b6aa57e34ed8e52cb6b88c9adbafe4d67c6e2.zip
fluxbox_pavel-611b6aa57e34ed8e52cb6b88c9adbafe4d67c6e2.tar.bz2
more fun with the window menu
Diffstat (limited to 'src/FbMenu.hh')
-rw-r--r--src/FbMenu.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/FbMenu.hh b/src/FbMenu.hh
index 9114192..b9c4654 100644
--- a/src/FbMenu.hh
+++ b/src/FbMenu.hh
@@ -25,6 +25,8 @@
25#include "FbTk/Menu.hh" 25#include "FbTk/Menu.hh"
26#include "FbTk/XLayerItem.hh" 26#include "FbTk/XLayerItem.hh"
27 27
28class FluxboxWindow;
29
28namespace FbTk { 30namespace FbTk {
29class MenuTheme; 31class MenuTheme;
30} 32}
@@ -37,9 +39,17 @@ public:
37 virtual ~FbMenu() { } 39 virtual ~FbMenu() { }
38 void raise() { m_layeritem.raise(); } 40 void raise() { m_layeritem.raise(); }
39 void lower() { m_layeritem.lower(); } 41 void lower() { m_layeritem.lower(); }
42 void show();
43 void buttonPressEvent(XButtonEvent &be);
40 void buttonReleaseEvent(XButtonEvent &be); 44 void buttonReleaseEvent(XButtonEvent &be);
45 void keyPressEvent(XKeyEvent &ke);
46
47 static void setWindow(FluxboxWindow *win) { s_window = win; }
48 static FluxboxWindow *window() { return s_window; }
49
41private: 50private:
42 FbTk::XLayerItem m_layeritem; 51 FbTk::XLayerItem m_layeritem;
52 static FluxboxWindow *s_window;
43}; 53};
44 54
45#endif // FBMENU_HH 55#endif // FBMENU_HH