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 policyMode: CameraResources.Image
33 controlsVisible: capture.visible && cam.running && !standbyWidget.visible
37 anchors.right: parent.right
38 anchors.rightMargin: 20
39 anchors.verticalCenter: parent.verticalCenter
40 iconSource: "image://theme/icon-m-camera-shutter"
45 if (!fileSystem.available) {
46 showError(qsTr("Camera cannot capture images in mass storage mode."));
50 metaData.setMetaData();
52 if (!imageMode.capture(fileNaming.imageFileName())) {
53 showError(qsTr("Failed to capture image. Please restart the camera."));
57 visible: imageMode.canCapture && !cameraMode.animationRunning && !previewAnimationRunning && cam.running
63 onPreviewAvailable: page.setPreview(preview);
68 visible: controlsVisible
69 anchors.top: parent.top
70 anchors.left: parent.left
72 anchors.leftMargin: 20
77 visible: controlsVisible
78 anchors.top: flash.bottom
79 anchors.left: parent.left
81 anchors.leftMargin: 20
86 visible: controlsVisible
87 anchors.top: scene.bottom
88 anchors.left: parent.left
90 anchors.leftMargin: 20
95 anchors.bottom: parent.bottom
96 anchors.bottomMargin: 20
97 anchors.left: parent.left
98 anchors.leftMargin: 20
101 onClicked: openFile("ImageSettingsPage.qml");
102 visible: controlsVisible
108 source: indicators.pressed ? "image://theme/meegotouch-camera-settings-indicators-background-pressed" : "image://theme/meegotouch-camera-settings-indicators-background"
117 id: resolutionIndicator
123 source: "image://theme/" + Data.wbIcon(settings.imageWhiteBalance) + "-screen"
124 visible: settings.imageWhiteBalance != WhiteBalance.Auto
129 source: "image://theme/" + Data.cfIcon(settings.imageColorFilter) + "-screen"
130 visible: settings.imageColorFilter != ColorTone.Normal
135 visible: settings.imageIso != 0
136 source: "image://theme/" + Data.isoIcon(settings.imageIso);
141 visible: settings.useGps
142 source: "image://theme/icon-m-camera-location"
144 PropertyAnimation on opacity {
145 easing.type: Easing.OutSine
146 loops: Animation.Infinite
150 running: settings.useGps && !positionSource.position.longitudeValid
159 anchors.top: parent.top
160 anchors.right: parent.right
161 anchors.topMargin: 20
162 anchors.rightMargin: 20
167 iconSource: "image://theme/icon-m-camera-roll"
168 onClicked: openFile("PostCapturePage.qml");
169 visible: controlsVisible