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 = {'text':uiList.get(j).name,'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;
52 onSelectedIndexChanged: {
53 console.debug("onSelectedIndexChanged " + selectedText + ", " + model.get(selectedIndex).file);
54 drone.confActiveUI=model.get(selectedIndex).file
58 // KeyNavigation.tab: t1
59 //KeyNavigation.backtab: button2
66 font.pixelSize :textSize
73 anchors.right: parent.right
74 text: drone.confDroneIp
75 onTextChanged:{drone.confDroneIp=text;}
81 text: "Video 640x480 / Full Screen"
83 font.pixelSize :textSize
87 checked:drone.confFullScreen
88 anchors.right:parent.right
89 onCheckedChanged:{drone.confFullScreen=checked;}
94 font.pixelSize :textSize
98 checked:drone.confShowDebug
99 anchors.right:parent.right
100 onCheckedChanged:{drone.confShowDebug=checked;}
104 text: "Show engine gauges"
106 font.pixelSize :textSize
111 checked:drone.confShowGauges
112 anchors.right:parent.right
113 onCheckedChanged:{drone.confShowGauges=checked;}
119 font.pixelSize :textSize
124 checked:drone.confShowHorizon
125 anchors.right:parent.right
126 onCheckedChanged:{drone.confShowHorizon=checked;}
135 anchors.topMargin: 50
136 anchors.leftMargin:50;anchors.rightMargin:50
139 text: "Acceleration Sensor for controll"
141 font.pixelSize :textSize
145 checked:drone.confUseAccel
146 anchors.right:parent.right
147 onCheckedChanged:{drone.confUseAccel=checked;}
153 font.pixelSize :textSize
157 checked:drone.confUseJoyStick
158 anchors.right:parent.right
159 enabled:js.haveJoyStick
160 onCheckedChanged:{drone.confUseJoyStick=checked;}
164 visible:drone.confUseJoyStick & js.haveJoyStick
165 font.pixelSize :textSize
166 text:"\"" + js.joyStickName + "\""
170 visible:drone.confUseJoyStick & js.haveJoyStick
172 anchors.right:parent.right
173 onClicked:{ joyStickCalibrator.visible = true;
178 visible:drone.confUseJoyStick
179 font.pixelSize :textSize
180 text:"Show JoyStick Indicators"
184 visible:drone.confUseJoyStick
185 checked:drone.confShowJSIndicators
186 anchors.right:parent.right
187 enabled:js.haveJoyStick
188 onCheckedChanged:{drone.confShowJSIndicators=checked;}
194 text: "Forward/backward gain"
196 font.pixelSize :textSize
201 anchors.right:parent.right
204 value:drone.confForwardGain
205 onValueChanged:{drone.confForwardGain=value;}
208 text: "Right/Left gain"
210 font.pixelSize :textSize
215 anchors.right:parent.right
218 value:drone.confRightGain
219 onValueChanged:{drone.confRightGain=value;}
222 text: "accel ctrl treshold"
224 font.pixelSize :textSize
229 anchors.right:parent.right
231 value:drone.confCtrlTrsh
232 onValueChanged:{drone.confCtrlTrsh=value;}