Commit 776eb92f authored by Tobias Hunger's avatar Tobias Hunger

Rename BaseCheckoutWizard to BaseCheckoutWizardFactory

Change-Id: Ide131cbfa27640875bb16f82a1992cf2975c5083
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent a8e89101
......@@ -37,7 +37,7 @@
namespace Bazaar {
namespace Internal {
class CloneWizard : public VcsBase::BaseCheckoutWizard
class CloneWizard : public VcsBase::BaseCheckoutWizardFactory
{
Q_OBJECT
......
......@@ -35,7 +35,7 @@
namespace Cvs {
namespace Internal {
class CheckoutWizard : public VcsBase::BaseCheckoutWizard
class CheckoutWizard : public VcsBase::BaseCheckoutWizardFactory
{
Q_OBJECT
......
......@@ -35,7 +35,7 @@
namespace Git {
namespace Internal {
class CloneWizard : public VcsBase::BaseCheckoutWizard
class CloneWizard : public VcsBase::BaseCheckoutWizardFactory
{
Q_OBJECT
......
......@@ -37,7 +37,7 @@ namespace Internal {
// GitoriousCloneWizard: A wizard allowing for browsing
// Gitorious-hosted projects.
class GitoriousCloneWizard : public VcsBase::BaseCheckoutWizard
class GitoriousCloneWizard : public VcsBase::BaseCheckoutWizardFactory
{
Q_OBJECT
......
......@@ -37,7 +37,7 @@
namespace Mercurial {
namespace Internal {
class CloneWizard : public VcsBase::BaseCheckoutWizard
class CloneWizard : public VcsBase::BaseCheckoutWizardFactory
{
Q_OBJECT
......
......@@ -35,7 +35,7 @@
namespace Subversion {
namespace Internal {
class CheckoutWizard : public VcsBase::BaseCheckoutWizard
class CheckoutWizard : public VcsBase::BaseCheckoutWizardFactory
{
Q_OBJECT
......
......@@ -84,7 +84,7 @@ void BaseCheckoutWizardPrivate::clear()
} // namespace Internal
BaseCheckoutWizard::BaseCheckoutWizard() :
BaseCheckoutWizardFactory::BaseCheckoutWizardFactory() :
d(new Internal::BaseCheckoutWizardPrivate)
{
setWizardKind(IWizardFactory::ProjectWizard);
......@@ -94,12 +94,12 @@ BaseCheckoutWizard::BaseCheckoutWizard() :
setFlags(Core::IWizardFactory::PlatformIndependent);
}
BaseCheckoutWizard::~BaseCheckoutWizard()
BaseCheckoutWizardFactory::~BaseCheckoutWizardFactory()
{
delete d;
}
void BaseCheckoutWizard::runWizard(const QString &path, QWidget *parent, const QString &platform,
void BaseCheckoutWizardFactory::runWizard(const QString &path, QWidget *parent, const QString &platform,
const QVariantMap &extraValues)
{
Q_UNUSED(platform);
......@@ -132,7 +132,7 @@ void BaseCheckoutWizard::runWizard(const QString &path, QWidget *parent, const Q
static inline QString msgNoProjectFiles(const QDir &dir, const QStringList &patterns)
{
return BaseCheckoutWizard::tr("Could not find any project files matching (%1) in the directory \"%2\".").arg(patterns.join(QLatin1String(", ")), QDir::toNativeSeparators(dir.absolutePath()));
return BaseCheckoutWizardFactory::tr("Could not find any project files matching (%1) in the directory \"%2\".").arg(patterns.join(QLatin1String(", ")), QDir::toNativeSeparators(dir.absolutePath()));
}
// Try to find the project files in a project directory with some smartness
......@@ -158,7 +158,7 @@ static QFileInfoList findProjectFiles(const QDir &projectDir, QString *errorMess
return projectFiles;
}
QString BaseCheckoutWizard::openProject(const QString &path, QString *errorMessage)
QString BaseCheckoutWizardFactory::openProject(const QString &path, QString *errorMessage)
{
// Search the directory for project files
const QDir dir(path);
......@@ -178,13 +178,13 @@ QString BaseCheckoutWizard::openProject(const QString &path, QString *errorMessa
return projectFile;
}
void BaseCheckoutWizard::setCustomLabels(const QString &progressTitle, const QString &startedStatus)
void BaseCheckoutWizardFactory::setCustomLabels(const QString &progressTitle, const QString &startedStatus)
{
d->progressTitle = progressTitle;
d->startedStatus = startedStatus;
}
void BaseCheckoutWizard::slotProgressPageShown()
void BaseCheckoutWizardFactory::slotProgressPageShown()
{
Command *command = createCommand(d->parameterPages, &(d->checkoutPath));
d->dialog->start(command);
......
......@@ -45,13 +45,13 @@ namespace Internal { class BaseCheckoutWizardPrivate; }
class Command;
class VCSBASE_EXPORT BaseCheckoutWizard : public Core::IWizardFactory
class VCSBASE_EXPORT BaseCheckoutWizardFactory : public Core::IWizardFactory
{
Q_OBJECT
public:
BaseCheckoutWizard();
~BaseCheckoutWizard();
BaseCheckoutWizardFactory();
~BaseCheckoutWizardFactory();
void runWizard(const QString &path, QWidget *parent, const QString &platform, const QVariantMap &extraValues);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment