forked from qt-creator/qt-creator
Cleanup IWizard interface and users
Added 639 lines, removed 1391. Change-Id: I15ec7dd056d4f7ad79c6dd6a4181007ad14f6a43 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -37,31 +37,16 @@
|
||||
#include <vcsbase/vcsconfigurationpage.h>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <QIcon>
|
||||
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
|
||||
CloneWizard::CloneWizard(QObject *parent) :
|
||||
VcsBase::BaseCheckoutWizard(parent)
|
||||
CloneWizard::CloneWizard()
|
||||
{
|
||||
setId(QLatin1String(VcsBase::Constants::VCS_ID_GIT));
|
||||
setCustomLabels(tr("Cloning"), tr("Cloning started..."));
|
||||
}
|
||||
|
||||
QIcon CloneWizard::icon() const
|
||||
{
|
||||
return QIcon(QLatin1String(":/git/images/git.png"));
|
||||
}
|
||||
|
||||
QString CloneWizard::description() const
|
||||
{
|
||||
return tr("Clones a Git repository and tries to load the contained project.");
|
||||
}
|
||||
|
||||
QString CloneWizard::displayName() const
|
||||
{
|
||||
return tr("Git Repository Clone");
|
||||
setIcon(QIcon(QLatin1String(":/git/images/git.png")));
|
||||
setDescription(tr("Clones a Git repository and tries to load the contained project."));
|
||||
setDisplayName(tr("Git Repository Clone"));
|
||||
}
|
||||
|
||||
QList<QWizardPage*> CloneWizard::createParameterPages(const QString &path)
|
||||
|
||||
@@ -38,15 +38,11 @@ namespace Internal {
|
||||
class CloneWizard : public VcsBase::BaseCheckoutWizard
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CloneWizard(QObject *parent = 0);
|
||||
CloneWizard();
|
||||
|
||||
// IWizard
|
||||
QIcon icon() const;
|
||||
QString description() const;
|
||||
QString displayName() const;
|
||||
|
||||
protected:
|
||||
private:
|
||||
// BaseCheckoutWizard
|
||||
QList<QWizardPage*> createParameterPages(const QString &path);
|
||||
VcsBase::Command *createCommand(const QList<QWizardPage*> ¶meterPages,
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <QUrl>
|
||||
#include <QIcon>
|
||||
|
||||
namespace Gitorious {
|
||||
namespace Internal {
|
||||
@@ -70,25 +69,12 @@ void GitoriousCloneWizardPage::initializePage()
|
||||
}
|
||||
|
||||
// -------- GitoriousCloneWizard
|
||||
GitoriousCloneWizard::GitoriousCloneWizard(QObject *parent) :
|
||||
VcsBase::BaseCheckoutWizard(parent)
|
||||
GitoriousCloneWizard::GitoriousCloneWizard()
|
||||
{
|
||||
setId(QLatin1String(VcsBase::Constants::VCS_ID_GIT));
|
||||
}
|
||||
|
||||
QIcon GitoriousCloneWizard::icon() const
|
||||
{
|
||||
return QIcon(QLatin1String(":/git/images/gitorious.png"));
|
||||
}
|
||||
|
||||
QString GitoriousCloneWizard::description() const
|
||||
{
|
||||
return tr("Clones a Gitorious repository and tries to load the contained project.");
|
||||
}
|
||||
|
||||
QString GitoriousCloneWizard::displayName() const
|
||||
{
|
||||
return tr("Gitorious Repository Clone");
|
||||
setIcon(QIcon(QLatin1String(":/git/images/gitorious.png")));
|
||||
setDescription(tr("Clones a Gitorious repository and tries to load the contained project."));
|
||||
setDisplayName(tr("Gitorious Repository Clone"));
|
||||
}
|
||||
|
||||
QList<QWizardPage*> GitoriousCloneWizard::createParameterPages(const QString &path)
|
||||
|
||||
@@ -40,15 +40,11 @@ namespace Internal {
|
||||
class GitoriousCloneWizard : public VcsBase::BaseCheckoutWizard
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit GitoriousCloneWizard(QObject *parent = 0);
|
||||
GitoriousCloneWizard();
|
||||
|
||||
// IWizard
|
||||
QIcon icon() const;
|
||||
QString description() const;
|
||||
QString displayName() const;
|
||||
|
||||
protected:
|
||||
private:
|
||||
// BaseCheckoutWizard
|
||||
QList<QWizardPage*> createParameterPages(const QString &path);
|
||||
VcsBase::Command *createCommand(const QList<QWizardPage*> ¶meterPages,
|
||||
|
||||
Reference in New Issue
Block a user