[sailfish] Mark as read in Pull-down menu
This commit is contained in:
parent
82eabb7415
commit
c23035453d
20 changed files with 507 additions and 133 deletions
BIN
binary/harbour-kaktus-1.1.0-2.armv7hl.rpm
Normal file
BIN
binary/harbour-kaktus-1.1.0-2.armv7hl.rpm
Normal file
Binary file not shown.
|
|
@ -132,22 +132,22 @@
|
|||
<context>
|
||||
<name>EntryDelegate</name>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="260"/>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="249"/>
|
||||
<source>Unsave</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="260"/>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="249"/>
|
||||
<source>Save</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="270"/>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="259"/>
|
||||
<source>Mark as unread</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="270"/>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="259"/>
|
||||
<source>Mark as read</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
|
@ -156,21 +156,21 @@
|
|||
<name>EntryPage</name>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/EntryPage.qml" line="83"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="78"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="100"/>
|
||||
<location filename="../qml/symbian/EntryPage.qml" line="78"/>
|
||||
<source>Please wait until Sync finishes</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/EntryPage.qml" line="91"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="86"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="108"/>
|
||||
<location filename="../qml/symbian/EntryPage.qml" line="86"/>
|
||||
<source>Offline version not available</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/EntryPage.qml" line="99"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="94"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="116"/>
|
||||
<location filename="../qml/symbian/EntryPage.qml" line="94"/>
|
||||
<source>Network connection is unavailable
|
||||
Switching to Offline mode</source>
|
||||
|
|
@ -178,7 +178,7 @@ Switching to Offline mode</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/EntryPage.qml" line="103"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="98"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="120"/>
|
||||
<location filename="../qml/symbian/EntryPage.qml" line="98"/>
|
||||
<source>Network connection is unavailable</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
|
@ -209,14 +209,14 @@ Switching to Offline mode</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/EntryPage.qml" line="162"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="122"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="144"/>
|
||||
<location filename="../qml/symbian/EntryPage.qml" line="122"/>
|
||||
<source>No unread items</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/EntryPage.qml" line="162"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="122"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="144"/>
|
||||
<location filename="../qml/symbian/EntryPage.qml" line="122"/>
|
||||
<source>No items</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
|
@ -239,21 +239,21 @@ Switching to Offline mode</source>
|
|||
<name>FeedPage</name>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/FeedPage.qml" line="147"/>
|
||||
<location filename="../qml/sailfish/FeedPage.qml" line="134"/>
|
||||
<location filename="../qml/sailfish/FeedPage.qml" line="155"/>
|
||||
<location filename="../qml/symbian/FeedPage.qml" line="110"/>
|
||||
<source>Mark all as read</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/FeedPage.qml" line="156"/>
|
||||
<location filename="../qml/sailfish/FeedPage.qml" line="143"/>
|
||||
<location filename="../qml/sailfish/FeedPage.qml" line="164"/>
|
||||
<location filename="../qml/symbian/FeedPage.qml" line="119"/>
|
||||
<source>Mark all as unread</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/FeedPage.qml" line="128"/>
|
||||
<location filename="../qml/sailfish/FeedPage.qml" line="157"/>
|
||||
<location filename="../qml/sailfish/FeedPage.qml" line="178"/>
|
||||
<location filename="../qml/symbian/FeedPage.qml" line="91"/>
|
||||
<source>No feeds</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
|
@ -262,27 +262,27 @@ Switching to Offline mode</source>
|
|||
<context>
|
||||
<name>MainMenu</name>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="28"/>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="27"/>
|
||||
<source>About</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="36"/>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="35"/>
|
||||
<source>Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="44"/>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="43"/>
|
||||
<source>Sync</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="54"/>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="53"/>
|
||||
<source>Last sync: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="56"/>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="55"/>
|
||||
<source>Not yet synced</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
|
@ -310,6 +310,44 @@ Network connection is unavailable</source>
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>PageMenu</name>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/PageMenu.qml" line="34"/>
|
||||
<source>About</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/PageMenu.qml" line="42"/>
|
||||
<source>Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/PageMenu.qml" line="50"/>
|
||||
<source>Sync</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/PageMenu.qml" line="57"/>
|
||||
<source>Mark all as read</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/PageMenu.qml" line="64"/>
|
||||
<source>Mark all as unread</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/PageMenu.qml" line="74"/>
|
||||
<source>Last sync: %1</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/PageMenu.qml" line="76"/>
|
||||
<source>Not yet synced</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>PullBar</name>
|
||||
<message>
|
||||
|
|
@ -590,27 +628,27 @@ Network connection is unavailable</source>
|
|||
<context>
|
||||
<name>TabPage</name>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="54"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="75"/>
|
||||
<source>Tabs</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/TabPage.qml" line="158"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="207"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="228"/>
|
||||
<location filename="../qml/symbian/TabPage.qml" line="123"/>
|
||||
<source>Mark all as read</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/TabPage.qml" line="166"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="215"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="236"/>
|
||||
<location filename="../qml/symbian/TabPage.qml" line="131"/>
|
||||
<source>Mark all as unread</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/TabPage.qml" line="178"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="229"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="250"/>
|
||||
<location filename="../qml/symbian/TabPage.qml" line="143"/>
|
||||
<source>No tabs</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
|
@ -622,13 +660,13 @@ Network connection is unavailable</source>
|
|||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="236"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="257"/>
|
||||
<source>Pull down to do first Sync</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/TabPage.qml" line="179"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="236"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="257"/>
|
||||
<location filename="../qml/symbian/TabPage.qml" line="144"/>
|
||||
<source>Wait until Sync finish</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
|
@ -729,31 +767,31 @@ Network connection is unavailable</source>
|
|||
<name>WebPreviewPage</name>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/WebPreviewPage.qml" line="104"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="84"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="87"/>
|
||||
<location filename="../qml/symbian/WebPreviewPage.qml" line="98"/>
|
||||
<source>Loading page content...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="90"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="93"/>
|
||||
<source>Failed to load item from local cache :-(</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="92"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="95"/>
|
||||
<source>Failed to load page content :-(</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/WebPreviewPage.qml" line="56"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="143"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="146"/>
|
||||
<location filename="../qml/symbian/WebPreviewPage.qml" line="54"/>
|
||||
<source>Launching an external browser...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/WebPreviewPage.qml" line="65"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="152"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="155"/>
|
||||
<location filename="../qml/symbian/WebPreviewPage.qml" line="63"/>
|
||||
<source>Cannot switch to Online mode
|
||||
Network connection is unavailable</source>
|
||||
|
|
@ -761,7 +799,7 @@ Network connection is unavailable</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/WebPreviewPage.qml" line="70"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="157"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="160"/>
|
||||
<location filename="../qml/symbian/WebPreviewPage.qml" line="68"/>
|
||||
<source>Offline version not available</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
|
@ -771,35 +809,35 @@ Network connection is unavailable</source>
|
|||
<name>main</name>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="123"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="115"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="114"/>
|
||||
<location filename="../qml/symbian/main.qml" line="120"/>
|
||||
<source>An unknown error occurred! :-(</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="83"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="75"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="74"/>
|
||||
<location filename="../qml/symbian/main.qml" line="80"/>
|
||||
<source>%1 more items left...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="51"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="45"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="44"/>
|
||||
<location filename="../qml/symbian/main.qml" line="48"/>
|
||||
<source>Dashboard changed!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="85"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="77"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="76"/>
|
||||
<location filename="../qml/symbian/main.qml" line="82"/>
|
||||
<source>All done!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="90"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="82"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="81"/>
|
||||
<location filename="../qml/symbian/main.qml" line="87"/>
|
||||
<source>Download failed
|
||||
Network connection is unavailable</source>
|
||||
|
|
@ -807,7 +845,7 @@ Network connection is unavailable</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="107"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="99"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="98"/>
|
||||
<location filename="../qml/symbian/main.qml" line="104"/>
|
||||
<source>Sync failed
|
||||
Network connection is unavailable</source>
|
||||
|
|
@ -816,8 +854,8 @@ Network connection is unavailable</source>
|
|||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="118"/>
|
||||
<location filename="../qml/harmattan/main.qml" line="128"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="110"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="120"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="109"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="119"/>
|
||||
<location filename="../qml/symbian/main.qml" line="115"/>
|
||||
<location filename="../qml/symbian/main.qml" line="125"/>
|
||||
<source>User & Password do not match!</source>
|
||||
|
|
@ -825,28 +863,28 @@ Network connection is unavailable</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="132"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="124"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="123"/>
|
||||
<location filename="../qml/symbian/main.qml" line="129"/>
|
||||
<source>Successfully Signed In!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="137"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="128"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="127"/>
|
||||
<location filename="../qml/symbian/main.qml" line="134"/>
|
||||
<source>Receiving data... </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="150"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="139"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="138"/>
|
||||
<location filename="../qml/symbian/main.qml" line="147"/>
|
||||
<source>Initiating...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="154"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="143"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="142"/>
|
||||
<location filename="../qml/symbian/main.qml" line="151"/>
|
||||
<source>Updating...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
|
@ -873,14 +911,14 @@ Network connection is unavailable</source>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="143"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="133"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="132"/>
|
||||
<location filename="../qml/symbian/main.qml" line="140"/>
|
||||
<source>Sending data to Netvibes...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="158"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="147"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="146"/>
|
||||
<location filename="../qml/symbian/main.qml" line="155"/>
|
||||
<source>Signing in...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -187,22 +187,22 @@ przeczytane</translation>
|
|||
<translation type="obsolete">Dodaj do ulubionych</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="260"/>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="249"/>
|
||||
<source>Unsave</source>
|
||||
<translation>Usuń z zapisanych</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="260"/>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="249"/>
|
||||
<source>Save</source>
|
||||
<translation>Zapisz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="270"/>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="259"/>
|
||||
<source>Mark as unread</source>
|
||||
<translation>Oznacz jako nieprzeczytane</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="270"/>
|
||||
<location filename="../qml/sailfish/EntryDelegate.qml" line="259"/>
|
||||
<source>Mark as read</source>
|
||||
<translation>Oznacz jako przeczytane</translation>
|
||||
</message>
|
||||
|
|
@ -221,21 +221,21 @@ Został włączony tryb Offline!</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/EntryPage.qml" line="83"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="78"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="100"/>
|
||||
<location filename="../qml/symbian/EntryPage.qml" line="78"/>
|
||||
<source>Please wait until Sync finishes</source>
|
||||
<translation>Zaczekaj do zakończenia aktualizacji</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/EntryPage.qml" line="91"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="86"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="108"/>
|
||||
<location filename="../qml/symbian/EntryPage.qml" line="86"/>
|
||||
<source>Offline version not available</source>
|
||||
<translation>Brak kopii Offline</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/EntryPage.qml" line="99"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="94"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="116"/>
|
||||
<location filename="../qml/symbian/EntryPage.qml" line="94"/>
|
||||
<source>Network connection is unavailable
|
||||
Switching to Offline mode</source>
|
||||
|
|
@ -244,7 +244,7 @@ Został włączony tryb Offline</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/EntryPage.qml" line="103"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="98"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="120"/>
|
||||
<location filename="../qml/symbian/EntryPage.qml" line="98"/>
|
||||
<source>Network connection is unavailable</source>
|
||||
<translation>Brak połączenia sieciowego</translation>
|
||||
|
|
@ -275,14 +275,14 @@ Został włączony tryb Offline</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/EntryPage.qml" line="162"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="122"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="144"/>
|
||||
<location filename="../qml/symbian/EntryPage.qml" line="122"/>
|
||||
<source>No unread items</source>
|
||||
<translation>Brak nieprzeczytanych artykułów</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/EntryPage.qml" line="162"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="122"/>
|
||||
<location filename="../qml/sailfish/EntryPage.qml" line="144"/>
|
||||
<location filename="../qml/symbian/EntryPage.qml" line="122"/>
|
||||
<source>No items</source>
|
||||
<translation>Brak artykułów</translation>
|
||||
|
|
@ -317,14 +317,14 @@ Został włączony tryb Offline</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/FeedPage.qml" line="147"/>
|
||||
<location filename="../qml/sailfish/FeedPage.qml" line="134"/>
|
||||
<location filename="../qml/sailfish/FeedPage.qml" line="155"/>
|
||||
<location filename="../qml/symbian/FeedPage.qml" line="110"/>
|
||||
<source>Mark all as read</source>
|
||||
<translation>Oznacz jako przeczytane</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/FeedPage.qml" line="156"/>
|
||||
<location filename="../qml/sailfish/FeedPage.qml" line="143"/>
|
||||
<location filename="../qml/sailfish/FeedPage.qml" line="164"/>
|
||||
<location filename="../qml/symbian/FeedPage.qml" line="119"/>
|
||||
<source>Mark all as unread</source>
|
||||
<translation>Oznacz jako nieprzeczytane</translation>
|
||||
|
|
@ -359,7 +359,7 @@ Został włączony tryb Offline</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/FeedPage.qml" line="128"/>
|
||||
<location filename="../qml/sailfish/FeedPage.qml" line="157"/>
|
||||
<location filename="../qml/sailfish/FeedPage.qml" line="178"/>
|
||||
<location filename="../qml/symbian/FeedPage.qml" line="91"/>
|
||||
<source>No feeds</source>
|
||||
<translation>Brak kanałów</translation>
|
||||
|
|
@ -368,27 +368,27 @@ Został włączony tryb Offline</translation>
|
|||
<context>
|
||||
<name>MainMenu</name>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="28"/>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="27"/>
|
||||
<source>About</source>
|
||||
<translation>O Programie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="36"/>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="35"/>
|
||||
<source>Settings</source>
|
||||
<translation>Ustawienia</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="44"/>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="43"/>
|
||||
<source>Sync</source>
|
||||
<translation>Aktualizuj</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="54"/>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="53"/>
|
||||
<source>Last sync: %1</source>
|
||||
<translation>Ostatnia aktualizacja: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="56"/>
|
||||
<location filename="../qml/sailfish/MainMenu.qml" line="55"/>
|
||||
<source>Not yet synced</source>
|
||||
<translation>Jeszcze nie aktualizowano</translation>
|
||||
</message>
|
||||
|
|
@ -437,6 +437,44 @@ Brak połączenia sieciowego</translation>
|
|||
<translation type="obsolete">Niezalogowany</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>PageMenu</name>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/PageMenu.qml" line="34"/>
|
||||
<source>About</source>
|
||||
<translation>O Programie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/PageMenu.qml" line="42"/>
|
||||
<source>Settings</source>
|
||||
<translation>Ustawienia</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/PageMenu.qml" line="50"/>
|
||||
<source>Sync</source>
|
||||
<translation>Aktualizuj</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/PageMenu.qml" line="57"/>
|
||||
<source>Mark all as read</source>
|
||||
<translation>Oznacz jako przeczytane</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/PageMenu.qml" line="64"/>
|
||||
<source>Mark all as unread</source>
|
||||
<translation>Oznacz jako nieprzeczytane</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/PageMenu.qml" line="74"/>
|
||||
<source>Last sync: %1</source>
|
||||
<translation>Ostatnia aktualizacja: %1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/PageMenu.qml" line="76"/>
|
||||
<source>Not yet synced</source>
|
||||
<translation>Jeszcze nie aktualizowano</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>PullBar</name>
|
||||
<message>
|
||||
|
|
@ -757,27 +795,27 @@ Brak połączenia sieciowego</translation>
|
|||
<context>
|
||||
<name>TabPage</name>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="54"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="75"/>
|
||||
<source>Tabs</source>
|
||||
<translation>Zakładki</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/TabPage.qml" line="158"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="207"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="228"/>
|
||||
<location filename="../qml/symbian/TabPage.qml" line="123"/>
|
||||
<source>Mark all as read</source>
|
||||
<translation>Oznacz jako przeczytane</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/TabPage.qml" line="166"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="215"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="236"/>
|
||||
<location filename="../qml/symbian/TabPage.qml" line="131"/>
|
||||
<source>Mark all as unread</source>
|
||||
<translation>Oznacz jako nieprzeczytane</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/TabPage.qml" line="178"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="229"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="250"/>
|
||||
<location filename="../qml/symbian/TabPage.qml" line="143"/>
|
||||
<source>No tabs</source>
|
||||
<translation>Brak zakładek</translation>
|
||||
|
|
@ -789,13 +827,13 @@ Brak połączenia sieciowego</translation>
|
|||
<translation>Wykonaj pierwszą aktualizacje kanałów</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="236"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="257"/>
|
||||
<source>Pull down to do first Sync</source>
|
||||
<translation>Wykonaj pierwszą aktualizacje kanałów</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/TabPage.qml" line="179"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="236"/>
|
||||
<location filename="../qml/sailfish/TabPage.qml" line="257"/>
|
||||
<location filename="../qml/symbian/TabPage.qml" line="144"/>
|
||||
<source>Wait until Sync finish</source>
|
||||
<translation>Zaczekaj do zakończenia aktualizacji</translation>
|
||||
|
|
@ -896,7 +934,7 @@ Brak połączenia sieciowego</translation>
|
|||
<name>WebPreviewPage</name>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/WebPreviewPage.qml" line="104"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="84"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="87"/>
|
||||
<location filename="../qml/symbian/WebPreviewPage.qml" line="98"/>
|
||||
<source>Loading page content...</source>
|
||||
<translation>Wczytywanie artykułu...</translation>
|
||||
|
|
@ -906,25 +944,25 @@ Brak połączenia sieciowego</translation>
|
|||
<translation type="obsolete">Nie udało się pobrać artukułu z lokalnej kopii :-(</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="90"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="93"/>
|
||||
<source>Failed to load item from local cache :-(</source>
|
||||
<translation>Nie udało się pobrać artykułu z lokalnej kopii :-(</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="92"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="95"/>
|
||||
<source>Failed to load page content :-(</source>
|
||||
<translation>Nie udało się pobrać treści :-(</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/WebPreviewPage.qml" line="56"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="143"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="146"/>
|
||||
<location filename="../qml/symbian/WebPreviewPage.qml" line="54"/>
|
||||
<source>Launching an external browser...</source>
|
||||
<translation>Uruchamianie zewnętrznej przeglądarki...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/WebPreviewPage.qml" line="65"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="152"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="155"/>
|
||||
<location filename="../qml/symbian/WebPreviewPage.qml" line="63"/>
|
||||
<source>Cannot switch to Online mode
|
||||
Network connection is unavailable</source>
|
||||
|
|
@ -933,7 +971,7 @@ Brak połączenia sieciowego</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/WebPreviewPage.qml" line="70"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="157"/>
|
||||
<location filename="../qml/sailfish/WebPreviewPage.qml" line="160"/>
|
||||
<location filename="../qml/symbian/WebPreviewPage.qml" line="68"/>
|
||||
<source>Offline version not available</source>
|
||||
<translation>Brak kopii Offline</translation>
|
||||
|
|
@ -1011,28 +1049,28 @@ Brak połączenia sieciowego</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="123"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="115"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="114"/>
|
||||
<location filename="../qml/symbian/main.qml" line="120"/>
|
||||
<source>An unknown error occurred! :-(</source>
|
||||
<translation>Wystąpił nieznany błąd! :-(</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="83"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="75"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="74"/>
|
||||
<location filename="../qml/symbian/main.qml" line="80"/>
|
||||
<source>%1 more items left...</source>
|
||||
<translation>Pozostało do pobrania: %1... </translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="51"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="45"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="44"/>
|
||||
<location filename="../qml/symbian/main.qml" line="48"/>
|
||||
<source>Dashboard changed!</source>
|
||||
<translation>Zmieniono tablicę!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="85"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="77"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="76"/>
|
||||
<location filename="../qml/symbian/main.qml" line="82"/>
|
||||
<source>All done!</source>
|
||||
<translation>Gotowe!</translation>
|
||||
|
|
@ -1047,7 +1085,7 @@ Brak połączenia sieciowego</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="90"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="82"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="81"/>
|
||||
<location filename="../qml/symbian/main.qml" line="87"/>
|
||||
<source>Download failed
|
||||
Network connection is unavailable</source>
|
||||
|
|
@ -1056,7 +1094,7 @@ Brak połączenia sieciowego</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="107"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="99"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="98"/>
|
||||
<location filename="../qml/symbian/main.qml" line="104"/>
|
||||
<source>Sync failed
|
||||
Network connection is unavailable</source>
|
||||
|
|
@ -1066,8 +1104,8 @@ Brak połączenia sieciowego</translation>
|
|||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="118"/>
|
||||
<location filename="../qml/harmattan/main.qml" line="128"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="110"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="120"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="109"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="119"/>
|
||||
<location filename="../qml/symbian/main.qml" line="115"/>
|
||||
<location filename="../qml/symbian/main.qml" line="125"/>
|
||||
<source>User & Password do not match!</source>
|
||||
|
|
@ -1075,28 +1113,28 @@ Brak połączenia sieciowego</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="132"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="124"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="123"/>
|
||||
<location filename="../qml/symbian/main.qml" line="129"/>
|
||||
<source>Successfully Signed In!</source>
|
||||
<translation>Zalogowano!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="137"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="128"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="127"/>
|
||||
<location filename="../qml/symbian/main.qml" line="134"/>
|
||||
<source>Receiving data... </source>
|
||||
<translation>Pobieranie danych...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="150"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="139"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="138"/>
|
||||
<location filename="../qml/symbian/main.qml" line="147"/>
|
||||
<source>Initiating...</source>
|
||||
<translation>Pierwsza aktualizacja...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="154"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="143"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="142"/>
|
||||
<location filename="../qml/symbian/main.qml" line="151"/>
|
||||
<source>Updating...</source>
|
||||
<translation>Aktualizacja...</translation>
|
||||
|
|
@ -1123,14 +1161,14 @@ Brak połączenia sieciowego</translation>
|
|||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="143"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="133"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="132"/>
|
||||
<location filename="../qml/symbian/main.qml" line="140"/>
|
||||
<source>Sending data to Netvibes...</source>
|
||||
<translation>Wysyłanie danych do Netvibes...</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../qml/harmattan/main.qml" line="158"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="147"/>
|
||||
<location filename="../qml/sailfish/main.qml" line="146"/>
|
||||
<location filename="../qml/symbian/main.qml" line="155"/>
|
||||
<source>Signing in...</source>
|
||||
<translation>Logowanie...</translation>
|
||||
|
|
|
|||
|
|
@ -20,8 +20,6 @@
|
|||
import QtQuick 2.0
|
||||
import Sailfish.Silica 1.0
|
||||
|
||||
|
||||
|
||||
ListItem {
|
||||
id: root
|
||||
|
||||
|
|
@ -37,7 +35,13 @@ ListItem {
|
|||
property bool cached: false
|
||||
property bool expanded: false
|
||||
property int index
|
||||
property int feedindex
|
||||
|
||||
property bool showMarkedAsRead: true
|
||||
|
||||
signal markedAsRead
|
||||
signal markedAsUnread
|
||||
signal markedReadlater
|
||||
signal umarkedReadlater
|
||||
|
||||
menu: contextMenu
|
||||
contentHeight: item.height + 2 * Theme.paddingMedium
|
||||
|
|
@ -79,21 +83,6 @@ ListItem {
|
|||
}
|
||||
}
|
||||
|
||||
/*BackgroundItem {
|
||||
id: cachedIcon
|
||||
anchors.right: background.right; anchors.bottom: background.bottom
|
||||
height: Theme.iconSizeSmall+2*Theme.paddingMedium
|
||||
width: height
|
||||
visible: cached
|
||||
|
||||
Image {
|
||||
anchors.centerIn: parent;
|
||||
width: Theme.iconSizeSmall
|
||||
height: Theme.iconSizeSmall
|
||||
source: "image://theme/icon-m-download"
|
||||
}
|
||||
}*/
|
||||
|
||||
BackgroundItem {
|
||||
id: expander
|
||||
anchors.right: background.right; anchors.bottom: background.bottom
|
||||
|
|
@ -133,6 +122,7 @@ ListItem {
|
|||
width: parent.width-star.width+Theme.paddingLarge
|
||||
|
||||
// Title
|
||||
|
||||
Label {
|
||||
anchors.left: parent.left; anchors.right: parent.right;
|
||||
anchors.leftMargin: Theme.paddingLarge; anchors.rightMargin: Theme.paddingLarge
|
||||
|
|
@ -158,7 +148,9 @@ ListItem {
|
|||
id: entryImage
|
||||
anchors.left: parent.left;
|
||||
anchors.leftMargin: Theme.paddingLarge;
|
||||
visible: source!="" && status!=Image.Error && status!=Image.Null && settings.showTabIcons
|
||||
visible: source!="" && status!=Image.Error &&
|
||||
status!=Image.Null && settings.showTabIcons &&
|
||||
((root.read==0 && root.readlater==0)||root.readlater>0)
|
||||
fillMode: Image.PreserveAspectFit
|
||||
width: sourceSize.width>root.width-2*Theme.paddingLarge ? root.width-2*Theme.paddingLarge : sourceSize.width
|
||||
}
|
||||
|
|
@ -268,17 +260,16 @@ ListItem {
|
|||
}
|
||||
MenuItem {
|
||||
text: read ? qsTr("Mark as unread") : qsTr("Mark as read")
|
||||
visible: enabled
|
||||
enabled: root.showMarkedAsRead
|
||||
onClicked: {
|
||||
if (read) {
|
||||
entryModel.setData(index, "read", 0);
|
||||
feedModel.incrementUnread(feedindex);
|
||||
root.markedAsUnread();
|
||||
} else {
|
||||
entryModel.setData(index, "read", 1);
|
||||
feedModel.decrementUnread(feedindex);
|
||||
root.markedAsRead();
|
||||
if (lblMoreDetails.visible)
|
||||
root.expanded = false;
|
||||
}
|
||||
tabModel.updateFlags();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,6 +36,9 @@ Page {
|
|||
|
||||
property string title
|
||||
property int index
|
||||
property int read
|
||||
property int unread
|
||||
property bool readlater
|
||||
|
||||
SilicaListView {
|
||||
id: listView
|
||||
|
|
@ -50,7 +53,29 @@ Page {
|
|||
return isPortrait ? app.height : app.width;
|
||||
}
|
||||
|
||||
MainMenu{}
|
||||
PageMenu {
|
||||
showMarkAsRead: root.readlater ? false : root.unread!=0
|
||||
showMarkAsUnread: false
|
||||
|
||||
onMarkedAsRead: {
|
||||
feedModel.markAllAsRead(root.index);
|
||||
tabModel.updateFlags();
|
||||
entryModel.setAllAsRead();
|
||||
}
|
||||
|
||||
onMarkedAsUnread: {
|
||||
feedModel.markAllAsUnread(root.index);
|
||||
tabModel.updateFlags();
|
||||
entryModel.setAllAsUnread();
|
||||
}
|
||||
|
||||
onActiveChanged: {
|
||||
if (active) {
|
||||
root.read = entryModel.countRead();
|
||||
root.unread = entryModel.countUnread();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
header: PageHeader {
|
||||
title: root.title
|
||||
|
|
@ -67,12 +92,10 @@ Page {
|
|||
readlater: model.readlater
|
||||
index: model.index
|
||||
cached: model.cached
|
||||
feedindex: root.index
|
||||
showMarkedAsRead: !root.readlater
|
||||
|
||||
onClicked: {
|
||||
|
||||
//console.log("image:"+image);
|
||||
|
||||
// Not allowed while Syncing
|
||||
if (dm.busy || fetcher.busy) {
|
||||
notification.show(qsTr("Please wait until Sync finishes"));
|
||||
|
|
@ -115,6 +138,20 @@ Page {
|
|||
"cached" : model.cached
|
||||
});
|
||||
}
|
||||
|
||||
onMarkedAsRead: {
|
||||
entryModel.setData(model.index, "read", 1);
|
||||
if (!readlater)
|
||||
feedModel.decrementUnread(root.index);
|
||||
tabModel.updateFlags();
|
||||
}
|
||||
|
||||
onMarkedAsUnread: {
|
||||
entryModel.setData(model.index, "read", 0);
|
||||
if (!readlater)
|
||||
feedModel.incrementUnread(root.index);
|
||||
tabModel.updateFlags();
|
||||
}
|
||||
}
|
||||
|
||||
ViewPlaceholder {
|
||||
|
|
|
|||
|
|
@ -35,6 +35,9 @@ Page {
|
|||
}
|
||||
|
||||
property string title
|
||||
property int index
|
||||
property int read
|
||||
property int unread
|
||||
|
||||
SilicaListView {
|
||||
id: listView
|
||||
|
|
@ -49,7 +52,27 @@ Page {
|
|||
return isPortrait ? app.height : app.width;
|
||||
}
|
||||
|
||||
MainMenu{}
|
||||
PageMenu {
|
||||
showMarkAsRead: root.unread!=0
|
||||
showMarkAsUnread: false
|
||||
|
||||
onMarkedAsRead: {
|
||||
tabModel.markAsRead(root.index);
|
||||
feedModel.setAllAsRead();
|
||||
}
|
||||
|
||||
onMarkedAsUnread: {
|
||||
tabModel.markAsUnread(root.index);
|
||||
feedModel.setAllAsUnread();
|
||||
}
|
||||
|
||||
onActiveChanged: {
|
||||
if (active) {
|
||||
root.read = feedModel.countRead();
|
||||
root.unread = feedModel.countUnread();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
header: PageHeader {
|
||||
title: root.title
|
||||
|
|
@ -126,7 +149,7 @@ Page {
|
|||
|
||||
onClicked: {
|
||||
utils.setEntryModel(uid);
|
||||
pageStack.push(Qt.resolvedUrl("EntryPage.qml"),{"title": title, "index": model.index});
|
||||
pageStack.push(Qt.resolvedUrl("EntryPage.qml"),{"title": title, "index": model.index, "readlater": false});
|
||||
}
|
||||
|
||||
menu: ContextMenu {
|
||||
|
|
@ -162,5 +185,4 @@ Page {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,6 @@ import QtQuick 2.0
|
|||
import Sailfish.Silica 1.0
|
||||
|
||||
|
||||
|
||||
PullDownMenu {
|
||||
|
||||
MenuItem {
|
||||
|
|
|
|||
84
qml/sailfish/PageMenu.qml
Normal file
84
qml/sailfish/PageMenu.qml
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
/*
|
||||
Copyright (C) 2014 Michal Kosciesza <michal@mkiol.net>
|
||||
|
||||
This file is part of Kaktus.
|
||||
|
||||
Kaktus is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Kaktus is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Kaktus. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
import Sailfish.Silica 1.0
|
||||
|
||||
|
||||
PullDownMenu {
|
||||
id: root
|
||||
|
||||
property bool showMarkAsRead: true
|
||||
property bool showMarkAsUnread: true
|
||||
|
||||
signal markedAsRead
|
||||
signal markedAsUnread
|
||||
|
||||
MenuItem {
|
||||
text: qsTr("About")
|
||||
|
||||
onClicked: {
|
||||
pageStack.push(Qt.resolvedUrl("AboutPage.qml"));
|
||||
}
|
||||
}
|
||||
|
||||
MenuItem {
|
||||
text: qsTr("Settings")
|
||||
|
||||
onClicked: {
|
||||
pageStack.push(Qt.resolvedUrl("SettingsPage.qml"));
|
||||
}
|
||||
}
|
||||
|
||||
MenuItem {
|
||||
text: qsTr("Sync")
|
||||
|
||||
onClicked: fetcher.update()
|
||||
enabled: !fetcher.busy && !dm.busy
|
||||
}
|
||||
|
||||
MenuItem {
|
||||
text: qsTr("Mark all as read")
|
||||
enabled: root.showMarkAsRead
|
||||
visible: enabled
|
||||
onClicked: markedAsRead()
|
||||
}
|
||||
|
||||
MenuItem {
|
||||
text: qsTr("Mark all as unread")
|
||||
enabled: root.showMarkAsUnread
|
||||
visible: enabled
|
||||
onClicked: markedAsUnread()
|
||||
}
|
||||
|
||||
onActiveChanged: {
|
||||
if (active) {
|
||||
var lastSync = settings.lastUpdateDate;
|
||||
if (lastSync>0)
|
||||
label.text = qsTr("Last sync: %1").arg(utils.getHumanFriendlyTimeString(lastSync));
|
||||
else
|
||||
label.text = qsTr("Not yet synced");
|
||||
}
|
||||
}
|
||||
|
||||
MenuLabel {
|
||||
id: label
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -34,6 +34,9 @@ Page {
|
|||
return Orientation.Landscape | Orientation.Portrait;
|
||||
}
|
||||
|
||||
property int read
|
||||
property int unread
|
||||
|
||||
SilicaListView {
|
||||
id: listView
|
||||
model: tabModel
|
||||
|
|
@ -48,7 +51,26 @@ Page {
|
|||
|
||||
clip:true
|
||||
|
||||
MainMenu{}
|
||||
PageMenu {
|
||||
showMarkAsRead: root.unread!=0
|
||||
showMarkAsUnread: false
|
||||
|
||||
onMarkedAsRead: {
|
||||
tabModel.markAllAsRead();
|
||||
}
|
||||
|
||||
onMarkedAsUnread: {
|
||||
tabModel.markAllAsUnread();
|
||||
}
|
||||
|
||||
onActiveChanged: {
|
||||
if (active) {
|
||||
root.read = tabModel.countRead();
|
||||
root.unread = tabModel.countUnread();
|
||||
//console.log("read: "+root.read+" unread: "+root.unread);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
header: PageHeader {
|
||||
title: qsTr("Tabs")
|
||||
|
|
@ -192,10 +214,10 @@ Page {
|
|||
onClicked: {
|
||||
if (readlaterItem) {
|
||||
utils.setEntryModel(uid);
|
||||
pageStack.push(Qt.resolvedUrl("EntryPage.qml"),{"title": title, "index": model.index});
|
||||
pageStack.push(Qt.resolvedUrl("EntryPage.qml"),{"title": title, "readlater": true});
|
||||
} else {
|
||||
utils.setFeedModel(uid);
|
||||
pageStack.push(Qt.resolvedUrl("FeedPage.qml"),{"title": title});
|
||||
pageStack.push(Qt.resolvedUrl("FeedPage.qml"),{"title": title, "index": model.index});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -208,7 +230,7 @@ Page {
|
|||
enabled: model.unread!=0
|
||||
visible: enabled
|
||||
onClicked: {
|
||||
tabModel.markAllAsRead(model.index);
|
||||
tabModel.markAsRead(model.index);
|
||||
}
|
||||
}
|
||||
MenuItem {
|
||||
|
|
@ -216,7 +238,7 @@ Page {
|
|||
enabled: model.read!=0
|
||||
visible: enabled
|
||||
onClicked: {
|
||||
tabModel.markAllAsUnread(model.index);
|
||||
tabModel.markAsUnread(model.index);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -69,9 +69,12 @@ Page {
|
|||
|
||||
url: {
|
||||
if (settings.offlineMode) {
|
||||
/*console.log(view.width);
|
||||
if (isPortrait)
|
||||
return offlineUrl+"?width=540px";
|
||||
return offlineUrl+"?width=960px";
|
||||
return offlineUrl+"?width=960px";*/
|
||||
if (settings.offlineMode)
|
||||
return offlineUrl+"?width="+view.width+"px"+"&fontsize=24px";
|
||||
}
|
||||
return onlineUrl;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@
|
|||
import QtQuick 2.0
|
||||
import Sailfish.Silica 1.0
|
||||
|
||||
|
||||
ApplicationWindow {
|
||||
id: app
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ Name: harbour-kaktus
|
|||
%{?qtc_builddir:%define _builddir %qtc_builddir}
|
||||
Summary: Kaktus
|
||||
Version: 1.1.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
Group: Qt/Qt
|
||||
License: LICENSE
|
||||
URL: https://github.com/mkiol/kaktus
|
||||
|
|
@ -75,6 +75,9 @@ desktop-file-install --delete-original \
|
|||
# << files
|
||||
|
||||
%changelog
|
||||
* Tue Jul 08 2014 Michal Kosciesza 1.1.0-2
|
||||
- 'Mark as read' in Pull-down menu
|
||||
|
||||
* Tue Jun 17 2014 Michal Kosciesza 1.1.0-0
|
||||
- Thumbnails in items view
|
||||
|
||||
|
|
|
|||
|
|
@ -125,6 +125,47 @@ QObject* EntryModel::get(int i)
|
|||
return (QObject*) this->readRow(i);
|
||||
}*/
|
||||
|
||||
void EntryModel::setAllAsUnread()
|
||||
{
|
||||
int l = this->rowCount();
|
||||
for (int i=0; i<l; ++i) {
|
||||
EntryItem* item = static_cast<EntryItem*>(readRow(i));
|
||||
item->setRead(0);
|
||||
}
|
||||
}
|
||||
|
||||
void EntryModel::setAllAsRead()
|
||||
{
|
||||
int l = this->rowCount();
|
||||
for (int i=0; i<l; ++i) {
|
||||
EntryItem* item = static_cast<EntryItem*>(readRow(i));
|
||||
item->setRead(1);
|
||||
}
|
||||
}
|
||||
|
||||
int EntryModel::countRead()
|
||||
{
|
||||
int read = 0; int l = this->rowCount();
|
||||
for (int i=0; i<l; ++i) {
|
||||
EntryItem* item = static_cast<EntryItem*>(readRow(i));
|
||||
read=read+item->read();
|
||||
}
|
||||
|
||||
return read;
|
||||
}
|
||||
|
||||
int EntryModel::countUnread()
|
||||
{
|
||||
int unread = 0; int l = this->rowCount();
|
||||
for (int i=0; i<l; ++i) {
|
||||
EntryItem* item = static_cast<EntryItem*>(readRow(i));
|
||||
if (item->read() == 0)
|
||||
++unread;
|
||||
}
|
||||
|
||||
return unread;
|
||||
}
|
||||
|
||||
void EntryModel::setData(int row, const QString &fieldName, QVariant newValue)
|
||||
{
|
||||
EntryItem* item = static_cast<EntryItem*>(readRow(row));
|
||||
|
|
|
|||
|
|
@ -105,6 +105,11 @@ public:
|
|||
|
||||
Q_INVOKABLE void setData(int row, const QString &fieldName, QVariant newValue);
|
||||
|
||||
Q_INVOKABLE void setAllAsUnread();
|
||||
Q_INVOKABLE void setAllAsRead();
|
||||
Q_INVOKABLE int countRead();
|
||||
Q_INVOKABLE int countUnread();
|
||||
|
||||
public slots:
|
||||
void init();
|
||||
|
||||
|
|
|
|||
|
|
@ -157,6 +157,53 @@ void FeedModel::markAllAsRead(int row)
|
|||
}
|
||||
}
|
||||
|
||||
int FeedModel::countRead()
|
||||
{
|
||||
int read = 0; int l = this->rowCount();
|
||||
for (int i=0; i<l; ++i) {
|
||||
FeedItem* item = static_cast<FeedItem*>(readRow(i));
|
||||
read=read+item->read();
|
||||
}
|
||||
|
||||
return read;
|
||||
}
|
||||
|
||||
int FeedModel::countUnread()
|
||||
{
|
||||
int unread = 0; int l = this->rowCount();
|
||||
for (int i=0; i<l; ++i) {
|
||||
FeedItem* item = static_cast<FeedItem*>(readRow(i));
|
||||
unread=unread+item->unread();
|
||||
}
|
||||
|
||||
return unread;
|
||||
}
|
||||
|
||||
void FeedModel::setAllAsUnread()
|
||||
{
|
||||
int l = this->rowCount();
|
||||
for (int i=0; i<l; ++i) {
|
||||
FeedItem* item = static_cast<FeedItem*>(readRow(i));
|
||||
int unread = item->unread();
|
||||
int read = item->read();
|
||||
item->setUnread(unread+read);
|
||||
item->setRead(0);
|
||||
}
|
||||
}
|
||||
|
||||
void FeedModel::setAllAsRead()
|
||||
{
|
||||
int l = this->rowCount();
|
||||
for (int i=0; i<l; ++i) {
|
||||
FeedItem* item = static_cast<FeedItem*>(readRow(i));
|
||||
int unread = item->unread();
|
||||
int read = item->read();
|
||||
item->setRead(unread+read);
|
||||
item->setUnread(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
FeedItem::FeedItem(const QString &uid,
|
||||
|
|
@ -244,3 +291,4 @@ void FeedItem::setRead(int value)
|
|||
m_read = value;
|
||||
emit dataChanged();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -109,6 +109,10 @@ public:
|
|||
Q_INVOKABLE void incrementUnread(int row);
|
||||
Q_INVOKABLE void markAllAsUnread(int row);
|
||||
Q_INVOKABLE void markAllAsRead(int row);
|
||||
Q_INVOKABLE void setAllAsUnread();
|
||||
Q_INVOKABLE void setAllAsRead();
|
||||
Q_INVOKABLE int countRead();
|
||||
Q_INVOKABLE int countUnread();
|
||||
|
||||
private:
|
||||
DatabaseManager* _db;
|
||||
|
|
|
|||
|
|
@ -113,7 +113,6 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
|
|||
|
||||
QTranslator *appTranslator = new QTranslator;
|
||||
appTranslator->load(":/i18n/kaktus_" + QLocale::system().name() + ".qm");
|
||||
//appTranslator->load(":/i18n/kaktus_pl.qm");
|
||||
app->installTranslator(appTranslator);
|
||||
|
||||
Settings* settings = Settings::instance();
|
||||
|
|
@ -135,6 +134,7 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
|
|||
view->rootContext()->setContextProperty("settings", settings);
|
||||
|
||||
view->setSource(SailfishApp::pathTo("qml/sailfish/main.qml"));
|
||||
|
||||
view->show();
|
||||
#endif
|
||||
return app->exec();
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ void TabModel::updateFlags()
|
|||
}
|
||||
}
|
||||
|
||||
void TabModel::markAllAsUnread(int row)
|
||||
void TabModel::markAsUnread(int row)
|
||||
{
|
||||
TabItem* item = static_cast<TabItem*>(readRow(row));
|
||||
int unread = item->unread();
|
||||
|
|
@ -96,7 +96,7 @@ void TabModel::markAllAsUnread(int row)
|
|||
}
|
||||
}
|
||||
|
||||
void TabModel::markAllAsRead(int row)
|
||||
void TabModel::markAsRead(int row)
|
||||
{
|
||||
TabItem* item = static_cast<TabItem*>(readRow(row));
|
||||
int unread = item->unread();
|
||||
|
|
@ -123,6 +123,42 @@ void TabModel::markAllAsRead(int row)
|
|||
}
|
||||
}
|
||||
|
||||
void TabModel::markAllAsUnread()
|
||||
{
|
||||
int l = this->rowCount();
|
||||
for (int i=0; i<l; ++i) {
|
||||
markAsUnread(i);
|
||||
}
|
||||
}
|
||||
|
||||
void TabModel::markAllAsRead()
|
||||
{
|
||||
int l = this->rowCount();
|
||||
for (int i=0; i<l; ++i) {
|
||||
markAsRead(i);
|
||||
}
|
||||
}
|
||||
|
||||
int TabModel::countRead()
|
||||
{
|
||||
int read = 0; int l = this->rowCount();
|
||||
for (int i=0; i<l; ++i) {
|
||||
TabItem* item = static_cast<TabItem*>(readRow(i));
|
||||
read=read+item->read();
|
||||
}
|
||||
return read;
|
||||
}
|
||||
|
||||
int TabModel::countUnread()
|
||||
{
|
||||
int unread = 0; int l = this->rowCount();
|
||||
for (int i=0; i<l; ++i) {
|
||||
TabItem* item = static_cast<TabItem*>(readRow(i));
|
||||
unread=unread+item->unread();
|
||||
}
|
||||
return unread;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------
|
||||
|
||||
TabItem::TabItem(const QString &uid,
|
||||
|
|
|
|||
|
|
@ -86,8 +86,12 @@ public:
|
|||
void init();
|
||||
|
||||
Q_INVOKABLE void updateFlags();
|
||||
Q_INVOKABLE void markAllAsUnread(int row);
|
||||
Q_INVOKABLE void markAllAsRead(int row);
|
||||
Q_INVOKABLE void markAsUnread(int row);
|
||||
Q_INVOKABLE void markAsRead(int row);
|
||||
Q_INVOKABLE void markAllAsUnread();
|
||||
Q_INVOKABLE void markAllAsRead();
|
||||
Q_INVOKABLE int countRead();
|
||||
Q_INVOKABLE int countUnread();
|
||||
|
||||
private:
|
||||
DatabaseManager* _db;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue