2 import com.nokia.meego 1.0
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 // var data = {'name':uiList.get(j).name };
15 console.debug("appending ",uiList.get(j).name,uiList.get(j).file);
17 if(uiList.get(j).file==drone.confActiveUI) { activeUIDialog.selectedIndex=j; uiDialogButton.text=uiList.get(j).name }
23 /* ListElement {name:"xyzzy" ;file:"plugh.qml"}
24 ListElement {name:"xyzzy2" ;file:"plugh.qml"}*/
30 onSelectedIndexChanged: {
31 console.debug("onSelectedIndexChanged " + model.get(selectedIndex).name + ", " + model.get(selectedIndex).file);
32 drone.confActiveUI=choices.get(selectedIndex).file;
33 uiDialogButton.text=uiList.get(selectedIndex).name
40 // anchors.leftMargin:50;anchors.rightMargin:50
41 contentHeight: dialogcontent.height
42 contentWidth: parent.width
47 anchors.leftMargin:50;anchors.rightMargin:150
51 font.pixelSize :textSize
58 anchors.right:parent.right
60 // activeUIDialog.setSelectedIndex(text);
61 activeUIDialog.open();
63 // onClicked:uiMenu.open()
69 font.pixelSize :textSize
76 anchors.right: parent.right
77 text: drone.confDroneIp
78 onTextChanged:{drone.confDroneIp=text;}
84 text: "Video 640x480/Full Screen"
86 font.pixelSize :textSize
90 checked:drone.confFullScreen
91 anchors.right:parent.right
92 onCheckedChanged:{drone.confFullScreen=checked;}
95 text: "Acceleration Sensor controll"
97 font.pixelSize :textSize
101 checked:drone.confUseAccel
102 anchors.right:parent.right
103 onCheckedChanged:{drone.confUseAccel=checked;}
108 font.pixelSize :textSize
112 checked:drone.confUseJoyStick
113 anchors.right:parent.right
114 // enabled:js.haveJoyStick
115 onCheckedChanged:{drone.confUseJoyStick=checked;}
119 visible:drone.confUseJoyStick
120 font.pixelSize :textSize
121 text:"\"" + js.joyStickName + "\""
125 visible:drone.confUseJoyStick
127 anchors.right:parent.right
130 pageStack.push(calibrateDialog);
134 visible:drone.confUseJoyStick
135 font.pixelSize :textSize
136 text:"Show JoyStick Indicators"
140 visible:drone.confUseJoyStick
141 checked:drone.confShowJSIndicators
142 anchors.right:parent.right
143 enabled:js.haveJoyStick
144 onCheckedChanged:{drone.confShowJSIndicators=checked;}
150 font.pixelSize :textSize
154 checked:drone.confShowDebug
155 anchors.right:parent.right
156 onCheckedChanged:{drone.confShowDebug=checked;}
160 text: "Show engine gauges"
162 font.pixelSize :textSize
167 checked:drone.confShowGauges
168 anchors.right:parent.right
169 onCheckedChanged:{drone.confShowGauges=checked;}
175 font.pixelSize :textSize
180 checked:drone.confShowHorizon
181 anchors.right:parent.right
182 onCheckedChanged:{drone.confShowHorizon=checked;}
186 text: "Forward/backward gain"
188 font.pixelSize :textSize
193 anchors.right:parent.right
196 value:drone.confForwardGain
197 onValueChanged:{drone.confForwardGain=value;}
200 text: "Right/Left gain"
202 font.pixelSize :textSize
207 anchors.right:parent.right
210 value:drone.confRightGain
211 onValueChanged:{drone.confRightGain=value;}
214 text: "accel ctrl treshold"
216 font.pixelSize :textSize
221 anchors.right:parent.right
223 value:drone.confCtrlTrsh
224 onValueChanged:{drone.confCtrlTrsh=value;}
229 property color textColor:"black"
230 property int textSize:30