diff options
Diffstat (limited to 'src/WorkspaceCmd.hh')
-rw-r--r-- | src/WorkspaceCmd.hh | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/src/WorkspaceCmd.hh b/src/WorkspaceCmd.hh new file mode 100644 index 0000000..8a23bff --- /dev/null +++ b/src/WorkspaceCmd.hh | |||
@@ -0,0 +1,90 @@ | |||
1 | // WorkspaceCmd.hh for Fluxbox - an X11 Window manager | ||
2 | // Copyright (c) 2003 Henrik Kinnunen (fluxgen{<a*t>}users.sourceforge.net) | ||
3 | // and Simon Bowden (rathnor at users.sourceforge.net) | ||
4 | // | ||
5 | // Permission is hereby granted, free of charge, to any person obtaining a | ||
6 | // copy of this software and associated documentation files (the "Software"), | ||
7 | // to deal in the Software without restriction, including without limitation | ||
8 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, | ||
9 | // and/or sell copies of the Software, and to permit persons to whom the | ||
10 | // Software is furnished to do so, subject to the following conditions: | ||
11 | // | ||
12 | // The above copyright notice and this permission notice shall be included in | ||
13 | // all copies or substantial portions of the Software. | ||
14 | // | ||
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
16 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
17 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | ||
18 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
19 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | ||
21 | // DEALINGS IN THE SOFTWARE. | ||
22 | |||
23 | // $Id: WorkspaceCmd.hh,v 1.2 2003/07/01 09:47:41 fluxgen Exp $ | ||
24 | |||
25 | #ifndef WORKSPACECMD_HH | ||
26 | #define WORKSPACECMD_HH | ||
27 | #include "Command.hh" | ||
28 | |||
29 | class NextWindowCmd: public FbTk::Command { | ||
30 | public: | ||
31 | explicit NextWindowCmd(int option):m_option(option) { } | ||
32 | void execute(); | ||
33 | private: | ||
34 | const int m_option; | ||
35 | }; | ||
36 | |||
37 | class PrevWindowCmd: public FbTk::Command { | ||
38 | public: | ||
39 | explicit PrevWindowCmd(int option):m_option(option) { } | ||
40 | void execute(); | ||
41 | private: | ||
42 | const int m_option; | ||
43 | }; | ||
44 | |||
45 | class NextWorkspaceCmd: public FbTk::Command { | ||
46 | public: | ||
47 | void execute(); | ||
48 | }; | ||
49 | |||
50 | class PrevWorkspaceCmd: public FbTk::Command { | ||
51 | public: | ||
52 | void execute(); | ||
53 | }; | ||
54 | |||
55 | class LeftWorkspaceCmd: public FbTk::Command { | ||
56 | public: | ||
57 | explicit LeftWorkspaceCmd(int num=1):m_param(num == 0 ? 1 : num) { } | ||
58 | void execute(); | ||
59 | private: | ||
60 | const int m_param; | ||
61 | }; | ||
62 | |||
63 | class RightWorkspaceCmd: public FbTk::Command { | ||
64 | public: | ||
65 | explicit RightWorkspaceCmd(int num=1):m_param(num == 0 ? 1 : num) { } | ||
66 | void execute(); | ||
67 | private: | ||
68 | const int m_param; | ||
69 | }; | ||
70 | |||
71 | class JumpToWorkspaceCmd: public FbTk::Command { | ||
72 | public: | ||
73 | explicit JumpToWorkspaceCmd(int workspace_num); | ||
74 | void execute(); | ||
75 | private: | ||
76 | const int m_workspace_num; | ||
77 | }; | ||
78 | |||
79 | /// arranges windows in current workspace to rows and columns | ||
80 | class ArrangeWindowsCmd: public FbTk::Command { | ||
81 | public: | ||
82 | void execute(); | ||
83 | }; | ||
84 | |||
85 | class ShowDesktopCmd: public FbTk::Command { | ||
86 | public: | ||
87 | void execute(); | ||
88 | }; | ||
89 | |||
90 | #endif // WORKSPACECMD_HH | ||