8 property int textSize:22
9 property int ctrlSize:40
12 ListElement { text:"none"; mapAxis:0 }
13 ListElement { text:"Aileron"; mapAxis:1 }
14 ListElement { text:"Elevator"; mapAxis:2 }
15 ListElement { text:"Throtle"; mapAxis:3 }
16 ListElement { text:"Rudder"; mapAxis:4 }
17 ListElement { text:"none"; mapAxis:0 }
24 ListElement{ text:"Aileron"; mapAxis:1 }
25 ListElement { text:"Elevator"; mapAxis:2 }
26 ListElement { text:"Throtle"; mapAxis:3 }
27 ListElement { text:"Rudder"; mapAxis:4 }
28 ListElement { text:"none"; mapAxis:0 }
30 onSelectedIndexChanged: {
31 console.debug("onSelectedIndexChanged " + selectedText + ", " + choicesMapAxis1.get(selectedIndex).mapAxis);
32 js.mapAxis1=choicesMapAxis1.get(selectedIndex).mapAxis
34 selectedText:js.mapAxis1
36 KeyNavigation.backtab: button2
41 visualParent:pageStack
43 MenuItem { text:"Aileron"; onClicked: { js.mapAxis1=1 }}
44 MenuItem { text:"Elevator"; onClicked: { js.mapAxis1=2 }}
45 MenuItem { text:"Throtle"; onClicked: { js.mapAxis1=3 }}
46 MenuItem { text:"Rudder"; onClicked: { js.mapAxis1=4 }}
47 MenuItem { text:"none"; onClicked: { js.mapAxis1=0 }}
53 visualParent:pageStack
55 MenuItem { text:"Aileron"; onClicked: { js.mapAxis2=1 }}
56 MenuItem { text:"Elevator"; onClicked: { js.mapAxis2=2 }}
57 MenuItem { text:"Throtle"; onClicked: { js.mapAxis2=3 }}
58 MenuItem { text:"Rudder"; onClicked: { js.mapAxis2=4 }}
59 MenuItem { text:"none"; onClicked: { js.mapAxis2=0 }}
65 visualParent:pageStack
67 MenuItem { text:"Aileron"; onClicked: { js.mapAxis3=1 }}
68 MenuItem { text:"Elevator"; onClicked: { js.mapAxis3=2 }}
69 MenuItem { text:"Throtle"; onClicked: { js.mapAxis3=3 }}
70 MenuItem { text:"Rudder"; onClicked: { js.mapAxis3=4 }}
71 MenuItem { text:"none"; onClicked: { js.mapAxis3=0 }}
77 visualParent:pageStack
79 MenuItem { text:"Aileron"; onClicked: { js.mapAxis4=1 }}
80 MenuItem { text:"Elevator"; onClicked: { js.mapAxis4=2 }}
81 MenuItem { text:"Throtle"; onClicked: { js.mapAxis4=3 }}
82 MenuItem { text:"Rudder"; onClicked: { js.mapAxis4=4 }}
83 MenuItem { text:"none"; onClicked: { js.mapAxis4=0 }}
89 visualParent:pageStack
91 MenuItem { text:"Aileron"; onClicked: { js.mapAxis5=1 }}
92 MenuItem { text:"Elevator"; onClicked: { js.mapAxis5=2 }}
93 MenuItem { text:"Throtle"; onClicked: { js.mapAxis5=3 }}
94 MenuItem { text:"Rudder"; onClicked: { js.mapAxis5=4 }}
95 MenuItem { text:"none"; onClicked: { js.mapAxis5=0 }}
101 visualParent:pageStack
103 MenuItem { text:"Aileron"; onClicked: { js.mapAxis6=1 }}
104 MenuItem { text:"Elevator"; onClicked: { js.mapAxis6=2 }}
105 MenuItem { text:"Throtle"; onClicked: { js.mapAxis6=3 }}
106 MenuItem { text:"Rudder"; onClicked: { js.mapAxis6=4 }}
107 MenuItem { text:"none"; onClicked: { js.mapAxis6=0 }}
112 // property Item jStick:
128 anchors.bottom: parent.bottom
147 anchors.bottom: parent.bottom
179 font.pixelSize :textSize
183 font.pixelSize :textSize
187 font.pixelSize :textSize
191 font.pixelSize :textSize
195 font.pixelSize :textSize
199 font.pixelSize :textSize
203 font.pixelSize :textSize
204 text:"mapping " + js.mapAxis1 + js.mapAxis2 + js.mapAxis3 + js.mapAxis4 +js.mapAxis5 +js.mapAxis6
209 font.pixelSize :textSize
213 font.pixelSize :textSize
217 font.pixelSize :textSize
221 font.pixelSize :textSize
222 text:js.calAxis1.toFixed(2)
234 checked:js.invertAxis1
235 onCheckedChanged:{js.invertAxis1=checked;}
241 onSelectedIndexChanged: {
242 console.debug("onSelectedIndexChanged axis1:" + selectedText + ", " + selectedIndex);
243 // js.mapAxis1=selectedIndex;
246 selectedIndex:js.mapAxis1
251 value:axisMap1UICombo.selectedIndex
255 font.pixelSize :textSize
259 font.pixelSize :textSize
263 font.pixelSize :textSize
267 font.pixelSize :textSize
268 text:js.calAxis2.toFixed(2)
278 checked:js.invertAxis2
279 onCheckedChanged:{js.invertAxis2=checked;}
285 onSelectedIndexChanged: {
286 console.debug("onSelectedIndexChanged " + selectedText + ", " + selectedIndex);
287 // js.mapAxis2=selectedIndex+1;
289 selectedIndex:js.mapAxis2
294 font.pixelSize :textSize
298 font.pixelSize :textSize
302 font.pixelSize :textSize
306 font.pixelSize :textSize
307 text:js.calAxis3.toFixed(2)
317 checked:js.invertAxis3
318 onCheckedChanged:{js.invertAxis3=checked;}
324 onSelectedIndexChanged: {
325 console.debug("onSelectedIndexChanged " + selectedText + ", " + selectedIndex);
326 // js.mapAxis3=selectedIndex+1;
328 selectedIndex:js.mapAxis3
331 font.pixelSize :textSize
335 font.pixelSize :textSize
339 font.pixelSize :textSize
343 font.pixelSize :textSize
344 text:js.calAxis4.toFixed(2)
354 checked:js.invertAxis4
355 onCheckedChanged:{js.invertAxis4=checked;}
361 onSelectedIndexChanged: {
362 console.debug("onSelectedIndexChanged " + selectedText + ", " + selectedIndex);
363 // js.mapAxis4=selectedIndex+1;
365 selectedIndex:js.mapAxis4
368 font.pixelSize :textSize
372 font.pixelSize :textSize
376 font.pixelSize :textSize
380 font.pixelSize :textSize
381 text:js.calAxis5.toFixed(2)
391 checked:js.invertAxis5
392 onCheckedChanged:{js.invertAxis5=checked;}
398 onSelectedIndexChanged: {
399 console.debug("onSelectedIndexChanged " + selectedText + ", " + selectedIndex);
400 // js.mapAxis5=selectedIndex+1;
402 selectedIndex:js.mapAxis5
405 font.pixelSize :textSize
409 font.pixelSize :textSize
413 font.pixelSize :textSize
417 font.pixelSize :textSize
418 text:js.calAxis6.toFixed(2)
428 checked:js.invertAxis6
429 onCheckedChanged:{js.invertAxis6=checked;}
435 onSelectedIndexChanged: {
436 console.debug("onSelectedIndexChanged " + selectedText + ", " + selectedIndex);
437 // js.mapAxis6=selectedIndex+1;
439 selectedIndex:js.mapAxis6