]> git.sesse.net Git - kdenlive/commitdiff
Add "discover new features" button to Config Wizard so that users can be redirected...
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Fri, 19 Jun 2009 15:08:05 +0000 (15:08 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Fri, 19 Jun 2009 15:08:05 +0000 (15:08 +0000)
http://kdenlive.org/mantis/view.php?id=940

svn path=/trunk/kdenlive/; revision=3595

src/wizard.cpp
src/wizard.h

index d52a743708bb4745f37b7683f91a1d21cd517443..20983bab7ba6fb09536c6d62825a12e67e531afe 100644 (file)
 #include "wizard.h"
 #include "kdenlivesettings.h"
 #include "profilesdialog.h"
+#include "kdenlive-config.h"
 
 #include <KStandardDirs>
 #include <KLocale>
 #include <KProcess>
 #include <kmimetype.h>
+#include <KRun>
 
 #include <QLabel>
 #include <QFile>
@@ -32,6 +34,7 @@
 #include <QTimer>
 
 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"
index 9a06f74aa12ec431bf36841c5535d3437c0c849f..232437d088c6ed0aed4446a2ee39f1eb321989d6 100644 (file)
@@ -101,6 +101,7 @@ private slots:
     void slotCheckStandard();
     void slotCheckSelectedItem();
     void slotCheckMlt();
+    bool slotShowWebInfos();
 };
 
 #endif