diff 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
line wrap: on
line diff
--- a/base/Command.h	Thu Jun 12 09:03:00 2008 +0000
+++ b/base/Command.h	Thu Jun 12 10:47:11 2008 +0000
@@ -16,6 +16,7 @@
 #ifndef _COMMAND_H_
 #define _COMMAND_H_
 
+#include <QObject>
 #include <QString>
 #include <vector>
 
@@ -50,5 +51,21 @@
     std::vector<Command *> m_commands;
 };
 
+/**
+ * BundleCommand is a MacroCommand whose name includes a note of how
+ * many commands it contains.  It is a QObject with Q_OBJECT macro so
+ * that it can do plural-sensitive translations.
+ */
+class BundleCommand : public QObject, public MacroCommand
+{
+    Q_OBJECT
+
+public:
+    BundleCommand(QString name);
+    virtual ~BundleCommand();
+
+    virtual QString getName() const;
+};
+
 #endif