4 * This file is part of CameraPlus.
6 * Copyright (C) 2012-2013 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
32 text: qsTr("Camera settings")
42 anchors.horizontalCenter: parent.horizontalCenter
45 text: qsTr("Back (Primary)");
47 checked: settings.device == 0
48 onClicked: settings.device = 0
52 text: qsTr("Front (Secondary)");
54 checked: settings.device == 1
55 onClicked: settings.device = 1
60 text: qsTr("Show grid lines")
62 // We have to do it that way because QML complains about a binding
63 // loop for checked if we bind the checked property to the settings value.
64 Component.onCompleted: checked = settings.gridEnabled
66 onCheckedChanged: settings.gridEnabled = checked
70 text: qsTr("Creator name")
75 placeholderText: qsTr("Name or copyright")
77 text: settings.creatorName
78 onTextChanged: settings.creatorName = text
82 text: qsTr("Use zoom keys for capture")
84 // We have to do it that way because QML complains about a binding
85 // loop for checked if we bind the checked property to the settings value.
86 Component.onCompleted: checked = settings.zoomAsShutter
87 onCheckedChanged: settings.zoomAsShutter = checked
91 text: qsTr("Enable camera sounds")
93 // We have to do it that way because QML complains about a binding
94 // loop for checked if we bind the checked property to the settings value.
95 Component.onCompleted: checked = settings.soundEnabled
96 onCheckedChanged: settings.soundEnabled = checked
101 text: qsTr("Use GPS")
103 // We have to do it that way because QML complains about a binding
104 // loop for checked if we bind the checked property to the settings value.
105 Component.onCompleted: checked = settings.useGps
106 onCheckedChanged: settings.useGps = checked
110 // TODO: transition when hiding/showing and we should scroll a bit to show it
111 visible: useGps.checked
113 text: qsTr("Use geotags")
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.useGeotags
118 onCheckedChanged: settings.useGeotags = checked