IWizardFactory: Rename BaseFileWizard to BaseFileWizardFactory

Change-Id: I92977422bf8088b53e920370737907d60cf8708b
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2014-05-26 16:58:50 +02:00
parent 857ebee2d5
commit 9356432305
52 changed files with 95 additions and 95 deletions

View File

@@ -61,7 +61,7 @@ QWizard *ClassWizard::createWizardDialog(
{
ClassWizardDialog *wizard = new ClassWizardDialog(parent);
foreach (QWizardPage *p, params.extensionPages())
BaseFileWizard::applyExtensionPageShortTitle(wizard, wizard->addPage(p));
BaseFileWizardFactory::applyExtensionPageShortTitle(wizard, wizard->addPage(p));
wizard->setPath(params.defaultPath());
wizard->setExtraValues(params.extraValues());
return wizard;
@@ -75,7 +75,7 @@ Core::GeneratedFiles ClassWizard::generateFiles(const QWizard *w,
const ClassWizardDialog *wizard = qobject_cast<const ClassWizardDialog *>(w);
const ClassWizardParameters params = wizard->parameters();
const QString fileName = Core::BaseFileWizard::buildFileName(
const QString fileName = Core::BaseFileWizardFactory::buildFileName(
params.path, params.fileName, QLatin1String(Constants::C_PY_EXTENSION));
Core::GeneratedFile sourceFile(fileName);

View File

@@ -30,7 +30,7 @@
#ifndef PYTHONEDITOR_CLASSWIZARD_H
#define PYTHONEDITOR_CLASSWIZARD_H
#include <coreplugin/basefilewizard.h>
#include <coreplugin/basefilewizardfactory.h>
#include <utils/wizard.h>
namespace Utils { class NewClassWidget; }
@@ -41,7 +41,7 @@ namespace Internal {
class ClassWizardDialog;
class ClassWizard : public Core::BaseFileWizard
class ClassWizard : public Core::BaseFileWizardFactory
{
Q_OBJECT

View File

@@ -31,7 +31,7 @@
#include "pythonclassnamepage.h"
#include <utils/newclasswidget.h>
#include <coreplugin/basefilewizard.h>
#include <coreplugin/basefilewizardfactory.h>
namespace PythonEditor {
namespace Internal {

View File

@@ -84,7 +84,7 @@ Core::GeneratedFiles FileWizard::generateFiles(const QWizard *dialog,
QString folder = pWizard->path();
QString name = pWizard->fileName();
name = Core::BaseFileWizard::buildFileName(
name = Core::BaseFileWizardFactory::buildFileName(
folder, name, QLatin1String(Constants::C_PY_EXTENSION));
Core::GeneratedFile file(name);
file.setContents(QLatin1String(Constants::C_PY_SOURCE_CONTENT));

View File

@@ -30,11 +30,11 @@
#ifndef PYTHONFILEWIZARD_H
#define PYTHONFILEWIZARD_H
#include <coreplugin/basefilewizard.h>
#include <coreplugin/basefilewizardfactory.h>
namespace PythonEditor {
class FileWizard : public Core::BaseFileWizard
class FileWizard : public Core::BaseFileWizardFactory
{
Q_OBJECT