diff options
Diffstat (limited to 'src/Windowmenu.hh')
-rw-r--r-- | src/Windowmenu.hh | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/Windowmenu.hh b/src/Windowmenu.hh index 794d091..6ed6852 100644 --- a/src/Windowmenu.hh +++ b/src/Windowmenu.hh | |||
@@ -19,8 +19,8 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | #ifndef _WINDOWMENU_HH_ | 22 | #ifndef WINDOWMENU_HH |
23 | #define _WINDOWMENU_HH_ | 23 | #define WINDOWMENU_HH |
24 | 24 | ||
25 | // forward declaration | 25 | // forward declaration |
26 | class Windowmenu; | 26 | class Windowmenu; |
@@ -35,53 +35,53 @@ class Toolbar; | |||
35 | 35 | ||
36 | class Windowmenu : public Basemenu { | 36 | class Windowmenu : public Basemenu { |
37 | private: | 37 | private: |
38 | FluxboxWindow *window; | 38 | FluxboxWindow *window; |
39 | BScreen *screen; | 39 | BScreen *screen; |
40 | 40 | ||
41 | 41 | ||
42 | class SendtoWorkspacemenu : public Basemenu { | 42 | class SendtoWorkspacemenu : public Basemenu { |
43 | private: | 43 | private: |
44 | Windowmenu *windowmenu; | 44 | Windowmenu *windowmenu; |
45 | 45 | ||
46 | protected: | 46 | protected: |
47 | virtual void itemSelected(int, int); | 47 | virtual void itemSelected(int button, unsigned int index); |
48 | 48 | ||
49 | public: | 49 | public: |
50 | SendtoWorkspacemenu(Windowmenu *); | 50 | SendtoWorkspacemenu(Windowmenu *); |
51 | inline Windowmenu *getWindowMenu() const { return windowmenu; } | 51 | inline Windowmenu *getWindowMenu() const { return windowmenu; } |
52 | void update(void); | 52 | void update(void); |
53 | 53 | ||
54 | virtual void show(void); | 54 | virtual void show(void); |
55 | }; | 55 | }; |
56 | 56 | ||
57 | class SendGroupToWorkspacemenu : public SendtoWorkspacemenu { | 57 | class SendGroupToWorkspacemenu : public SendtoWorkspacemenu { |
58 | protected: | 58 | protected: |
59 | virtual void itemSelected(int, int); | 59 | virtual void itemSelected(int button, unsigned int index); |
60 | public: | 60 | public: |
61 | SendGroupToWorkspacemenu(Windowmenu *); | 61 | SendGroupToWorkspacemenu(Windowmenu *winmenu); |
62 | 62 | ||
63 | }; | 63 | }; |
64 | 64 | ||
65 | SendtoWorkspacemenu *sendToMenu; | 65 | SendtoWorkspacemenu *sendToMenu; |
66 | SendGroupToWorkspacemenu *sendGroupToMenu; | 66 | SendGroupToWorkspacemenu *sendGroupToMenu; |
67 | 67 | ||
68 | friend class SendtoWorkspacemenu; | 68 | friend class SendtoWorkspacemenu; |
69 | friend class SendGroupToWorkspacemenu; | 69 | friend class SendGroupToWorkspacemenu; |
70 | 70 | ||
71 | protected: | 71 | protected: |
72 | virtual void itemSelected(int, int); | 72 | virtual void itemSelected(int button, unsigned int index); |
73 | 73 | ||
74 | 74 | ||
75 | public: | 75 | public: |
76 | Windowmenu(FluxboxWindow *); | 76 | Windowmenu(FluxboxWindow *); |
77 | virtual ~Windowmenu(void); | 77 | virtual ~Windowmenu(void); |
78 | 78 | ||
79 | inline Basemenu *getSendToMenu(void) { return static_cast<Basemenu *>(sendToMenu); } | 79 | inline Basemenu *getSendToMenu(void) { return static_cast<Basemenu *>(sendToMenu); } |
80 | inline Basemenu *getSendGroupToMenu(void) { return static_cast<Basemenu *>(sendGroupToMenu); } | 80 | inline Basemenu *getSendGroupToMenu(void) { return static_cast<Basemenu *>(sendGroupToMenu); } |
81 | void reconfigure(void); | 81 | void reconfigure(void); |
82 | void setClosable(void); | 82 | void setClosable(void); |
83 | 83 | ||
84 | virtual void show(void); | 84 | virtual void show(void); |
85 | }; | 85 | }; |
86 | 86 | ||
87 | 87 | ||