2 import com.nokia.meego 1.0
6 property string mainArticleId: parent.mainArticleId;
7 property string feedid: parent.feedid
8 property bool zoomEnabled: false
9 property bool vertPanningEnabled: true
10 width: parent.width; height: parent.height;
16 property int webviewFontSize: settings.webviewFontSize
17 orientation: ListView.Horizontal
19 height: updateBarArticles.visible? parent.height-updateBarArticles.height : parent.height;
20 //onCurrentIndexChanged: articleView.positionViewAtIndex(currentIndex, ListView.Contain)
21 highlightRangeMode: ListView.StrictlyEnforceRange; snapMode: ListView.SnapOneItem
23 onMovementStarted: articlePage.vertPanningEnabled=false;
24 onMovementEnded: articlePage.vertPanningEnabled=true;
25 highlightMoveDuration: 300;
27 boundsBehavior: Flickable.DragOverBounds
29 onCurrentIndexChanged: {
30 if (currentIndex >= count-1) {
31 articlesModel.append({articleid: controller.getNextId(feedid, articlesModel.get(currentIndex).articleid)})
37 // articleView.currentIndex = 1
46 value: window.updateProgressValue
47 visible: window.isUpdateInProgress
49 anchors.bottom: parent.bottom
63 width: articleDisplay.width;
64 height: articleView.height;
66 //property string url: (articleView.visible && Math.abs(articleView.currentIndex-index)<2) ? path: "";
67 property string html: controller.getArticle(articlePage.feedid, articleid)
70 zoomEnabled: articlePage.zoomEnabled;
71 property bool vertPanningEnabled: articlePage.vertPanningEnabled;
74 name: 'articleIsRead';
75 when: articleView.currentIndex == index;
80 controller.setEntryRead(articlePage.feedid, articleid)
81 // if (articlesModel.count==1) {
92 Component.onCompleted: {
93 articlesModel.append({articleid: mainArticleId})
94 //articlesModel.append({articleid: controller.getPreviousId(feedid, mainArticleId)})
96 //articleView.currentIndex = 1
101 // interval: 500; running: false; repeat: false
103 // articlesModel.insert(0,{articleid: controller.getNextId(feedid, mainArticleId)})
104 // articlesModel.append({articleid: controller.getPreviousId(feedid, mainArticleId)})