From 02df5574b4cc1ed9c270ce365fb8ef5df096aabf Mon Sep 17 00:00:00 2001 From: Louis-Joseph Fournier Date: Fri, 15 Jan 2016 23:38:27 +0100 Subject: [PATCH] Apropos page --- qml/Apropos.qml | 104 +++++++++++++++++++++++++++++++++++++++++++++++ qml/Sailfish.qml | 8 ++++ qml/sailfish.qrc | 1 + 3 files changed, 113 insertions(+) create mode 100644 qml/Apropos.qml diff --git a/qml/Apropos.qml b/qml/Apropos.qml new file mode 100644 index 0000000..de67b08 --- /dev/null +++ b/qml/Apropos.qml @@ -0,0 +1,104 @@ +import QtQuick 2.0 +import Sailfish.Silica 1.0 + +Page { + allowedOrientations: Orientation.All + + SilicaFlickable { + anchors.fill: parent + contentHeight: column.height + + Column { + id: column + width: parent.width + spacing: 10 + + PageHeader { + title: qsTr("About") + } + + Image { + anchors.horizontalCenter: parent.horizontalCenter + source: "file:///usr/share/icons/hicolor/128x128/apps/harbour-sailtuner.png" + } + + SectionHeader { + anchors.horizontalCenter: parent.horizontalCenter + text: "SailTuner" + horizontalAlignment: Text.AlignHCenter + } + + Text { + anchors.horizontalCenter: parent.horizontalCenter + font.pixelSize: Theme.fontSizeSmall + width: parent.width + wrapMode: Text.WordWrap + horizontalAlignment: Text.AlignHCenter + color: Theme.primaryColor + text: qsTr("Chromatic multi-temperaments tuner and notes player") + } + + Label { + anchors.horizontalCenter: parent.horizontalCenter + font.pixelSize: Theme.fontSizeSmall + text: "version 0.1.1" + } + + SectionHeader { + anchors.horizontalCenter: parent.horizontalCenter + text: qsTr("Copyright") + horizontalAlignment: Text.AlignHCenter + } + + Label { + anchors.horizontalCenter: parent.horizontalCenter + font.pixelSize: Theme.fontSizeSmall + text: "Louis-Joseph Fournier" + } + Label { + anchors.horizontalCenter: parent.horizontalCenter + font.pixelSize: Theme.fontSizeSmall + text: "01-2016" + } + Label { + anchors.horizontalCenter: parent.horizontalCenter + font.pixelSize: Theme.fontSizeSmall + text: qsTr("licence") + ": GPLv3" + } + + SectionHeader { + anchors.horizontalCenter: parent.horizontalCenter + text: qsTr("Links") + horizontalAlignment: Text.AlignHCenter + } + + Label { + anchors.horizontalCenter: parent.horizontalCenter + font.pixelSize: Theme.fontSizeSmall + text: qsTr("Source code and algo description") + } + + Label { + anchors.horizontalCenter: parent.horizontalCenter + font.pixelSize: Theme.fontSizeSmall + property string urlstring: "https://github.com/LouJo/SailTuner" + text: "" + urlstring + "<\a>" + onLinkActivated: Qt.openUrlExternally(link) + } + + Label { + anchors.horizontalCenter: parent.horizontalCenter + font.pixelSize: Theme.fontSizeSmall + text: qsTr("Personnal blog") + } + + Label { + anchors.horizontalCenter: parent.horizontalCenter + font.pixelSize: Theme.fontSizeSmall + property string urlstring: "http://legolas.vefblog.net" + text: "" + urlstring + "<\a>" + onLinkActivated: Qt.openUrlExternally(link) + } + } + } +} diff --git a/qml/Sailfish.qml b/qml/Sailfish.qml index 2a95c60..710a539 100644 --- a/qml/Sailfish.qml +++ b/qml/Sailfish.qml @@ -65,6 +65,10 @@ ApplicationWindow { anchors.fill: parent PullDownMenu { + MenuItem { + text: qsTr("Apropos") + onClicked: pageStack.push(Qt.resolvedUrl("Apropos.qml")) + } MenuItem { text: qsTr("Configuration") onClicked: { @@ -119,6 +123,10 @@ ApplicationWindow { interactive: !screen.toisepressed PullDownMenu { + MenuItem { + text: qsTr("Apropos") + onClicked: pageStack.push(Qt.resolvedUrl("Apropos.qml")) + } MenuItem { text: qsTr("Configuration") onClicked: { diff --git a/qml/sailfish.qrc b/qml/sailfish.qrc index ced5d38..9e50058 100644 --- a/qml/sailfish.qrc +++ b/qml/sailfish.qrc @@ -1,6 +1,7 @@ Sailfish.qml +Apropos.qml SimpleDisplay.qml PlayerScreen.qml TunerScreen.qml