Mercurial > hg > svcore
comparison base/Command.h @ 423:6a96bff0bd59
* Update translations, and add change counter to name of bundle command
author | Chris Cannam |
---|---|
date | Thu, 12 Jun 2008 10:47:11 +0000 |
parents | d397ea0a79f5 |
children | b4a8d8221eaf |
comparison
equal
deleted
inserted
replaced
422:4caa28a0a8a2 | 423:6a96bff0bd59 |
---|---|
14 */ | 14 */ |
15 | 15 |
16 #ifndef _COMMAND_H_ | 16 #ifndef _COMMAND_H_ |
17 #define _COMMAND_H_ | 17 #define _COMMAND_H_ |
18 | 18 |
19 #include <QObject> | |
19 #include <QString> | 20 #include <QString> |
20 #include <vector> | 21 #include <vector> |
21 | 22 |
22 class Command | 23 class Command |
23 { | 24 { |
48 protected: | 49 protected: |
49 QString m_name; | 50 QString m_name; |
50 std::vector<Command *> m_commands; | 51 std::vector<Command *> m_commands; |
51 }; | 52 }; |
52 | 53 |
54 /** | |
55 * BundleCommand is a MacroCommand whose name includes a note of how | |
56 * many commands it contains. It is a QObject with Q_OBJECT macro so | |
57 * that it can do plural-sensitive translations. | |
58 */ | |
59 class BundleCommand : public QObject, public MacroCommand | |
60 { | |
61 Q_OBJECT | |
62 | |
63 public: | |
64 BundleCommand(QString name); | |
65 virtual ~BundleCommand(); | |
66 | |
67 virtual QString getName() const; | |
68 }; | |
69 | |
53 #endif | 70 #endif |
54 | 71 |