Mercurial > hg > svcore
comparison base/Command.h @ 47:bac8b14ab355
* Add menu for re-adding existing layers
* Fix layer tree window so that it at least approximates correct
* Add bundled operations in command history, for use with things like
multiple consecutive changes to a parameter value
* Disambiguate plugins that happen to have identical descriptions
* Add spectral centroid plugin (could use some parameters!)
* Some other fixes
| author | Chris Cannam |
|---|---|
| date | Fri, 17 Mar 2006 17:38:28 +0000 |
| parents | 2fb933f88604 |
| children | 39ae3dee27b9 |
comparison
equal
deleted
inserted
replaced
| 46:5364a9d338a2 | 47:bac8b14ab355 |
|---|---|
| 29 MacroCommand(QString name); | 29 MacroCommand(QString name); |
| 30 virtual ~MacroCommand(); | 30 virtual ~MacroCommand(); |
| 31 | 31 |
| 32 virtual void addCommand(Command *command); | 32 virtual void addCommand(Command *command); |
| 33 virtual void deleteCommand(Command *command); | 33 virtual void deleteCommand(Command *command); |
| 34 virtual bool haveCommands() const { return !m_commands.empty(); } | 34 virtual bool haveCommands() const; |
| 35 | 35 |
| 36 virtual void execute(); | 36 virtual void execute(); |
| 37 virtual void unexecute(); | 37 virtual void unexecute(); |
| 38 | 38 |
| 39 virtual QString getName() const { return m_name; } | 39 virtual QString getName() const; |
| 40 virtual void setName(QString name) { m_name = name; } | 40 virtual void setName(QString name); |
| 41 | 41 |
| 42 protected: | 42 protected: |
| 43 QString m_name; | 43 QString m_name; |
| 44 std::vector<Command *> m_commands; | 44 std::vector<Command *> m_commands; |
| 45 }; | 45 }; |
