407612a0e0a4fd149feeea7effeda2643de8527e
[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                 anchors.margins: 10
23                 contentHeight: col.height
24
25                 Column {
26                         id: col
27
28                         width: parent.width
29                         spacing: 10
30
31                         Label {
32                                 // TODO:
33                                 text: qsTr("Image settings");
34                         }
35
36                         SectionHeader {
37                                 text: qsTr("Capture mode");
38                         }
39
40                         ButtonRow {
41                                 anchors.horizontalCenter: parent.horizontalCenter
42                                 Button { text: qsTr("Normal"); }
43                                 Button { text: qsTr("Self timer"); }
44                                 Button { text: qsTr("Fast capture"); }
45                         }
46
47                         Row {
48                                 width: parent.width
49
50                                 ListItem {
51                                         id: wb
52                                         width: parent.width / 2
53                                         title: qsTr("White balance");
54                                         subtitle: Data.wbName(settings.imageWhiteBalance);
55                                         iconId: Data.wbSelectedIcon(settings.imageWhiteBalance);
56                                         onClicked: openFile("ImageWhiteBalancePage.qml");
57                                 }
58
59                                 ListItem {
60                                         id: cf
61                                         width: parent.width / 2
62                                         title: qsTr("Color filter");
63                                         subtitle: Data.cfName(settings.imageColorFilter);
64                                         iconId: Data.cfSelectedIcon(settings.imageColorFilter);
65                                         onClicked: openFile("ImageColorFilterPage.qml");
66                                 }
67                         }
68
69                         SectionHeader {
70                                 text: qsTr("Self timer");
71                         }
72
73                         ButtonRow {
74                                 anchors.horizontalCenter: parent.horizontalCenter
75                                 Button { text: qsTr("2 seconds"); }
76                                 Button { text: qsTr("10 seconds"); }
77                         }
78
79                         SectionHeader {
80                                 text: qsTr("Light sensitivity");
81                         }
82
83                         ButtonRow {
84                                 anchors.horizontalCenter: parent.horizontalCenter
85                                 Button { text: qsTr("Automatic"); }
86                                 Button { text: qsTr("ISO 100"); }
87                                 Button { text: qsTr("ISO 200"); }
88                                 Button { text: qsTr("ISO 400"); }
89                                 Button { text: qsTr("ISO 800"); }
90                         }
91
92                         SectionHeader {
93                                 text: qsTr("Aspect ratio");
94                         }
95
96                         ButtonRow {
97                                 anchors.horizontalCenter: parent.horizontalCenter
98                                 Button { text: qsTr("16:9"); }
99                                 Button { text: qsTr("4:3"); }
100                                 Button { text: qsTr("3:2"); }
101                         }
102
103                         SectionHeader {
104                                 text: qsTr("Resolution");
105                         }
106
107                         ButtonRow {
108                                 anchors.horizontalCenter: parent.horizontalCenter
109                                 Button {}
110                                 Button {}
111                                 Button {}
112                         }
113
114                         CameraSettings {
115                                 anchors.horizontalCenter: parent.horizontalCenter
116                         }
117                 }
118         }
119
120         ToolBar {
121                 id: toolBar
122                 anchors.bottom: parent.bottom
123                 tools: ToolBarLayout {
124                         id: layout
125                         ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }
126                 }
127         }
128 }