aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-11 07:41:22 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-11 07:41:22 (GMT)
commit9f2f65a698c4cc71373a7fe9d73a0889e0d3487b (patch)
tree4ad67db771d73ea3c48f80a1244037fc9754edd2 /src/CurrentWindowCmd.hh
parent1f01d84c080d607a91eb417efcaf5e500b5f1d7e (diff)
downloadfluxbox-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.hh16
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
32class WindowHelperCmd: public FbTk::Command { 32class WindowHelperCmd: public FbTk::Command<void> {
33public: 33public:
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
43class WindowHelperBoolCmd: public FbTk::BoolCommand { 43class WindowHelperBoolCmd: public FbTk::Command<bool> {
44public: 44public:
45 explicit WindowHelperBoolCmd() { } 45 explicit WindowHelperBoolCmd() { }
46 46
47 bool bool_execute(); 47 bool execute();
48 48
49protected: 49protected:
50 FluxboxWindow &fbwindow(); 50 FluxboxWindow &fbwindow();
@@ -149,7 +149,7 @@ protected:
149class StartResizingCmd: public WindowHelperCmd { 149class StartResizingCmd: public WindowHelperCmd {
150public: 150public:
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);
154protected: 154protected:
155 void real_execute(); 155 void real_execute();
@@ -169,7 +169,7 @@ protected:
169class MoveCmd: public WindowHelperCmd { 169class MoveCmd: public WindowHelperCmd {
170public: 170public:
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);
174protected: 174protected:
175 void real_execute(); 175 void real_execute();
@@ -183,7 +183,7 @@ private:
183class ResizeCmd: public WindowHelperCmd{ 183class ResizeCmd: public WindowHelperCmd{
184public: 184public:
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);
188protected: 188protected:
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);
211protected: 211protected:
212 void real_execute(); 212 void real_execute();
@@ -238,7 +238,7 @@ protected:
238class SetAlphaCmd: public WindowHelperCmd { 238class SetAlphaCmd: public WindowHelperCmd {
239public: 239public:
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);
243protected: 243protected:
244 void real_execute(); 244 void real_execute();