From 3cb2ba9e907b65190687a46972bcd1d69259b96c Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Thu, 3 Apr 2008 16:49:46 -0400 Subject: [PATCH] ENH: Add more shortcuts. Fixes 6357. --- Source/QtDialog/CMakeSetupDialog.cxx | 14 +++++++------- Source/QtDialog/CMakeSetupDialog.ui | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 8b3eee6a1..43421a57b 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -97,7 +97,7 @@ CMakeSetupDialog::CMakeSetupDialog() this->GenerateAction = ToolsMenu->addAction(tr("&Generate")); QObject::connect(this->GenerateAction, SIGNAL(triggered(bool)), this, SLOT(doGenerate())); -#if defined(__APPLE__) +#if defined(Q_WS_MAC) this->InstallForCommandLineAction = ToolsMenu->addAction(tr("&Install For Command Line Use")); QObject::connect(this->InstallForCommandLineAction, SIGNAL(triggered(bool)), @@ -807,7 +807,7 @@ void CMakeSetupDialog::enterState(CMakeSetupDialog::State s) this->setEnabledState(false); this->GenerateButton->setEnabled(false); this->GenerateAction->setEnabled(false); - this->ConfigureButton->setText(tr("Stop")); + this->ConfigureButton->setText(tr("&Stop")); } else if(s == Generating) { @@ -815,7 +815,7 @@ void CMakeSetupDialog::enterState(CMakeSetupDialog::State s) this->setEnabledState(false); this->ConfigureButton->setEnabled(false); this->GenerateAction->setEnabled(false); - this->GenerateButton->setText(tr("Stop")); + this->GenerateButton->setText(tr("&Stop")); } else if(s == ReadyConfigure) { @@ -824,8 +824,8 @@ void CMakeSetupDialog::enterState(CMakeSetupDialog::State s) this->GenerateButton->setEnabled(false); this->GenerateAction->setEnabled(false); this->ConfigureButton->setEnabled(true); - this->ConfigureButton->setText(tr("Configure")); - this->GenerateButton->setText(tr("Generate")); + this->ConfigureButton->setText(tr("&Configure")); + this->GenerateButton->setText(tr("&Generate")); } else if(s == ReadyGenerate) { @@ -834,8 +834,8 @@ void CMakeSetupDialog::enterState(CMakeSetupDialog::State s) this->GenerateButton->setEnabled(true); this->GenerateAction->setEnabled(true); this->ConfigureButton->setEnabled(true); - this->ConfigureButton->setText(tr("Configure")); - this->GenerateButton->setText(tr("Generate")); + this->ConfigureButton->setText(tr("&Configure")); + this->GenerateButton->setText(tr("&Generate")); } } diff --git a/Source/QtDialog/CMakeSetupDialog.ui b/Source/QtDialog/CMakeSetupDialog.ui index fb80cc021..035045da7 100644 --- a/Source/QtDialog/CMakeSetupDialog.ui +++ b/Source/QtDialog/CMakeSetupDialog.ui @@ -37,7 +37,7 @@ - Browse... + Browse &Source... @@ -66,7 +66,7 @@ - Browse... + Browse &Build... @@ -155,7 +155,7 @@ Add New Entry - Add Entry + &Add Entry :/Icons/Plus16.png @@ -171,7 +171,7 @@ Remove Selected Entries - Remove Entry + &Remove Entry :/Icons/Delete16.png @@ -220,14 +220,14 @@ - Configure + &Configure - Generate + &Generate