diff options
Diffstat (limited to 'src/FbCommands.hh')
-rw-r--r-- | src/FbCommands.hh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/FbCommands.hh b/src/FbCommands.hh index 314d339..a049a7c 100644 --- a/src/FbCommands.hh +++ b/src/FbCommands.hh | |||
@@ -29,8 +29,10 @@ | |||
29 | #include "Command.hh" | 29 | #include "Command.hh" |
30 | 30 | ||
31 | #include "FbTk/RefCount.hh" | 31 | #include "FbTk/RefCount.hh" |
32 | #include "FbTk/Menu.hh" | 32 | #include "ClientMenu.hh" |
33 | #include "ClientPattern.hh" | ||
33 | 34 | ||
35 | #include <list> | ||
34 | #include <string> | 36 | #include <string> |
35 | 37 | ||
36 | namespace FbCommands { | 38 | namespace FbCommands { |
@@ -121,6 +123,18 @@ public: | |||
121 | void execute(); | 123 | void execute(); |
122 | }; | 124 | }; |
123 | 125 | ||
126 | class ShowClientMenuCmd: public FbTk::Command { | ||
127 | public: | ||
128 | ShowClientMenuCmd(int option, std::string &pat): | ||
129 | m_option(option), m_pat(pat.c_str()) { } | ||
130 | void execute(); | ||
131 | private: | ||
132 | const int m_option; | ||
133 | const ClientPattern m_pat; | ||
134 | std::list<FluxboxWindow *> m_list; | ||
135 | FbTk::RefCount<ClientMenu> m_menu; | ||
136 | }; | ||
137 | |||
124 | class ShowCustomMenuCmd: public FbTk::Command { | 138 | class ShowCustomMenuCmd: public FbTk::Command { |
125 | public: | 139 | public: |
126 | explicit ShowCustomMenuCmd(const std::string &arguments); | 140 | explicit ShowCustomMenuCmd(const std::string &arguments); |