diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-11 07:41:22 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-11 07:41:22 (GMT) |
commit | 9f2f65a698c4cc71373a7fe9d73a0889e0d3487b (patch) | |
tree | 4ad67db771d73ea3c48f80a1244037fc9754edd2 /src/FbTk/MacroCommand.hh | |
parent | 1f01d84c080d607a91eb417efcaf5e500b5f1d7e (diff) | |
download | fluxbox-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.zip fluxbox-9f2f65a698c4cc71373a7fe9d73a0889e0d3487b.tar.bz2 |
make FbTk::Command a template class, split parsing information out of ObjectRegistry
Diffstat (limited to 'src/FbTk/MacroCommand.hh')
-rw-r--r-- | src/FbTk/MacroCommand.hh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/FbTk/MacroCommand.hh b/src/FbTk/MacroCommand.hh index a7d9204..932ecaf 100644 --- a/src/FbTk/MacroCommand.hh +++ b/src/FbTk/MacroCommand.hh | |||
@@ -30,26 +30,26 @@ | |||
30 | namespace FbTk { | 30 | namespace FbTk { |
31 | 31 | ||
32 | /// executes a list of commands | 32 | /// executes a list of commands |
33 | class MacroCommand:public Command { | 33 | class MacroCommand:public Command<void> { |
34 | public: | 34 | public: |
35 | void add(RefCount<Command> &com); | 35 | void add(RefCount<Command<void> > &com); |
36 | size_t size() const; | 36 | size_t size() const; |
37 | virtual void execute(); | 37 | virtual void execute(); |
38 | 38 | ||
39 | private: | 39 | private: |
40 | std::vector<RefCount<Command> > m_commandlist; | 40 | std::vector<RefCount<Command<void> > > m_commandlist; |
41 | }; | 41 | }; |
42 | 42 | ||
43 | /// executes one command at a time | 43 | /// executes one command at a time |
44 | class ToggleCommand:public Command { | 44 | class ToggleCommand:public Command<void> { |
45 | public: | 45 | public: |
46 | ToggleCommand(); | 46 | ToggleCommand(); |
47 | void add(RefCount<Command> &com); | 47 | void add(RefCount<Command<void> > &com); |
48 | size_t size() const; | 48 | size_t size() const; |
49 | virtual void execute(); | 49 | virtual void execute(); |
50 | 50 | ||
51 | private: | 51 | private: |
52 | std::vector<RefCount<Command> > m_commandlist; | 52 | std::vector<RefCount<Command<void> > > m_commandlist; |
53 | size_t m_state; | 53 | size_t m_state; |
54 | }; | 54 | }; |
55 | 55 | ||