forked from qt-creator/qt-creator
Vcs: Add method to create a Wizard to the WizardFactory and use it
Implement it in all VCS that support this type of wizard Change-Id: I78b0e4a37e6bf6b25d8cee4b1e96bcc76188047a Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#define CLONEWIZARD_H
|
||||
|
||||
#include <vcsbase/basecheckoutwizardfactory.h>
|
||||
#include <vcsbase/basecheckoutwizard.h>
|
||||
|
||||
#include <QIcon>
|
||||
|
||||
@@ -44,6 +45,8 @@ class CloneWizardFactory : public VcsBase::BaseCheckoutWizardFactory
|
||||
public:
|
||||
CloneWizardFactory();
|
||||
|
||||
VcsBase::BaseCheckoutWizard *create(const QList<QWizardPage *> ¶meterPages, QWidget *parent = 0) const;
|
||||
|
||||
protected:
|
||||
QList<QWizardPage *> createParameterPages(const QString &path);
|
||||
VcsBase::Command *createCommand(const QList<QWizardPage *> ¶meterPages,
|
||||
@@ -53,6 +56,14 @@ private:
|
||||
const QIcon m_icon;
|
||||
};
|
||||
|
||||
class CloneWizard : public VcsBase::BaseCheckoutWizard
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CloneWizard(const QList<QWizardPage *> ¶meterPages, QWidget *parent = 0);
|
||||
};
|
||||
|
||||
} //namespace Internal
|
||||
} //namespace Mercurial
|
||||
|
||||
|
||||
Reference in New Issue
Block a user