فهرست منبع

initial release version 0.1

git-svn-id: svn://svn.siningsoft.de/harbour-tvspielfilm@2 0b5be4a2-6704-4ca3-9811-fc1cffd0fd0c
devnull 6 سال پیش
والد
کامیت
7ea3fa7b6b

+ 2 - 2
harbour-tvspielfilm.desktop

@@ -3,10 +3,10 @@ Type=Application
 X-Nemo-Application-Type=silica-qt5
 Icon=harbour-tvspielfilm
 Exec=sailfish-qml harbour-tvspielfilm
-Name=harbour-tvspielfilm
+Name=TVSpielfilm (unofficial)
 # translation example:
 # your app name in German locale (de)
 #
 # Remember to comment out the following line, if you do not want to use
 # a different app name in German locale (de).
-Name[de]=harbour-tvspielfilm
+Name[de]=TVSpielfilm (inoffiziell)

+ 10 - 13
harbour-tvspielfilm.pro.user

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE QtCreatorProject>
-<!-- Written by QtCreator 4.9.1, 2019-12-10T11:21:46. -->
+<!-- Written by QtCreator 4.9.1, 2019-12-10T15:00:38. -->
 <qtcreator>
  <data>
   <variable>EnvironmentId</variable>
@@ -8,7 +8,7 @@
  </data>
  <data>
   <variable>ProjectExplorer.Project.ActiveTarget</variable>
-  <value type="int">0</value>
+  <value type="int">1</value>
  </data>
  <data>
   <variable>ProjectExplorer.Project.EditorSettings</variable>
@@ -69,7 +69,7 @@
    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">SailfishOS-3.2.0.12-armv7hl (in Sailfish OS Build Engine)</value>
    <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{7e4a05d9-9ba3-4324-92b9-e23385ed86cb}</value>
    <value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
-   <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
+   <value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">2</value>
    <value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
    <valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
     <value type="QString" key="ProjectExplorer.BuildConfiguration.BuildDirectory">/home/devnull/ed/Programme/entwurf/SailfishOS/build-harbour-tvspielfilm-SailfishOS_3_2_0_12_armv7hl_in_Sailfish_OS_Build_Engine-Debug</value>
@@ -402,7 +402,7 @@
      <value type="int">14</value>
     </valuelist>
     <value type="QString" key="MerRunConfiguration.QmlLiveBenchWorkspace">/home/devnull/ed/Programme/entwurf/SailfishOS/harbour-tvspielfilm</value>
-    <value type="bool" key="MerRunConfiguration.QmlLiveEnabled">false</value>
+    <value type="bool" key="MerRunConfiguration.QmlLiveEnabled">true</value>
     <value type="int" key="MerRunConfiguration.QmlLiveIpcPort">-1</value>
     <value type="int" key="MerRunConfiguration.QmlLiveOptions">3</value>
     <value type="QString" key="MerRunConfiguration.QmlLiveTargetWorkspace"></value>
@@ -762,25 +762,22 @@
      <value type="int">14</value>
     </valuelist>
     <value type="QString" key="MerRunConfiguration.QmlLiveBenchWorkspace">/home/devnull/ed/Programme/entwurf/SailfishOS/harbour-tvspielfilm</value>
-    <value type="bool" key="MerRunConfiguration.QmlLiveEnabled">false</value>
+    <value type="bool" key="MerRunConfiguration.QmlLiveEnabled">true</value>
     <value type="int" key="MerRunConfiguration.QmlLiveIpcPort">-1</value>
     <value type="int" key="MerRunConfiguration.QmlLiveOptions">3</value>
     <value type="QString" key="MerRunConfiguration.QmlLiveTargetWorkspace"></value>
-    <value type="int" key="PE.EnvironmentAspect.Base">2</value>
+    <value type="int" key="PE.EnvironmentAspect.Base">1</value>
     <valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
-    <value type="QString" key="ProjectExplorer.CustomExecutableRunConfiguration.Executable"></value>
-    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Benutzerdefinierte ausführbare Datei</value>
-    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName"></value>
-    <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.CustomExecutableRunConfiguration</value>
-    <value type="QString" key="RunConfiguration.Arguments"></value>
+    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName"></value>
+    <value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">QML Scene (auf Sailfish OS Emulator 3.2.0.12)</value>
+    <value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QmakeProjectManager.MerQmlRunConfiguration</value>
+    <value type="int" key="RemoteLinux.EnvironmentAspect.Version">1</value>
     <value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
     <value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
     <value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
     <value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
     <value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
     <value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
-    <value type="QString" key="RunConfiguration.WorkingDirectory"></value>
-    <value type="QString" key="RunConfiguration.WorkingDirectory.default"></value>
    </valuemap>
    <value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
   </valuemap>

