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
27 property Camera camera: null
35 text: qsTr("Camera settings")
45 anchors.horizontalCenter: parent.horizontalCenter
46 enabled: camera != null && camera.running && camera.idle
49 text: qsTr("Back (Primary)");
51 checked: settings.device == 0
52 onClicked: settings.device = 0
56 text: qsTr("Front (Secondary)");
58 checked: settings.device == 1
59 onClicked: settings.device = 1
64 text: qsTr("Show grid lines")
66 // We have to do it that way because QML complains about a binding
67 // loop for checked if we bind the checked property to the settings value.
68 Component.onCompleted: checked = settings.gridEnabled
70 onCheckedChanged: settings.gridEnabled = checked
74 text: qsTr("Creator name")
79 placeholderText: qsTr("Name or copyright")
81 text: settings.creatorName
82 onTextChanged: settings.creatorName = text
86 text: qsTr("Use zoom keys for capture")
88 // We have to do it that way because QML complains about a binding
89 // loop for checked if we bind the checked property to the settings value.
90 Component.onCompleted: checked = settings.zoomAsShutter
91 onCheckedChanged: settings.zoomAsShutter = checked
95 text: qsTr("Enable camera sounds")
97 // We have to do it that way because QML complains about a binding
98 // loop for checked if we bind the checked property to the settings value.
99 Component.onCompleted: checked = settings.soundEnabled
100 onCheckedChanged: settings.soundEnabled = checked
105 text: qsTr("Use GPS")
107 // We have to do it that way because QML complains about a binding
108 // loop for checked if we bind the checked property to the settings value.
109 Component.onCompleted: checked = settings.useGps
110 onCheckedChanged: settings.useGps = checked
114 // TODO: transition when hiding/showing and we should scroll a bit to show it
115 visible: useGps.checked
117 text: qsTr("Use geotags")
119 // We have to do it that way because QML complains about a binding
120 // loop for checked if we bind the checked property to the settings value.
121 Component.onCompleted: checked = settings.useGeotags
122 onCheckedChanged: settings.useGeotags = checked