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
35 orientationLock: PageOrientation.LockLandscape
39 anchors.right: parent.right
40 anchors.rightMargin: 20
41 anchors.verticalCenter: parent.verticalCenter
42 iconSource: "image://theme/icon-m-camera-shutter"
47 if (!fileSystem.available) {
48 showError(qsTr("Camera cannot capture images in mass storage mode."));
52 metaData.setMetaData();
54 if (!imageMode.capture(fileNaming.imageFileName())) {
55 showError(qsTr("Failed to capture image. Please restart the camera."));
59 visible: imageMode.canCapture && !cameraMode.animationRunning && !previewAnimationRunning && cam.running
65 onPreviewAvailable: page.setPreview(preview);
70 visible: controlsVisible
71 anchors.top: parent.top
72 anchors.left: parent.left
74 anchors.leftMargin: 20
79 visible: controlsVisible
80 anchors.top: flash.bottom
81 anchors.left: parent.left
83 anchors.leftMargin: 20
88 visible: controlsVisible
89 anchors.top: scene.bottom
90 anchors.left: parent.left
92 anchors.leftMargin: 20
97 anchors.bottom: parent.bottom
98 anchors.bottomMargin: 20
99 anchors.left: parent.left
100 anchors.leftMargin: 20
103 onClicked: openFile("ImageSettingsPage.qml");
104 visible: controlsVisible
110 source: indicators.pressed ? "image://theme/meegotouch-camera-settings-indicators-background-pressed" : "image://theme/meegotouch-camera-settings-indicators-background"
119 id: resolutionIndicator
120 source: "image://theme/" + Data.imageIcon(settings.imageAspectRatio, settings.imageResolution);
125 source: "image://theme/" + Data.wbIcon(settings.imageWhiteBalance) + "-screen"
126 visible: settings.imageWhiteBalance != WhiteBalance.Auto
131 source: "image://theme/" + Data.cfIcon(settings.imageColorFilter) + "-screen"
132 visible: settings.imageColorFilter != ColorTone.Normal
137 visible: settings.imageIso != 0
138 source: "image://theme/" + Data.isoIcon(settings.imageIso);
143 visible: settings.useGps
144 source: "image://theme/icon-m-camera-location"
146 PropertyAnimation on opacity {
147 easing.type: Easing.OutSine
148 loops: Animation.Infinite
152 running: settings.useGps && !positionSource.position.longitudeValid
161 anchors.top: parent.top
162 anchors.right: parent.right
163 anchors.topMargin: 20
164 anchors.rightMargin: 20
169 iconSource: "image://theme/icon-m-camera-roll"
170 onClicked: openFile("PostCapturePage.qml");
171 visible: controlsVisible