BIN
icons/108x108/harbour-tvspielfilm.png


BIN
icons/128x128/harbour-tvspielfilm.png


BIN
icons/172x172/harbour-tvspielfilm.png


BIN
icons/86x86/harbour-tvspielfilm.png


+ 30 - 12
qml/cover/CoverPage.qml

@@ -2,21 +2,39 @@ import QtQuick 2.0
 import Sailfish.Silica 1.0
 
 CoverBackground {
+    Image {
+        id: coverimg
+        source: Qt.resolvedUrl("harbour-tvspielfilm.png")
+
+        anchors.horizontalCenter: parent.horizontalCenter
+
+        //aspect ration einhalten
+        fillMode: Image.PreserveAspectFit
+
+        anchors.top: parent.top
+        anchors.topMargin: Theme.paddingLarge
+        smooth: true
+    }
+
     Label {
-        id: label
-        anchors.centerIn: parent
-        text: qsTr("My Cover")
+        id: coverlbl
+        anchors.horizontalCenter: parent.horizontalCenter
+        anchors.top: coverimg.bottom
+        anchors.topMargin: Theme.paddingLarge
+        font.pixelSize: Theme.fontSizeSmall
+        color: Theme.primaryColor
+        text: qsTr("TVSpielfilm\n(unofficial)")
     }
 
-    CoverActionList {
-        id: coverAction
+//    CoverActionList {
+//        id: coverAction
 
-        CoverAction {
-            iconSource: "image://theme/icon-cover-next"
-        }
+//        CoverAction {
+//            iconSource: "image://theme/icon-cover-next"
+//        }
 
-        CoverAction {
-            iconSource: "image://theme/icon-cover-pause"
-        }
-    }
+//        CoverAction {
+//            iconSource: "image://theme/icon-cover-pause"
+//        }
+//    }
 }

+ 102 - 20
qml/pages/FirstPage.qml

@@ -1,5 +1,6 @@
 import QtQuick 2.0
 import Sailfish.Silica 1.0
