diff options
author | markt <markt> | 2007-03-30 20:29:46 (GMT) |
---|---|---|
committer | markt <markt> | 2007-03-30 20:29:46 (GMT) |
commit | 3ab6b48974c32c742bda5dc6c3f217f9d58e3d99 (patch) | |
tree | 7a9852f2513e4677e636cd6261c87ba3002b3ab4 /src/WorkspaceCmd.hh | |
parent | aef362350332d80febe1a4b72ee9b4b962ed527b (diff) | |
download | fluxbox-3ab6b48974c32c742bda5dc6c3f217f9d58e3d99.zip fluxbox-3ab6b48974c32c742bda5dc6c3f217f9d58e3d99.tar.bz2 |
pattern matching for window cycling
Diffstat (limited to 'src/WorkspaceCmd.hh')
-rw-r--r-- | src/WorkspaceCmd.hh | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/WorkspaceCmd.hh b/src/WorkspaceCmd.hh index 31ffb04..0e24a17 100644 --- a/src/WorkspaceCmd.hh +++ b/src/WorkspaceCmd.hh | |||
@@ -26,40 +26,49 @@ | |||
26 | #define WORKSPACECMD_HH | 26 | #define WORKSPACECMD_HH |
27 | #include "Command.hh" | 27 | #include "Command.hh" |
28 | 28 | ||
29 | #include "ClientPattern.hh" | ||
29 | #include "FocusControl.hh" | 30 | #include "FocusControl.hh" |
30 | 31 | ||
31 | 32 | ||
32 | class NextWindowCmd: public FbTk::Command { | 33 | class NextWindowCmd: public FbTk::Command { |
33 | public: | 34 | public: |
34 | explicit NextWindowCmd(int option):m_option(option) { } | 35 | explicit NextWindowCmd(int option, std::string &pat): |
36 | m_option(option), m_pat(pat.c_str()) { } | ||
35 | void execute(); | 37 | void execute(); |
36 | private: | 38 | private: |
37 | const int m_option; | 39 | const int m_option; |
40 | const ClientPattern m_pat; | ||
38 | }; | 41 | }; |
39 | 42 | ||
40 | class PrevWindowCmd: public FbTk::Command { | 43 | class PrevWindowCmd: public FbTk::Command { |
41 | public: | 44 | public: |
42 | explicit PrevWindowCmd(int option):m_option(option) { } | 45 | explicit PrevWindowCmd(int option, std::string &pat): |
46 | m_option(option), m_pat(pat.c_str()) { } | ||
43 | void execute(); | 47 | void execute(); |
44 | private: | 48 | private: |
45 | const int m_option; | 49 | const int m_option; |
50 | const ClientPattern m_pat; | ||
46 | }; | 51 | }; |
47 | 52 | ||
48 | class TypeAheadFocusCmd: public FbTk::Command { | 53 | class TypeAheadFocusCmd: public FbTk::Command { |
49 | public: | 54 | public: |
50 | explicit TypeAheadFocusCmd(int option): m_option(option) { } | 55 | explicit TypeAheadFocusCmd(int option, std::string &pat): |
56 | m_option(option), m_pat(pat.c_str()) { } | ||
51 | void execute(); | 57 | void execute(); |
52 | private: | 58 | private: |
53 | const int m_option; | 59 | const int m_option; |
60 | const ClientPattern m_pat; | ||
54 | }; | 61 | }; |
55 | 62 | ||
56 | class GoToWindowCmd: public FbTk::Command { | 63 | class GoToWindowCmd: public FbTk::Command { |
57 | public: | 64 | public: |
58 | GoToWindowCmd(int num, int option): m_num(num), m_option(option) { } | 65 | GoToWindowCmd(int num, int option, std::string &pat): |
66 | m_num(num), m_option(option), m_pat(pat.c_str()) { } | ||
59 | void execute(); | 67 | void execute(); |
60 | private: | 68 | private: |
61 | const int m_num; | 69 | const int m_num; |
62 | const int m_option; | 70 | const int m_option; |
71 | const ClientPattern m_pat; | ||
63 | }; | 72 | }; |
64 | 73 | ||
65 | class DirFocusCmd: public FbTk::Command { | 74 | class DirFocusCmd: public FbTk::Command { |