aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.hh
diff options
context:
space:
mode:
authormarkt <markt>2007-12-13 05:48:00 (GMT)
committermarkt <markt>2007-12-13 05:48:00 (GMT)
commit8b7464046cea5e521ac46811591b0fce0c45aca1 (patch)
tree09df752f426a249ae15375a626a98436c8727593 /src/CurrentWindowCmd.hh
parentdaca07edafc2e75eb9ee04d35fe80759308a8583 (diff)
downloadfluxbox_pavel-8b7464046cea5e521ac46811591b0fce0c45aca1.zip
fluxbox_pavel-8b7464046cea5e521ac46811591b0fce0c45aca1.tar.bz2
added FbTk::CommandRegistry, decentralized command parsing, and made them auto-register
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r--src/CurrentWindowCmd.hh10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/CurrentWindowCmd.hh b/src/CurrentWindowCmd.hh
index c8e6242..7ef1184 100644
--- a/src/CurrentWindowCmd.hh
+++ b/src/CurrentWindowCmd.hh
@@ -151,6 +151,8 @@ protected:
151class StartResizingCmd: public WindowHelperCmd { 151class StartResizingCmd: public WindowHelperCmd {
152public: 152public:
153 explicit StartResizingCmd(FluxboxWindow::ResizeModel mode):m_mode(mode) { } 153 explicit StartResizingCmd(FluxboxWindow::ResizeModel mode):m_mode(mode) { }
154 static FbTk::Command *parse(const std::string &command,
155 const std::string &args, bool trusted);
154protected: 156protected:
155 void real_execute(); 157 void real_execute();
156private: 158private:
@@ -161,6 +163,8 @@ private:
161class MoveCmd: public WindowHelperCmd { 163class MoveCmd: public WindowHelperCmd {
162public: 164public:
163 explicit MoveCmd(const int step_size_x, const int step_size_y); 165 explicit MoveCmd(const int step_size_x, const int step_size_y);
166 static FbTk::Command *parse(const std::string &command,
167 const std::string &args, bool trusted);
164protected: 168protected:
165 void real_execute(); 169 void real_execute();
166 170
@@ -173,6 +177,8 @@ private:
173class ResizeCmd: public WindowHelperCmd{ 177class ResizeCmd: public WindowHelperCmd{
174public: 178public:
175 explicit ResizeCmd(int step_size_x, int step_size_y); 179 explicit ResizeCmd(int step_size_x, int step_size_y);
180 static FbTk::Command *parse(const std::string &command,
181 const std::string &args, bool trusted);
176protected: 182protected:
177 void real_execute(); 183 void real_execute();
178 184
@@ -194,6 +200,8 @@ public:
194 IGNORE_Y = 1 << 9 200 IGNORE_Y = 1 << 9
195 }; 201 };
196 explicit MoveToCmd(const int step_size_x, const int step_size_y, const unsigned int refc); 202 explicit MoveToCmd(const int step_size_x, const int step_size_y, const unsigned int refc);
203 static FbTk::Command *parse(const std::string &command,
204 const std::string &args, bool trusted);
197protected: 205protected:
198 void real_execute(); 206 void real_execute();
199 207
@@ -224,6 +232,8 @@ protected:
224class SetAlphaCmd: public WindowHelperCmd { 232class SetAlphaCmd: public WindowHelperCmd {
225public: 233public:
226 SetAlphaCmd(int focus, bool rel, int unfocus, bool unrel); 234 SetAlphaCmd(int focus, bool rel, int unfocus, bool unrel);
235 static FbTk::Command *parse(const std::string &command,
236 const std::string &args, bool trusted);
227protected: 237protected:
228 void real_execute(); 238 void real_execute();
229private: 239private: