diff --git a/ZXTapeReviver.pro b/ZXTapeReviver.pro index d2adfa7..afb6c6f 100644 --- a/ZXTapeReviver.pro +++ b/ZXTapeReviver.pro @@ -45,6 +45,8 @@ HEADERS += \ RESOURCES += qml/qml.qrc +RC_ICONS = icon.ico + # Additional import path used to resolve QML modules in Qt Creator's code model QML_IMPORT_PATH = diff --git a/icon.ico b/icon.ico new file mode 100644 index 0000000..6bfda14 Binary files /dev/null and b/icon.ico differ diff --git a/qml/About.qml b/qml/About.qml new file mode 100644 index 0000000..02c54c5 --- /dev/null +++ b/qml/About.qml @@ -0,0 +1,60 @@ +//******************************************************************************* +// ZX Tape Reviver +//----------------- +// +// Author: Leonid Golouz +// E-mail: lgolouz@list.ru +// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg +// YouTube channel e-mail: computerenthusiasttips@mail.ru +// +// Code modification and distribution of any kind is not allowed without direct +// permission of the Author. +//******************************************************************************* + +import QtQuick 2.3 +import QtQuick.Controls 1.3 +import QtQuick.Dialogs 1.3 +import QtQuick.Layouts 1.15 + +Dialog { + id: aboutDialog + + visible: false + title: "About..." + standardButtons: StandardButton.Ok + modality: Qt.WindowModal + width: 300 + height: 140 + + Text { + id: zxTapeReviverText + text: 'ZX Tape Reviver (c) 2020-2021 Leonid Golouz' + onLinkActivated: Qt.openUrlExternally(link) + } + Text { + id: skipText + anchors.top: zxTapeReviverText.bottom + text: "" + } + Text { + id: emailText + anchors.top: skipText.bottom + text: 'E-mail: computerenthusiasttips@mail.ru' + onLinkActivated: Qt.openUrlExternally(link) + } + Text { + id: youtubeText + anchors.top: emailText.bottom + text: 'YouTube channel: Советы компьютерного энтузиаста - Computer Enthusiast Tips' + onLinkActivated: Qt.openUrlExternally(link) + } + Text { + id: skip2Text + anchors.top: youtubeText.bottom + text: "" + } + Text { + anchors.top: skip2Text.bottom + text: "Please click the highlighted links to open" + } +} diff --git a/qml/main.qml b/qml/main.qml index b60f527..d5b2f45 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -144,6 +144,17 @@ ApplicationWindow { } } } + + Menu { + title: "Help" + + MenuItem { + text: "About..." + onTriggered: { + aboutDialog.open(); + } + } + } } FileDialog { @@ -768,6 +779,10 @@ ApplicationWindow { } } + About { + id: aboutDialog + } + ParserSettings { id: parserSettingsDialog } diff --git a/qml/qml.qrc b/qml/qml.qrc index a3da466..e2beae2 100644 --- a/qml/qml.qrc +++ b/qml/qml.qrc @@ -4,5 +4,6 @@ GoToAddress.qml Frequency.qml ParserSettings.qml + About.qml