aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-06-30 14:38:42 (GMT)
committerfluxgen <fluxgen>2003-06-30 14:38:42 (GMT)
commit0dc31b93a8538aac2a538737df52a92bf8e8c21a (patch)
tree3715051120ca874f9e3491118704d7341967afdf /src/WorkspaceCmd.hh
parent695d926b2f56a602b62773f2a6aa4eaf2c5c40b2 (diff)
downloadfluxbox-0dc31b93a8538aac2a538737df52a92bf8e8c21a.zip
fluxbox-0dc31b93a8538aac2a538737df52a92bf8e8c21a.tar.bz2
for commands on current workspace
Diffstat (limited to 'src/WorkspaceCmd.hh')
-rw-r--r--src/WorkspaceCmd.hh74
1 files changed, 74 insertions, 0 deletions
diff --git a/src/WorkspaceCmd.hh b/src/WorkspaceCmd.hh
new file mode 100644
index 0000000..cc5702b
--- /dev/null
+++ b/src/WorkspaceCmd.hh
@@ -0,0 +1,74 @@
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.1 2003/06/30 14:38:42 fluxgen Exp $
24
25#ifndef WORKSPACECMD_HH
26#define WORKSPACECMD_HH
27#include "Command.hh"
28
29class NextWindowCmd: public FbTk::Command {
30public:
31 explicit NextWindowCmd(int option):m_option(option) { }
32 void execute();
33private:
34 const int m_option;
35};
36
37class PrevWindowCmd: public FbTk::Command {
38public:
39 explicit PrevWindowCmd(int option):m_option(option) { }
40 void execute();
41private:
42 const int m_option;
43};
44
45class NextWorkspaceCmd: public FbTk::Command {
46public:
47 void execute();
48};
49
50class PrevWorkspaceCmd: public FbTk::Command {
51public:
52 void execute();
53};
54
55class JumpToWorkspaceCmd: public FbTk::Command {
56public:
57 explicit JumpToWorkspaceCmd(int workspace_num);
58 void execute();
59private:
60 const int m_workspace_num;
61};
62
63/// arranges windows in current workspace to rows and columns
64class ArrangeWindowsCmd: public FbTk::Command {
65public:
66 void execute();
67};
68
69class ShowDesktopCmd: public FbTk::Command {
70public:
71 void execute();
72};
73
74#endif // WORKSPACECMD_HH