diff --git a/qtcreator.pri b/qtcreator.pri index 2660be7..68029e0 100644 --- a/qtcreator.pri +++ b/qtcreator.pri @@ -1,7 +1,7 @@ !isEmpty(QTCREATOR_PRI_INCLUDED):error("qtcreator.pri already included") QTCREATOR_PRI_INCLUDED = 1 -QTCREATOR_VERSION = 3.6.2 +QTCREATOR_VERSION = 3.6.3 QTCREATOR_COMPAT_VERSION = 3.6.0 BINARY_ARTIFACTS_BRANCH = 3.6 QTC_VERILOG = yes diff --git a/src/plugins/qtctools/QtcTools.json.in b/src/plugins/qtctools/QtcTools.json.in index 9524709..ff4e3ca 100644 --- a/src/plugins/qtctools/QtcTools.json.in +++ b/src/plugins/qtctools/QtcTools.json.in @@ -1,7 +1,7 @@ { \"Name\" : \"QtcTools\", - \"Version\" : \"3.6.1\", - \"CompatVersion\" : \"3.6.1\", + \"Version\" : \"$$QTCREATOR_VERSION\", + \"CompatVersion\" : \"$$QTCREATOR_COMPAT_VERSION\", \"Vendor\" : \"Rochus Keller\", \"Copyright\" : \"The Qt Company Ltd, Rochus Keller\", \"License\" : \"LGPL\", diff --git a/src/plugins/qtctools/customexecutableconfigurationwidget.cpp b/src/plugins/qtctools/customexecutableconfigurationwidget.cpp index 7dc6d3f..e770541 100644 --- a/src/plugins/qtctools/customexecutableconfigurationwidget.cpp +++ b/src/plugins/qtctools/customexecutableconfigurationwidget.cpp @@ -49,7 +49,7 @@ using namespace ProjectExplorer; -namespace QtSupport { +namespace QtcTools { namespace Internal { CustomExecutableConfigurationWidget::CustomExecutableConfigurationWidget(CustomExecutableRunConfiguration *rc, ApplyMode mode) @@ -189,4 +189,4 @@ bool CustomExecutableConfigurationWidget::isValid() const } } // namespace Internal -} // namespace QtSupport +} // namespace QtcTools diff --git a/src/plugins/qtctools/customexecutableconfigurationwidget.h b/src/plugins/qtctools/customexecutableconfigurationwidget.h index 3668c09..bf6a957 100644 --- a/src/plugins/qtctools/customexecutableconfigurationwidget.h +++ b/src/plugins/qtctools/customexecutableconfigurationwidget.h @@ -51,7 +51,7 @@ class ArgumentsAspect; class TerminalAspect; } -namespace QtSupport { +namespace QtcTools { class CustomExecutableRunConfiguration; namespace Internal { @@ -89,6 +89,6 @@ private slots: }; } // namespace Internal -} // namespace QtSupport +} // namespace QtcTools #endif // CUSTOMEXECUTABLECONFIGURATIONWIDGET_H diff --git a/src/plugins/qtctools/customexecutablerunconfiguration.cpp b/src/plugins/qtctools/customexecutablerunconfiguration.cpp index a96077b..d216edb 100644 --- a/src/plugins/qtctools/customexecutablerunconfiguration.cpp +++ b/src/plugins/qtctools/customexecutablerunconfiguration.cpp @@ -30,7 +30,7 @@ #include "customexecutablerunconfiguration.h" #include "customexecutableconfigurationwidget.h" -#include "qtkitinformation.h" +//#include "qtkitinformation.h" #include #include @@ -49,11 +49,12 @@ #include #include #include +#include #include -using namespace QtSupport; -using namespace QtSupport::Internal; +using namespace QtcTools; +using namespace QtcTools::Internal; using namespace ProjectExplorer; namespace { diff --git a/src/plugins/qtctools/customexecutablerunconfiguration.h b/src/plugins/qtctools/customexecutablerunconfiguration.h index 2e6817d..ca9be76 100644 --- a/src/plugins/qtctools/customexecutablerunconfiguration.h +++ b/src/plugins/qtctools/customexecutablerunconfiguration.h @@ -31,7 +31,7 @@ #ifndef CUSTOMEXECUTABLERUNCONFIGURATION_H #define CUSTOMEXECUTABLERUNCONFIGURATION_H -#include "qtsupport_global.h" +#include "qtctools_global.h" #include @@ -39,12 +39,12 @@ namespace ProjectExplorer { class Target; } -namespace QtSupport { +namespace QtcTools { namespace Internal { class CustomExecutableConfigurationWidget; } class CustomExecutableRunConfigurationFactory; -class QTSUPPORT_EXPORT CustomExecutableRunConfiguration : public ProjectExplorer::LocalApplicationRunConfiguration +class CustomExecutableRunConfiguration : public ProjectExplorer::LocalApplicationRunConfiguration { Q_OBJECT // the configuration widget needs to setExecutable setWorkingDirectory and setCommandLineArguments @@ -131,6 +131,6 @@ class CustomExecutableRunConfigurationFactory : public ProjectExplorer::IRunConf const QVariantMap &map); }; -} // namespace QtSupport +} // namespace QtcTools #endif // CUSTOMEXECUTABLERUNCONFIGURATION_H diff --git a/src/plugins/qtctools/qtctools.pro b/src/plugins/qtctools/qtctools.pro index 838a271..c86fc01 100644 --- a/src/plugins/qtctools/qtctools.pro +++ b/src/plugins/qtctools/qtctools.pro @@ -1,10 +1,14 @@ DEFINES += QTCTOOLS_LIBRARY -SOURCES += qtctoolsplugin.cpp +SOURCES += qtctoolsplugin.cpp \ + customexecutableconfigurationwidget.cpp \ + customexecutablerunconfiguration.cpp HEADERS += qtctoolsplugin.h \ qtctools_global.h \ - qtctoolsconstants.h + qtctoolsconstants.h \ + customexecutableconfigurationwidget.h \ + customexecutablerunconfiguration.h include(../../qtcreatorplugin.pri) diff --git a/src/plugins/qtctools/qtctools_dependencies.pri b/src/plugins/qtctools/qtctools_dependencies.pri index 55a7371..92a8d14 100644 --- a/src/plugins/qtctools/qtctools_dependencies.pri +++ b/src/plugins/qtctools/qtctools_dependencies.pri @@ -3,5 +3,6 @@ QTC_LIB_DEPENDS += \ # nothing here at this time QTC_PLUGIN_DEPENDS += \ - coreplugin + coreplugin \ + projectexplorer diff --git a/src/plugins/qtctools/qtctoolsplugin.cpp b/src/plugins/qtctools/qtctoolsplugin.cpp index bcb082f..c2c554f 100644 --- a/src/plugins/qtctools/qtctoolsplugin.cpp +++ b/src/plugins/qtctools/qtctoolsplugin.cpp @@ -1,5 +1,6 @@ #include "qtctoolsplugin.h" #include "qtctoolsconstants.h" +#include "customexecutablerunconfiguration.h" #include #include @@ -40,16 +41,7 @@ bool QtcToolsPlugin::initialize(const QStringList &arguments, QString *errorStri Q_UNUSED(arguments) Q_UNUSED(errorString) - QAction *action = new QAction(tr("QtcTools action"), this); - Core::Command *cmd = Core::ActionManager::registerAction(action, Constants::ACTION_ID, - Core::Context(Core::Constants::C_GLOBAL)); - cmd->setDefaultKeySequence(QKeySequence(tr("Ctrl+Alt+Meta+A"))); - connect(action, SIGNAL(triggered()), this, SLOT(triggerAction())); - - Core::ActionContainer *menu = Core::ActionManager::createMenu(Constants::MENU_ID); - menu->menu()->setTitle(tr("QtcTools")); - menu->addAction(cmd); - Core::ActionManager::actionContainer(Core::Constants::M_TOOLS)->addMenu(menu); + addAutoReleasedObject(new QtcTools::CustomExecutableRunConfigurationFactory); return true; } @@ -69,10 +61,5 @@ ExtensionSystem::IPlugin::ShutdownFlag QtcToolsPlugin::aboutToShutdown() return SynchronousShutdown; } -void QtcToolsPlugin::triggerAction() -{ - QMessageBox::information(Core::ICore::mainWindow(), - tr("Action triggered"), - tr("This is an action from QtcTools.")); -} + diff --git a/src/plugins/qtctools/qtctoolsplugin.h b/src/plugins/qtctools/qtctoolsplugin.h index 26f468d..9cfab1d 100644 --- a/src/plugins/qtctools/qtctoolsplugin.h +++ b/src/plugins/qtctools/qtctoolsplugin.h @@ -20,9 +20,6 @@ class QtcToolsPlugin : public ExtensionSystem::IPlugin bool initialize(const QStringList &arguments, QString *errorString); void extensionsInitialized(); ShutdownFlag aboutToShutdown(); - -private slots: - void triggerAction(); }; } // namespace Internal