3 import com.nokia.meego 1.1
8 property Camera cam: null
10 property variant __wb: [
11 [WhiteBalance.Auto, qsTr("Automatic"), "icon-m-camera-whitebalance-auto-selected"],
12 [WhiteBalance.Sunset, qsTr("Sunny"), "icon-m-camera-whitebalance-sunny-selected"],
13 [WhiteBalance.Cloudy, qsTr("Cloudy"), "icon-m-camera-whitebalance-cloudy-selected"], [WhiteBalance.Flourescent, qsTr("Flourescent"), "icon-m-camera-whitebalance-fluorescent-selected"],
14 [WhiteBalance.Tungsten, qsTr("Tungsten"), "icon-m-camera-whitebalance-tungsten-selected"],
17 property variant __cf: [
18 [ColorTone.Normal, qsTr("Off"), "icon-m-camera-no-filter-selected"],
19 [ColorTone.GrayScale, qsTr("Black & white"), "icon-m-camera-filter-black-white-selected"],
20 [ColorTone.Sepia, qsTr("Sepia"), "icon-m-camera-filter-sepia-selected"],
21 [ColorTone.Vivid, qsTr("Vivid"), "icon-m-camera-filter-vivid-selected"],
22 [ColorTone.Negative, qsTr("Negative"), "icon-m-camera-filter-negative-selected"],
23 [ColorTone.Solarize, qsTr("Solarize"), "icon-m-camera-filter-solarize-selected"]
26 function filterData(val, data, item) {
29 for (x = 0; x < i; x++) {
30 if (data[x][0] == val) {
37 return filterData(wb, __wb, 2);
41 return filterData(wb, __wb, 1);
45 return filterData(cf, __cf, 2);
49 return filterData(cf, __cf, 1);
58 anchors.top: parent.top
59 anchors.left: parent.left
60 anchors.right: parent.right
61 anchors.bottom: toolBar.top
68 text: qsTr("Image settings");
76 width: parent.width / 2
77 title: qsTr("White balance");
78 subtitle: wbName(settings.imageWhiteBalance);
79 iconId: wbIcon(settings.imageWhiteBalance);
80 onClicked: openFile("ImageWhiteBalancePage.qml");
85 width: parent.width / 2
86 title: qsTr("Color filter");
87 subtitle: cfName(settings.imageColorFilter);
88 iconId: cfIcon(settings.imageColorFilter);
89 onClicked: openFile("ImageColorFilterPage.qml");
97 anchors.bottom: parent.bottom
98 tools: ToolBarLayout {
100 ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }