diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-02-11 18:17:45 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-02-11 18:17:45 (GMT) |
commit | 611b6aa57e34ed8e52cb6b88c9adbafe4d67c6e2 (patch) | |
tree | 0d8edbf9e0356f7f93e87ca6970f684aabaae419 /src/FbMenu.hh | |
parent | cd128d7a3e19e0608b992d5211d7ea88a73ed3cd (diff) | |
download | fluxbox_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.hh | 10 |
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 | ||
28 | class FluxboxWindow; | ||
29 | |||
28 | namespace FbTk { | 30 | namespace FbTk { |
29 | class MenuTheme; | 31 | class 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 | |||
41 | private: | 50 | private: |
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 |