diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-04-03 20:18:37 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-04-03 20:18:37 (GMT) |
commit | 5d015723486caf4b140fcd6b701a7a1140bb52a2 (patch) | |
tree | 4e2820821c59861087a7d043cd57cb154aa9635d /Source/QtDialog/CMakeSetupDialog.cxx | |
parent | 61af8d8b3283c3c8a91feb26b9c1ba1d2b972b2f (diff) | |
download | CMake-5d015723486caf4b140fcd6b701a7a1140bb52a2.zip CMake-5d015723486caf4b140fcd6b701a7a1140bb52a2.tar.gz CMake-5d015723486caf4b140fcd6b701a7a1140bb52a2.tar.bz2 |
ENH: add ability to create symlinks for command line on mac from gui
Diffstat (limited to 'Source/QtDialog/CMakeSetupDialog.cxx')
-rw-r--r-- | Source/QtDialog/CMakeSetupDialog.cxx | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Source/QtDialog/CMakeSetupDialog.cxx b/Source/QtDialog/CMakeSetupDialog.cxx index 10da23f..8b3eee6 100644 --- a/Source/QtDialog/CMakeSetupDialog.cxx +++ b/Source/QtDialog/CMakeSetupDialog.cxx @@ -31,6 +31,7 @@ #include <QMimeData> #include <QUrl> #include <QShortcut> +#include <QMacInstallDialog.h> #include "QCMake.h" #include "QCMakeCacheView.h" @@ -96,17 +97,23 @@ CMakeSetupDialog::CMakeSetupDialog() this->GenerateAction = ToolsMenu->addAction(tr("&Generate")); QObject::connect(this->GenerateAction, SIGNAL(triggered(bool)), this, SLOT(doGenerate())); - +#if defined(__APPLE__) + this->InstallForCommandLineAction + = ToolsMenu->addAction(tr("&Install For Command Line Use")); + QObject::connect(this->InstallForCommandLineAction, SIGNAL(triggered(bool)), + this, SLOT(doInstallForCommandLine())); +#endif QMenu* OptionsMenu = this->menuBar()->addMenu(tr("&Options")); QAction* supressDevWarningsAction = OptionsMenu->addAction(tr("&Suppress dev Warnings (-Wno-dev)")); QObject::connect(supressDevWarningsAction, SIGNAL(triggered(bool)), this, SLOT(doSuppressDev())); + supressDevWarningsAction->setCheckable(true); QAction* debugAction = OptionsMenu->addAction(tr("&Debug Output")); debugAction->setCheckable(true); QObject::connect(debugAction, SIGNAL(toggled(bool)), this, SLOT(setDebugOutput(bool))); - + QMenu* HelpMenu = this->menuBar()->addMenu(tr("&Help")); QAction* a = HelpMenu->addAction(tr("About")); QObject::connect(a, SIGNAL(triggered(bool)), @@ -325,6 +332,12 @@ void CMakeSetupDialog::doSuppressDev() SetSuppressDevWarnings(this->SuppressDevWarnings); } +void CMakeSetupDialog::doInstallForCommandLine() +{ + QMacInstallDialog setupdialog(0); + setupdialog.exec(); +} + void CMakeSetupDialog::doGenerate() { if(this->CurrentState == Generating) |