diff options
author | markt <markt> | 2007-11-22 04:07:57 (GMT) |
---|---|---|
committer | markt <markt> | 2007-11-22 04:07:57 (GMT) |
commit | 675bc5d66aa08311e99cb00cf836d16a910a73df (patch) | |
tree | 9118f77bcc38631f944cdf4a07d2173011a29a9b /src/WorkspaceCmd.hh | |
parent | 08ebff4b319f51b4263cded0bb9c04103bcd9c3a (diff) | |
download | fluxbox_pavel-675bc5d66aa08311e99cb00cf836d16a910a73df.zip fluxbox_pavel-675bc5d66aa08311e99cb00cf836d16a910a73df.tar.bz2 |
added conditional statements to keys file
Diffstat (limited to 'src/WorkspaceCmd.hh')
-rw-r--r-- | src/WorkspaceCmd.hh | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/src/WorkspaceCmd.hh b/src/WorkspaceCmd.hh index a530ae8..4f4545d 100644 --- a/src/WorkspaceCmd.hh +++ b/src/WorkspaceCmd.hh | |||
@@ -32,17 +32,37 @@ | |||
32 | 32 | ||
33 | #include "FbTk/RefCount.hh" | 33 | #include "FbTk/RefCount.hh" |
34 | 34 | ||
35 | class WindowHelperCmd; | ||
36 | |||
37 | class WindowListCmd: public FbTk::Command { | 35 | class WindowListCmd: public FbTk::Command { |
38 | public: | 36 | public: |
39 | WindowListCmd(FbTk::RefCount<WindowHelperCmd> cmd, const std::string &pat): | 37 | WindowListCmd(FbTk::RefCount<FbTk::Command> cmd, const std::string &pat): |
40 | m_cmd(cmd), m_pat(pat.c_str()) { } | 38 | m_cmd(cmd), m_pat(pat.c_str()) { } |
41 | 39 | ||
42 | void execute(); | 40 | void execute(); |
43 | 41 | ||
44 | private: | 42 | private: |
45 | FbTk::RefCount<WindowHelperCmd> m_cmd; | 43 | FbTk::RefCount<FbTk::Command> m_cmd; |
44 | ClientPattern m_pat; | ||
45 | }; | ||
46 | |||
47 | class SomeCmd: public FbTk::BoolCommand { | ||
48 | public: | ||
49 | SomeCmd(FbTk::RefCount<FbTk::BoolCommand> cmd): m_cmd(cmd) { } | ||
50 | |||
51 | bool bool_execute(); | ||
52 | |||
53 | private: | ||
54 | FbTk::RefCount<FbTk::BoolCommand> m_cmd; | ||
55 | ClientPattern m_pat; | ||
56 | }; | ||
57 | |||
58 | class EveryCmd: public FbTk::BoolCommand { | ||
59 | public: | ||
60 | EveryCmd(FbTk::RefCount<FbTk::BoolCommand> cmd): m_cmd(cmd) { } | ||
61 | |||
62 | bool bool_execute(); | ||
63 | |||
64 | private: | ||
65 | FbTk::RefCount<FbTk::BoolCommand> m_cmd; | ||
46 | ClientPattern m_pat; | 66 | ClientPattern m_pat; |
47 | }; | 67 | }; |
48 | 68 | ||