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
35 text: qsTr("Camera settings")
44 anchors.horizontalCenter: parent.horizontalCenter
45 enabled: camera != null && camera.running && camera.idle
48 text: qsTr("Back (Primary)");
50 checked: settings.device == 0
51 onClicked: settings.device = 0
55 text: qsTr("Front (Secondary)");
57 checked: settings.device == 1
58 onClicked: settings.device = 1
63 text: qsTr("Show grid lines")
65 checked: settings.gridEnabled
66 onCheckedChanged: settings.gridEnabled = checked
70 text: qsTr("Creator name")
74 placeholderText: qsTr("Name or copyright")
76 text: settings.creatorName
77 onTextChanged: settings.creatorName = text
81 text: qsTr("Use zoom keys for capture")
82 checked: settings.zoomAsShutter
83 onCheckedChanged: settings.zoomAsShutter = checked
87 text: qsTr("Use proximity sensor for capture")
89 checked: settings.proximityAsShutter
90 onCheckedChanged: settings.proximityAsShutter = checked
94 text: qsTr("Enable camera sounds")
96 checked: settings.soundEnabled
97 onCheckedChanged: settings.soundEnabled = checked
101 text: qsTr("Preview images and videos after capturing")
103 checked: settings.enablePreview
104 onCheckedChanged: settings.enablePreview = checked
109 text: qsTr("Use GPS")
111 checked: settings.useGps
112 onCheckedChanged: settings.useGps = checked
116 // TODO: transition when hiding/showing and we should scroll a bit to show it
117 visible: useGps.checked
119 text: qsTr("Use geotags")
120 checked: settings.useGeotags
121 onCheckedChanged: settings.useGeotags = checked