00001
00002
00003
00004
00005
00006 #ifndef COMPOUNDCOMMAND_H
00007 #define COMPOUNDCOMMAND_H
00008
00009 #include "gui/Command.h"
00010 #include <vector>
00011
00012 namespace gui {
00013
00014 typedef std::vector<Command* > CommandList;
00015
00016 class CompoundCommand : public Command , private CommandList {
00017
00018
00019 public:
00020 CompoundCommand(Command* cmd = 0);
00021
00022
00023 ~CompoundCommand();
00024
00025 void append(Command* cmd);
00026
00027
00028 virtual void execute();
00029
00030 };
00031
00032 }
00033
00034 #endif
00035