aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MacroCommand.hh
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-11 07:41:22 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-11 07:41:22 (GMT)
commit9f2f65a698c4cc71373a7fe9d73a0889e0d3487b (patch)
tree4ad67db771d73ea3c48f80a1244037fc9754edd2 /src/FbTk/MacroCommand.hh
parent1f01d84c080d607a91eb417efcaf5e500b5f1d7e (diff)
downloadfluxbox-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.hh12
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 @@
30namespace FbTk { 30namespace FbTk {
31 31
32/// executes a list of commands 32/// executes a list of commands
33class MacroCommand:public Command { 33class MacroCommand:public Command<void> {
34public: 34public:
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
39private: 39private:
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
44class ToggleCommand:public Command { 44class ToggleCommand:public Command<void> {
45public: 45public:
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
51private: 51private:
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