aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-09-10 14:07:48 (GMT)
committerfluxgen <fluxgen>2003-09-10 14:07:48 (GMT)
commitb78edef5b6e39822142dd91331a53ab38b147f05 (patch)
treea2842f409b3032f0aa041e14a0558718af023270 /src/CurrentWindowCmd.hh
parent90eb966c41af507c2995804213ec33ba833529cc (diff)
downloadfluxbox_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.hh44
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
72class MoveHelper: public WindowHelperCmd { 72class MoveCmd: public WindowHelperCmd {
73public: 73public:
74 explicit MoveHelper(int step_size):m_step_size(step_size) { } 74 explicit MoveCmd(const int step_size_x, const int step_size_y);
75protected:
76 int stepSize() const { return m_step_size; }
77
78private:
79 const int m_step_size;
80};
81/// move window to left
82class MoveLeftCmd: public MoveHelper {
83public:
84 explicit MoveLeftCmd(int step_size);
85protected:
86 void real_execute();
87};
88
89/// move window to right
90class MoveRightCmd: public MoveHelper {
91public:
92 explicit MoveRightCmd(int step_size);
93protected: 75protected:
94 void real_execute(); 76 void real_execute();
95};
96
97/// move window up
98class MoveUpCmd: public MoveHelper {
99public:
100 explicit MoveUpCmd(int step_size);
101protected:
102 void real_execute();
103};
104 77
105/// move window down 78private:
106class MoveDownCmd: public MoveHelper { 79 const int m_step_size_x;
107public: 80 const int m_step_size_y;
108 explicit MoveDownCmd(int step_size);
109protected:
110 void real_execute();
111}; 81};
112 82
113// resize horizontal 83// resize cmd
114class ResizeCmd: public WindowHelperCmd{ 84class ResizeCmd: public WindowHelperCmd{
115public: 85public:
116 explicit ResizeCmd(int step_size_x, int step_size_y); 86 explicit ResizeCmd(int step_size_x, int step_size_y);