Adding wip version for meego harmattan
[feedingit] / psa_harmattan / feedingit / deb_dist / feedingit-0.1.0 / debian / feedingit / usr / share / feedingit / qml / common / AddFeed.qml
1 import Qt 4.7
2
3 Rectangle {
4     id: addFeed;
5     width: 500 //parent.width
6     height: 172
7     color: "white"
8     property alias feedName: feedName.text
9     property string catid
10     property string feedUrl: feedURL.text
11     //property boolean feedEdit: false;
12
13     MouseArea { anchors.fill: parent; onClicked: {} }
14     Column {
15         Row {
16             width: addFeed.width
17             height: 86;
18             Text { anchors.verticalCenter: parent.verticalCenter; text: qsTr("Feed name:") }
19             LineInput{
20                 id: feedName
21                 anchors.centerIn: parent
22                 width: 140
23                 focus: true
24             }
25         }
26         Row {
27             width: addFeed.width
28             height: 86;
29             Text { anchors.verticalCenter: parent.verticalCenter; text: qsTr("Feed URL:") }
30             LineInput{
31                 id: feedURL
32                 anchors.centerIn: parent
33                 width: 140
34                 focus: true
35                 text: "http://"
36             }
37         }
38         Row {
39             width: addFeed.width
40             Button {
41                 id: ok
42                 text: qsTr("OK")
43                 anchors.margins: 5; y: 3; width: 80; height: 60
44                 onClicked: container.addFeed(catid, feedName.text, feedURL.text)
45             }
46             Button {
47                 id: cancel
48                 text: qsTr("Cancel")
49                 anchors.margins: 5; y: 3; width: 80; height: 60
50                 onClicked: addFeed.visible=false;
51             }
52         }
53     }
54 }