forked from qt-creator/qt-creator
Rename BaseCheckoutWizard to BaseCheckoutWizardFactory
Change-Id: Ide131cbfa27640875bb16f82a1992cf2975c5083 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
namespace Bazaar {
|
namespace Bazaar {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class CloneWizard : public VcsBase::BaseCheckoutWizard
|
class CloneWizard : public VcsBase::BaseCheckoutWizardFactory
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
namespace Cvs {
|
namespace Cvs {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class CheckoutWizard : public VcsBase::BaseCheckoutWizard
|
class CheckoutWizard : public VcsBase::BaseCheckoutWizardFactory
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
namespace Git {
|
namespace Git {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class CloneWizard : public VcsBase::BaseCheckoutWizard
|
class CloneWizard : public VcsBase::BaseCheckoutWizardFactory
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ namespace Internal {
|
|||||||
|
|
||||||
// GitoriousCloneWizard: A wizard allowing for browsing
|
// GitoriousCloneWizard: A wizard allowing for browsing
|
||||||
// Gitorious-hosted projects.
|
// Gitorious-hosted projects.
|
||||||
class GitoriousCloneWizard : public VcsBase::BaseCheckoutWizard
|
class GitoriousCloneWizard : public VcsBase::BaseCheckoutWizardFactory
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
namespace Mercurial {
|
namespace Mercurial {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class CloneWizard : public VcsBase::BaseCheckoutWizard
|
class CloneWizard : public VcsBase::BaseCheckoutWizardFactory
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
namespace Subversion {
|
namespace Subversion {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class CheckoutWizard : public VcsBase::BaseCheckoutWizard
|
class CheckoutWizard : public VcsBase::BaseCheckoutWizardFactory
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ void BaseCheckoutWizardPrivate::clear()
|
|||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|
||||||
BaseCheckoutWizard::BaseCheckoutWizard() :
|
BaseCheckoutWizardFactory::BaseCheckoutWizardFactory() :
|
||||||
d(new Internal::BaseCheckoutWizardPrivate)
|
d(new Internal::BaseCheckoutWizardPrivate)
|
||||||
{
|
{
|
||||||
setWizardKind(IWizardFactory::ProjectWizard);
|
setWizardKind(IWizardFactory::ProjectWizard);
|
||||||
@@ -94,12 +94,12 @@ BaseCheckoutWizard::BaseCheckoutWizard() :
|
|||||||
setFlags(Core::IWizardFactory::PlatformIndependent);
|
setFlags(Core::IWizardFactory::PlatformIndependent);
|
||||||
}
|
}
|
||||||
|
|
||||||
BaseCheckoutWizard::~BaseCheckoutWizard()
|
BaseCheckoutWizardFactory::~BaseCheckoutWizardFactory()
|
||||||
{
|
{
|
||||||
delete d;
|
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)
|
const QVariantMap &extraValues)
|
||||||
{
|
{
|
||||||
Q_UNUSED(platform);
|
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)
|
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
|
// 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;
|
return projectFiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString BaseCheckoutWizard::openProject(const QString &path, QString *errorMessage)
|
QString BaseCheckoutWizardFactory::openProject(const QString &path, QString *errorMessage)
|
||||||
{
|
{
|
||||||
// Search the directory for project files
|
// Search the directory for project files
|
||||||
const QDir dir(path);
|
const QDir dir(path);
|
||||||
@@ -178,13 +178,13 @@ QString BaseCheckoutWizard::openProject(const QString &path, QString *errorMessa
|
|||||||
return projectFile;
|
return projectFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseCheckoutWizard::setCustomLabels(const QString &progressTitle, const QString &startedStatus)
|
void BaseCheckoutWizardFactory::setCustomLabels(const QString &progressTitle, const QString &startedStatus)
|
||||||
{
|
{
|
||||||
d->progressTitle = progressTitle;
|
d->progressTitle = progressTitle;
|
||||||
d->startedStatus = startedStatus;
|
d->startedStatus = startedStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseCheckoutWizard::slotProgressPageShown()
|
void BaseCheckoutWizardFactory::slotProgressPageShown()
|
||||||
{
|
{
|
||||||
Command *command = createCommand(d->parameterPages, &(d->checkoutPath));
|
Command *command = createCommand(d->parameterPages, &(d->checkoutPath));
|
||||||
d->dialog->start(command);
|
d->dialog->start(command);
|
||||||
|
|||||||
@@ -45,13 +45,13 @@ namespace Internal { class BaseCheckoutWizardPrivate; }
|
|||||||
|
|
||||||
class Command;
|
class Command;
|
||||||
|
|
||||||
class VCSBASE_EXPORT BaseCheckoutWizard : public Core::IWizardFactory
|
class VCSBASE_EXPORT BaseCheckoutWizardFactory : public Core::IWizardFactory
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BaseCheckoutWizard();
|
BaseCheckoutWizardFactory();
|
||||||
~BaseCheckoutWizard();
|
~BaseCheckoutWizardFactory();
|
||||||
|
|
||||||
void runWizard(const QString &path, QWidget *parent, const QString &platform, const QVariantMap &extraValues);
|
void runWizard(const QString &path, QWidget *parent, const QString &platform, const QVariantMap &extraValues);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user