diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-21 10:22:57 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-08-21 10:22:57 (GMT) |
commit | 0116a83aa6b5275cbe3cd2bd851dc6959cacf79b (patch) | |
tree | d1f5d891549f9a5ee24c69e0d437c6746e6e7a23 /src/CurrentWindowCmd.hh | |
parent | 9dec17611fba493b028fb6664231822a07b3c4c1 (diff) | |
download | fluxbox-0116a83aa6b5275cbe3cd2bd851dc6959cacf79b.zip fluxbox-0116a83aa6b5275cbe3cd2bd851dc6959cacf79b.tar.bz2 |
add SendToNextHead/SendToPrevHead commands, plus some cleanup in CurrentWindowCmd
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r-- | src/CurrentWindowCmd.hh | 40 |
1 files changed, 8 insertions, 32 deletions
diff --git a/src/CurrentWindowCmd.hh b/src/CurrentWindowCmd.hh index 9b7d181..32cc5f0 100644 --- a/src/CurrentWindowCmd.hh +++ b/src/CurrentWindowCmd.hh | |||
@@ -74,59 +74,35 @@ private: | |||
74 | 74 | ||
75 | class SendToWorkspaceCmd: public WindowHelperCmd { | 75 | class SendToWorkspaceCmd: public WindowHelperCmd { |
76 | public: | 76 | public: |
77 | explicit SendToWorkspaceCmd(int workspace_num):m_workspace_num(workspace_num) { } | 77 | explicit SendToWorkspaceCmd(int workspace_num, bool take = false): |
78 | m_workspace_num(workspace_num), m_take(take) { } | ||
78 | protected: | 79 | protected: |
79 | void real_execute(); | 80 | void real_execute(); |
80 | private: | 81 | private: |
81 | const int m_workspace_num; | 82 | const int m_workspace_num; |
83 | const bool m_take; | ||
82 | }; | 84 | }; |
83 | 85 | ||
84 | class SendToNextWorkspaceCmd: public WindowHelperCmd { | 86 | class SendToNextWorkspaceCmd: public WindowHelperCmd { |
85 | public: | 87 | public: |
86 | explicit SendToNextWorkspaceCmd(int delta):m_delta(delta) { } | 88 | explicit SendToNextWorkspaceCmd(int delta, bool take = false): |
89 | m_delta(delta), m_take(take) { } | ||
87 | protected: | 90 | protected: |
88 | void real_execute(); | 91 | void real_execute(); |
89 | private: | 92 | private: |
90 | const int m_delta; | 93 | const int m_delta; |
94 | const bool m_take; | ||
91 | }; | 95 | }; |
92 | 96 | ||
93 | class SendToPrevWorkspaceCmd: public WindowHelperCmd { | 97 | class SendToNextHeadCmd: public WindowHelperCmd { |
94 | public: | 98 | public: |
95 | explicit SendToPrevWorkspaceCmd(int delta):m_delta(delta) { } | 99 | explicit SendToNextHeadCmd(int delta): m_delta(delta) { } |
96 | protected: | 100 | protected: |
97 | void real_execute(); | 101 | void real_execute(); |
98 | private: | 102 | private: |
99 | const int m_delta; | 103 | const int m_delta; |
100 | }; | 104 | }; |
101 | 105 | ||
102 | class TakeToWorkspaceCmd : public WindowHelperCmd { | ||
103 | public: | ||
104 | explicit TakeToWorkspaceCmd(int workspace_num) : m_workspace_num(workspace_num) { } | ||
105 | protected: | ||
106 | void real_execute(); | ||
107 | private: | ||
108 | const int m_workspace_num; | ||
109 | }; | ||
110 | |||
111 | class TakeToNextWorkspaceCmd : public WindowHelperCmd { | ||
112 | public: | ||
113 | explicit TakeToNextWorkspaceCmd(int delta) : m_delta(delta) { } | ||
114 | protected: | ||
115 | void real_execute(); | ||
116 | private: | ||
117 | const int m_delta; | ||
118 | }; | ||
119 | |||
120 | class TakeToPrevWorkspaceCmd : public WindowHelperCmd { | ||
121 | public: | ||
122 | explicit TakeToPrevWorkspaceCmd(int delta) : m_delta(delta) { } | ||
123 | protected: | ||
124 | void real_execute(); | ||
125 | private: | ||
126 | const int m_delta; | ||
127 | }; | ||
128 | |||
129 | |||
130 | // goto tab | 106 | // goto tab |
131 | class GoToTabCmd: public WindowHelperCmd { | 107 | class GoToTabCmd: public WindowHelperCmd { |
132 | public: | 108 | public: |