diff options
author | Thomas Hartmann <Thomas.Hartmann@nokia.com> | 2012-02-08 17:25:35 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@nokia.com> | 2012-02-08 17:42:27 +0100 |
commit | 95a028e835206b573c1115d395ff8f360f121e35 (patch) | |
tree | d57de45140a86a498cdd3db5e0dafdbeb87a9806 /src/plugins/projectexplorer/baseprojectwizarddialog.cpp | |
parent | ea2348684762b784a6eeff247e884d9a47e38b5b (diff) | |
download | qt-creator-95a028e835206b573c1115d395ff8f360f121e35.tar.gz |
Wizards: changes the structure of Wizards
This patch introduces platforms as a top level topic when choosing
a wizard. Also I changed the categories and priorities.
Details:
1. I did change the way the dialog/view is structured in newdialog.cpp
2. I added platformName() and supportsPlatform() to BaseQtVersion.
I needed two functions because the Simulator does not provide a platform
and therefore has no platformName but supports two platforms.
I still have to turn the platform names into proper constants.
3. I changed the categories and priorities to get the layout that was
discussed. (I had to touch quite alot of files but this is mostly trivial)
4. I added a combobox that allows filtering for platforms.
5. I added flags() to IWizard to indicate that a wizard is platform independent.
Change-Id: I86c7ad628a431ad06505c76580885c6e6c3ddc23
Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
Diffstat (limited to 'src/plugins/projectexplorer/baseprojectwizarddialog.cpp')
-rw-r--r-- | src/plugins/projectexplorer/baseprojectwizarddialog.cpp | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/baseprojectwizarddialog.cpp b/src/plugins/projectexplorer/baseprojectwizarddialog.cpp index 8086787ffe..63e10ffe35 100644 --- a/src/plugins/projectexplorer/baseprojectwizarddialog.cpp +++ b/src/plugins/projectexplorer/baseprojectwizarddialog.cpp @@ -56,6 +56,8 @@ struct BaseProjectWizardDialogPrivate { const int desiredIntroPageId; Utils::ProjectIntroPage *introPage; int introPageId; + QString selectedPlatform; + Core::FeatureSet requiredFeatureSet; }; BaseProjectWizardDialogPrivate::BaseProjectWizardDialogPrivate(Utils::ProjectIntroPage *page, int id) : @@ -66,20 +68,24 @@ BaseProjectWizardDialogPrivate::BaseProjectWizardDialogPrivate(Utils::ProjectInt } BaseProjectWizardDialog::BaseProjectWizardDialog(QWidget *parent, - const Core::WizardDialogParameters & /*parameters*/) : + const Core::WizardDialogParameters ¶meters) : Utils::Wizard(parent), d(new BaseProjectWizardDialogPrivate(new Utils::ProjectIntroPage)) { + setSelectedPlatform(parameters.selectedPlatform()); + setRequiredFeatures(parameters.requiredFeatures()); init(); } BaseProjectWizardDialog::BaseProjectWizardDialog(Utils::ProjectIntroPage *introPage, int introId, QWidget *parent, - const Core::WizardDialogParameters & /*parameters*/) : + const Core::WizardDialogParameters ¶meters) : Utils::Wizard(parent), d(new BaseProjectWizardDialogPrivate(introPage, introId)) { + setSelectedPlatform(parameters.selectedPlatform()); + setRequiredFeatures(parameters.requiredFeatures()); init(); } @@ -164,4 +170,25 @@ QString BaseProjectWizardDialog::uniqueProjectName(const QString &path) } return prefix; } + +QString BaseProjectWizardDialog::selectedPlatform() const +{ + return d->selectedPlatform; +} + +void BaseProjectWizardDialog::setSelectedPlatform(const QString &platform) +{ + d->selectedPlatform = platform; +} + +Core::FeatureSet BaseProjectWizardDialog::requiredFeatures() const +{ + return d->requiredFeatureSet; +} + +void BaseProjectWizardDialog::setRequiredFeatures(const Core::FeatureSet &featureSet) +{ + d->requiredFeatureSet = featureSet; +} + } // namespace ProjectExplorer |