2 import com.nokia.android 1.1
5 property color textColor:"white"
6 property int textSize:30
10 Component.onCompleted: {
11 console.debug("Appending items to choices",uiList.count())
12 for(var j = 0; j < uiList.count();++j ) {
13 var data = {'name':uiList.get(j).name,'modelData':uiList.get(j).name,'file':uiList.get(j).file };
14 console.debug("appending ",uiList.get(j).name,uiList.get(j).file);
16 if(uiList.get(j).file==drone.confActiveUI) { activeUIDialog.selectedIndex=j; uiDialogButton.text=uiList.get(j).name }
27 onSelectedIndexChanged: {
28 console.debug("onSelectedIndexChanged " + model.get(selectedIndex).name + ", " + model.get(selectedIndex).file);
29 drone.confActiveUI=choices.get(selectedIndex).file;
30 uiDialogButton.text=uiList.get(selectedIndex).name
36 // anchors.leftMargin:50;anchors.rightMargin:50
37 contentHeight: dialogcontent.height
38 contentWidth: parent.width
43 anchors.leftMargin:50;anchors.rightMargin:150
47 font.pixelSize :textSize
55 anchors.right:parent.right
56 onClicked:activeUIDialog.open()
57 // onClicked:uiMenu.open()
63 font.pixelSize :textSize
70 anchors.right: parent.right
71 text: drone.confDroneIp
72 onTextChanged:{drone.confDroneIp=text;}
78 text: "Video 640x480/Full Screen"
80 font.pixelSize :textSize
84 checked:drone.confFullScreen
85 anchors.right:parent.right
86 onCheckedChanged:{drone.confFullScreen=checked;}
89 text: "Acceleration Sensor controll"
91 font.pixelSize :textSize
95 checked:drone.confUseAccel
96 anchors.right:parent.right
97 onCheckedChanged:{drone.confUseAccel=checked;}
102 font.pixelSize :textSize
106 checked:drone.confUseJoyStick
107 anchors.right:parent.right
108 enabled:js.haveJoyStick
109 onCheckedChanged:{drone.confUseJoyStick=checked;}
113 visible:drone.confUseJoyStick
114 font.pixelSize :textSize
115 text:"\"" + js.joyStickName + "\""
119 visible:drone.confUseJoyStick
121 anchors.right:parent.right
124 pageStack.push(calibrateDialog);
128 visible:drone.confUseJoyStick
129 font.pixelSize :textSize
130 text:"Show JoyStick Indicators"
134 visible:drone.confUseJoyStick
135 checked:drone.confShowJSIndicators
136 anchors.right:parent.right
137 enabled:js.haveJoyStick
138 onCheckedChanged:{drone.confShowJSIndicators=checked;}
144 font.pixelSize :textSize
148 checked:drone.confShowDebug
149 anchors.right:parent.right
150 onCheckedChanged:{drone.confShowDebug=checked;}
154 text: "Show engine gauges"
156 font.pixelSize :textSize
161 checked:drone.confShowGauges
162 anchors.right:parent.right
163 onCheckedChanged:{drone.confShowGauges=checked;}
169 font.pixelSize :textSize
174 checked:drone.confShowHorizon
175 anchors.right:parent.right
176 onCheckedChanged:{drone.confShowHorizon=checked;}
180 text: "Forward/backward gain"
182 font.pixelSize :textSize
187 anchors.right:parent.right
190 value:drone.confForwardGain
191 onValueChanged:{drone.confForwardGain=value;}
194 text: "Right/Left gain"
196 font.pixelSize :textSize
201 anchors.right:parent.right
204 value:drone.confRightGain
205 onValueChanged:{drone.confRightGain=value;}
208 text: "accel ctrl treshold"
210 font.pixelSize :textSize
215 anchors.right:parent.right
217 value:drone.confCtrlTrsh
218 onValueChanged:{drone.confCtrlTrsh=value;}
223 property color textColor:"black"
224 property int textSize:30
231 Component.onCompleted: {
232 if (jc.status != Component.Ready)
233 console.log("Error loading component:", jc.errorString());