[qet] [4710] Minor : add a link to QET Youtube channel

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 4710
Author:   scorpio810
Date:     2016-09-15 13:48:34 +0200 (Thu, 15 Sep 2016)
Log Message:
-----------
Minor : add a link to QET Youtube channel
Add a shortcut F1 for open manual online
Add a link for download latest devel build for Windows (only visible on
Win platform)

Modified Paths:
--------------
    trunk/qelectrotech.qrc
    trunk/sources/qeticons.cpp
    trunk/sources/qeticons.h
    trunk/sources/qetmainwindow.cpp
    trunk/sources/qetmainwindow.h

Added Paths:
-----------
    trunk/ico/16x16/edit-download.svg

Added: trunk/ico/16x16/edit-download.svg
===================================================================
--- trunk/ico/16x16/edit-download.svg	                        (rev 0)
+++ trunk/ico/16x16/edit-download.svg	2016-09-15 11:48:34 UTC (rev 4710)
@@ -0,0 +1,13 @@
+<svg xmlns="http://www.w3.org/2000/svg"; viewBox="0 0 16 16">
+  <defs id="defs3051">
+    <style type="text/css" id="current-color-scheme">
+      .ColorScheme-Text {
+        color:#4d4d4d;
+      }
+      </style>
+  </defs>
+ <path style="fill:currentColor;fill-opacity:1;stroke:none" 
+     d="M 6 2 L 6 3 L 6 6 L 7 6 L 7 3 L 9 3 L 9 6 L 10 6 L 10 3 L 10 2 L 9 2 L 7 2 L 6 2 z M 3.8046875 6 L 3 6.8320312 L 8 12 L 13 6.8320312 L 12.195312 6 L 8 10.337891 L 3.8046875 6 z M 2 12 L 2 14 L 3 14 L 13 14 L 14 14 L 14 13 L 14 12 L 13 12 L 13 13 L 3 13 L 3 12 L 2 12 z "
+     class="ColorScheme-Text"
+     />
+</svg>

Modified: trunk/qelectrotech.qrc
===================================================================
--- trunk/qelectrotech.qrc	2016-09-15 04:35:07 UTC (rev 4709)
+++ trunk/qelectrotech.qrc	2016-09-15 11:48:34 UTC (rev 4710)
@@ -251,5 +251,6 @@
         <file>ico/22x22/terminalstrip.png</file>
         <file>ico/16x16/help-contents.svg</file>
         <file>ico/16x16/help-donate.svg</file>
+        <file>ico/16x16/edit-download.svg</file>
     </qresource>
 </RCC>

Modified: trunk/sources/qeticons.cpp
===================================================================
--- trunk/sources/qeticons.cpp	2016-09-15 04:35:07 UTC (rev 4709)
+++ trunk/sources/qeticons.cpp	2016-09-15 11:48:34 UTC (rev 4710)
@@ -188,6 +188,7 @@
 		QIcon TerminalStrip;
 		QIcon QETManual;
 		QIcon QETDonate;
+		QIcon QETDownload;
 	}
 }
 
@@ -381,6 +382,7 @@
 	ProjectFile         .addFile(":/ico/oxygen-icons/22x22/mimetypes/application-x-qet-project.png");
 	ProjectFile         .addFile(":/ico/oxygen-icons/32x32/mimetypes/application-x-qet-project.png");
 	QETDonate           .addFile(":/ico/16x16/help-donate.svg");
+	QETDownload         .addFile(":/ico/16x16/edit-download.svg");
 	QETIcon             .addFile(":/ico/256x256/qelectrotech.png");
 	ProjectFileGP       .addFile(":/ico/16x16/project-WH.png");
 	QETLogo             .addFile(":/ico/16x16/qet.png");

Modified: trunk/sources/qeticons.h
===================================================================
--- trunk/sources/qeticons.h	2016-09-15 04:35:07 UTC (rev 4709)
+++ trunk/sources/qeticons.h	2016-09-15 11:48:34 UTC (rev 4710)
@@ -197,6 +197,7 @@
 		extern QIcon TerminalStrip;
 		extern QIcon QETManual;
 		extern QIcon QETDonate;
+		extern QIcon QETDownload;
 	}
 }
 #endif

Modified: trunk/sources/qetmainwindow.cpp
===================================================================
--- trunk/sources/qetmainwindow.cpp	2016-09-15 04:35:07 UTC (rev 4709)
+++ trunk/sources/qetmainwindow.cpp	2016-09-15 11:48:34 UTC (rev 4710)
@@ -81,6 +81,24 @@
 	QDesktopServices::openUrl(QUrl(link));
 	});
 	
+	manual_online_            -> setShortcut(Qt::Key_F1);
+	
+	youtube_ = new QAction(QET::Icons::QETManual, tr("Chaine Youtube"), this);
+	youtube_ -> setStatusTip(tr("Lance le navigateur par defaut vers la chaine Youtube de QElectroTech", "status bar tip"));
+	
+	connect(youtube_, &QAction::triggered, [this](bool) {
+	QString link = "https://www.youtube.com/user/scorpio8101/videos";;
+	QDesktopServices::openUrl(QUrl(link));
+	});
+	
+	upgrade_ = new QAction(QET::Icons::QETDownload, tr("Télécharger une nouvelle version (dev)"), this);
+	upgrade_ -> setStatusTip(tr("Lance le navigateur par defaut vers le dépot Nighlty en ligne de QElectroTech", "status bar tip"));
+	
+	connect(upgrade_, &QAction::triggered, [this](bool) {
+	QString link = "http://download.tuxfamily.org/qet/builds/nightly/";;
+	QDesktopServices::openUrl(QUrl(link));
+	});
+	
 	donate_ = new QAction(QET::Icons::QETDonate, tr("Faire un don"), this);
 	donate_ -> setStatusTip(tr("Soutenir le projet QElectroTech par un don", "status bar tip"));
 	
@@ -109,9 +127,17 @@
 	help_menu_ -> addSeparator();
 	help_menu_ -> addAction(about_qet_);
 	help_menu_ -> addAction(manual_online_);
+	help_menu_ -> addAction(youtube_);
+	help_menu_ -> addAction(upgrade_);
 	help_menu_ -> addAction(donate_);
 	help_menu_ -> addAction(about_qt_);
 	
+#ifdef Q_OS_WIN32
+upgrade_ -> setVisible(true);
+#else
+upgrade_ -> setVisible(false);
+#endif
+	
 	insertMenu(0, settings_menu_);
 	insertMenu(0, help_menu_);
 }

Modified: trunk/sources/qetmainwindow.h
===================================================================
--- trunk/sources/qetmainwindow.h	2016-09-15 04:35:07 UTC (rev 4709)
+++ trunk/sources/qetmainwindow.h	2016-09-15 11:48:34 UTC (rev 4710)
@@ -57,6 +57,8 @@
 	QAction *whatsthis_action_;              ///< Toggle "What's this" mode
 	QAction *about_qet_;                     ///< Launch the "About QElectroTech" dialog
 	QAction *manual_online_;                 ///< Launch browser on QElectroTech online manual
+	QAction *youtube_;                       ///< Launch browser on QElectroTech Youtube channel
+	QAction *upgrade_;                        ///< Launch browser on QElectroTech Windows Nightly builds
 	QAction *donate_;                        ///< Launch browser to donate link 
 	QAction *about_qt_;                      ///< launch the "About Qt" dialog
 	QMenu *settings_menu_;                   ///< Settings menu


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/