diff base/Command.cpp @ 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 cc27f35aa75c
line wrap: on
line diff
--- a/base/Command.cpp	Thu Jun 12 09:03:00 2008 +0000
+++ b/base/Command.cpp	Thu Jun 12 10:47:11 2008 +0000
@@ -14,6 +14,7 @@
 */
 
 #include "Command.h"
+#include <QCoreApplication>
 
 MacroCommand::MacroCommand(QString name) :
     m_name(name)
@@ -81,3 +82,19 @@
     m_name = name;
 }
 
+BundleCommand::BundleCommand(QString name) :
+    MacroCommand(name)
+{
+}
+
+BundleCommand::~BundleCommand()
+{
+}
+
+QString
+BundleCommand::getName() const
+{
+    if (m_commands.size() == 1) return m_name;
+    return tr("%1 (%n change(s))", "", m_commands.size()).arg(m_name);
+}
+