--- /dev/null
+// -*- qml -*-
+import QtQuick 1.1
+import com.nokia.meego 1.1
+import QtCamera 1.0
+
+
+Selector {
+ id: button
+
+ property alias value: ct.value
+
+ iconSource: ctIcon(ct.value);
+
+ ColorTone {
+ id: ct
+ camera: cam
+ // TODO: hardcoding
+ value: ColorTone.Normal
+ }
+
+ function ctIcon(val) {
+ var x = row.children.length;
+ var i = 0;
+ for (i = 0; i < x; i++) {
+ if (row.children[i].value == val) {
+ return row.children[i].normalIcon;
+ }
+ }
+ }
+
+ widget: Row {
+ id: row
+ height: button.checked ? 64 : 0
+ width: button.checked ? (children.length * height) + (children.length - 1) * spacing : 0
+ spacing: 10
+
+ Behavior on width {
+ // TODO: seems animation is not working
+ PropertyAnimation { duration: 250; }
+ }
+
+ CheckButton {
+ normalIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-no-filter.png"
+ checkedIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-no-filter-selected.png"
+ controller: ct
+ value: ColorTone.Normal
+ }
+
+ CheckButton {
+ normalIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-filter-black-white.png"
+ checkedIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-filter-black-white-selected.png"
+ controller: ct
+ value: ColorTone.GrayScale
+ }
+
+ CheckButton {
+ normalIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-filter-sepia.png"
+ checkedIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-filter-sepia-selected.png"
+ controller: ct
+ value: ColorTone.Sepia
+ }
+
+ CheckButton {
+ normalIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-filter-vivid.png"
+ checkedIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-filter-vivid-selected.png"
+ controller: ct
+ value: ColorTone.Vivid
+ }
+
+ CheckButton {
+ normalIcon: "/usr/share/themes//blanco/meegotouch/icons/icon-m-camera-filter-negative.png"
+ checkedIcon: "/usr/share/themes//blanco/meegotouch/icons/icon-m-camera-filter-negative-selected.png"
+ controller: ct
+ value: ColorTone.Negative
+ }
+
+ CheckButton {
+ normalIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-filter-solarize.png"
+ checkedIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-filter-solarize-selected.png"
+ controller: ct
+ value: ColorTone.Solarize
+ }
+ }
+}
anchors.leftMargin: 20
}
+ Indicators {
+ anchors.bottom: parent.bottom
+ anchors.bottomMargin: 20
+ anchors.left: parent.left
+ anchors.leftMargin: 20
+
+ onClicked: openFile("ImageSettingsPage.qml");
+// Image {
+///
+// }
+ }
+
// TODO: filenaming.
// TODO: metadata
}
--- /dev/null
+// -*- qml -*-
+import QtQuick 1.1
+import com.nokia.meego 1.1
+import QtCamera 1.0
+
+Page {
+ id: page
+
+ // TODO:
+
+ Flickable {
+ id: flick
+ anchors.top: parent.top
+ anchors.left: parent.left
+ anchors.right: parent.right
+ anchors.bottom: toolBar.top
+
+ WhiteBalanceButton {
+ id: wb
+ anchors.top: parent.top
+ anchors.left: parent.left
+ anchors.topMargin: 20
+ anchors.leftMargin: 20
+ }
+
+ ColorToneButton {
+ id: ct
+ anchors.top: wb.bottom
+ anchors.left: parent.left
+ anchors.topMargin: 20
+ anchors.leftMargin: 20
+ }
+ }
+
+ ToolBar {
+ id: toolBar
+ anchors.bottom: parent.bottom
+ // TODO: transparent ?
+// height: layout.height
+// platformStyle: ToolBarStyle {
+// background: ""
+// }
+
+ tools: ToolBarLayout {
+ id: layout
+ ToolIcon { iconId: "icon-m-toolbar-back"; onClicked: pageStack.pop(); }
+ }
+ }
+}
--- /dev/null
+// -*- qml -*-
+import QtQuick 1.1
+import com.nokia.meego 1.1
+import QtCamera 1.0
+
+Selector {
+ id: button
+
+ property alias value: wb.value
+
+ iconSource: wbIcon(wb.value);
+
+ WhiteBalance {
+ id: wb
+ camera: cam
+ // TODO: hardcoding
+ value: WhiteBalance.Auto
+ }
+
+ function wbIcon(val) {
+ var x = row.children.length;
+ var i = 0;
+ for (i = 0; i < x; i++) {
+ if (row.children[i].value == val) {
+ return row.children[i].normalIcon;
+ }
+ }
+ }
+
+ widget: Row {
+ id: row
+ height: button.checked ? 64 : 0
+ width: button.checked ? (children.length * height) + (children.length - 1) * spacing : 0
+ spacing: 10
+
+ Behavior on width {
+ // TODO: seems animation is not working
+ PropertyAnimation { duration: 250; }
+ }
+
+ CheckButton {
+ normalIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-whitebalance-auto.png"
+ checkedIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-whitebalance-auto-selected.png"
+ controller: wb
+ value: WhiteBalance.Auto
+ }
+
+ CheckButton {
+ normalIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-whitebalance-cloudy.png"
+ checkedIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-whitebalance-cloudy-selected.png"
+ controller: wb
+ value: WhiteBalance.Cloudy
+ }
+
+ CheckButton {
+ normalIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-whitebalance-sunny.png"
+ checkedIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-whitebalance-sunny-selected.png"
+ controller: wb
+ value: WhiteBalance.Sunset
+ }
+
+ CheckButton {
+ normalIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-whitebalance-tungsten.png"
+ checkedIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-whitebalance-tungsten-selected.png"
+ controller: wb
+ value: WhiteBalance.Tungsten
+ }
+
+ CheckButton {
+ normalIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-whitebalance-fluorescent.png"
+ checkedIcon: "/usr/share/themes/blanco/meegotouch/icons/icon-m-camera-whitebalance-fluorescent-selected.png"
+ controller: wb
+ value: WhiteBalance.Flourescent
+ }
+
+ }
+}