change menu name for macros plugin

Merge-request: 240
Reviewed-by: con <qtc-committer@nokia.com>
This commit is contained in:
Nicolas Arnaud-Cormos
2011-02-07 11:34:00 +01:00
committed by con
parent 6fc21c3416
commit 0444335aba
2 changed files with 6 additions and 6 deletions

View File

@@ -253,7 +253,7 @@ bool MacroManager::MacroManagerPrivate::executeMacro(Macro *macro)
if (error) {
QMessageBox::warning(Core::ICore::instance()->mainWindow(),
tr("Executing Macro"),
tr("Playing Macro"),
tr("An error occured while replaying the macro, execution stopped."));
}
@@ -355,12 +355,12 @@ void MacroManager::startMacro()
QString endShortcut = am->command(Constants::END_MACRO)->defaultKeySequence().toString();
QString executeShortcut = am->command(Constants::EXECUTE_LAST_MACRO)->defaultKeySequence().toString();
QString help = tr("Macro mode. Type \"%1\" to stop recording and \"%2\" to execute it")
QString help = tr("Macro mode. Type \"%1\" to stop recording and \"%2\" to play it")
.arg(endShortcut).arg(executeShortcut);
Core::EditorManager::instance()->showEditorStatusBar(
QLatin1String(Constants::M_STATUS_BUFFER),
help,
tr("End Macro"), this, SLOT(endMacro()));
tr("Stop Recording Macro"), this, SLOT(endMacro()));
}
void MacroManager::endMacro()

View File

@@ -88,7 +88,7 @@ bool MacrosPlugin::initialize(const QStringList &arguments, QString *error_messa
menu->setEnabled(true);
mtools->addMenu(mmacrotools);
QAction *startMacro = new QAction(tr("Start Macro"), this);
QAction *startMacro = new QAction(tr("Record Macro"), this);
Core::Command *command = am->registerAction(startMacro, Constants::START_MACRO, textContext);
#ifdef Q_WS_MAC
command->setDefaultKeySequence(QKeySequence(tr("Ctrl+(")));
@@ -98,7 +98,7 @@ bool MacrosPlugin::initialize(const QStringList &arguments, QString *error_messa
mmacrotools->addAction(command);
connect(startMacro, SIGNAL(triggered()), m_macroManager, SLOT(startMacro()));
QAction *endMacro = new QAction(tr("End Macro"), this);
QAction *endMacro = new QAction(tr("Stop Recording Macro"), this);
endMacro->setEnabled(false);
command = am->registerAction(endMacro, Constants::END_MACRO, globalcontext);
#ifdef Q_WS_MAC
@@ -109,7 +109,7 @@ bool MacrosPlugin::initialize(const QStringList &arguments, QString *error_messa
mmacrotools->addAction(command);
connect(endMacro, SIGNAL(triggered()), m_macroManager, SLOT(endMacro()));
QAction *executeLastMacro = new QAction(tr("Execute Last Macro"), this);
QAction *executeLastMacro = new QAction(tr("Play Last Macro"), this);
command = am->registerAction(executeLastMacro, Constants::EXECUTE_LAST_MACRO, textContext);
command->setDefaultKeySequence(QKeySequence(tr("Alt+R")));
mmacrotools->addAction(command);