QWizard *AbstractMobileAppWizard::createWizardDialog(QWidget *parent, const Core::WizardDialogParameters &wizardDialogParameters) const { AbstractMobileAppWizardDialog * const wdlg = createWizardDialogInternal(parent, wizardDialogParameters); wdlg->setProjectName(ProjectExplorer::BaseProjectWizardDialog::uniqueProjectName(wizardDialogParameters.defaultPath())); wdlg->m_genericOptionsPage->setOrientation(app()->orientation()); wdlg->m_maemoOptionsPage->setPngIcon(app()->pngIcon64()); wdlg->m_harmattanOptionsPage->setPngIcon(app()->pngIcon80()); wdlg->m_harmattanOptionsPage->setBoosterOptionEnabled(app()->canSupportMeegoBooster()); connect(wdlg, SIGNAL(projectParametersChanged(QString,QString)), SLOT(useProjectPath(QString,QString))); wdlg->addExtensionPages(wizardDialogParameters.extensionPages()); return wdlg; }
QWizard *QmlApplicationWizard::createWizardDialog(QWidget *parent, const WizardDialogParameters &wizardDialogParameters) const { QmlApplicationWizardDialog *wizardDialog = new QmlApplicationWizardDialog(parent, wizardDialogParameters); connect(wizardDialog, SIGNAL(projectParametersChanged(QString,QString)), m_qmlApp, SLOT(setProjectNameAndBaseDirectory(QString,QString))); wizardDialog->setPath(wizardDialogParameters.defaultPath()); wizardDialog->setProjectName(QmlApplicationWizardDialog::uniqueProjectName(wizardDialogParameters.defaultPath())); foreach (QWizardPage *page, wizardDialogParameters.extensionPages()) applyExtensionPageShortTitle(wizardDialog, wizardDialog->addPage(page)); return wizardDialog; }
void BaseProjectWizardDialog::nextClicked() { if (currentId() == d->introPageId) emit projectParametersChanged(d->introPage->projectName(), d->introPage->path()); }
bool BaseProjectWizardDialog::validateCurrentPage() { if (currentId() == d->introPageId) emit projectParametersChanged(d->introPage->projectName(), d->introPage->path()); return Core::BaseFileWizard::validateCurrentPage(); }