aboutsummaryrefslogtreecommitdiff
path: root/src/CurrentWindowCmd.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/CurrentWindowCmd.hh')
-rw-r--r--src/CurrentWindowCmd.hh40
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
75class SendToWorkspaceCmd: public WindowHelperCmd { 75class SendToWorkspaceCmd: public WindowHelperCmd {
76public: 76public:
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) { }
78protected: 79protected:
79 void real_execute(); 80 void real_execute();
80private: 81private:
81 const int m_workspace_num; 82 const int m_workspace_num;
83 const bool m_take;
82}; 84};
83 85
84class SendToNextWorkspaceCmd: public WindowHelperCmd { 86class SendToNextWorkspaceCmd: public WindowHelperCmd {
85public: 87public:
86 explicit SendToNextWorkspaceCmd(int delta):m_delta(delta) { } 88 explicit SendToNextWorkspaceCmd(int delta, bool take = false):
89 m_delta(delta), m_take(take) { }
87protected: 90protected:
88 void real_execute(); 91 void real_execute();
89private: 92private:
90 const int m_delta; 93 const int m_delta;
94 const bool m_take;
91}; 95};
92 96
93class SendToPrevWorkspaceCmd: public WindowHelperCmd { 97class SendToNextHeadCmd: public WindowHelperCmd {
94public: 98public:
95 explicit SendToPrevWorkspaceCmd(int delta):m_delta(delta) { } 99 explicit SendToNextHeadCmd(int delta): m_delta(delta) { }
96protected: 100protected:
97 void real_execute(); 101 void real_execute();
98private: 102private:
99 const int m_delta; 103 const int m_delta;
100}; 104};
101 105
102class TakeToWorkspaceCmd : public WindowHelperCmd {
103public:
104 explicit TakeToWorkspaceCmd(int workspace_num) : m_workspace_num(workspace_num) { }
105protected:
106 void real_execute();
107private:
108 const int m_workspace_num;
109};
110
111class TakeToNextWorkspaceCmd : public WindowHelperCmd {
112public:
113 explicit TakeToNextWorkspaceCmd(int delta) : m_delta(delta) { }
114protected:
115 void real_execute();
116private:
117 const int m_delta;
118};
119
120class TakeToPrevWorkspaceCmd : public WindowHelperCmd {
121public:
122 explicit TakeToPrevWorkspaceCmd(int delta) : m_delta(delta) { }
123protected:
124 void real_execute();
125private:
126 const int m_delta;
127};
128
129
130// goto tab 106// goto tab
131class GoToTabCmd: public WindowHelperCmd { 107class GoToTabCmd: public WindowHelperCmd {
132public: 108public: