Skip to content

Commit

Permalink
Reworked
Browse files Browse the repository at this point in the history
  • Loading branch information
fridlmue committed Dec 10, 2020
1 parent 8faf1ea commit 7500017
Show file tree
Hide file tree
Showing 11 changed files with 774 additions and 1,149 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# harbour-avaRisk
SailfishOS Client for EAWS Avalanche Bulletins

## Remarks
- If a Bulletin is not available at the moment for a region, the "Loading" indicator will remain. The UI will stay usable.
- The App requires a internet connection when opening a Report.

## Supported Regions
At the moment the following regions are supported, more are planned:
- AT Tirol/IT Bolzano/IT Trentino (https://avalanche.report) (EN/DE)
- AT Kärnten (https://lawinenwarndienst.ktn.gv.at/) (DE)
- AT Salzburg (https://lawine.salzburg.at/) (EN/DE)
- AT Styria (https://www.lawine-steiermark.at/) (EN/DE)
- AT Oberöstereich (Liefert noch keine Daten!) (https://www.land-oberoesterreich.gv.at/lawinenwarndienst.htm) (DE)
- AT Niederösterreich (Liefert noch keine Daten!) (https://www.lawinenwarndienst-niederoesterreich.at/) (DE)

## License
Licensed under GNU GPLv3
Expand Down
2 changes: 1 addition & 1 deletion harbour-avarisk.pro
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ CONFIG += sailfishapp_i18n
# following TRANSLATIONS line. And also do not forget to
# modify the localized app name in the the .desktop file.
TRANSLATIONS += translations/harbour-avarisk-de.ts
TRANSLATIONS += translations/harbour-avaRisk.ts
TRANSLATIONS += translations/harbour-avarisk.ts

RESOURCES += \
res.qrc
2 changes: 1 addition & 1 deletion qml/pages/AboutPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Page {
}

Label {
text: "avaRisk 0.1"
text: "avaRisk 0.2"
horizontalAlignment: Text.AlignHCenter
font.pixelSize: Theme.fontSizeExtraLarge
anchors {
Expand Down
10 changes: 10 additions & 0 deletions qml/pages/DangerPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ Page {

VerticalScrollDecorator{}

PullDownMenu {
MenuItem {
text: qsTr("Reload")
onClicked: {
python.startDownload();
busy = true;
}
}
}

Column {
spacing: Theme.paddingSmall
id: column
Expand Down
392 changes: 233 additions & 159 deletions qml/pages/FirstPage.qml

Large diffs are not rendered by default.

35 changes: 33 additions & 2 deletions qml/pages/RegionSelectPage.qml
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
import QtQuick 2.0
import QtQuick 2.2
import Sailfish.Silica 1.0

Item {
Page {
property ListModel regionList
property string country
property string macroRegion

SilicaListView {
id:regionSelectionView

VerticalScrollDecorator {}

model: regionList

anchors.fill: parent
header: PageHeader {
title: qsTr("Select Region" + ": " + country + " - " + macroRegion)
}
delegate: BackgroundItem {
id: firstListViewDelegate

onClicked: pageStack.push(Qt.resolvedUrl("DangerPage.qml"), {"regionID": RegionID, "regionName": region})

Label {
x: Theme.horizontalPageMargin
text: region
anchors.verticalCenter: parent.verticalCenter
color: firstListViewDelegate.highlighted ? Theme.highlightColor : Theme.primaryColor
}

}

}

}
2 changes: 1 addition & 1 deletion rpm/harbour-avarisk.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Name: harbour-avarisk
# << macros

Summary: SailfishOS Client for EAWS Avalanche Bulletins
Version: 0.1
Version: 0.2
Release: 1
Group: Qt/Qt
License: GPL3
Expand Down
2 changes: 1 addition & 1 deletion rpm/harbour-avarisk.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: harbour-avarisk
Summary: SailfishOS Client for EAWS Avalanche Bulletins
Version: 0.1
Version: 0.2
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
Expand Down
Loading

0 comments on commit 7500017

Please sign in to comment.