[-]
[+]
|
Changed |
_service:tar_git:harbour-evento.changes
|
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-evento.spec
^
|
|
[-]
[+]
|
Changed |
_service
^
|
@@ -2,7 +2,7 @@
<service name="tar_git">
<param name="url">https://github.com/black-sheep-dev/harbour-evento.git</param>
<param name="branch"></param>
- <param name="revision">0.2.2-1</param>
+ <param name="revision">0.3.0-1</param>
<param name="debian">N</param>
<param name="dumb">N</param>
</service>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-evento-0.3.0.tar.bz2/harbour-evento.pro
^
|
@@ -1,5 +1,5 @@
# VERSION
-VERSION = 0.2.2
+VERSION = 0.3.0
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
TARGET = harbour-evento
@@ -18,6 +18,7 @@
qml/dialogs/SortingDialog.qml \
qml/pages/MainPage.qml \
qml/pages/AboutPage.qml \
+ qml/pages/SettingsPage.qml \
rpm/harbour-evento.changes \
rpm/harbour-evento.changes.run.in \
rpm/harbour-evento.spec \
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-evento-0.3.0.tar.bz2/qml/cover/CoverPage.qml
^
|
@@ -29,6 +29,14 @@
onChanged: currentIndex = 0
}
+ Timer {
+ interval: settings.coverSwitchInterval
+ repeat: true
+ running: settings.coverAutoSwitch && Events.rowCount() > 1
+
+ onTriggered: increment()
+ }
+
Image {
anchors.fill: parent
height: sourceSize.height * width / sourceSize.width
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-evento-0.3.0.tar.bz2/qml/harbour-evento.qml
^
|
@@ -40,6 +40,8 @@
path: "/apps/harbour-evento"
synchronous: true
+ property bool coverAutoSwitch: false
+ property int coverSwitchInterval: 5000
property int sortOrder: Qt.AscendingOrder
property int sortRole: EventsModel.TitleRole
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-evento-0.3.0.tar.bz2/qml/pages/MainPage.qml
^
|
@@ -17,6 +17,12 @@
onClicked: pageStack.push(Qt.resolvedUrl("AboutPage.qml"))
}
MenuItem {
+ //% "Settings"
+ text: qsTrId("id-settings")
+ onClicked: pageStack.push(Qt.resolvedUrl("SettingsPage.qml"))
+ }
+
+ MenuItem {
//% "Sorting"
text: qsTrId("id-sorting")
onClicked: {
|
[-]
[+]
|
Added |
_service:tar_git:harbour-evento-0.3.0.tar.bz2/qml/pages/SettingsPage.qml
^
|
@@ -0,0 +1,60 @@
+import QtQuick 2.0
+import Sailfish.Silica 1.0
+
+Page {
+ id: page
+
+ allowedOrientations: Orientation.All
+
+ SilicaFlickable {
+ anchors.fill: parent
+ contentHeight: column.height
+
+ Column {
+ id: column
+ width:parent.width
+ spacing: Theme.paddingLarge
+
+ PageHeader {
+ //% "Settings"
+ title: qsTrId("id-settings")
+ }
+
+ SectionHeader{
+ //% "Cover"
+ text: qsTrId("id-cover")
+ }
+
+ TextSwitch {
+ id: coverAutoSwitch
+ //% "Auto switch"
+ text: qsTrId("id-cover-auto-switch")
+ //% "Turn on automatic switch between events on cover page in a defined interval"
+ description: qsTrId("id-cover-auto-switch-desc")
+
+ Component.onCompleted: checked = settings.coverAutoSwitch
+ }
+
+ TextField {
+ id: coverSwitchInterval
+ visible: coverAutoSwitch.checked
+ text: settings.coverSwitchInterval
+ //% "Interval (msec)"
+ label: qsTrId("id-cover-switch-interval-title")
+ inputMethodHints: Qt.ImhDigitsOnly
+ validator: IntValidator { bottom: 1000 }
+ }
+
+ Item {
+ width: 1
+ height: Theme.paddingMedium
+ }
+ }
+ }
+
+ onStatusChanged: {
+ if (status !== PageStatus.Deactivating) return
+ settings.coverAutoSwitch = coverAutoSwitch.checked
+ settings.coverSwitchInterval = coverSwitchInterval.text
+ }
+}
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-evento-0.3.0.tar.bz2/translations/harbour-evento-de.ts
^
|
@@ -170,5 +170,25 @@
<source>yearly</source>
<translation>jährlich</translation>
</message>
+ <message id="id-settings">
+ <source>Settings</source>
+ <translation>Einstellungen</translation>
+ </message>
+ <message id="id-cover">
+ <source>Cover</source>
+ <translation>Cover</translation>
+ </message>
+ <message id="id-cover-auto-switch">
+ <source>Auto switch</source>
+ <translation type="unfinished">Automatischer Wechsel</translation>
+ </message>
+ <message id="id-cover-auto-switch-desc">
+ <source>Turn on automatic switch between events on cover page in a defined interval</source>
+ <translation>Schaltet den automatischne Wechsel der Ereignisse auf der Cover Seite in einem definierten Intervall ein</translation>
+ </message>
+ <message id="id-cover-switch-interval-title">
+ <source>Interval (msec)</source>
+ <translation>Interval (msec)</translation>
+ </message>
</context>
</TS>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-evento-0.3.0.tar.bz2/translations/harbour-evento.ts
^
|
@@ -174,5 +174,25 @@
<source>yearly</source>
<translation>yearly</translation>
</message>
+ <message id="id-settings">
+ <source>Settings</source>
+ <translation>Settings</translation>
+ </message>
+ <message id="id-cover">
+ <source>Cover</source>
+ <translation>Cover</translation>
+ </message>
+ <message id="id-cover-auto-switch">
+ <source>Auto switch</source>
+ <translation>Auto switch</translation>
+ </message>
+ <message id="id-cover-auto-switch-desc">
+ <source>Turn on automatic switch between events on cover page in a defined interval</source>
+ <translation>Turn on automatic switch between events on cover page in a defined interval</translation>
+ </message>
+ <message id="id-cover-switch-interval-title">
+ <source>Interval (msec)</source>
+ <translation>Turn on automatic switch between events on cover page in a defined interval</translation>
+ </message>
</context>
</TS>
|
[-]
[+]
|
Changed |
_service:tar_git:harbour-evento.yaml
^
|
@@ -1,6 +1,6 @@
Name: harbour-evento
Summary: Evento
-Version: 0.2.2
+Version: 0.3.0
Release: 1
# The contents of the Group field should be one of the groups listed here:
# https://github.com/mer-tools/spectacle/blob/master/data/GROUPS
|