forked from qt-creator/qt-creator
Vcs: Remove propertyPages from wizardFactory
Change-Id: If9d3249818b024a1a873fd3f78190379c050ac66 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -48,21 +48,9 @@ CheckoutWizardFactory::CheckoutWizardFactory()
|
||||
setDisplayName(tr("CVS Checkout"));
|
||||
}
|
||||
|
||||
VcsBase::BaseCheckoutWizard *CheckoutWizardFactory::create(const QList<QWizardPage *> ¶meterPages, QWidget *parent) const
|
||||
VcsBase::BaseCheckoutWizard *CheckoutWizardFactory::create(const QString &path, QWidget *parent) const
|
||||
{
|
||||
return new CheckoutWizard(parameterPages, parent);
|
||||
}
|
||||
|
||||
QList<QWizardPage*> CheckoutWizardFactory::createParameterPages(const QString &path)
|
||||
{
|
||||
QList<QWizardPage*> rc;
|
||||
const Core::IVersionControl *vc = CvsPlugin::instance()->versionControl();
|
||||
if (!vc->isConfigured())
|
||||
rc.append(new VcsBase::VcsConfigurationPage(vc));
|
||||
CheckoutWizardPage *cwp = new CheckoutWizardPage;
|
||||
cwp->setPath(path);
|
||||
rc.push_back(cwp);
|
||||
return rc;
|
||||
return new CheckoutWizard(path, parent);
|
||||
}
|
||||
|
||||
VcsBase::Command *CheckoutWizardFactory::createCommand(const QList<QWizardPage*> ¶meterPages,
|
||||
@@ -94,9 +82,16 @@ VcsBase::Command *CheckoutWizardFactory::createCommand(const QList<QWizardPage*>
|
||||
// CheckoutWizard:
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
CheckoutWizard::CheckoutWizard(const QList<QWizardPage *> ¶meterPages, QWidget *parent) :
|
||||
VcsBase::BaseCheckoutWizard(parameterPages, parent)
|
||||
{ }
|
||||
CheckoutWizard::CheckoutWizard(const QString &path, QWidget *parent) :
|
||||
VcsBase::BaseCheckoutWizard(path, parent)
|
||||
{
|
||||
const Core::IVersionControl *vc = CvsPlugin::instance()->versionControl();
|
||||
if (!vc->isConfigured())
|
||||
addPage(new VcsBase::VcsConfigurationPage(vc));
|
||||
CheckoutWizardPage *cwp = new CheckoutWizardPage;
|
||||
cwp->setPath(path);
|
||||
addPage(cwp);
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Cvs
|
||||
|
||||
@@ -43,11 +43,10 @@ class CheckoutWizardFactory : public VcsBase::BaseCheckoutWizardFactory
|
||||
public:
|
||||
CheckoutWizardFactory();
|
||||
|
||||
VcsBase::BaseCheckoutWizard *create(const QList<QWizardPage *> ¶meterPages, QWidget *parent = 0) const;
|
||||
VcsBase::BaseCheckoutWizard *create(const QString &path, QWidget *parent = 0) const;
|
||||
|
||||
private:
|
||||
// BaseCheckoutWizard
|
||||
QList<QWizardPage*> createParameterPages(const QString &path);
|
||||
VcsBase::Command *createCommand(const QList<QWizardPage*> ¶meterPage,
|
||||
QString *checkoutPath);
|
||||
};
|
||||
@@ -57,7 +56,7 @@ class CheckoutWizard : public VcsBase::BaseCheckoutWizard
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CheckoutWizard(const QList<QWizardPage *> ¶meterPages, QWidget *parent = 0);
|
||||
CheckoutWizard(const QString &path, QWidget *parent = 0);
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user