2 import com.nokia.meego 1.0
3 import "feedSearch.js" as FeedJS
8 anchors.margins: UiConstants.DefaultMargin
27 text: "Search for feeds"
32 placeHolder: "Enter a search term"
38 onClicked: FeedJS.keywordSearch(searchInput.text)
44 titleText: "Select feed:"
46 onSelectedIndexChanged: {
47 if (selectedIndex>=0) {
48 var feedTitle = searchDialog.model.get(searchDialog.selectedIndex).name;
49 var feedUrl = searchDialog.model.get(searchDialog.selectedIndex).url;
50 container.addFeed(feedTitle,feedUrl,1);
51 console.log("Adding feed "+feedTitle+" at " +feedUrl);
66 text: "Enter the feed URL"
71 placeHolder: "Feed URL"
80 console.log("Adding "+urlInput.text)
81 container.addFeed("",urlInput.text,1);
91 iconId: "toolbar-back"
92 onClicked: tabGroup.currentTab.depth > 1 ? tabGroup.currentTab.pop() : pageStack.pop()
113 // height: myDialog.platformStyle.titleBarHeight
114 // width: parent.width
117 // anchors.left: supplement.right
118 // anchors.verticalCenter: titleField.verticalCenter
119 // font.capitalization: Font.MixedCase
121 // text: "Add A Feed"
128 // //height: childrenRect.height
134 // placeHolder: "Enter a feed URL"
139 // buttons: ButtonRow {
140 // platformStyle: ButtonStyle { }
141 // anchors.horizontalCenter: parent.horizontalCenter
142 // Button {id: b1; text: "OK"; onClicked: myDialog.accept()}
143 // Button {id: b2; text: "Cancel"; onClicked: myDialog.reject()}