2 import com.nokia.meego 1.0
5 property color textColor:"black"
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,'file':uiList.get(j).file };
21 // var data = {'name':uiList.get(j).name };
22 console.debug("appending ",uiList.get(j).name,uiList.get(j).file);
24 if(uiList.get(j).file==drone.confActiveUI) activeUIDialog.selectedIndex=j;
38 onSelectedIndexChanged: {
39 console.debug("onSelectedIndexChanged " + model.get(selectedIndex).name + ", " + model.get(selectedIndex).file);
40 drone.confActiveUI=choices.get(selectedIndex).file
47 // anchors.leftMargin:50;anchors.rightMargin:50
48 contentHeight: dialogcontent.height
49 contentWidth: parent.width
54 anchors.leftMargin:50;anchors.rightMargin:150
58 font.pixelSize :textSize
63 text:drone.confActiveUI
64 anchors.right:parent.right
66 // activeUIDialog.setSelectedIndex(text);
67 activeUIDialog.open();
69 // onClicked:uiMenu.open()
75 font.pixelSize :textSize
82 anchors.right: parent.right
83 text: drone.confDroneIp
84 onTextChanged:{drone.confDroneIp=text;}
90 text: "Video 640x480/Full Screen"
92 font.pixelSize :textSize
96 checked:drone.confFullScreen
97 anchors.right:parent.right
98 onCheckedChanged:{drone.confFullScreen=checked;}
101 text: "Acceleration Sensor controll"
103 font.pixelSize :textSize
107 checked:drone.confUseAccel
108 anchors.right:parent.right
109 onCheckedChanged:{drone.confUseAccel=checked;}
114 font.pixelSize :textSize
118 checked:drone.confUseJoyStick
119 anchors.right:parent.right
120 enabled:js.haveJoyStick
121 onCheckedChanged:{drone.confUseJoyStick=checked;}
125 visible:drone.confUseJoyStick
126 font.pixelSize :textSize
127 text:"\"" + js.joyStickName + "\""
131 visible:drone.confUseJoyStick
133 anchors.right:parent.right
136 pageStack.push(calibrateDialog);
140 visible:drone.confUseJoyStick
141 font.pixelSize :textSize
142 text:"Show JoyStick Indicators"
146 visible:drone.confUseJoyStick
147 checked:drone.confShowJSIndicators
148 anchors.right:parent.right
149 enabled:js.haveJoyStick
150 onCheckedChanged:{drone.confShowJSIndicators=checked;}
156 font.pixelSize :textSize
160 checked:drone.confShowDebug
161 anchors.right:parent.right
162 onCheckedChanged:{drone.confShowDebug=checked;}
166 text: "Show engine gauges"
168 font.pixelSize :textSize
173 checked:drone.confShowGauges
174 anchors.right:parent.right
175 onCheckedChanged:{drone.confShowGauges=checked;}
181 font.pixelSize :textSize
186 checked:drone.confShowHorizon
187 anchors.right:parent.right
188 onCheckedChanged:{drone.confShowHorizon=checked;}
192 text: "Forward/backward gain"
194 font.pixelSize :textSize
199 anchors.right:parent.right
202 value:drone.confForwardGain
203 onValueChanged:{drone.confForwardGain=value;}
206 text: "Right/Left gain"
208 font.pixelSize :textSize
213 anchors.right:parent.right
216 value:drone.confRightGain
217 onValueChanged:{drone.confRightGain=value;}
220 text: "accel ctrl treshold"
222 font.pixelSize :textSize
227 anchors.right:parent.right
229 value:drone.confCtrlTrsh
230 onValueChanged:{drone.confCtrlTrsh=value;}
235 property color textColor:"black"
236 property int textSize:30
239 Component.onCompleted: {
240 if (calibrateDialog.status != Component.Ready)
241 console.log("Error loading component:", calibrateDialog.errorString());