WWW update
[ubi] / qml / ubi / components / DialogCombo.qml
1 import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
2 import "../UIConstants.js" as Const
3
4 DialogBox {
5     id: root
6
7     property alias text: text.text
8     signal closed(string option)
9
10     Rectangle {
11         id: box
12         anchors.left: root.left; anchors.right: root.right
13         height: column.height
14         anchors.bottom: root.bottom
15         color: Const.LIGHT_AUBERGINE_COLOR
16
17         MouseArea {
18             anchors.fill: parent
19         }
20
21         Column {
22             id: column
23             spacing: Const.DEFAULT_MARGIN
24             x: 2*Const.DEFAULT_MARGIN
25             Spacer {}
26             Text {
27                 id: text
28                 color: Const.DEFAULT_DIALOG_FOREGROUND_COLOR
29                 font.pixelSize: Const.DEFAULT_FONT_PIXEL_SIZE
30             }
31             Row {
32                 spacing: Const.DEFAULT_MARGIN
33                 Button {
34                     label: "English"
35                     onButtonClicked: {
36                         root.close();
37                         root.closed("en_US");
38                     }
39                 }
40                 Button {
41                     label: "Polski"
42                     onButtonClicked: {
43                         root.close();
44                         root.closed("pl_PL");
45                     }
46                 }
47                 Button {
48                     label: "Italiano"
49                     onButtonClicked: {
50                         root.close();
51                         root.closed("it_IT");
52                     }
53                 }
54             }
55             Spacer {}
56         }
57     }
58
59     Rectangle {
60         anchors.right: root.right; anchors.left: root.left
61         anchors.bottom: box.top
62         height: Const.SHADOW_OFFSET
63         color: "black"
64         opacity: 0.5
65     }
66 }