CustomWizardContext Class
(ProjectExplorer::Internal::CustomWizardContext)The CustomWizardContext class provides the context for one custom wizard run. More...
Header: | #include <CustomWizardContext> |
Public Types
typedef | FieldReplacementMap |
typedef | TemporaryFilePtr |
typedef | TemporaryFilePtrList |
Public Functions
void | reset() |
Static Public Members
int | processFile(const ProjectExplorer::Internal::CustomWizardContext::FieldReplacementMap &, int) |
bool | replaceFields(const ProjectExplorer::Internal::CustomWizardContext::FieldReplacementMap &fm, int *s) |
bool | replaceFields(const ProjectExplorer::Internal::CustomWizardContext::FieldReplacementMap &fm, int *s, ProjectExplorer::Internal::CustomWizardContext::TemporaryFilePtrList *files) |
Detailed Description
The CustomWizardContext class provides the context for one custom wizard run.
Shared between CustomWizard and the CustomWizardPage as it is used for the QLineEdit-type fields' default texts as well. Contains basic replacement fields like '%CppSourceSuffix%'
, '%CppHeaderSuffix%'
(settings-dependent). reset() should be called before each wizard run to refresh them. CustomProjectWizard additionally inserts '%ProjectName%'
from the intro page to have it available for default texts.
See also ProjectExplorer::CustomWizard.