aboutsummaryrefslogtreecommitdiff
path: root/src/FbCommands.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbCommands.hh')
-rw-r--r--src/FbCommands.hh16
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
36namespace FbCommands { 38namespace FbCommands {
@@ -121,6 +123,18 @@ public:
121 void execute(); 123 void execute();
122}; 124};
123 125
126class ShowClientMenuCmd: public FbTk::Command {
127public:
128 ShowClientMenuCmd(int option, std::string &pat):
129 m_option(option), m_pat(pat.c_str()) { }
130 void execute();
131private:
132 const int m_option;
133 const ClientPattern m_pat;
134 std::list<FluxboxWindow *> m_list;
135 FbTk::RefCount<ClientMenu> m_menu;
136};
137
124class ShowCustomMenuCmd: public FbTk::Command { 138class ShowCustomMenuCmd: public FbTk::Command {
125public: 139public:
126 explicit ShowCustomMenuCmd(const std::string &arguments); 140 explicit ShowCustomMenuCmd(const std::string &arguments);