89e1b0c59f946f782f7764a9704bee9acabab574
[harmattan/cameraplus] / qml / VideoSettingsPage.qml
1 // -*- qml -*-
2 import QtQuick 1.1
3 import com.nokia.meego 1.1
4 import QtCamera 1.0
5 import CameraPlus 1.0
6
7 import "data.js" as Data
8
9 CameraPage {
10         id: page
11         controlsVisible: false
12         policyMode: CameraResources.Video
13         needsPipeline: false
14
15         Rectangle {
16                 color: "black"
17                 anchors.fill: parent
18         }
19
20         Flickable {
21                 anchors.top: parent.top
22                 anchors.left: parent.left
23                 anchors.right: parent.right
24                 anchors.bottom: toolBar.top
25                 anchors.margins: 10
26                 contentHeight: col.height
27
28                 Column {
29                         id: col
30
31                         width: parent.width
32                         spacing: 10
33
34                         Label {
35                                 // TODO:
36                                 text: qsTr("Video settings");
37                         }
38
39                         Row {
40                                 width: parent.width
41
42                                 ListItem {
43                                         id: wb
44                                         width: parent.width / 2
45                                         title: qsTr("White balance");
46                                         subtitle: Data.wbName(settings.videoWhiteBalance);
47                                         iconId: Data.wbSelectedIcon(settings.videoWhiteBalance);
48                                         onClicked: openFile("VideoWhiteBalancePage.qml");
49                                 }
50
51                                 ListItem {
52                                         id: cf
53                                         width: parent.width / 2
54                                         title: qsTr("Color filter");
55                                         subtitle: Data.cfName(settings.videoColorFilter);
56                                         iconId: Data.cfSelectedIcon(settings.videoColorFilter);
57                                         onClicked: openFile("VideoColorFilterPage.qml");
58                                 }
59                         }
60
61                         CameraSettings {
62                                 anchors.horizontalCenter: parent.horizontalCenter
63                         }
64                 }
65         }
66
67         ToolBar {
68                 id: toolBar
69                 anchors.bottom: parent.bottom
70                 tools: ToolBarLayout {
71                         id: layout
72                         ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }
73                 }
74         }
75 }