Skip to content

Commit

Permalink
Merge pull request #20 from lgolouz/lgolouz_zxtr-19
Browse files Browse the repository at this point in the history
Fixed [ZXTR-19] Create `about` window
  • Loading branch information
lgolouz authored Sep 7, 2021
2 parents 2f2ac53 + 634ca55 commit 77af37e
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ZXTapeReviver.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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 =

Expand Down
Binary file added icon.ico
Binary file not shown.
60 changes: 60 additions & 0 deletions qml/About.qml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
//*******************************************************************************
// ZX Tape Reviver
//-----------------
//
// Author: Leonid Golouz
// E-mail: [email protected]
// YouTube channel: https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg
// YouTube channel e-mail: [email protected]
//
// 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 <a href="mailto:[email protected]">Leonid Golouz</a>'
onLinkActivated: Qt.openUrlExternally(link)
}
Text {
id: skipText
anchors.top: zxTapeReviverText.bottom
text: ""
}
Text {
id: emailText
anchors.top: skipText.bottom
text: 'E-mail: <a href="mailto:[email protected]">[email protected]</a>'
onLinkActivated: Qt.openUrlExternally(link)
}
Text {
id: youtubeText
anchors.top: emailText.bottom
text: 'YouTube channel: <a href="https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg">Советы компьютерного энтузиаста</a> - <a href="https://www.youtube.com/channel/UCz_ktTqWVekT0P4zVW8Xgcg">Computer Enthusiast Tips</a>'
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"
}
}
15 changes: 15 additions & 0 deletions qml/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,17 @@ ApplicationWindow {
}
}
}

Menu {
title: "Help"

MenuItem {
text: "About..."
onTriggered: {
aboutDialog.open();
}
}
}
}

FileDialog {
Expand Down Expand Up @@ -768,6 +779,10 @@ ApplicationWindow {
}
}

About {
id: aboutDialog
}

ParserSettings {
id: parserSettingsDialog
}
Expand Down
1 change: 1 addition & 0 deletions qml/qml.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
<file>GoToAddress.qml</file>
<file>Frequency.qml</file>
<file>ParserSettings.qml</file>
<file>About.qml</file>
</qresource>
</RCC>

0 comments on commit 77af37e

Please sign in to comment.