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"}}
20 // anchors.leftMargin:50;anchors.rightMargin:50
21 contentHeight: dialogcontent.height
22 contentWidth: parent.width
27 anchors.leftMargin:50;anchors.rightMargin:150
31 font.pixelSize :textSize
36 text:drone.confActiveUI
37 anchors.right:parent.right
38 onClicked:uiMenu.open()
44 font.pixelSize :textSize
51 anchors.right: parent.right
52 text: drone.confDroneIp
53 onTextChanged:{drone.confDroneIp=text;}
59 text: "Video 640x480/Full Screen"
61 font.pixelSize :textSize
65 checked:drone.confFullScreen
66 anchors.right:parent.right
67 onCheckedChanged:{drone.confFullScreen=checked;}
70 text: "Acceleration Sensor controll"
72 font.pixelSize :textSize
76 checked:drone.confUseAccel
77 anchors.right:parent.right
78 onCheckedChanged:{drone.confUseAccel=checked;}
83 font.pixelSize :textSize
87 checked:drone.confUseJoyStick
88 anchors.right:parent.right
89 enabled:js.haveJoyStick
90 onCheckedChanged:{drone.confUseJoyStick=checked;}
94 visible:drone.confUseJoyStick
95 font.pixelSize :textSize
96 text:"\"" + js.joyStickName + "\""
100 visible:drone.confUseJoyStick
102 anchors.right:parent.right
105 pageStack.push(calibrateDialog);
109 visible:drone.confUseJoyStick
110 font.pixelSize :textSize
111 text:"Show JoyStick Indicators"
115 visible:drone.confUseJoyStick
116 checked:drone.confShowJSIndicators
117 anchors.right:parent.right
118 enabled:js.haveJoyStick
119 onCheckedChanged:{drone.confShowJSIndicators=checked;}
125 font.pixelSize :textSize
129 checked:drone.confShowDebug
130 anchors.right:parent.right
131 onCheckedChanged:{drone.confShowDebug=checked;}
135 text: "Show engine gauges"
137 font.pixelSize :textSize
142 checked:drone.confShowGauges
143 anchors.right:parent.right
144 onCheckedChanged:{drone.confShowGauges=checked;}
150 font.pixelSize :textSize
155 checked:drone.confShowHorizon
156 anchors.right:parent.right
157 onCheckedChanged:{drone.confShowHorizon=checked;}
161 text: "Forward/backward gain"
163 font.pixelSize :textSize
168 anchors.right:parent.right
171 value:drone.confForwardGain
172 onValueChanged:{drone.confForwardGain=value;}
175 text: "Right/Left gain"
177 font.pixelSize :textSize
182 anchors.right:parent.right
185 value:drone.confRightGain
186 onValueChanged:{drone.confRightGain=value;}
189 text: "accel ctrl treshold"
191 font.pixelSize :textSize
196 anchors.right:parent.right
198 value:drone.confCtrlTrsh
199 onValueChanged:{drone.confCtrlTrsh=value;}
204 property color textColor:"black"
205 property int textSize:30
211 Component.onCompleted: {
212 if (jc.status != Component.Ready)
213 console.log("Error loading component:", jc.errorString());