summaryrefslogtreecommitdiff
path: root/src/FbCommands.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2008-08-14 05:52:39 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2008-08-14 05:52:39 (GMT)
commite169d33552c8e7070aa6e13da0187f2013b4cfc3 (patch)
treeae9e92c7e885791c7f47645184070cbcd441ab94 /src/FbCommands.hh
parentc82e7c0080f8a5c14dcf95ec92dc42f59ea9dd8b (diff)
parent91ca3bc5c8e2b892a9a81b18246f72aba7deebfd (diff)
downloadfluxbox_lack-e169d33552c8e7070aa6e13da0187f2013b4cfc3.zip
fluxbox_lack-e169d33552c8e7070aa6e13da0187f2013b4cfc3.tar.bz2
Merge branch 'master' into to_push
Diffstat (limited to 'src/FbCommands.hh')
-rw-r--r--src/FbCommands.hh10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/FbCommands.hh b/src/FbCommands.hh
index f9c33af..b6b1f7f 100644
--- a/src/FbCommands.hh
+++ b/src/FbCommands.hh
@@ -25,7 +25,8 @@
25#define FBCOMMANDS_HH 25#define FBCOMMANDS_HH
26 26
27#include "FbTk/Command.hh" 27#include "FbTk/Command.hh"
28#include "FbTk/RefCount.hh" 28
29#include <memory>
29 30
30#include "ClientMenu.hh" 31#include "ClientMenu.hh"
31#include "ClientPattern.hh" 32#include "ClientPattern.hh"
@@ -76,6 +77,8 @@ class RestartFluxboxCmd: public FbTk::Command<void> {
76public: 77public:
77 RestartFluxboxCmd(const std::string &cmd); 78 RestartFluxboxCmd(const std::string &cmd);
78 void execute(); 79 void execute();
80 static FbTk::Command<void> *parse(const std::string &command,
81 const std::string &args, bool trusted);
79private: 82private:
80 std::string m_cmd; 83 std::string m_cmd;
81}; 84};
@@ -124,16 +127,17 @@ private:
124 const int m_option; 127 const int m_option;
125 const ClientPattern m_pat; 128 const ClientPattern m_pat;
126 std::list<FluxboxWindow *> m_list; 129 std::list<FluxboxWindow *> m_list;
127 FbTk::RefCount<ClientMenu> m_menu; 130 std::auto_ptr<ClientMenu> m_menu;
128}; 131};
129 132
130class ShowCustomMenuCmd: public FbTk::Command<void> { 133class ShowCustomMenuCmd: public FbTk::Command<void> {
131public: 134public:
132 explicit ShowCustomMenuCmd(const std::string &arguments); 135 explicit ShowCustomMenuCmd(const std::string &arguments);
133 void execute(); 136 void execute();
137 void reload();
134private: 138private:
135 std::string custom_menu_file; 139 std::string custom_menu_file;
136 FbTk::RefCount<FbTk::Menu> m_menu; 140 std::auto_ptr<FbMenu> m_menu;
137}; 141};
138 142
139class ShowRootMenuCmd: public FbTk::Command<void> { 143class ShowRootMenuCmd: public FbTk::Command<void> {