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:
@@ -71,7 +71,6 @@ public:
|
||||
Internal::CheckoutWizardDialog *dialog;
|
||||
QList<QWizardPage *> parameterPages;
|
||||
QString checkoutPath;
|
||||
QString id;
|
||||
QString progressTitle;
|
||||
QString startedStatus;
|
||||
};
|
||||
@@ -89,6 +88,11 @@ BaseCheckoutWizard::BaseCheckoutWizard(QObject *parent) :
|
||||
Core::IWizard(parent),
|
||||
d(new Internal::BaseCheckoutWizardPrivate)
|
||||
{
|
||||
setWizardKind(IWizard::ProjectWizard);
|
||||
setCategory(QLatin1String(ProjectExplorer::Constants::IMPORT_WIZARD_CATEGORY));
|
||||
setDisplayCategory(QCoreApplication::translate("ProjectExplorer",
|
||||
ProjectExplorer::Constants::IMPORT_WIZARD_CATEGORY_DISPLAY));
|
||||
setFlags(Core::IWizard::PlatformIndependent);
|
||||
}
|
||||
|
||||
BaseCheckoutWizard::~BaseCheckoutWizard()
|
||||
@@ -96,36 +100,6 @@ BaseCheckoutWizard::~BaseCheckoutWizard()
|
||||
delete d;
|
||||
}
|
||||
|
||||
Core::IWizard::WizardKind BaseCheckoutWizard::kind() const
|
||||
{
|
||||
return Core::IWizard::ProjectWizard;
|
||||
}
|
||||
|
||||
QString BaseCheckoutWizard::category() const
|
||||
{
|
||||
return QLatin1String(ProjectExplorer::Constants::IMPORT_WIZARD_CATEGORY);
|
||||
}
|
||||
|
||||
QString BaseCheckoutWizard::displayCategory() const
|
||||
{
|
||||
return QCoreApplication::translate("ProjectExplorer", ProjectExplorer::Constants::IMPORT_WIZARD_CATEGORY_DISPLAY);
|
||||
}
|
||||
|
||||
QString BaseCheckoutWizard::id() const
|
||||
{
|
||||
return d->id;
|
||||
}
|
||||
|
||||
QString BaseCheckoutWizard::descriptionImage() const
|
||||
{
|
||||
return QString();
|
||||
}
|
||||
|
||||
void BaseCheckoutWizard::setId(const QString &id)
|
||||
{
|
||||
d->id = id;
|
||||
}
|
||||
|
||||
void BaseCheckoutWizard::runWizard(const QString &path, QWidget *parent, const QString & /*platform*/, const QVariantMap &extraValues)
|
||||
{
|
||||
Q_UNUSED(extraValues)
|
||||
@@ -154,16 +128,6 @@ void BaseCheckoutWizard::runWizard(const QString &path, QWidget *parent, const Q
|
||||
}
|
||||
}
|
||||
|
||||
Core::FeatureSet BaseCheckoutWizard::requiredFeatures() const
|
||||
{
|
||||
return Core::FeatureSet();
|
||||
}
|
||||
|
||||
Core::IWizard::WizardFlags BaseCheckoutWizard::flags() const
|
||||
{
|
||||
return Core::IWizard::PlatformIndependent;
|
||||
}
|
||||
|
||||
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()));
|
||||
|
||||
Reference in New Issue
Block a user