0.9 beta 3 - Added features to qml interface (dbus, edit mode...)
[feedingit] / src / 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     MouseArea { anchors.fill: parent; onClicked: {} }
11     Column {
12         Row {
13             width: addFeed.width
14             height: 86;
15             Text { anchors.verticalCenter: parent.verticalCenter; text: qsTr("Feed name:") }
16             LineInput{
17                 id: feedName
18                 anchors.centerIn: parent
19                 width: 140
20                 focus: true
21             }
22         }
23         Row {
24             width: addFeed.width
25             height: 86;
26             Text { anchors.verticalCenter: parent.verticalCenter; text: qsTr("Feed URL:") }
27             LineInput{
28                 id: feedURL
29                 anchors.centerIn: parent
30                 width: 140
31                 focus: true
32                 text: "http://"
33             }
34         }
35         Row {
36             width: addFeed.width
37             Button {
38                 id: ok
39                 text: qsTr("OK")
40                 anchors.margins: 5; y: 3; width: 80; height: 60
41                 onClicked: container.addFeed(catid, feedName.text, feedURL.text)
42             }
43             Button {
44                 id: cancel
45                 text: qsTr("Cancel")
46                 anchors.margins: 5; y: 3; width: 80; height: 60
47                 onClicked: addFeed.visible=false;
48             }
49         }
50     }
51 }