aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.hh
diff options
context:
space:
mode:
authormarkt <markt>2007-10-13 21:51:37 (GMT)
committermarkt <markt>2007-10-13 21:51:37 (GMT)
commita59428d67a95a9df16554962f0a6257d6378328a (patch)
treef856ed9300c34f7a17d499f22d895610cfbc08e5 /src/WorkspaceCmd.hh
parent41b5c6dadb1f474675660cef18b812d4c2338ed2 (diff)
downloadfluxbox-a59428d67a95a9df16554962f0a6257d6378328a.zip
fluxbox-a59428d67a95a9df16554962f0a6257d6378328a.tar.bz2
merged changes from pre-devel
Diffstat (limited to 'src/WorkspaceCmd.hh')
-rw-r--r--src/WorkspaceCmd.hh59
1 files changed, 52 insertions, 7 deletions
diff --git a/src/WorkspaceCmd.hh b/src/WorkspaceCmd.hh
index 31a6ea4..8053dc9 100644
--- a/src/WorkspaceCmd.hh
+++ b/src/WorkspaceCmd.hh
@@ -26,23 +26,73 @@
26#define WORKSPACECMD_HH 26#define WORKSPACECMD_HH
27#include "Command.hh" 27#include "Command.hh"
28 28
29#include "ClientPattern.hh"
30#include "CurrentWindowCmd.hh"
29#include "FocusControl.hh" 31#include "FocusControl.hh"
30 32
33#include "FbTk/RefCount.hh"
34
35class WindowHelperCmd;
36
37class WindowListCmd: public FbTk::Command {
38public:
39 WindowListCmd(FbTk::RefCount<WindowHelperCmd> cmd, const std::string &pat):
40 m_cmd(cmd), m_pat(pat.c_str()) { }
41
42 void execute();
43
44private:
45 FbTk::RefCount<WindowHelperCmd> m_cmd;
46 ClientPattern m_pat;
47};
48
49class AttachCmd: public FbTk::Command {
50public:
51 explicit AttachCmd(const std::string &pat): m_pat(pat.c_str()) { }
52 void execute();
53private:
54 const ClientPattern m_pat;
55};
31 56
32class NextWindowCmd: public FbTk::Command { 57class NextWindowCmd: public FbTk::Command {
33public: 58public:
34 explicit NextWindowCmd(int option):m_option(option) { } 59 explicit NextWindowCmd(int option, std::string &pat):
60 m_option(option), m_pat(pat.c_str()) { }
35 void execute(); 61 void execute();
36private: 62private:
37 const int m_option; 63 const int m_option;
64 const ClientPattern m_pat;
38}; 65};
39 66
40class PrevWindowCmd: public FbTk::Command { 67class PrevWindowCmd: public FbTk::Command {
41public: 68public:
42 explicit PrevWindowCmd(int option):m_option(option) { } 69 explicit PrevWindowCmd(int option, std::string &pat):
70 m_option(option), m_pat(pat.c_str()) { }
43 void execute(); 71 void execute();
44private: 72private:
45 const int m_option; 73 const int m_option;
74 const ClientPattern m_pat;
75};
76
77class TypeAheadFocusCmd: public FbTk::Command {
78public:
79 explicit TypeAheadFocusCmd(int option, std::string &pat):
80 m_option(option), m_pat(pat.c_str()) { }
81 void execute();
82private:
83 const int m_option;
84 const ClientPattern m_pat;
85};
86
87class GoToWindowCmd: public FbTk::Command {
88public:
89 GoToWindowCmd(int num, int option, std::string &pat):
90 m_num(num), m_option(option), m_pat(pat.c_str()) { }
91 void execute();
92private:
93 const int m_num;
94 const int m_option;
95 const ClientPattern m_pat;
46}; 96};
47 97
48class DirFocusCmd: public FbTk::Command { 98class DirFocusCmd: public FbTk::Command {
@@ -114,11 +164,6 @@ public:
114 void execute(); 164 void execute();
115}; 165};
116 166
117class MinimizeLayerCmd: public FbTk::Command {
118public:
119 void execute();
120};
121
122class CloseAllWindowsCmd: public FbTk::Command { 167class CloseAllWindowsCmd: public FbTk::Command {
123public: 168public:
124 void execute(); 169 void execute();