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"}}
18 Component.onCompleted: {
19 for(var j = 0; j < uiList.length;++j ) {
20 var data = {'name':uiList[j].name,'modelData':uiList[j].name,'file':uiList[j].file };
21 console.debug("appending ",uiList.get(j).name,uiList.get(j).file)
23 if(uIList[j].file==drone.confActiveUI) activeUIDialog.selectedIndex=j;
39 onSelectedIndexChanged: {
40 console.debug("onSelectedIndexChanged " +selectedIndex);
41 console.debug("onSelectedIndexChanged " +uiList.get(selectedIndex).name);
42 console.debug("onSelectedIndexChanged " + model.get(selectedIndex).name + ", " + model.get(selectedIndex).file);
43 drone.confActiveUI=choices.get(selectedIndex).file
50 // anchors.leftMargin:50;anchors.rightMargin:50
51 contentHeight: dialogcontent.height
52 contentWidth: parent.width
57 anchors.leftMargin:50;anchors.rightMargin:150
61 font.pixelSize :textSize
67 text:drone.confActiveUI
68 anchors.right:parent.right
69 onClicked:activeUIDialog.open()
70 // onClicked:uiMenu.open()
76 font.pixelSize :textSize
83 anchors.right: parent.right
84 text: drone.confDroneIp
85 onTextChanged:{drone.confDroneIp=text;}
91 text: "Video 640x480/Full Screen"
93 font.pixelSize :textSize
97 checked:drone.confFullScreen
98 anchors.right:parent.right
99 onCheckedChanged:{drone.confFullScreen=checked;}
102 text: "Acceleration Sensor controll"
104 font.pixelSize :textSize
108 checked:drone.confUseAccel
109 anchors.right:parent.right
110 onCheckedChanged:{drone.confUseAccel=checked;}
115 font.pixelSize :textSize
119 checked:drone.confUseJoyStick
120 anchors.right:parent.right
121 enabled:js.haveJoyStick
122 onCheckedChanged:{drone.confUseJoyStick=checked;}
126 visible:drone.confUseJoyStick
127 font.pixelSize :textSize
128 text:"\"" + js.joyStickName + "\""
132 visible:drone.confUseJoyStick
134 anchors.right:parent.right
137 pageStack.push(calibrateDialog);
141 visible:drone.confUseJoyStick
142 font.pixelSize :textSize
143 text:"Show JoyStick Indicators"
147 visible:drone.confUseJoyStick
148 checked:drone.confShowJSIndicators
149 anchors.right:parent.right
150 enabled:js.haveJoyStick
151 onCheckedChanged:{drone.confShowJSIndicators=checked;}
157 font.pixelSize :textSize
161 checked:drone.confShowDebug
162 anchors.right:parent.right
163 onCheckedChanged:{drone.confShowDebug=checked;}
167 text: "Show engine gauges"
169 font.pixelSize :textSize
174 checked:drone.confShowGauges
175 anchors.right:parent.right
176 onCheckedChanged:{drone.confShowGauges=checked;}
182 font.pixelSize :textSize
187 checked:drone.confShowHorizon
188 anchors.right:parent.right
189 onCheckedChanged:{drone.confShowHorizon=checked;}
193 text: "Forward/backward gain"
195 font.pixelSize :textSize
200 anchors.right:parent.right
203 value:drone.confForwardGain
204 onValueChanged:{drone.confForwardGain=value;}
207 text: "Right/Left gain"
209 font.pixelSize :textSize
214 anchors.right:parent.right
217 value:drone.confRightGain
218 onValueChanged:{drone.confRightGain=value;}
221 text: "accel ctrl treshold"
223 font.pixelSize :textSize
228 anchors.right:parent.right
230 value:drone.confCtrlTrsh
231 onValueChanged:{drone.confCtrlTrsh=value;}
236 property color textColor:"black"
237 property int textSize:30
244 Component.onCompleted: {
245 if (jc.status != Component.Ready)
246 console.log("Error loading component:", jc.errorString());