本文整理汇总了C++中core::WizardDialogParameters类的典型用法代码示例。如果您正苦于以下问题:C++ WizardDialogParameters类的具体用法?C++ WizardDialogParameters怎么用?C++ WizardDialogParameters使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WizardDialogParameters类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: BaseQmakeProjectWizardDialog
GuiAppWizardDialog::GuiAppWizardDialog(const QString &templateName,
const QIcon &icon,
bool showModulesPage,
QWidget *parent,
const Core::WizardDialogParameters ¶meters) :
BaseQmakeProjectWizardDialog(showModulesPage, parent, parameters),
m_filesPage(new FilesPage)
{
setWindowIcon(icon);
setWindowTitle(templateName);
setSelectedModules(QLatin1String("core gui"), true);
setIntroDescription(tr("This wizard generates a Qt Widgets Application "
"project. The application derives by default from QApplication "
"and includes an empty widget."));
addModulesPage();
if (!parameters.extraValues().contains(QLatin1String(ProjectExplorer::Constants::PROJECT_KIT_IDS)))
addTargetSetupPage();
m_filesPage->setFormInputCheckable(true);
m_filesPage->setClassTypeComboVisible(false);
addPage(m_filesPage);
addExtensionPages(parameters.extensionPages());
}
开发者ID:AltarBeastiful,项目名称:qt-creator,代码行数:26,代码来源:guiappwizarddialog.cpp
示例2: d
BaseProjectWizardDialog::BaseProjectWizardDialog(QWidget *parent,
const Core::WizardDialogParameters ¶meters) :
Core::BaseFileWizard(parent),
d(new BaseProjectWizardDialogPrivate(new Utils::ProjectIntroPage))
{
setPath(parameters.defaultPath());
setSelectedPlatform(parameters.selectedPlatform());
setRequiredFeatures(parameters.requiredFeatures());
init();
}
开发者ID:FlavioFalcao,项目名称:qt-creator,代码行数:10,代码来源:baseprojectwizarddialog.cpp
示例3: BaseQmakeProjectWizardDialog
// ------------------- LibraryWizardDialog
LibraryWizardDialog::LibraryWizardDialog(const QString &templateName,
const QIcon &icon,
bool showModulesPage,
QWidget *parent,
const Core::WizardDialogParameters ¶meters) :
BaseQmakeProjectWizardDialog(showModulesPage, new LibraryIntroPage, -1, parent, parameters),
m_filesPage(new FilesPage),
m_pluginBaseClassesInitialized(false),
m_filesPageId(-1), m_modulesPageId(-1), m_targetPageId(-1)
{
setWindowIcon(icon);
setWindowTitle(templateName);
setSelectedModules(QLatin1String("core"));
// Note that QWizard::currentIdChanged() is emitted at strange times.
// Use the intro page instead, set up initially
setIntroDescription(tr("This wizard generates a C++ Library project."));
if (!parameters.extraValues().contains(QLatin1String(ProjectExplorer::Constants::PROJECT_KIT_IDS)))
m_targetPageId = addTargetSetupPage();
m_modulesPageId = addModulesPage();
m_filesPage->setNamespacesEnabled(true);
m_filesPage->setFormFileInputVisible(false);
m_filesPage->setClassTypeComboVisible(false);
m_filesPageId = addPage(m_filesPage);
Utils::WizardProgressItem *introItem = wizardProgress()->item(startId());
Utils::WizardProgressItem *targetItem = 0;
if (m_targetPageId != -1)
targetItem = wizardProgress()->item(m_targetPageId);
Utils::WizardProgressItem *modulesItem = wizardProgress()->item(m_modulesPageId);
Utils::WizardProgressItem *filesItem = wizardProgress()->item(m_filesPageId);
filesItem->setTitle(tr("Details"));
if (targetItem) {
if (m_targetPageId != -1) {
targetItem->setNextItems(QList<Utils::WizardProgressItem *>()
<< modulesItem << filesItem);
targetItem->setNextShownItem(0);
} else {
introItem->setNextItems(QList<Utils::WizardProgressItem *>()
<< modulesItem << filesItem);
introItem->setNextShownItem(0);
}
}
connect(this, SIGNAL(currentIdChanged(int)), this, SLOT(slotCurrentIdChanged(int)));
addExtensionPages(parameters.extensionPages());
}
开发者ID:Distrotech,项目名称:qtcreator,代码行数:54,代码来源:librarywizarddialog.cpp
示例4: d
BaseProjectWizardDialog::BaseProjectWizardDialog(const Core::BaseFileWizardFactory *factory,
Utils::ProjectIntroPage *introPage, int introId,
QWidget *parent,
const Core::WizardDialogParameters ¶meters) :
Core::BaseFileWizard(factory, parameters.extraValues(), parent),
d(new BaseProjectWizardDialogPrivate(introPage, introId))
{
setPath(parameters.defaultPath());
setSelectedPlatform(parameters.selectedPlatform());
setRequiredFeatures(parameters.requiredFeatures());
init();
}
开发者ID:KeeganRen,项目名称:qt-creator,代码行数:12,代码来源:baseprojectwizarddialog.cpp
示例5: d
BaseProjectWizardDialog::BaseProjectWizardDialog(Utils::ProjectIntroPage *introPage,
int introId,
QWidget *parent,
const Core::WizardDialogParameters ¶meters) :
Utils::Wizard(parent),
d(new BaseProjectWizardDialogPrivate(introPage, introId))
{
setPath(parameters.defaultPath());
setSelectedPlatform(parameters.selectedPlatform());
setPrefferedFeatures(parameters.preferredFeatures());
setRequiredFeatures(parameters.requiredFeatures());
init();
}
开发者ID:kaltsi,项目名称:sailfish-qtcreator,代码行数:13,代码来源:baseprojectwizarddialog.cpp
示例6: setWindowIcon
//c app
CrossLinuxCAPPDialog::CrossLinuxCAPPDialog(const QString &templateName,
const QIcon &icon,
QWidget *parent, const Core::WizardDialogParameters ¶meters)
:BaseQt4ProjectWizardDialog(parent,parameters)
{
setWindowIcon(icon);
setWindowTitle(templateName);
setIntroDescription(tr("Creates a plain C project using qmake, not using the Qt library."));
if (!parameters.extraValues().contains(QLatin1String(ProjectExplorer::Constants::PROJECT_KIT_IDS)))
addTargetSetupPage();
addPage(new ConfigPage);
addExtensionPages(parameters.extensionPages());
}
开发者ID:elta,项目名称:Cross-SDK,代码行数:14,代码来源:crosslinuxwizarddialog.cpp
示例7: setWindowIcon
GuiAppWizardDialog::GuiAppWizardDialog(const QString &templateName,
const QIcon &icon,
bool showModulesPage,
bool isMobile,
QWidget *parent,
const Core::WizardDialogParameters ¶meters) :
BaseQt4ProjectWizardDialog(showModulesPage, parent, parameters),
m_filesPage(new FilesPage)
{
setWindowIcon(icon);
setWindowTitle(templateName);
setSelectedModules(QLatin1String("core gui"), true);
setIntroDescription(tr("This wizard generates a Qt4 GUI application "
"project. The application derives by default from QApplication "
"and includes an empty widget."));
addModulesPage();
addTargetSetupPage(QSet<QString>(), isMobile);
m_filesPage->setFormInputCheckable(true);
m_filesPage->setClassTypeComboVisible(false);
const int filesPageId = addPage(m_filesPage);
wizardProgress()->item(filesPageId)->setTitle(tr("Details"));
addExtensionPages(parameters.extensionPages());
}
开发者ID:gaoxiaojun,项目名称:qtcreator,代码行数:27,代码来源:guiappwizarddialog.cpp
示例8: setWindowIcon
EmptyProjectWizardDialog::EmptyProjectWizardDialog(const QString &templateName,
const QIcon &icon,
QWidget *parent, const Core::WizardDialogParameters ¶meters) :
BaseQt4ProjectWizardDialog(false, parent, parameters)
{
setWindowIcon(icon);
setWindowTitle(templateName);
setIntroDescription(tr("This wizard generates an empty Qt project. "
"Add files to it later on by using the other wizards."));
if (!parameters.extraValues().contains(QLatin1String(ProjectExplorer::Constants::PROJECT_KIT_IDS)))
addTargetSetupPage();
addExtensionPages(parameters.extensionPages());
}
开发者ID:aizaimenghuangu,项目名称:QtTestor,代码行数:16,代码来源:emptyprojectwizarddialog.cpp
示例9: init
// ----------------- BaseQt4ProjectWizardDialog
BaseQt4ProjectWizardDialog::BaseQt4ProjectWizardDialog(bool showModulesPage, QWidget *parent,
const Core::WizardDialogParameters ¶meters) :
ProjectExplorer::BaseProjectWizardDialog(parent, parameters),
m_modulesPage(0),
m_targetSetupPage(0),
m_profileIds(parameters.extraValues().value(ProjectExplorer::Constants::PROJECT_KIT_IDS).value<QList<Core::Id> >())
{
init(showModulesPage);
}
开发者ID:syntheticpp,项目名称:qt-creator,代码行数:10,代码来源:qtwizard.cpp
示例10: init
// ----------------- BaseQmakeProjectWizardDialog
BaseQmakeProjectWizardDialog::BaseQmakeProjectWizardDialog(const Core::BaseFileWizardFactory *factory,
bool showModulesPage, QWidget *parent,
const Core::WizardDialogParameters ¶meters) :
ProjectExplorer::BaseProjectWizardDialog(factory, parent, parameters),
m_modulesPage(0),
m_targetSetupPage(0),
m_profileIds(parameters.extraValues().value(QLatin1String(ProjectExplorer::Constants::PROJECT_KIT_IDS))
.value<QList<Core::Id> >())
{
init(showModulesPage);
}
开发者ID:C-sjia,项目名称:qt-creator,代码行数:12,代码来源:qtwizard.cpp
示例11: BaseQmakeProjectWizardDialog
ConsoleAppWizardDialog::ConsoleAppWizardDialog(const QString &templateName,
const QIcon &icon,
bool showModulesPage,
QWidget *parent, const Core::WizardDialogParameters ¶meters) :
BaseQmakeProjectWizardDialog(showModulesPage, parent, parameters)
{
setWindowIcon(icon);
setWindowTitle(templateName);
setSelectedModules(QLatin1String("core"));
setDeselectedModules(QLatin1String("gui"));
setIntroDescription(tr("This wizard generates a Qt Console Application "
"project. The application derives from QCoreApplication and does not "
"provide a GUI."));
addModulesPage();
if (!parameters.extraValues().contains(QLatin1String(ProjectExplorer::Constants::PROJECT_KIT_IDS)))
addTargetSetupPage();
addExtensionPages(parameters.extensionPages());
}
开发者ID:FlavioFalcao,项目名称:qt-creator,代码行数:21,代码来源:consoleappwizarddialog.cpp
示例12: setWindowIcon
SubdirsProjectWizardDialog::SubdirsProjectWizardDialog(const QString &templateName,
const QIcon &icon,
QWidget *parent,
const Core::WizardDialogParameters ¶meters) :
BaseQt4ProjectWizardDialog(false, parent, parameters)
{
setWindowIcon(icon);
setWindowTitle(templateName);
setIntroDescription(tr("This wizard generates a Qt4 subdirs project. "
"Add subprojects to it later on by using the other wizards."));
addTargetSetupPage();
addExtensionPages(parameters.extensionPages());
}
开发者ID:AtlantisCD9,项目名称:Qt,代码行数:16,代码来源:subdirsprojectwizarddialog.cpp
示例13: BaseQmakeProjectWizardDialog
CustomWidgetWizardDialog::CustomWidgetWizardDialog(const Core::BaseFileWizardFactory *factory,
const QString &templateName,
const QIcon &icon, QWidget *parent,
const Core::WizardDialogParameters ¶meters) :
BaseQmakeProjectWizardDialog(factory, false, parent, parameters),
m_widgetsPage(new CustomWidgetWidgetsWizardPage),
m_pluginPage(new CustomWidgetPluginWizardPage)
{
setWindowIcon(icon);
setWindowTitle(templateName);
setIntroDescription(tr("This wizard generates a Qt Designer Custom Widget "
"or a Qt Designer Custom Widget Collection project."));
if (!parameters.extraValues().contains(QLatin1String(ProjectExplorer::Constants::PROJECT_KIT_IDS)))
addTargetSetupPage();
addPage(m_widgetsPage);
m_pluginPageId = addPage(m_pluginPage);
addExtensionPages(extensionPages());
connect(this, &QWizard::currentIdChanged, this, &CustomWidgetWizardDialog::slotCurrentIdChanged);
}
开发者ID:C-sjia,项目名称:qt-creator,代码行数:22,代码来源:customwidgetwizarddialog.cpp
注:本文中的core::WizardDialogParameters类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论