aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.hh
diff options
context:
space:
mode:
authormarkt <markt>2007-10-22 17:45:39 (GMT)
committermarkt <markt>2007-10-22 17:45:39 (GMT)
commitc6a2605d76927eed881e4ff9df58a9ec600bf4a2 (patch)
tree468c356ffdad6893d4f4b312f847122b66c997ed /src/CurrentWindowCmd.hh
parentf72633a0e0df146c4860b5b3940e9c3a2f7260b1 (diff)
downloadfluxbox-c6a2605d76927eed881e4ff9df58a9ec600bf4a2.zip
fluxbox-c6a2605d76927eed881e4ff9df58a9ec600bf4a2.tar.bz2
replaced ModKey with new key commands StartMoving and StartResizing
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r--src/CurrentWindowCmd.hh21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/CurrentWindowCmd.hh b/src/CurrentWindowCmd.hh
index da929d5..53dc7b8 100644
--- a/src/CurrentWindowCmd.hh
+++ b/src/CurrentWindowCmd.hh
@@ -26,8 +26,7 @@
26#define CURRENTWINDOWCMD_HH 26#define CURRENTWINDOWCMD_HH
27 27
28#include "Command.hh" 28#include "Command.hh"
29 29#include "Window.hh"
30class FluxboxWindow;
31 30
32/// helper class for window commands 31/// helper class for window commands
33/// calls real_execute if there's a focused window or a window in button press/release window 32/// calls real_execute if there's a focused window or a window in button press/release window
@@ -131,6 +130,24 @@ private:
131 const int m_tab_num; 130 const int m_tab_num;
132}; 131};
133 132
133// begin moving with mouse
134class StartMovingCmd: public WindowHelperCmd {
135public:
136 StartMovingCmd() { }
137protected:
138 void real_execute();
139};
140
141// begin resizing with mouse
142class StartResizingCmd: public WindowHelperCmd {
143public:
144 explicit StartResizingCmd(FluxboxWindow::ResizeModel mode):m_mode(mode) { }
145protected:
146 void real_execute();
147private:
148 const FluxboxWindow::ResizeModel m_mode;
149};
150
134// move cmd, relative position 151// move cmd, relative position
135class MoveCmd: public WindowHelperCmd { 152class MoveCmd: public WindowHelperCmd {
136public: 153public: