Apropos page
This commit is contained in:
parent
f009053ce6
commit
02df5574b4
3 changed files with 113 additions and 0 deletions
104
qml/Apropos.qml
Normal file
104
qml/Apropos.qml
Normal 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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -65,6 +65,10 @@ ApplicationWindow {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
||||||
PullDownMenu {
|
PullDownMenu {
|
||||||
|
MenuItem {
|
||||||
|
text: qsTr("Apropos")
|
||||||
|
onClicked: pageStack.push(Qt.resolvedUrl("Apropos.qml"))
|
||||||
|
}
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: qsTr("Configuration")
|
text: qsTr("Configuration")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
@ -119,6 +123,10 @@ ApplicationWindow {
|
||||||
interactive: !screen.toisepressed
|
interactive: !screen.toisepressed
|
||||||
|
|
||||||
PullDownMenu {
|
PullDownMenu {
|
||||||
|
MenuItem {
|
||||||
|
text: qsTr("Apropos")
|
||||||
|
onClicked: pageStack.push(Qt.resolvedUrl("Apropos.qml"))
|
||||||
|
}
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: qsTr("Configuration")
|
text: qsTr("Configuration")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<!DOCTYPE RCC><RCC version="1.0">
|
<!DOCTYPE RCC><RCC version="1.0">
|
||||||
<qresource prefix="/qml/">
|
<qresource prefix="/qml/">
|
||||||
<file>Sailfish.qml</file>
|
<file>Sailfish.qml</file>
|
||||||
|
<file>Apropos.qml</file>
|
||||||
<file>SimpleDisplay.qml</file>
|
<file>SimpleDisplay.qml</file>
|
||||||
<file>PlayerScreen.qml</file>
|
<file>PlayerScreen.qml</file>
|
||||||
<file>TunerScreen.qml</file>
|
<file>TunerScreen.qml</file>
|
||||||
|
|
Loading…
Reference in a new issue