forked from qt-creator/qt-creator
Vcs: Append "Factory" to the variaus checkout wizards
Change-Id: I571717a389c63f4f0371570e22d3f2a834e8b900 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -76,7 +76,7 @@ protected:
|
||||
StatusItem parseStatusLine(const QString &line) const;
|
||||
|
||||
private:
|
||||
friend class CloneWizard;
|
||||
friend class CloneWizardFactory;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
@@ -145,7 +145,7 @@ bool BazaarPlugin::initialize(const QStringList &arguments, QString *errorMessag
|
||||
|
||||
addAutoReleasedObject(new VcsBase::VcsSubmitEditorFactory<CommitEditor>(&submitEditorParameters));
|
||||
|
||||
addAutoReleasedObject(new CloneWizard);
|
||||
addAutoReleasedObject(new CloneWizardFactory);
|
||||
|
||||
const QString prefix = QLatin1String("bzr");
|
||||
m_commandLocator = new Core::CommandLocator("Bazaar", prefix, prefix);
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
using namespace Bazaar::Internal;
|
||||
|
||||
CloneWizard::CloneWizard()
|
||||
CloneWizardFactory::CloneWizardFactory()
|
||||
{
|
||||
setId(QLatin1String(VcsBase::Constants::VCS_ID_BAZAAR));
|
||||
setCustomLabels(tr("Cloning"), tr("Cloning started..."));
|
||||
@@ -52,7 +52,7 @@ CloneWizard::CloneWizard()
|
||||
setDisplayName(tr("Bazaar Clone (Or Branch)"));
|
||||
}
|
||||
|
||||
QList<QWizardPage *> CloneWizard::createParameterPages(const QString &path)
|
||||
QList<QWizardPage *> CloneWizardFactory::createParameterPages(const QString &path)
|
||||
{
|
||||
QList<QWizardPage *> wizardPageList;
|
||||
const Core::IVersionControl *vc = BazaarPlugin::instance()->versionControl();
|
||||
@@ -64,7 +64,7 @@ QList<QWizardPage *> CloneWizard::createParameterPages(const QString &path)
|
||||
return wizardPageList;
|
||||
}
|
||||
|
||||
VcsBase::Command *CloneWizard::createCommand(const QList<QWizardPage *> ¶meterPages,
|
||||
VcsBase::Command *CloneWizardFactory::createCommand(const QList<QWizardPage *> ¶meterPages,
|
||||
QString *checkoutPath)
|
||||
{
|
||||
const CloneWizardPage *page = qobject_cast<const CloneWizardPage *>(parameterPages.front());
|
||||
|
||||
@@ -37,12 +37,12 @@
|
||||
namespace Bazaar {
|
||||
namespace Internal {
|
||||
|
||||
class CloneWizard : public VcsBase::BaseCheckoutWizardFactory
|
||||
class CloneWizardFactory : public VcsBase::BaseCheckoutWizardFactory
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CloneWizard();
|
||||
CloneWizardFactory();
|
||||
|
||||
private:
|
||||
QList<QWizardPage *> createParameterPages(const QString &path);
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
namespace Cvs {
|
||||
namespace Internal {
|
||||
|
||||
CheckoutWizard::CheckoutWizard()
|
||||
CheckoutWizardFactory::CheckoutWizardFactory()
|
||||
{
|
||||
setId(QLatin1String(VcsBase::Constants::VCS_ID_CVS));
|
||||
setIcon(QIcon(QLatin1String(":/cvs/images/cvs.png")));
|
||||
@@ -48,7 +48,7 @@ CheckoutWizard::CheckoutWizard()
|
||||
setDisplayName(tr("CVS Checkout"));
|
||||
}
|
||||
|
||||
QList<QWizardPage*> CheckoutWizard::createParameterPages(const QString &path)
|
||||
QList<QWizardPage*> CheckoutWizardFactory::createParameterPages(const QString &path)
|
||||
{
|
||||
QList<QWizardPage*> rc;
|
||||
const Core::IVersionControl *vc = CvsPlugin::instance()->versionControl();
|
||||
@@ -60,7 +60,7 @@ QList<QWizardPage*> CheckoutWizard::createParameterPages(const QString &path)
|
||||
return rc;
|
||||
}
|
||||
|
||||
VcsBase::Command *CheckoutWizard::createCommand(const QList<QWizardPage*> ¶meterPages,
|
||||
VcsBase::Command *CheckoutWizardFactory::createCommand(const QList<QWizardPage*> ¶meterPages,
|
||||
QString *checkoutPath)
|
||||
{
|
||||
// Collect parameters for the checkout command.
|
||||
|
||||
@@ -35,12 +35,12 @@
|
||||
namespace Cvs {
|
||||
namespace Internal {
|
||||
|
||||
class CheckoutWizard : public VcsBase::BaseCheckoutWizardFactory
|
||||
class CheckoutWizardFactory : public VcsBase::BaseCheckoutWizardFactory
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CheckoutWizard();
|
||||
CheckoutWizardFactory();
|
||||
|
||||
private:
|
||||
// BaseCheckoutWizard
|
||||
|
||||
@@ -248,7 +248,7 @@ bool CvsPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
for (int i = 0; i < editorCount; i++)
|
||||
addAutoReleasedObject(new CVSEditorFactory(editorParameters + i, this, describeSlotC));
|
||||
|
||||
addAutoReleasedObject(new CheckoutWizard);
|
||||
addAutoReleasedObject(new CheckoutWizardFactory);
|
||||
|
||||
const QString prefix = QLatin1String("cvs");
|
||||
m_commandLocator = new Core::CommandLocator("CVS", prefix, prefix);
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
|
||||
CloneWizard::CloneWizard()
|
||||
CloneWizardFactory::CloneWizardFactory()
|
||||
{
|
||||
setId(QLatin1String(VcsBase::Constants::VCS_ID_GIT));
|
||||
setCustomLabels(tr("Cloning"), tr("Cloning started..."));
|
||||
@@ -49,7 +49,7 @@ CloneWizard::CloneWizard()
|
||||
setDisplayName(tr("Git Repository Clone"));
|
||||
}
|
||||
|
||||
QList<QWizardPage*> CloneWizard::createParameterPages(const QString &path)
|
||||
QList<QWizardPage*> CloneWizardFactory::createParameterPages(const QString &path)
|
||||
{
|
||||
QList<QWizardPage*> rc;
|
||||
const Internal::GitVersionControl *vc = Internal::GitPlugin::instance()->gitVersionControl();
|
||||
@@ -61,7 +61,7 @@ QList<QWizardPage*> CloneWizard::createParameterPages(const QString &path)
|
||||
return rc;
|
||||
}
|
||||
|
||||
VcsBase::Command *CloneWizard::createCommand(const QList<QWizardPage*> ¶meterPages,
|
||||
VcsBase::Command *CloneWizardFactory::createCommand(const QList<QWizardPage*> ¶meterPages,
|
||||
QString *checkoutPath)
|
||||
{
|
||||
// Collect parameters for the clone command.
|
||||
|
||||
@@ -35,12 +35,12 @@
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
|
||||
class CloneWizard : public VcsBase::BaseCheckoutWizardFactory
|
||||
class CloneWizardFactory : public VcsBase::BaseCheckoutWizardFactory
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CloneWizard();
|
||||
CloneWizardFactory();
|
||||
|
||||
private:
|
||||
// BaseCheckoutWizard
|
||||
|
||||
@@ -69,7 +69,7 @@ void GitoriousCloneWizardPage::initializePage()
|
||||
}
|
||||
|
||||
// -------- GitoriousCloneWizard
|
||||
GitoriousCloneWizard::GitoriousCloneWizard()
|
||||
GitoriousCloneWizardFactory::GitoriousCloneWizardFactory()
|
||||
{
|
||||
setId(QLatin1String(VcsBase::Constants::VCS_ID_GIT));
|
||||
setIcon(QIcon(QLatin1String(":/git/images/gitorious.png")));
|
||||
@@ -77,7 +77,7 @@ GitoriousCloneWizard::GitoriousCloneWizard()
|
||||
setDisplayName(tr("Gitorious Repository Clone"));
|
||||
}
|
||||
|
||||
QList<QWizardPage*> GitoriousCloneWizard::createParameterPages(const QString &path)
|
||||
QList<QWizardPage*> GitoriousCloneWizardFactory::createParameterPages(const QString &path)
|
||||
{
|
||||
QList<QWizardPage*> rc;
|
||||
const Core::IVersionControl *vc = Git::Internal::GitPlugin::instance()->versionControl();
|
||||
@@ -94,7 +94,7 @@ QList<QWizardPage*> GitoriousCloneWizard::createParameterPages(const QString &pa
|
||||
return rc;
|
||||
}
|
||||
|
||||
VcsBase::Command *GitoriousCloneWizard::createCommand(const QList<QWizardPage*> ¶meterPages,
|
||||
VcsBase::Command *GitoriousCloneWizardFactory::createCommand(const QList<QWizardPage*> ¶meterPages,
|
||||
QString *checkoutPath)
|
||||
{
|
||||
const Git::CloneWizardPage *cwp = qobject_cast<const Git::CloneWizardPage *>(parameterPages.back());
|
||||
|
||||
@@ -37,12 +37,12 @@ namespace Internal {
|
||||
|
||||
// GitoriousCloneWizard: A wizard allowing for browsing
|
||||
// Gitorious-hosted projects.
|
||||
class GitoriousCloneWizard : public VcsBase::BaseCheckoutWizardFactory
|
||||
class GitoriousCloneWizardFactory : public VcsBase::BaseCheckoutWizardFactory
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
GitoriousCloneWizard();
|
||||
GitoriousCloneWizardFactory();
|
||||
|
||||
private:
|
||||
// BaseCheckoutWizard
|
||||
|
||||
@@ -294,8 +294,8 @@ bool GitPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
addAutoReleasedObject(new GitEditorFactory(editorParameters + i, m_gitClient, describeSlot));
|
||||
|
||||
addAutoReleasedObject(new GitSubmitEditorFactory(&submitParameters));
|
||||
addAutoReleasedObject(new CloneWizard);
|
||||
addAutoReleasedObject(new Gitorious::Internal::GitoriousCloneWizard);
|
||||
addAutoReleasedObject(new CloneWizardFactory);
|
||||
addAutoReleasedObject(new Gitorious::Internal::GitoriousCloneWizardFactory);
|
||||
|
||||
const QString prefix = QLatin1String("git");
|
||||
m_commandLocator = new Core::CommandLocator("Git", prefix, prefix);
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
using namespace Mercurial::Internal;
|
||||
using namespace VcsBase;
|
||||
|
||||
CloneWizard::CloneWizard()
|
||||
CloneWizardFactory::CloneWizardFactory()
|
||||
{
|
||||
setId(QLatin1String(Constants::VCS_ID_MERCURIAL));
|
||||
setCustomLabels(tr("Cloning"), tr("Cloning started..."));
|
||||
@@ -49,7 +49,7 @@ CloneWizard::CloneWizard()
|
||||
setDisplayName(tr("Mercurial Clone"));
|
||||
}
|
||||
|
||||
QList<QWizardPage *> CloneWizard::createParameterPages(const QString &path)
|
||||
QList<QWizardPage *> CloneWizardFactory::createParameterPages(const QString &path)
|
||||
{
|
||||
QList<QWizardPage *> wizardPageList;
|
||||
const Core::IVersionControl *vc = MercurialPlugin::instance()->versionControl();
|
||||
@@ -61,7 +61,7 @@ QList<QWizardPage *> CloneWizard::createParameterPages(const QString &path)
|
||||
return wizardPageList;
|
||||
}
|
||||
|
||||
Command *CloneWizard::createCommand(const QList<QWizardPage *> ¶meterPages,
|
||||
Command *CloneWizardFactory::createCommand(const QList<QWizardPage *> ¶meterPages,
|
||||
QString *checkoutPath)
|
||||
{
|
||||
const CloneWizardPage *page = qobject_cast<const CloneWizardPage *>(parameterPages.front());
|
||||
|
||||
@@ -37,12 +37,12 @@
|
||||
namespace Mercurial {
|
||||
namespace Internal {
|
||||
|
||||
class CloneWizard : public VcsBase::BaseCheckoutWizardFactory
|
||||
class CloneWizardFactory : public VcsBase::BaseCheckoutWizardFactory
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CloneWizard();
|
||||
CloneWizardFactory();
|
||||
|
||||
protected:
|
||||
QList<QWizardPage *> createParameterPages(const QString &path);
|
||||
|
||||
@@ -149,7 +149,7 @@ bool MercurialPlugin::initialize(const QStringList & /* arguments */, QString *
|
||||
|
||||
addAutoReleasedObject(new VcsSubmitEditorFactory<CommitEditor>(&submitEditorParameters));
|
||||
|
||||
addAutoReleasedObject(new CloneWizard);
|
||||
addAutoReleasedObject(new CloneWizardFactory);
|
||||
|
||||
const QString prefix = QLatin1String("hg");
|
||||
m_commandLocator = new Core::CommandLocator("Mercurial", prefix, prefix);
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
namespace Subversion {
|
||||
namespace Internal {
|
||||
|
||||
CheckoutWizard::CheckoutWizard()
|
||||
CheckoutWizardFactory::CheckoutWizardFactory()
|
||||
{
|
||||
setId(QLatin1String(VcsBase::Constants::VCS_ID_SUBVERSION));
|
||||
setIcon(QIcon(QLatin1String(":/subversion/images/subversion.png")));
|
||||
@@ -51,7 +51,7 @@ CheckoutWizard::CheckoutWizard()
|
||||
setDisplayName(tr("Subversion Checkout"));
|
||||
}
|
||||
|
||||
QList<QWizardPage*> CheckoutWizard::createParameterPages(const QString &path)
|
||||
QList<QWizardPage*> CheckoutWizardFactory::createParameterPages(const QString &path)
|
||||
{
|
||||
QList<QWizardPage*> rc;
|
||||
const Core::IVersionControl *vc = SubversionPlugin::instance()->versionControl();
|
||||
@@ -63,7 +63,7 @@ QList<QWizardPage*> CheckoutWizard::createParameterPages(const QString &path)
|
||||
return rc;
|
||||
}
|
||||
|
||||
VcsBase::Command *CheckoutWizard::createCommand(const QList<QWizardPage*> ¶meterPages,
|
||||
VcsBase::Command *CheckoutWizardFactory::createCommand(const QList<QWizardPage*> ¶meterPages,
|
||||
QString *checkoutPath)
|
||||
{
|
||||
// Collect parameters for the checkout command.
|
||||
|
||||
@@ -35,12 +35,12 @@
|
||||
namespace Subversion {
|
||||
namespace Internal {
|
||||
|
||||
class CheckoutWizard : public VcsBase::BaseCheckoutWizardFactory
|
||||
class CheckoutWizardFactory : public VcsBase::BaseCheckoutWizardFactory
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CheckoutWizard();
|
||||
CheckoutWizardFactory();
|
||||
|
||||
private:
|
||||
// BaseCheckoutWizard
|
||||
|
||||
@@ -268,7 +268,7 @@ bool SubversionPlugin::initialize(const QStringList & /*arguments */, QString *e
|
||||
for (int i = 0; i < editorCount; i++)
|
||||
addAutoReleasedObject(new SubversionEditorFactory(editorParameters + i, this, describeSlot));
|
||||
|
||||
addAutoReleasedObject(new CheckoutWizard);
|
||||
addAutoReleasedObject(new CheckoutWizardFactory);
|
||||
|
||||
const QString prefix = QLatin1String("svn");
|
||||
m_commandLocator = new CommandLocator("Subversion", prefix, prefix);
|
||||
|
||||
Reference in New Issue
Block a user