+import QtWebKit 3.0
 
 Page {
     id: page
@@ -8,36 +9,117 @@ Page {
     allowedOrientations: Orientation.All
 
     // To enable PullDownMenu, place our content in a SilicaFlickable
-    SilicaFlickable {
+    SilicaWebView {
+
+        id: webView
         anchors.fill: parent
+        quickScroll: true
+        quickScrollAnimating: true
+        _cookiesEnabled: true
+        antialiasing: true
+
+
+        VerticalScrollDecorator {}
 
         // PullDownMenu and PushUpMenu must be declared in SilicaFlickable, SilicaListView or SilicaGridView
         PullDownMenu {
             MenuItem {
-                text: qsTr("Show Page 2")
-                onClicked: pageStack.push(Qt.resolvedUrl("SecondPage.qml"))
+                text: qsTr("Sender")
+                onClicked: webView.url = "https://m.tvspielfilm.de/sender/"
             }
-        }
 
-        // Tell SilicaFlickable the height of its content.
-        contentHeight: column.height
+            MenuItem {
+                text: qsTr("Sender nach Alphabet")
+                onClicked: webView.url = "https://m.tvspielfilm.de/sender-abc/"
+            }
 
-        // Place our content in a Column.  The PageHeader is always placed at the top
-        // of the page, followed by our content.
-        Column {
-            id: column
+            MenuItem {
+                text: qsTr("Meine Sender")
+                onClicked: webView.url = "https://m.tvspielfilm.de/meine-sender/"
+            }
 
-            width: page.width
-            spacing: Theme.paddingLarge
-            PageHeader {
-                title: qsTr("UI Template")
+            MenuItem {
+                text: qsTr("jetzt im TV")
+                onClicked: webView.url = "https://m.tvspielfilm.de/tv-programm/"
             }
-            Label {
-                x: Theme.horizontalPageMargin
-                text: qsTr("Hello Sailors")
-                color: Theme.secondaryHighlightColor
-                font.pixelSize: Theme.fontSizeExtraLarge
+
+            MenuItem {
+                text: qsTr("20:15 im TV")
+                onClicked: webView.url = "https://m.tvspielfilm.de/tv-programm/sendungen/abends.html"
+            }
+
+            MenuItem {
+                text: qsTr("22:00 im TV")
+                onClicked: webView.url = "https://m.tvspielfilm.de/tv-programm/sendungen/fernsehprogramm-nachts.html"
+            }
+
+            MenuItem {
+                text: qsTr("Project page")
+                onClicked: webView.url = "https://wiki.siningsoft.de/doku.php?id=sailfishos:projects:tvspielfilm"
             }
         }
-    }
+
+        //header: navarea
+        anchors {
+                     top: parent.top
+                     left: parent.left
+                     right: parent.right
+                     bottom: navarea.top
+                 }
+        url: "https://m.tvspielfilm.de"
+
+        }
+
+    Rectangle {
+        id: navarea
+        height: Theme.iconSizeLarge
+        width: parent.width
+        antialiasing: true
+        color: Theme.secondaryColor
+        opacity: 100
+        anchors.top: webView.bottom
+
+
+        IconButton
+        {
+            id: navback
+            icon.source: "image://theme/icon-m-back?" + (pressed
+                                                    ? Theme.highlightColor
+                                                    : Theme.primaryColor)
+            onClicked: webView.goBack()
+
+        }
+
+        IconButton
+        {
+            id: navhome
+            icon.source: Qt.resolvedUrl("fallbackFavIcon.png")
+            anchors.left: navback.right
+            // wie kommen wir zurück auf die hauptseite?
+            onClicked: webView.loadHtml(webView.url)
+
+        }
+
+        IconButton
+        {
+            id: navforward
+            icon.source: "image://theme/icon-m-forward?" + (pressed
+                                                    ? Theme.highlightColor
+                                                    : Theme.primaryColor)
+
+            anchors.left: navhome.right
+            onClicked: webView.goForward()
+
+        }
+
+        Label
+        {
+             id: navlabel
+             text: webView.title
+             anchors.left: navforward.right
+
+        }
+
+
+     }
 }

+ 4 - 3
rpm/harbour-tvspielfilm.yaml

@@ -5,15 +5,16 @@ 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
 Group: Qt/Qt
-URL: http://example.org/
+URL: https://wiki.siningsoft.de/doku.php?id=sailfishos:projects:tvspielfilm
 BuildArch: noarch
-License: LICENSE
+License: GPL
 # This must be generated before uploading a package to a remote build service.
 # Usually this line does not need to be modified.
 Sources:
 - '%{name}-%{version}.tar.bz2'
 Description: |
-  Short description of my Sailfish OS Application
+  This is a simple webKit application to quickly access TVSpielfilm website
+  for an up to date TV program in germany.
 Configure: none
 Builder: qmake5
 

+ 22 - 16
translations/harbour-tvspielfilm-de.ts

@@ -1,37 +1,43 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE TS>
-<TS version="2.0">
+<TS version="2.1">
 <context>
     <name>CoverPage</name>
     <message>
-        <source>My Cover</source>
-        <translation>Mein Cover</translation>
+        <source>TVSpielfilm
+(unofficial)</source>
+        <translation type="unfinished"></translation>
     </message>
 </context>
 <context>
     <name>FirstPage</name>
     <message>
-        <source>Show Page 2</source>
-        <translation>Zur Seite 2</translation>
+        <source>Project page</source>
+        <translation type="unfinished"></translation>
     </message>
     <message>
-        <source>UI Template</source>
-        <translation>UI-Vorlage</translation>
+        <source>Sender</source>
+        <translation type="unfinished"></translation>
     </message>
     <message>
-        <source>Hello Sailors</source>
-        <translation>Hallo Matrosen</translation>
+        <source>Sender nach Alphabet</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>Meine Sender</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>jetzt im TV</source>
+        <translation type="unfinished"></translation>
     </message>
-</context>
-<context>
-    <name>SecondPage</name>
     <message>
-        <source>Nested Page</source>
-        <translation>Unterseite</translation>
+        <source>20:15 im TV</source>
+        <translation type="unfinished"></translation>
     </message>
     <message>
-        <source>Item</source>
-        <translation>Element</translation>
+        <source>22:00 im TV</source>
+        <translation type="unfinished"></translation>
     </message>
 </context>
 </TS>

+ 16 - 10
translations/harbour-tvspielfilm.ts

@@ -1,36 +1,42 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE TS>
-<TS version="2.0">
+<TS version="2.1">
 <context>
     <name>CoverPage</name>
     <message>
-        <source>My Cover</source>
+        <source>TVSpielfilm
+(unofficial)</source>
         <translation type="unfinished"></translation>
     </message>
 </context>
 <context>
     <name>FirstPage</name>
     <message>
-        <source>Show Page 2</source>
+        <source>Project page</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <source>UI Template</source>
+        <source>Sender</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <source>Hello Sailors</source>
+        <source>Sender nach Alphabet</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>Meine Sender</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>jetzt im TV</source>
         <translation type="unfinished"></translation>
     </message>
-</context>
-<context>
-    <name>SecondPage</name>
     <message>
-        <source>Nested Page</source>
+        <source>20:15 im TV</source>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <source>Item</source>
+        <source>22:00 im TV</source>
         <translation type="unfinished"></translation>
     </message>
 </context>