mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
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) git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4710 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
13
ico/16x16/edit-download.svg
Normal file
13
ico/16x16/edit-download.svg
Normal file
@@ -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>
|
||||||
|
After Width: | Height: | Size: 605 B |
@@ -251,5 +251,6 @@
|
|||||||
<file>ico/22x22/terminalstrip.png</file>
|
<file>ico/22x22/terminalstrip.png</file>
|
||||||
<file>ico/16x16/help-contents.svg</file>
|
<file>ico/16x16/help-contents.svg</file>
|
||||||
<file>ico/16x16/help-donate.svg</file>
|
<file>ico/16x16/help-donate.svg</file>
|
||||||
|
<file>ico/16x16/edit-download.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
@@ -188,6 +188,7 @@ namespace QET {
|
|||||||
QIcon TerminalStrip;
|
QIcon TerminalStrip;
|
||||||
QIcon QETManual;
|
QIcon QETManual;
|
||||||
QIcon QETDonate;
|
QIcon QETDonate;
|
||||||
|
QIcon QETDownload;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -381,6 +382,7 @@ void QET::Icons::initIcons() {
|
|||||||
ProjectFile .addFile(":/ico/oxygen-icons/22x22/mimetypes/application-x-qet-project.png");
|
ProjectFile .addFile(":/ico/oxygen-icons/22x22/mimetypes/application-x-qet-project.png");
|
||||||
ProjectFile .addFile(":/ico/oxygen-icons/32x32/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");
|
QETDonate .addFile(":/ico/16x16/help-donate.svg");
|
||||||
|
QETDownload .addFile(":/ico/16x16/edit-download.svg");
|
||||||
QETIcon .addFile(":/ico/256x256/qelectrotech.png");
|
QETIcon .addFile(":/ico/256x256/qelectrotech.png");
|
||||||
ProjectFileGP .addFile(":/ico/16x16/project-WH.png");
|
ProjectFileGP .addFile(":/ico/16x16/project-WH.png");
|
||||||
QETLogo .addFile(":/ico/16x16/qet.png");
|
QETLogo .addFile(":/ico/16x16/qet.png");
|
||||||
|
|||||||
@@ -197,6 +197,7 @@ namespace QET {
|
|||||||
extern QIcon TerminalStrip;
|
extern QIcon TerminalStrip;
|
||||||
extern QIcon QETManual;
|
extern QIcon QETManual;
|
||||||
extern QIcon QETDonate;
|
extern QIcon QETDonate;
|
||||||
|
extern QIcon QETDownload;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -81,6 +81,24 @@ void QETMainWindow::initCommonActions() {
|
|||||||
QDesktopServices::openUrl(QUrl(link));
|
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_ = new QAction(QET::Icons::QETDonate, tr("Faire un don"), this);
|
||||||
donate_ -> setStatusTip(tr("Soutenir le projet QElectroTech par un don", "status bar tip"));
|
donate_ -> setStatusTip(tr("Soutenir le projet QElectroTech par un don", "status bar tip"));
|
||||||
|
|
||||||
@@ -109,9 +127,17 @@ void QETMainWindow::initCommonMenus() {
|
|||||||
help_menu_ -> addSeparator();
|
help_menu_ -> addSeparator();
|
||||||
help_menu_ -> addAction(about_qet_);
|
help_menu_ -> addAction(about_qet_);
|
||||||
help_menu_ -> addAction(manual_online_);
|
help_menu_ -> addAction(manual_online_);
|
||||||
|
help_menu_ -> addAction(youtube_);
|
||||||
|
help_menu_ -> addAction(upgrade_);
|
||||||
help_menu_ -> addAction(donate_);
|
help_menu_ -> addAction(donate_);
|
||||||
help_menu_ -> addAction(about_qt_);
|
help_menu_ -> addAction(about_qt_);
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN32
|
||||||
|
upgrade_ -> setVisible(true);
|
||||||
|
#else
|
||||||
|
upgrade_ -> setVisible(false);
|
||||||
|
#endif
|
||||||
|
|
||||||
insertMenu(0, settings_menu_);
|
insertMenu(0, settings_menu_);
|
||||||
insertMenu(0, help_menu_);
|
insertMenu(0, help_menu_);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ class QETMainWindow : public QMainWindow {
|
|||||||
QAction *whatsthis_action_; ///< Toggle "What's this" mode
|
QAction *whatsthis_action_; ///< Toggle "What's this" mode
|
||||||
QAction *about_qet_; ///< Launch the "About QElectroTech" dialog
|
QAction *about_qet_; ///< Launch the "About QElectroTech" dialog
|
||||||
QAction *manual_online_; ///< Launch browser on QElectroTech online manual
|
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 *donate_; ///< Launch browser to donate link
|
||||||
QAction *about_qt_; ///< launch the "About Qt" dialog
|
QAction *about_qt_; ///< launch the "About Qt" dialog
|
||||||
QMenu *settings_menu_; ///< Settings menu
|
QMenu *settings_menu_; ///< Settings menu
|
||||||
|
|||||||
Reference in New Issue
Block a user