diff options
author | fluxgen <fluxgen> | 2003-09-10 14:07:48 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-09-10 14:07:48 (GMT) |
commit | b78edef5b6e39822142dd91331a53ab38b147f05 (patch) | |
tree | a2842f409b3032f0aa041e14a0558718af023270 /src/CurrentWindowCmd.hh | |
parent | 90eb966c41af507c2995804213ec33ba833529cc (diff) | |
download | fluxbox_pavel-b78edef5b6e39822142dd91331a53ab38b147f05.zip fluxbox_pavel-b78edef5b6e39822142dd91331a53ab38b147f05.tar.bz2 |
added move command, thanks Mathias Gumz
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r-- | src/CurrentWindowCmd.hh | 44 |
1 files changed, 7 insertions, 37 deletions
diff --git a/src/CurrentWindowCmd.hh b/src/CurrentWindowCmd.hh index 05015a0..18bcc45 100644 --- a/src/CurrentWindowCmd.hh +++ b/src/CurrentWindowCmd.hh | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: CurrentWindowCmd.hh,v 1.4 2003/09/06 15:43:27 fluxgen Exp $ | 23 | // $Id: CurrentWindowCmd.hh,v 1.5 2003/09/10 14:07:48 fluxgen Exp $ |
24 | 24 | ||
25 | #ifndef CURRENTWINDOWCMD_HH | 25 | #ifndef CURRENTWINDOWCMD_HH |
26 | #define CURRENTWINDOWCMD_HH | 26 | #define CURRENTWINDOWCMD_HH |
@@ -69,48 +69,18 @@ private: | |||
69 | const int m_workspace_num; | 69 | const int m_workspace_num; |
70 | }; | 70 | }; |
71 | 71 | ||
72 | class MoveHelper: public WindowHelperCmd { | 72 | class MoveCmd: public WindowHelperCmd { |
73 | public: | 73 | public: |
74 | explicit MoveHelper(int step_size):m_step_size(step_size) { } | 74 | explicit MoveCmd(const int step_size_x, const int step_size_y); |
75 | protected: | ||
76 | int stepSize() const { return m_step_size; } | ||
77 | |||
78 | private: | ||
79 | const int m_step_size; | ||
80 | }; | ||
81 | /// move window to left | ||
82 | class MoveLeftCmd: public MoveHelper { | ||
83 | public: | ||
84 | explicit MoveLeftCmd(int step_size); | ||
85 | protected: | ||
86 | void real_execute(); | ||
87 | }; | ||
88 | |||
89 | /// move window to right | ||
90 | class MoveRightCmd: public MoveHelper { | ||
91 | public: | ||
92 | explicit MoveRightCmd(int step_size); | ||
93 | protected: | 75 | protected: |
94 | void real_execute(); | 76 | void real_execute(); |
95 | }; | ||
96 | |||
97 | /// move window up | ||
98 | class MoveUpCmd: public MoveHelper { | ||
99 | public: | ||
100 | explicit MoveUpCmd(int step_size); | ||
101 | protected: | ||
102 | void real_execute(); | ||
103 | }; | ||
104 | 77 | ||
105 | /// move window down | 78 | private: |
106 | class MoveDownCmd: public MoveHelper { | 79 | const int m_step_size_x; |
107 | public: | 80 | const int m_step_size_y; |
108 | explicit MoveDownCmd(int step_size); | ||
109 | protected: | ||
110 | void real_execute(); | ||
111 | }; | 81 | }; |
112 | 82 | ||
113 | // resize horizontal | 83 | // resize cmd |
114 | class ResizeCmd: public WindowHelperCmd{ | 84 | class ResizeCmd: public WindowHelperCmd{ |
115 | public: | 85 | public: |
116 | explicit ResizeCmd(int step_size_x, int step_size_y); | 86 | explicit ResizeCmd(int step_size_x, int step_size_y); |