comparison 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
comparison
equal deleted inserted replaced
422:4caa28a0a8a2 423:6a96bff0bd59
12 License, or (at your option) any later version. See the file 12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
14 */ 14 */
15 15
16 #include "Command.h" 16 #include "Command.h"
17 #include <QCoreApplication>
17 18
18 MacroCommand::MacroCommand(QString name) : 19 MacroCommand::MacroCommand(QString name) :
19 m_name(name) 20 m_name(name)
20 { 21 {
21 } 22 }
79 MacroCommand::setName(QString name) 80 MacroCommand::setName(QString name)
80 { 81 {
81 m_name = name; 82 m_name = name;
82 } 83 }
83 84
85 BundleCommand::BundleCommand(QString name) :
86 MacroCommand(name)
87 {
88 }
89
90 BundleCommand::~BundleCommand()
91 {
92 }
93
94 QString
95 BundleCommand::getName() const
96 {
97 if (m_commands.size() == 1) return m_name;
98 return tr("%1 (%n change(s))", "", m_commands.size()).arg(m_name);
99 }
100