2 import com.nokia.symbian 1.1
5 property color textColor:"white"
6 property int textSize:30
11 visualParent:pageStack
13 MenuItem { text:"MeeGo/Harmattan 854x480"; onClicked: { drone.confActiveUI="ardrone_harmattan.qml" }}
14 MenuItem { text:"Desktop"; onClicked: { drone.confActiveUI="ardrone_desktop.qml"}}
17 Component.onCompleted: {
18 console.debug("Appending items to choices",uiList.count())
19 for(var j = 0; j < uiList.count();++j ) {
20 var data = {'name':uiList.get(j).name,'modelData':uiList.get(j).name,'file':uiList.get(j).file };
21 console.debug("appending ",uiList.get(j).name,uiList.get(j).file);
23 if(uiList.get(j).file==drone.confActiveUI) { activeUIDialog.selectedIndex=j; uiDialogButton.text=uiList.get(j).name }
34 onSelectedIndexChanged: {
35 console.debug("onSelectedIndexChanged " + model.get(selectedIndex).name + ", " + model.get(selectedIndex).file);
36 drone.confActiveUI=choices.get(selectedIndex).file;
37 uiDialogButton.text=uiList.get(selectedIndex).name
43 // anchors.leftMargin:50;anchors.rightMargin:50
44 contentHeight: dialogcontent.height
45 contentWidth: parent.width
50 anchors.leftMargin:50;anchors.rightMargin:150
54 font.pixelSize :textSize
62 anchors.right:parent.right
63 onClicked:activeUIDialog.open()
64 // onClicked:uiMenu.open()
70 font.pixelSize :textSize
77 anchors.right: parent.right
78 text: drone.confDroneIp
79 onTextChanged:{drone.confDroneIp=text;}
85 text: "Video 640x480/Full Screen"
87 font.pixelSize :textSize
91 checked:drone.confFullScreen
92 anchors.right:parent.right
93 onCheckedChanged:{drone.confFullScreen=checked;}
96 text: "Acceleration Sensor controll"
98 font.pixelSize :textSize
102 checked:drone.confUseAccel
103 anchors.right:parent.right
104 onCheckedChanged:{drone.confUseAccel=checked;}
109 font.pixelSize :textSize
113 checked:drone.confUseJoyStick
114 anchors.right:parent.right
115 enabled:js.haveJoyStick
116 onCheckedChanged:{drone.confUseJoyStick=checked;}
120 visible:drone.confUseJoyStick
121 font.pixelSize :textSize
122 text:"\"" + js.joyStickName + "\""
126 visible:drone.confUseJoyStick
128 anchors.right:parent.right
131 pageStack.push(calibrateDialog);
135 visible:drone.confUseJoyStick
136 font.pixelSize :textSize
137 text:"Show JoyStick Indicators"
141 visible:drone.confUseJoyStick
142 checked:drone.confShowJSIndicators
143 anchors.right:parent.right
144 enabled:js.haveJoyStick
145 onCheckedChanged:{drone.confShowJSIndicators=checked;}
151 font.pixelSize :textSize
155 checked:drone.confShowDebug
156 anchors.right:parent.right
157 onCheckedChanged:{drone.confShowDebug=checked;}
161 text: "Show engine gauges"
163 font.pixelSize :textSize
168 checked:drone.confShowGauges
169 anchors.right:parent.right
170 onCheckedChanged:{drone.confShowGauges=checked;}
176 font.pixelSize :textSize
181 checked:drone.confShowHorizon
182 anchors.right:parent.right
183 onCheckedChanged:{drone.confShowHorizon=checked;}
187 text: "Forward/backward gain"
189 font.pixelSize :textSize
194 anchors.right:parent.right
197 value:drone.confForwardGain
198 onValueChanged:{drone.confForwardGain=value;}
201 text: "Right/Left gain"
203 font.pixelSize :textSize
208 anchors.right:parent.right
211 value:drone.confRightGain
212 onValueChanged:{drone.confRightGain=value;}
215 text: "accel ctrl treshold"
217 font.pixelSize :textSize
222 anchors.right:parent.right
224 value:drone.confCtrlTrsh
225 onValueChanged:{drone.confCtrlTrsh=value;}
230 property color textColor:"black"
231 property int textSize:30
238 Component.onCompleted: {
239 if (jc.status != Component.Ready)
240 console.log("Error loading component:", jc.errorString());