aca5b74a69fe742a1d3e936162257c122b6c90ff
[harmattan/cameraplus] / qml / ImageSettingsPage.qml
1 // -*- qml -*-
2 import QtQuick 1.1
3 import com.nokia.meego 1.1
4 import QtCamera 1.0
5
6 import "data.js" as Data
7
8 Page {
9         id: page
10         property Camera cam: null
11
12         Rectangle {
13                 color: "black"
14                 anchors.fill: parent
15         }
16
17         Flickable {
18                 anchors.top: parent.top
19                 anchors.left: parent.left
20                 anchors.right: parent.right
21                 anchors.bottom: toolBar.top
22
23                 Column {
24                         width: parent.width
25
26                         Label {
27                                 // TODO:
28                                 text: qsTr("Image settings");
29                         }
30
31                         Row {
32                                 width: parent.width
33
34                                 ListItem {
35                                         id: wb
36                                         width: parent.width / 2
37                                         title: qsTr("White balance");
38                                         subtitle: Data.wbName(settings.imageWhiteBalance);
39                                         iconId: Data.wbSelectedIcon(settings.imageWhiteBalance);
40                                         onClicked: openFile("ImageWhiteBalancePage.qml");
41                                 }
42
43                                 ListItem {
44                                         id: cf
45                                         width: parent.width / 2
46                                         title: qsTr("Color filter");
47                                         subtitle: Data.cfName(settings.imageColorFilter);
48                                         iconId: Data.cfSelectedIcon(settings.imageColorFilter);
49                                         onClicked: openFile("ImageColorFilterPage.qml");
50                                 }
51                         }
52                 }
53         }
54
55         ToolBar {
56                 id: toolBar
57                 anchors.bottom: parent.bottom
58                 tools: ToolBarLayout {
59                         id: layout
60                         ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }
61                 }
62         }
63 }