forked from qt-creator/qt-creator
IWizard->IWizardFactory
Start at splitting up the wizard functionality a bit. Currently it is a factory but also contains a lot of logic that is invoked by the real wizard dialogs. This change renames/moves a couple of things only. Change-Id: I1fa114ee3ee262f7c0690841f361bbf09e674725 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -172,8 +172,8 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
|
||||
|
||||
QString trCat = QCoreApplication::translate(Constants::WIZARD_CATEGORY, Constants::WIZARD_TR_CATEGORY);
|
||||
|
||||
IWizard *wizard = new CppClassWizard;
|
||||
wizard->setWizardKind(IWizard::ClassWizard);
|
||||
IWizardFactory *wizard = new CppClassWizard;
|
||||
wizard->setWizardKind(IWizardFactory::ClassWizard);
|
||||
wizard->setCategory(QLatin1String(Constants::WIZARD_CATEGORY));
|
||||
wizard->setDisplayCategory(trCat);
|
||||
wizard->setDisplayName(tr("C++ Class"));
|
||||
@@ -182,7 +182,7 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
|
||||
addAutoReleasedObject(wizard);
|
||||
|
||||
wizard = new CppFileWizard(Source);
|
||||
wizard->setWizardKind(IWizard::FileWizard);
|
||||
wizard->setWizardKind(IWizardFactory::FileWizard);
|
||||
wizard->setCategory(QLatin1String(Constants::WIZARD_CATEGORY));
|
||||
wizard->setDisplayCategory(trCat);
|
||||
wizard->setDisplayName(tr("C++ Class"));
|
||||
@@ -192,7 +192,7 @@ bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
|
||||
addAutoReleasedObject(wizard);
|
||||
|
||||
wizard = new CppFileWizard(Header);
|
||||
wizard->setWizardKind(IWizard::FileWizard);
|
||||
wizard->setWizardKind(IWizardFactory::FileWizard);
|
||||
wizard->setCategory(QLatin1String(Constants::WIZARD_CATEGORY));
|
||||
wizard->setDisplayCategory(trCat);
|
||||
wizard->setDescription(tr("Creates a C++ header file that you can add to a C++ project."));
|
||||
|
||||
Reference in New Issue
Block a user