From ab4c36da56fce7229c3e6505c79c1d34307981fc Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Fri, 19 Jun 2009 15:08:05 +0000 Subject: [PATCH] Add "discover new features" button to Config Wizard so that users can be redirected to the relevant release web page: http://kdenlive.org/mantis/view.php?id=940 svn path=/trunk/kdenlive/; revision=3595 --- src/wizard.cpp | 16 +++++++++++++++- src/wizard.h | 1 + 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/wizard.cpp b/src/wizard.cpp index d52a7437..20983bab 100644 --- a/src/wizard.cpp +++ b/src/wizard.cpp @@ -20,11 +20,13 @@ #include "wizard.h" #include "kdenlivesettings.h" #include "profilesdialog.h" +#include "kdenlive-config.h" #include #include #include #include +#include #include #include @@ -32,6 +34,7 @@ #include const double recommendedMltVersion = 40; +static const char version[] = VERSION; Wizard::Wizard(bool upgrade, QWidget *parent) : QWizard(parent) @@ -43,12 +46,18 @@ Wizard::Wizard(bool upgrade, QWidget *parent) : page1->setTitle(i18n("Welcome")); QLabel *label; if (upgrade) - label = new QLabel(i18n("Your Kdenlive version was upgraded. Please take some time to review the basic settings")); + label = new QLabel(i18n("Your Kdenlive version was upgraded to version %1. Please take some time to review the basic settings", QString(version).section(' ', 0, 0))); else label = new QLabel(i18n("This is the first time you run Kdenlive. This wizard will let you adjust some basic settings, you will be ready to edit your first movie in a few seconds...")); label->setWordWrap(true); m_startLayout = new QVBoxLayout; m_startLayout->addWidget(label); + QPushButton *but = new QPushButton(KIcon("help-about"), i18n("Discover the features of this Kdenlive release"), this); + connect(but, SIGNAL(clicked()), this, SLOT(slotShowWebInfos())); + m_startLayout->addStretch(); + m_startLayout->addWidget(but); + + page1->setLayout(m_startLayout); addPage(page1); @@ -543,4 +552,9 @@ bool Wizard::isOk() const return m_systemCheckIsOk; } +bool Wizard::slotShowWebInfos() +{ + KRun::runUrl(KUrl("http://kdenlive.org/discover/" + QString(version).section(' ', 0, 0)), "text/html", this); +} + #include "wizard.moc" diff --git a/src/wizard.h b/src/wizard.h index 9a06f74a..232437d0 100644 --- a/src/wizard.h +++ b/src/wizard.h @@ -101,6 +101,7 @@ private slots: void slotCheckStandard(); void slotCheckSelectedItem(); void slotCheckMlt(); + bool slotShowWebInfos(); }; #endif -- 2.39.2