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,'modelData':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; uiDialogButton.text=uiList.get(j).name }
30 /* ListElement {name:"xyzzy" ;file:"plugh.qml"}
31 ListElement {name:"xyzzy2" ;file:"plugh.qml"}*/
37 onSelectedIndexChanged: {
38 console.debug("onSelectedIndexChanged " + model.get(selectedIndex).name + ", " + model.get(selectedIndex).file);
39 drone.confActiveUI=choices.get(selectedIndex).file;
40 uiDialogButton.text=uiList.get(selectedIndex).name
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
65 anchors.right:parent.right
67 // activeUIDialog.setSelectedIndex(text);
68 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