4 * This file is part of CameraPlus.
6 * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 import com.nokia.meego 1.1
27 import "data.js" as Data
32 controlsVisible: false
33 policyMode: CameraResources.Video
39 height: row.height + title.height + 30
40 anchors.bottom: toolBar.top
45 anchors.top: parent.top
47 text: qsTr("Color filter");
52 anchors.left: parent.left
53 anchors.right: parent.right
54 anchors.leftMargin: 20
55 anchors.rightMargin: 20
56 anchors.top: title.bottom
60 width: parent.width / 6
61 normalIcon: "image://theme/" + Data.cfIcon(value);
62 checkedIcon: "image://theme/" + Data.cfSelectedIcon(value);
63 value: ColorTone.Normal
64 savedValue: settings.videoColorFilter
65 onClicked: settings.videoColorFilter = value;
66 text: Data.cfName(value);
70 width: parent.width / 6
71 normalIcon: "image://theme/" + Data.cfIcon(value);
72 checkedIcon: "image://theme/" + Data.cfSelectedIcon(value);
73 value: ColorTone.GrayScale
74 savedValue: settings.videoColorFilter
75 onClicked: settings.videoColorFilter = value;
76 text: Data.cfName(value);
80 width: parent.width / 6
81 normalIcon: "image://theme/" + Data.cfIcon(value);
82 checkedIcon: "image://theme/" + Data.cfSelectedIcon(value);
83 value: ColorTone.Sepia
84 savedValue: settings.videoColorFilter
85 onClicked: settings.videoColorFilter = value;
86 text: Data.cfName(value);
90 width: parent.width / 6
91 normalIcon: "image://theme/" + Data.cfIcon(value);
92 checkedIcon: "image://theme/" + Data.cfSelectedIcon(value);
93 value: ColorTone.Vivid
94 savedValue: settings.videoColorFilter
95 onClicked: settings.videoColorFilter = value;
96 text: Data.cfName(value);
100 width: parent.width / 6
101 normalIcon: "image://theme/" + Data.cfIcon(value);
102 checkedIcon: "image://theme/" + Data.cfSelectedIcon(value);
103 value: ColorTone.Negative
104 savedValue: settings.videoColorFilter
105 onClicked: settings.videoColorFilter = value;
106 text: Data.cfName(value);
110 width: parent.width / 6
111 normalIcon: "image://theme/" + Data.cfIcon(value);
112 checkedIcon: "image://theme/" + Data.cfSelectedIcon(value);
113 value: ColorTone.Solarize
114 savedValue: settings.videoColorFilter
115 onClicked: settings.videoColorFilter = value;
116 text: Data.cfName(value);
123 anchors.bottom: parent.bottom
124 tools: ToolBarLayout {
126 ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }