5 property int textSize:20
6 property color textColor:"black"
8 CalibrateDialogDesktop {
19 // anchors.leftMargin:50;anchors.rightMargin:50
26 anchors.leftMargin:50;anchors.rightMargin:50
30 font.pixelSize :textSize
35 Component.onCompleted: {
36 for(var j = 0; j < uiList.count();++j ) {
37 var data = {'name':uiList.get(j).name,'file':uiList.get(j).file };
38 // var data = {'name':uiList.get(j).name };
39 console.debug("appending ",uiList.get(j).name,uiList.get(j).file);
41 if(uiList.get(j).file==drone.confActiveUI) activeUICombo.selectedIndex=j;
47 ListElement { text: "MeeGo/Harmattan";file:"ardrone_harmattan.qml" }
48 ListElement { text: "Symbian";file:"ardrone_symbian.qml" }
49 ListElement { text: "Desktop";file:"ardrone_desktop.qml" }
55 onSelectedIndexChanged: {
56 console.debug("onSelectedIndexChanged " + selectedText + ", " + model.get(selectedIndex).file);
57 drone.confActiveUI=model.get(selectedIndex).file
61 // KeyNavigation.tab: t1
62 //KeyNavigation.backtab: button2
69 font.pixelSize :textSize
76 anchors.right: parent.right
77 text: drone.confDroneIp
78 onTextChanged:{drone.confDroneIp=text;}
84 text: "Video 640x480 / Full Screen"
86 font.pixelSize :textSize
90 checked:drone.confFullScreen
91 anchors.right:parent.right
92 onCheckedChanged:{drone.confFullScreen=checked;}
97 font.pixelSize :textSize
101 checked:drone.confShowDebug
102 anchors.right:parent.right
103 onCheckedChanged:{drone.confShowDebug=checked;}
107 text: "Show engine gauges"
109 font.pixelSize :textSize
114 checked:drone.confShowGauges
115 anchors.right:parent.right
116 onCheckedChanged:{drone.confShowGauges=checked;}
122 font.pixelSize :textSize
127 checked:drone.confShowHorizon
128 anchors.right:parent.right
129 onCheckedChanged:{drone.confShowHorizon=checked;}
138 anchors.topMargin: 50
139 anchors.leftMargin:50;anchors.rightMargin:50
142 text: "Acceleration Sensor for controll"
144 font.pixelSize :textSize
148 checked:drone.confUseAccel
149 anchors.right:parent.right
150 onCheckedChanged:{drone.confUseAccel=checked;}
156 font.pixelSize :textSize
160 checked:drone.confUseJoyStick
161 anchors.right:parent.right
162 enabled:js.haveJoyStick
163 onCheckedChanged:{drone.confUseJoyStick=checked;}
167 visible:drone.confUseJoyStick & js.haveJoyStick
168 font.pixelSize :textSize
169 text:"\"" + js.joyStickName + "\""
173 visible:drone.confUseJoyStick & js.haveJoyStick
175 anchors.right:parent.right
176 onClicked:{ joyStickCalibrator.visible = true;
181 visible:drone.confUseJoyStick
182 font.pixelSize :textSize
183 text:"Show JoyStick Indicators"
187 visible:drone.confUseJoyStick
188 checked:drone.confShowJSIndicators
189 anchors.right:parent.right
190 enabled:js.haveJoyStick
191 onCheckedChanged:{drone.confShowJSIndicators=checked;}
197 text: "Forward/backward gain"
199 font.pixelSize :textSize
204 anchors.right:parent.right
207 value:drone.confForwardGain
208 onValueChanged:{drone.confForwardGain=value;}
211 text: "Right/Left gain"
213 font.pixelSize :textSize
218 anchors.right:parent.right
221 value:drone.confRightGain
222 onValueChanged:{drone.confRightGain=value;}
225 text: "accel ctrl treshold"
227 font.pixelSize :textSize
232 anchors.right:parent.right
234 value:drone.confCtrlTrsh
235 onValueChanged:{drone.confCtrlTrsh=value;}