30
30
#include "qtwizard.h"
32
#include "qt4project.h"
33
#include "qt4projectmanager.h"
34
#include "qt4projectmanagerconstants.h"
35
32
#include "modulespage.h"
36
#include "targetsetuppage.h"
34
#include <qt4projectmanager/qmakeproject.h>
35
#include <qt4projectmanager/qmakeprojectmanager.h>
36
#include <qt4projectmanager/qmakeprojectmanagerconstants.h>
38
38
#include <coreplugin/icore.h>
40
40
#include <cpptools/cpptoolsconstants.h>
42
42
#include <projectexplorer/projectexplorer.h>
43
#include <projectexplorer/targetsetuppage.h>
43
44
#include <qtsupport/qtkitinformation.h>
44
45
#include <qtsupport/qtsupportconstants.h>
48
49
#include <QCoreApplication>
49
50
#include <QVariant>
51
using namespace Qt4ProjectManager;
52
using namespace Qt4ProjectManager::Internal;
54
static Core::BaseFileWizardParameters
55
wizardParameters(const QString &id,
56
const QString &category,
57
const QString &displayCategory,
59
const QString &description,
62
Core::BaseFileWizardParameters rc(Core::IWizard::ProjectWizard);
63
rc.setCategory(category);
64
rc.setDisplayCategory(QCoreApplication::translate("ProjectExplorer",
65
displayCategory.toLatin1()));
67
rc.setDisplayName(name);
69
rc.setDescription(description);
52
using namespace ProjectExplorer;
53
using namespace QmakeProjectManager;
54
using namespace QmakeProjectManager::Internal;
73
56
// -------------------- QtWizard
74
QtWizard::QtWizard(const QString &id,
75
const QString &category,
76
const QString &displayCategory,
78
const QString &description, const QIcon &icon) :
79
Core::BaseFileWizard(wizardParameters(id,
59
setWizardKind(Core::IWizard::ProjectWizard);
88
62
QString QtWizard::sourceSuffix()
156
130
// ------------ CustomQt4ProjectWizard
157
CustomQt4ProjectWizard::CustomQt4ProjectWizard(const Core::BaseFileWizardParameters& baseFileParameters,
159
ProjectExplorer::CustomProjectWizard(baseFileParameters, parent)
131
CustomQt4ProjectWizard::CustomQt4ProjectWizard()
163
QWizard *CustomQt4ProjectWizard::createWizardDialog(QWidget *parent,
164
const Core::WizardDialogParameters &wizardDialogParameters) const
135
QWizard *CustomQt4ProjectWizard::createWizardDialog
136
(QWidget *parent, const Core::WizardDialogParameters &wizardDialogParameters) const
166
138
BaseQt4ProjectWizardDialog *wizard = new BaseQt4ProjectWizardDialog(false, parent, wizardDialogParameters);
241
213
int BaseQt4ProjectWizardDialog::addTargetSetupPage(bool mobile, int id)
243
m_targetSetupPage = new TargetSetupPage;
215
m_targetSetupPage = new ProjectExplorer::TargetSetupPage;
244
216
const QString platform = selectedPlatform();
245
217
Core::FeatureSet features = mobile ? Core::FeatureSet(QtSupport::Constants::FEATURE_MOBILE)
246
218
: Core::FeatureSet(QtSupport::Constants::FEATURE_DESKTOP);
323
295
QList<Core::Id> selectedKitList = selectedKits();
325
QtSupport::QtPlatformKitMatcher matcher(platform);
326
QList<ProjectExplorer::Kit *> kitList
327
= ProjectExplorer::KitManager::instance()->kits(&matcher);
328
foreach (ProjectExplorer::Kit *k, kitList) {
297
foreach (Kit *k, KitManager::matchingKits(QtSupport::QtPlatformKitMatcher(platform)))
329
298
if (selectedKitList.contains(k->id()))