VCS: Use better terms on checkout wizard for DVCS

Change-Id: I9064c71787dbfb1eee6f8f473df39dda23a1252a
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2013-08-29 13:37:45 +03:00
committed by Orgad Shaneh
parent 3eac49d9c3
commit f0147ba19f
10 changed files with 39 additions and 3 deletions

View File

@@ -72,6 +72,8 @@ public:
QList<QWizardPage *> parameterPages;
QString checkoutPath;
QString id;
QString progressTitle;
QString startedStatus;
};
void BaseCheckoutWizardPrivate::clear()
@@ -130,6 +132,10 @@ void BaseCheckoutWizard::runWizard(const QString &path, QWidget *parent, const Q
// Create dialog and launch
d->parameterPages = createParameterPages(path);
Internal::CheckoutWizardDialog dialog(d->parameterPages, parent);
if (!d->progressTitle.isEmpty())
dialog.setTitle(d->progressTitle);
if (!d->startedStatus.isEmpty())
dialog.setStartedStatus(d->startedStatus);
d->dialog = &dialog;
connect(&dialog, SIGNAL(progressPageShown()), this, SLOT(slotProgressPageShown()));
dialog.setWindowTitle(displayName());
@@ -212,6 +218,12 @@ QString BaseCheckoutWizard::openProject(const QString &path, QString *errorMessa
return projectFile;
}
void BaseCheckoutWizard::setCustomLabels(const QString &progressTitle, const QString &startedStatus)
{
d->progressTitle = progressTitle;
d->startedStatus = startedStatus;
}
void BaseCheckoutWizard::slotProgressPageShown()
{
Command *command = createCommand(d->parameterPages, &(d->checkoutPath));