diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-20 20:23:56 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2007-12-20 20:23:56 (GMT) |
commit | 03dce043b78103a977bd6c48b81bb1b462aaac5f (patch) | |
tree | 6cc49956acf8c4049f7d6702058534d29c1c15c2 /src/WorkspaceCmd.hh | |
parent | b90a7e21a9f56f8e9f92c7ec357cbf683e6fd712 (diff) | |
download | fluxbox-03dce043b78103a977bd6c48b81bb1b462aaac5f.zip fluxbox-03dce043b78103a977bd6c48b81bb1b462aaac5f.tar.bz2 |
added ForEach key command
Diffstat (limited to 'src/WorkspaceCmd.hh')
-rw-r--r-- | src/WorkspaceCmd.hh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/WorkspaceCmd.hh b/src/WorkspaceCmd.hh index fa8cb58..13adec3 100644 --- a/src/WorkspaceCmd.hh +++ b/src/WorkspaceCmd.hh | |||
@@ -36,14 +36,18 @@ | |||
36 | 36 | ||
37 | class WindowListCmd: public FbTk::Command { | 37 | class WindowListCmd: public FbTk::Command { |
38 | public: | 38 | public: |
39 | WindowListCmd(FbTk::RefCount<FbTk::Command> cmd, const std::string &pat): | 39 | WindowListCmd(FbTk::RefCount<FbTk::Command> cmd, int opts, |
40 | m_cmd(cmd), m_pat(pat.c_str()) { } | 40 | FbTk::RefCount<FbTk::BoolCommand> filter): |
41 | m_cmd(cmd), m_opts(opts), m_filter(filter) { } | ||
41 | 42 | ||
42 | void execute(); | 43 | void execute(); |
44 | static FbTk::Command *parse(const std::string &command, | ||
45 | const std::string &args, bool trusted); | ||
43 | 46 | ||
44 | private: | 47 | private: |
45 | FbTk::RefCount<FbTk::Command> m_cmd; | 48 | FbTk::RefCount<FbTk::Command> m_cmd; |
46 | ClientPattern m_pat; | 49 | int m_opts; |
50 | FbTk::RefCount<FbTk::BoolCommand> m_filter; | ||
47 | }; | 51 | }; |
48 | 52 | ||
49 | class SomeCmd: public FbTk::BoolCommand { | 53 | class SomeCmd: public FbTk::BoolCommand { |