Renamed SceneButton to ImageSceneButton
[harmattan/cameraplus] / qml / ImagePage.qml
1 // -*- qml -*-
2 import QtQuick 1.1
3 import com.nokia.meego 1.1
4 import QtCamera 1.0
5
6 CameraPage {
7         id: page
8
9         controlsVisible: capture.visible
10
11         Button {
12                 id: capture
13                 anchors.right: parent.right
14                 anchors.rightMargin: 20
15                 anchors.verticalCenter: parent.verticalCenter
16                 iconSource: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-shutter.png"
17                 width: 75
18                 height: 75
19                 opacity: 0.5
20                 onClicked: imageMode.capture("/home/developer/foo.png");
21                 visible: imageMode.canCapture && !cameraMode.animationRunning && !previewAnimationRunning
22         }
23
24         ImageMode {
25                 id: imageMode
26                 camera: cam
27                 onPreviewAvailable: page.setPreview(preview);
28                 nightMode: scene.value == Scene.Night
29         }
30
31         FlashButton {
32                 id: flash
33                 visible: capture.visible
34                 anchors.top: parent.top
35                 anchors.left: parent.left
36                 anchors.topMargin: 20
37                 anchors.leftMargin: 20
38         }
39
40         ImageSceneButton {
41                 id: scene
42                 visible: capture.visible
43                 anchors.top: flash.bottom
44                 anchors.left: parent.left
45                 anchors.topMargin: 10
46                 anchors.leftMargin: 20
47         }
48
49         EvCompButton {
50                 id: evComp
51                 visible: capture.visible
52                 anchors.top: scene.bottom
53                 anchors.left: parent.left
54                 anchors.topMargin: 10
55                 anchors.leftMargin: 20
56         }
57
58         // TODO: filenaming.
59         // TODO: metadata
60 }