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
33 text: qsTr("Camera settings");
39 text: qsTr("Show captured content");
43 anchors.horizontalCenter: parent.horizontalCenter
46 text: qsTr("Disabled");
47 checked: settings.postCaptureTimeout == 0;
48 onClicked: settings.postCaptureTimeout = 0;
52 text: qsTr("2 seconds");
53 checked: settings.postCaptureTimeout == 2;
54 onClicked: settings.postCaptureTimeout = 2;
58 text: qsTr("5 seconds");
59 checked: settings.postCaptureTimeout == 10;
60 onClicked: settings.postCaptureTimeout = 10;
64 text: qsTr("No timeout");
65 checked: settings.postCaptureTimeout == -1;
66 onClicked: settings.postCaptureTimeout = -1;
71 text: qsTr("Creator name");
76 placeholderText: qsTr("Name or copyright");
78 text: settings.creatorName
79 onTextChanged: settings.creatorName = text;
84 height: Math.max(enableCameraSoundsLabel.height, enableCameraSounds.height);
87 id: enableCameraSoundsLabel
88 anchors.left: parent.left
89 text: qsTr("Enable camera sounds");
93 id: enableCameraSounds
94 anchors.right: parent.right
95 // We have to do it that way because QML complains about a binding
96 // loop for checked if we bind the checked property to the settings value.
97 Component.onCompleted: checked = settings.soundEnabled;
98 onCheckedChanged: settings.soundEnabled = checked;
104 height: Math.max(useGpsLabel.height, useGps.height);
108 anchors.left: parent.left
109 text: qsTr("Use GPS");
114 anchors.right: parent.right
115 // We have to do it that way because QML complains about a binding
116 // loop for checked if we bind the checked property to the settings value.
117 Component.onCompleted: checked = settings.useGps;
118 onCheckedChanged: settings.useGps = checked;
124 height: Math.max(useGeotagsLabel.height, useGeotags.height);
126 // TODO: transition when hiding/showing and we should scroll a bit to show it
127 visible: useGps.checked
131 anchors.left: parent.left
132 text: qsTr("Use geotags");
137 anchors.right: parent.right
138 // We have to do it that way because QML complains about a binding
139 // loop for checked if we bind the checked property to the settings value.
140 Component.onCompleted: checked = settings.useGeotags;
141 onCheckedChanged: settings.useGeotags = checked;