aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MacroCommand.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/MacroCommand.hh')
-rw-r--r--src/FbTk/MacroCommand.hh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/FbTk/MacroCommand.hh b/src/FbTk/MacroCommand.hh
index f29e05c..7aa9d66 100644
--- a/src/FbTk/MacroCommand.hh
+++ b/src/FbTk/MacroCommand.hh
@@ -42,6 +42,19 @@ private:
42 std::vector<RefCount<Command> > m_commandlist; 42 std::vector<RefCount<Command> > m_commandlist;
43}; 43};
44 44
45/// executes one command at a time
46class ToggleCommand:public Command {
47public:
48 ToggleCommand();
49 void add(RefCount<Command> &com);
50 size_t size() const;
51 virtual void execute();
52
53private:
54 std::vector<RefCount<Command> > m_commandlist;
55 size_t m_state;
56};
57
45} // end namespace FbTk 58} // end namespace FbTk
46 59
47#endif // FBTK_MACROCOMMAND_HH 60#endif // FBTK_MACROCOMMAND_HH