Adding wip version for meego harmattan
[feedingit] / psa_harmattan / feedingit / deb_dist / feedingit-0.1.0 / debian / feedingit / usr / share / feedingit / qml / common / AddCat.qml
diff --git a/psa_harmattan/feedingit/deb_dist/feedingit-0.1.0/debian/feedingit/usr/share/feedingit/qml/common/AddCat.qml b/psa_harmattan/feedingit/deb_dist/feedingit-0.1.0/debian/feedingit/usr/share/feedingit/qml/common/AddCat.qml
new file mode 100644 (file)
index 0000000..9d5092d
--- /dev/null
@@ -0,0 +1,40 @@
+import Qt 4.7
+
+Rectangle {
+    id: addCat;
+    width: 200 //parent.width
+    height: 172
+    color: "white"
+    property alias catName: categoryName.text
+    MouseArea { anchors.fill: parent; onClicked: {} }
+    Column {
+        Row {
+            width: addCat.width
+            height: 86;
+            Text { anchors.verticalCenter: parent.verticalCenter; text: qsTr("Category name:") }
+            LineInput{
+                id: categoryName
+                anchors.centerIn: parent
+                width: 140
+                focus: true
+            }
+        }
+        Row {
+            width: addCat.width
+            Button {
+                id: ok
+                text: qsTr("OK")
+                anchors.margins: 5; y: 3; width: 80; height: 60
+                onClicked: container.addCategory(categoryName.text)
+            }
+
+            Button {
+                id: cancel
+                text: qsTr("Cancel")
+                anchors.margins: 5; y: 3; width: 80; height: 60
+                onClicked: addCat.visible=false;
+            }
+        }
+    }
+
+}