Added ROI an face detection
[harmattan/cameraplus] / qml / ImagePage.qml
index 5fa8783..53c012b 100644 (file)
@@ -44,13 +44,13 @@ CameraPage {
                         return;
                 }
 
-                if (!checkDiskSpace()) {
-                        showError(qsTr("Not enough space to capture images."));
+                if (!fileSystem.available) {
+                        showError(qsTr("Camera cannot capture images in mass storage mode."));
                         return;
                 }
 
-                if (!fileSystem.available) {
-                        showError(qsTr("Camera cannot capture images in mass storage mode."));
+                if (!checkDiskSpace()) {
+                        showError(qsTr("Not enough space to capture images."));
                         return;
                 }
 
@@ -80,7 +80,7 @@ CameraPage {
                 height: 75
                 opacity: 0.5
                 onClicked: captureImage();
-                visible: imageMode.canCapture && !cameraMode.animationRunning && !previewAnimationRunning && cam.running
+                visible: imageMode.canCapture && !cameraMode.busy && dimmer.opacity == 0.0 && !previewAnimationRunning && cam.running
 
                 onExited: {
                         if (mouseX <= 0 || mouseY <= 0 || mouseX > width || mouseY > height) {
@@ -169,6 +169,13 @@ CameraPage {
                                         alwaysRunToEnd: true
                                 }
                         }
+
+                        Indicator {
+                                id: faceDetectionIndicator
+                                visible: settings.faceDetectionEnabled
+                                source: "image://theme/icon-m-camera-face-detection-screen"
+                        }
+
                 }
         }
 
@@ -215,10 +222,17 @@ CameraPage {
                 ImageColorFilterButton {
                         onClicked: toolBar.push(items);
                 },
+                ImageIsoButton {
+                        onClicked: toolBar.push(items);
+                },
                 ToolIcon {
                         iconSource: "image://theme/icon-m-toolbar-view-menu-white"
-                        onClicked: openFile("ImageSettingsPage.qml");
+                        onClicked: imageSettingsDialog.open();
                 }
                 ]
         }
+
+        ImageSettingsDialog {
+                id: imageSettingsDialog
+        }
 }