diff options
author | markt <markt> | 2007-10-22 17:45:39 (GMT) |
---|---|---|
committer | markt <markt> | 2007-10-22 17:45:39 (GMT) |
commit | c6a2605d76927eed881e4ff9df58a9ec600bf4a2 (patch) | |
tree | 468c356ffdad6893d4f4b312f847122b66c997ed /src/CurrentWindowCmd.hh | |
parent | f72633a0e0df146c4860b5b3940e9c3a2f7260b1 (diff) | |
download | fluxbox_pavel-c6a2605d76927eed881e4ff9df58a9ec600bf4a2.zip fluxbox_pavel-c6a2605d76927eed881e4ff9df58a9ec600bf4a2.tar.bz2 |
replaced ModKey with new key commands StartMoving and StartResizing
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r-- | src/CurrentWindowCmd.hh | 21 |
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" | |
30 | class 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 | ||
134 | class StartMovingCmd: public WindowHelperCmd { | ||
135 | public: | ||
136 | StartMovingCmd() { } | ||
137 | protected: | ||
138 | void real_execute(); | ||
139 | }; | ||
140 | |||
141 | // begin resizing with mouse | ||
142 | class StartResizingCmd: public WindowHelperCmd { | ||
143 | public: | ||
144 | explicit StartResizingCmd(FluxboxWindow::ResizeModel mode):m_mode(mode) { } | ||
145 | protected: | ||
146 | void real_execute(); | ||
147 | private: | ||
148 | const FluxboxWindow::ResizeModel m_mode; | ||
149 | }; | ||
150 | |||
134 | // move cmd, relative position | 151 | // move cmd, relative position |
135 | class MoveCmd: public WindowHelperCmd { | 152 | class MoveCmd: public WindowHelperCmd { |
136 | public: | 153 | public: |