CustomWizard Class

(ProjectExplorer::CustomWizard)

The CustomWizard class is a base class for custom wizards based on file templates and an XML configuration file (share/qtcreator/templates/wizards). More...

Header: #include <CustomWizard>
Inherits: Core::BaseFileWizardFactory
Inherited By:

ProjectExplorer::CustomProjectWizard

Public Types

Public Functions

Static Public Members

QList<IWizardFactory *> createWizards()
void setVerbose(int)
int verbose()

Protected Types

Protected Functions

CustomWizardContextPtr context() const
Core::GeneratedFiles generateWizardFiles(QString *errorMessage) const
CustomWizardParametersPtr parameters() const
FieldReplacementMap replacementMap(const QWizard *w) const

Static Protected Members

CustomWizard *createWizard(const CustomWizardParametersPtr &p)

Detailed Description

The CustomWizard class is a base class for custom wizards based on file templates and an XML configuration file (share/qtcreator/templates/wizards).

Presents CustomWizardDialog (fields page containing path control) for wizards of type "class" or "file". Serves as base class for project wizards.

Member Type Documentation

typedef CustomWizard::CustomWizardContextPtr

typedef CustomWizard::CustomWizardParametersPtr

typedef CustomWizard::FieldReplacementMap

Member Function Documentation

CustomWizard::CustomWizard()

Default constructs an instance of CustomWizard.

[protected] CustomWizardContextPtr CustomWizard::context() const

[static protected] CustomWizard *CustomWizard::createWizard(const CustomWizardParametersPtr &p)

[static] QList<IWizardFactory *> CustomWizard::createWizards()

Reads share/qtcreator/templates/wizards and creates all custom wizards.

As other plugins might register factories for derived classes, call it in extensionsInitialized().

Scans the subdirectories of the template directory for directories containing valid configuration files and parse them into wizards.

[protected] Core::GeneratedFiles CustomWizard::generateWizardFiles(QString *errorMessage) const

[protected] CustomWizardParametersPtr CustomWizard::parameters() const

[protected] FieldReplacementMap CustomWizard::replacementMap(const QWizard *w) const

[static] void CustomWizard::setVerbose(int)

See also verbose().

[static] int CustomWizard::verbose()

See also setVerbose().