Apropos page

This commit is contained in:
Louis-Joseph Fournier 2016-01-15 23:38:27 +01:00
parent f009053ce6
commit 02df5574b4
3 changed files with 113 additions and 0 deletions

104
qml/Apropos.qml Normal file
View file

@ -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: "<a href=\"" + urlstring + "\">" + 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: "<a href=\"" + urlstring + "\">" + urlstring + "<\a>"
onLinkActivated: Qt.openUrlExternally(link)
}
}
}
}

View file

@ -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: {

View file

@ -1,6 +1,7 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource prefix="/qml/">
<file>Sailfish.qml</file>
<file>Apropos.qml</file>
<file>SimpleDisplay.qml</file>
<file>PlayerScreen.qml</file>
<file>TunerScreen.qml</file>