diff options
author | markt <markt> | 2007-12-13 05:48:00 (GMT) |
---|---|---|
committer | markt <markt> | 2007-12-13 05:48:00 (GMT) |
commit | 8b7464046cea5e521ac46811591b0fce0c45aca1 (patch) | |
tree | 09df752f426a249ae15375a626a98436c8727593 /src/CurrentWindowCmd.hh | |
parent | daca07edafc2e75eb9ee04d35fe80759308a8583 (diff) | |
download | fluxbox-8b7464046cea5e521ac46811591b0fce0c45aca1.zip fluxbox-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.hh | 10 |
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: | |||
151 | class StartResizingCmd: public WindowHelperCmd { | 151 | class StartResizingCmd: public WindowHelperCmd { |
152 | public: | 152 | public: |
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); | ||
154 | protected: | 156 | protected: |
155 | void real_execute(); | 157 | void real_execute(); |
156 | private: | 158 | private: |
@@ -161,6 +163,8 @@ private: | |||
161 | class MoveCmd: public WindowHelperCmd { | 163 | class MoveCmd: public WindowHelperCmd { |
162 | public: | 164 | public: |
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); | ||
164 | protected: | 168 | protected: |
165 | void real_execute(); | 169 | void real_execute(); |
166 | 170 | ||
@@ -173,6 +177,8 @@ private: | |||
173 | class ResizeCmd: public WindowHelperCmd{ | 177 | class ResizeCmd: public WindowHelperCmd{ |
174 | public: | 178 | public: |
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); | ||
176 | protected: | 182 | protected: |
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); | ||
197 | protected: | 205 | protected: |
198 | void real_execute(); | 206 | void real_execute(); |
199 | 207 | ||
@@ -224,6 +232,8 @@ protected: | |||
224 | class SetAlphaCmd: public WindowHelperCmd { | 232 | class SetAlphaCmd: public WindowHelperCmd { |
225 | public: | 233 | public: |
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); | ||
227 | protected: | 237 | protected: |
228 | void real_execute(); | 238 | void real_execute(); |
229 | private: | 239 | private: |