diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-11 07:41:22 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-11 07:41:22 (GMT) |
commit | 9f2f65a698c4cc71373a7fe9d73a0889e0d3487b (patch) | |
tree | 4ad67db771d73ea3c48f80a1244037fc9754edd2 /src/CurrentWindowCmd.hh | |
parent | 1f01d84c080d607a91eb417efcaf5e500b5f1d7e (diff) | |
download | fluxbox-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.zip fluxbox-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.tar.bz2 |
make FbTk::Command a template class, split parsing information out of ObjectRegistry
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r-- | src/CurrentWindowCmd.hh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/CurrentWindowCmd.hh b/src/CurrentWindowCmd.hh index 6b4359a..157855c 100644 --- a/src/CurrentWindowCmd.hh +++ b/src/CurrentWindowCmd.hh | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | /// helper class for window commands | 30 | /// helper class for window commands |
31 | /// calls real_execute if there's a focused window or a window in button press/release window | 31 | /// calls real_execute if there's a focused window or a window in button press/release window |
32 | class WindowHelperCmd: public FbTk::Command { | 32 | class WindowHelperCmd: public FbTk::Command<void> { |
33 | public: | 33 | public: |
34 | explicit WindowHelperCmd() { } | 34 | explicit WindowHelperCmd() { } |
35 | 35 | ||
@@ -40,11 +40,11 @@ protected: | |||
40 | virtual void real_execute() = 0; | 40 | virtual void real_execute() = 0; |
41 | }; | 41 | }; |
42 | 42 | ||
43 | class WindowHelperBoolCmd: public FbTk::BoolCommand { | 43 | class WindowHelperBoolCmd: public FbTk::Command<bool> { |
44 | public: | 44 | public: |
45 | explicit WindowHelperBoolCmd() { } | 45 | explicit WindowHelperBoolCmd() { } |
46 | 46 | ||
47 | bool bool_execute(); | 47 | bool execute(); |
48 | 48 | ||
49 | protected: | 49 | protected: |
50 | FluxboxWindow &fbwindow(); | 50 | FluxboxWindow &fbwindow(); |
@@ -149,7 +149,7 @@ protected: | |||
149 | class StartResizingCmd: public WindowHelperCmd { | 149 | class StartResizingCmd: public WindowHelperCmd { |
150 | public: | 150 | public: |
151 | explicit StartResizingCmd(FluxboxWindow::ResizeModel mode):m_mode(mode) { } | 151 | explicit StartResizingCmd(FluxboxWindow::ResizeModel mode):m_mode(mode) { } |
152 | static FbTk::Command *parse(const std::string &command, | 152 | static FbTk::Command<void> *parse(const std::string &command, |
153 | const std::string &args, bool trusted); | 153 | const std::string &args, bool trusted); |
154 | protected: | 154 | protected: |
155 | void real_execute(); | 155 | void real_execute(); |
@@ -169,7 +169,7 @@ protected: | |||
169 | class MoveCmd: public WindowHelperCmd { | 169 | class MoveCmd: public WindowHelperCmd { |
170 | public: | 170 | public: |
171 | explicit MoveCmd(const int step_size_x, const int step_size_y); | 171 | explicit MoveCmd(const int step_size_x, const int step_size_y); |
172 | static FbTk::Command *parse(const std::string &command, | 172 | static FbTk::Command<void> *parse(const std::string &command, |
173 | const std::string &args, bool trusted); | 173 | const std::string &args, bool trusted); |
174 | protected: | 174 | protected: |
175 | void real_execute(); | 175 | void real_execute(); |
@@ -183,7 +183,7 @@ private: | |||
183 | class ResizeCmd: public WindowHelperCmd{ | 183 | class ResizeCmd: public WindowHelperCmd{ |
184 | public: | 184 | public: |
185 | explicit ResizeCmd(int step_size_x, int step_size_y); | 185 | explicit ResizeCmd(int step_size_x, int step_size_y); |
186 | static FbTk::Command *parse(const std::string &command, | 186 | static FbTk::Command<void> *parse(const std::string &command, |
187 | const std::string &args, bool trusted); | 187 | const std::string &args, bool trusted); |
188 | protected: | 188 | protected: |
189 | void real_execute(); | 189 | void real_execute(); |
@@ -206,7 +206,7 @@ public: | |||
206 | IGNORE_Y = 1 << 9 | 206 | IGNORE_Y = 1 << 9 |
207 | }; | 207 | }; |
208 | explicit MoveToCmd(const int step_size_x, const int step_size_y, const unsigned int refc); | 208 | explicit MoveToCmd(const int step_size_x, const int step_size_y, const unsigned int refc); |
209 | static FbTk::Command *parse(const std::string &command, | 209 | static FbTk::Command<void> *parse(const std::string &command, |
210 | const std::string &args, bool trusted); | 210 | const std::string &args, bool trusted); |
211 | protected: | 211 | protected: |
212 | void real_execute(); | 212 | void real_execute(); |
@@ -238,7 +238,7 @@ protected: | |||
238 | class SetAlphaCmd: public WindowHelperCmd { | 238 | class SetAlphaCmd: public WindowHelperCmd { |
239 | public: | 239 | public: |
240 | SetAlphaCmd(int focus, bool rel, int unfocus, bool unrel); | 240 | SetAlphaCmd(int focus, bool rel, int unfocus, bool unrel); |
241 | static FbTk::Command *parse(const std::string &command, | 241 | static FbTk::Command<void> *parse(const std::string &command, |
242 | const std::string &args, bool trusted); | 242 | const std::string &args, bool trusted); |
243 | protected: | 243 | protected: |
244 | void real_execute(); | 244 | void real_execute(); |