-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.qml
158 lines (144 loc) · 4.71 KB
/
settings.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import com.nokia.meego 1.0
Rectangle {
width: 700
height: 350
color: "black";
Column{
anchors.fill: parent;
anchors.margins: 20
spacing: 10
Row {
id: rowRow
spacing: 10
width: parent.width;
height: childrenRect.height
Switch {
id: dngSw
checked: params.getSetting("saveDng",true);
onCheckedChanged: params.setSetting("saveDng",checked)
}
Text {
color: "white"
width: rowRow.width - rowRow.spacing - dngSw.width
height: dngSw.height
verticalAlignment: Text.AlignVCenter
text: dngSw.checked ? ".dng file save enabled" : ".dng file save disabled"
font.pixelSize: 20
}
}
Row {
id: row2
spacing: 10
width: parent.width;
height: childrenRect.height
Switch {
id: helpSw
checked: params.getSetting("showHelp",true);
onCheckedChanged: params.setSetting("showHelp",checked)
}
Text {
color: "white"
width: row2.width - row2.spacing - helpSw.width
height: helpSw.height
verticalAlignment: Text.AlignVCenter
text: helpSw.checked ? "Focus help baloon on" : "Focus help baloon off"
font.pixelSize:20
}
}
Row {
id: row3
spacing: 10
width: parent.width;
height: childrenRect.height
Switch {
id: focusOnTapSw
checked: params.getSetting("focusOnTap",false);
onCheckedChanged: params.setSetting("focusOnTap",checked)
}
Text {
color: "white"
height: focusOnTapSw.height
verticalAlignment: Text.AlignVCenter
text: focusOnTapSw.checked ? "Focus on capture on" : "Focus on capture off"
font.pixelSize: 20
}
}
Row {
spacing: 20
Text {
color: "white"
text: "White balance";
font.pixelSize:20
anchors.verticalCenter: parent.verticalCenter
}
Switch {
id: wbSwitch
checked: true
onCheckedChanged: params.setWhiteBalanceMode(checked?0:1)
}
Rectangle {
Text {
anchors.horizontalCenter: parent.horizontalCenter;
anchors.verticalCenter: parent.verticalCenter;
text: (wbSwitch.checked?"Auto":(Math.round(wbSlider.value)) + "K")
font.pixelSize : 17
color: "#000"
}
anchors.verticalCenter: parent.verticalCenter
color: "#999";
border.color: "#222"
radius: 11
width: 80
height: 30
}
}
Row {
Slider {
id: wbSlider
minimumValue: 3000
maximumValue: 8000
value: 6500
width: 600
stepSize: 100
valueIndicatorVisible: false
onValueChanged: params.setWhiteBalance(value);
}
}
// Row {
// spacing: 20
// Text {
// text: "Exposure compensation";
// font.pixelSize: 20
// }
// Rectangle {
// Text {
// anchors.horizontalCenter: parent.horizontalCenter;
// anchors.verticalCenter: parent.verticalCenter;
// text: (expComp.value>0?"+":"") + (Math.round(expComp.value*100)/100) + " eV"
// font.pixelSize : 17
// color: "#fff"
// }
// color: "#444444";
// border.color: "#dddddd"
// radius: 11
// width: 80
// height: 30
// }
// }
// Row {
// Slider {
// id: expComp
// maximumValue: +4
// minimumValue: -4
// value: 0
// width: 600
// stepSize: 0.333333333333333
// valueIndicatorVisible: false
// onValueChanged: params.setExposureCompensation(value);
// }
// }
Component.onCompleted: theme.inverted = true;
}
}