JoystickWidget.ui 16.3 KB
Newer Older
pixhawk's avatar
pixhawk committed
1 2 3 4 5 6 7 8
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>JoystickWidget</class>
 <widget class="QDialog" name="JoystickWidget">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
9 10
    <width>497</width>
    <height>448</height>
pixhawk's avatar
pixhawk committed
11 12
   </rect>
  </property>
13 14 15 16 17 18
  <property name="minimumSize">
   <size>
    <width>368</width>
    <height>274</height>
   </size>
  </property>
pixhawk's avatar
pixhawk committed
19 20 21
  <property name="windowTitle">
   <string>Dialog</string>
  </property>
22
  <layout class="QGridLayout" name="gridLayout_2" columnstretch="10,0,0,0,10">
23 24
   <property name="margin">
    <number>8</number>
pixhawk's avatar
pixhawk committed
25
   </property>
26 27
   <property name="spacing">
    <number>8</number>
pixhawk's avatar
pixhawk committed
28
   </property>
29 30 31 32 33 34 35
   <item row="1" column="0">
    <widget class="QGroupBox" name="groupBox">
     <property name="minimumSize">
      <size>
       <width>0</width>
       <height>0</height>
      </size>
Lorenz Meier's avatar
Lorenz Meier committed
36 37 38
     </property>
     <property name="maximumSize">
      <size>
39 40
       <width>40</width>
       <height>400</height>
Lorenz Meier's avatar
Lorenz Meier committed
41 42 43
      </size>
     </property>
     <property name="title">
44
      <string>Buttons</string>
Lorenz Meier's avatar
Lorenz Meier committed
45
     </property>
46 47 48 49 50 51 52
     <property name="alignment">
      <set>Qt::AlignCenter</set>
     </property>
     <property name="flat">
      <bool>false</bool>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout">
Lorenz Meier's avatar
Lorenz Meier committed
53
      <property name="spacing">
54
       <number>1</number>
Lorenz Meier's avatar
Lorenz Meier committed
55 56
      </property>
      <property name="margin">
57
       <number>3</number>
Lorenz Meier's avatar
Lorenz Meier committed
58 59
      </property>
      <item>
60 61
       <widget class="QLabel" name="button0">
        <property name="enabled">
62 63
         <bool>true</bool>
        </property>
64 65 66 67 68
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
69 70
        </property>
        <property name="text">
71
         <string>0</string>
72
        </property>
Lorenz Meier's avatar
Lorenz Meier committed
73
        <property name="alignment">
74
         <set>Qt::AlignCenter</set>
75 76 77 78
        </property>
       </widget>
      </item>
      <item>
79 80 81
       <widget class="QLabel" name="button1">
        <property name="enabled">
         <bool>true</bool>
82
        </property>
83 84 85 86 87
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
88
        </property>
89 90
        <property name="text">
         <string>1</string>
91
        </property>
92 93
        <property name="alignment">
         <set>Qt::AlignCenter</set>
94 95 96 97
        </property>
       </widget>
      </item>
      <item>
98 99 100
       <widget class="QLabel" name="button2">
        <property name="enabled">
         <bool>true</bool>
101
        </property>
102 103 104 105 106
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
107
        </property>
108 109
        <property name="text">
         <string>2</string>
110
        </property>
111 112
        <property name="alignment">
         <set>Qt::AlignCenter</set>
113 114 115 116
        </property>
       </widget>
      </item>
      <item>
117 118 119
       <widget class="QLabel" name="button3">
        <property name="enabled">
         <bool>true</bool>
120
        </property>
121 122 123 124 125
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
126
        </property>
127 128
        <property name="text">
         <string>3</string>
129
        </property>
130 131
        <property name="alignment">
         <set>Qt::AlignCenter</set>
132 133 134 135
        </property>
       </widget>
      </item>
      <item>
136 137 138
       <widget class="QLabel" name="button4">
        <property name="enabled">
         <bool>true</bool>
139
        </property>
140 141 142 143 144
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
145
        </property>
146 147
        <property name="text">
         <string>4</string>
148
        </property>
149 150
        <property name="alignment">
         <set>Qt::AlignCenter</set>
151 152 153 154
        </property>
       </widget>
      </item>
      <item>
155 156 157
       <widget class="QLabel" name="button5">
        <property name="enabled">
         <bool>true</bool>
158
        </property>
159 160 161 162 163
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
164
        </property>
165 166
        <property name="text">
         <string>5</string>
167
        </property>
168 169
        <property name="alignment">
         <set>Qt::AlignCenter</set>
170 171 172 173
        </property>
       </widget>
      </item>
      <item>
174 175 176
       <widget class="QLabel" name="button6">
        <property name="enabled">
         <bool>true</bool>
177
        </property>
178 179 180 181 182
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
183
        </property>
184 185
        <property name="text">
         <string>6</string>
186
        </property>
187 188
        <property name="alignment">
         <set>Qt::AlignCenter</set>
189 190 191 192
        </property>
       </widget>
      </item>
      <item>
193 194 195
       <widget class="QLabel" name="button7">
        <property name="enabled">
         <bool>true</bool>
196
        </property>
197 198 199 200 201
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
202
        </property>
203 204
        <property name="text">
         <string>7</string>
205
        </property>
206 207
        <property name="alignment">
         <set>Qt::AlignCenter</set>
208 209 210 211
        </property>
       </widget>
      </item>
      <item>
212 213 214
       <widget class="QLabel" name="button8">
        <property name="enabled">
         <bool>true</bool>
215
        </property>
216 217 218 219 220
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
221
        </property>
222 223
        <property name="text">
         <string>8</string>
224
        </property>
225 226
        <property name="alignment">
         <set>Qt::AlignCenter</set>
227 228 229 230
        </property>
       </widget>
      </item>
      <item>
231 232 233
       <widget class="QLabel" name="button9">
        <property name="enabled">
         <bool>true</bool>
234
        </property>
235 236 237 238 239
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
240
        </property>
241 242
        <property name="text">
         <string>9</string>
243
        </property>
244 245
        <property name="alignment">
         <set>Qt::AlignCenter</set>
246 247 248 249
        </property>
       </widget>
      </item>
      <item>
250 251 252
       <widget class="QLabel" name="button10">
        <property name="enabled">
         <bool>true</bool>
253
        </property>
254 255 256 257 258
        <property name="sizePolicy">
         <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
          <horstretch>0</horstretch>
          <verstretch>0</verstretch>
         </sizepolicy>
259
        </property>
260 261
        <property name="text">
         <string>10</string>
262
        </property>
263 264
        <property name="alignment">
         <set>Qt::AlignCenter</set>
265 266 267 268 269 270
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
271
   <item row="1" column="4">
Lorenz Meier's avatar
Lorenz Meier committed
272 273 274 275
    <widget class="QGroupBox" name="groupBox_4">
     <property name="title">
      <string>Mappings</string>
     </property>
276 277 278 279 280
     <property name="alignment">
      <set>Qt::AlignCenter</set>
     </property>
     <layout class="QGridLayout" name="gridLayout_3" columnstretch="30,10,0">
      <item row="3" column="1">
Lorenz Meier's avatar
Lorenz Meier committed
281 282 283 284 285 286
       <widget class="QLabel" name="label_6">
        <property name="text">
         <string>Throttle</string>
        </property>
       </widget>
      </item>
287
      <item row="5" column="1">
Lorenz Meier's avatar
Lorenz Meier committed
288 289 290 291 292 293
       <widget class="QLabel" name="label_8">
        <property name="text">
         <string>Stabilized Button</string>
        </property>
       </widget>
      </item>
294
      <item row="4" column="1">
Lorenz Meier's avatar
Lorenz Meier committed
295 296 297 298 299 300
       <widget class="QLabel" name="label_7">
        <property name="text">
         <string>Auto Button</string>
        </property>
       </widget>
      </item>
301
      <item row="6" column="1">
Lorenz Meier's avatar
Lorenz Meier committed
302 303 304 305 306 307
       <widget class="QLabel" name="label_9">
        <property name="text">
         <string>Manual Button</string>
        </property>
       </widget>
      </item>
308
      <item row="1" column="1">
Lorenz Meier's avatar
Lorenz Meier committed
309 310 311 312 313 314
       <widget class="QLabel" name="label_4">
        <property name="text">
         <string>Pitch Axis</string>
        </property>
       </widget>
      </item>
315
      <item row="2" column="1">
Lorenz Meier's avatar
Lorenz Meier committed
316 317 318 319 320 321
       <widget class="QLabel" name="label_5">
        <property name="text">
         <string>Yaw Axis</string>
        </property>
       </widget>
      </item>
322
      <item row="0" column="1">
Lorenz Meier's avatar
Lorenz Meier committed
323 324 325 326 327 328
       <widget class="QLabel" name="label_3">
        <property name="text">
         <string>Roll Axis</string>
        </property>
       </widget>
      </item>
329
      <item row="7" column="1" colspan="2">
Lorenz Meier's avatar
Lorenz Meier committed
330 331 332 333 334 335 336 337 338 339 340 341
       <spacer name="verticalSpacer">
        <property name="orientation">
         <enum>Qt::Vertical</enum>
        </property>
        <property name="sizeHint" stdset="0">
         <size>
          <width>20</width>
          <height>40</height>
         </size>
        </property>
       </spacer>
      </item>
342
      <item row="0" column="2">
Lorenz Meier's avatar
Lorenz Meier committed
343 344
       <widget class="QSpinBox" name="rollMapSpinBox"/>
      </item>
345
      <item row="1" column="2">
Lorenz Meier's avatar
Lorenz Meier committed
346 347
       <widget class="QSpinBox" name="pitchMapSpinBox"/>
      </item>
348
      <item row="2" column="2">
Lorenz Meier's avatar
Lorenz Meier committed
349 350
       <widget class="QSpinBox" name="yawMapSpinBox"/>
      </item>
351
      <item row="3" column="2">
Lorenz Meier's avatar
Lorenz Meier committed
352 353
       <widget class="QSpinBox" name="throttleMapSpinBox"/>
      </item>
354
      <item row="4" column="2">
Lorenz Meier's avatar
Lorenz Meier committed
355 356
       <widget class="QSpinBox" name="autoMapSpinBox"/>
      </item>
357
      <item row="5" column="2">
Lorenz Meier's avatar
Lorenz Meier committed
358 359
       <widget class="QSpinBox" name="stabilizedMapSpinBox"/>
      </item>
360
      <item row="6" column="2">
Lorenz Meier's avatar
Lorenz Meier committed
361 362 363 364 365
       <widget class="QSpinBox" name="manualMapSpinBox"/>
      </item>
     </layout>
    </widget>
   </item>
366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559
   <item row="1" column="2">
    <widget class="QGroupBox" name="groupBox_2">
     <property name="title">
      <string>Stick</string>
     </property>
     <property name="alignment">
      <set>Qt::AlignCenter</set>
     </property>
     <layout class="QGridLayout" name="gridLayout">
      <property name="margin">
       <number>6</number>
      </property>
      <item row="0" column="1">
       <widget class="QLCDNumber" name="xValue">
        <property name="minimumSize">
         <size>
          <width>0</width>
          <height>0</height>
         </size>
        </property>
        <property name="maximumSize">
         <size>
          <width>40</width>
          <height>24</height>
         </size>
        </property>
        <property name="frameShadow">
         <enum>QFrame::Plain</enum>
        </property>
        <property name="smallDecimalPoint">
         <bool>true</bool>
        </property>
        <property name="numDigits">
         <number>3</number>
        </property>
        <property name="segmentStyle">
         <enum>QLCDNumber::Flat</enum>
        </property>
       </widget>
      </item>
      <item row="1" column="1" rowspan="2">
       <widget class="QSlider" name="xSlider">
        <property name="enabled">
         <bool>false</bool>
        </property>
        <property name="minimum">
         <number>-100</number>
        </property>
        <property name="maximum">
         <number>100</number>
        </property>
        <property name="orientation">
         <enum>Qt::Vertical</enum>
        </property>
       </widget>
      </item>
      <item row="4" column="6">
       <widget class="QLCDNumber" name="yValue">
        <property name="enabled">
         <bool>true</bool>
        </property>
        <property name="maximumSize">
         <size>
          <width>40</width>
          <height>24</height>
         </size>
        </property>
        <property name="frameShadow">
         <enum>QFrame::Plain</enum>
        </property>
        <property name="smallDecimalPoint">
         <bool>true</bool>
        </property>
        <property name="numDigits">
         <number>3</number>
        </property>
        <property name="segmentStyle">
         <enum>QLCDNumber::Flat</enum>
        </property>
       </widget>
      </item>
      <item row="0" column="2" rowspan="3" colspan="5">
       <widget class="QDial" name="dial">
        <property name="enabled">
         <bool>false</bool>
        </property>
        <property name="minimum">
         <number>-100</number>
        </property>
        <property name="maximum">
         <number>100</number>
        </property>
       </widget>
      </item>
      <item row="4" column="2">
       <widget class="QLabel" name="label_2">
        <property name="text">
         <string>Y</string>
        </property>
        <property name="alignment">
         <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
        </property>
       </widget>
      </item>
      <item row="4" column="3" colspan="3">
       <widget class="QSlider" name="ySlider">
        <property name="enabled">
         <bool>false</bool>
        </property>
        <property name="minimum">
         <number>-100</number>
        </property>
        <property name="maximum">
         <number>100</number>
        </property>
        <property name="orientation">
         <enum>Qt::Horizontal</enum>
        </property>
       </widget>
      </item>
      <item row="4" column="1">
       <widget class="QLabel" name="label">
        <property name="text">
         <string>X</string>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item row="1" column="3">
    <widget class="QGroupBox" name="groupBox_3">
     <property name="maximumSize">
      <size>
       <width>60</width>
       <height>16777215</height>
      </size>
     </property>
     <property name="title">
      <string>Throttle</string>
     </property>
     <layout class="QVBoxLayout" name="verticalLayout_2">
      <property name="spacing">
       <number>0</number>
      </property>
      <property name="margin">
       <number>2</number>
      </property>
      <item>
       <widget class="QProgressBar" name="thrust">
        <property name="enabled">
         <bool>true</bool>
        </property>
        <property name="minimumSize">
         <size>
          <width>40</width>
          <height>20</height>
         </size>
        </property>
        <property name="value">
         <number>0</number>
        </property>
        <property name="orientation">
         <enum>Qt::Vertical</enum>
        </property>
       </widget>
      </item>
     </layout>
    </widget>
   </item>
   <item row="2" column="0" colspan="5">
    <layout class="QHBoxLayout" name="horizontalLayout">
     <item>
      <widget class="QLabel" name="statusLabel">
       <property name="lineWidth">
        <number>1</number>
       </property>
       <property name="text">
        <string>No joystick detected yet.. waiting</string>
       </property>
      </widget>
     </item>
     <item>
      <widget class="QDialogButtonBox" name="buttonBox">
       <property name="orientation">
        <enum>Qt::Horizontal</enum>
       </property>
       <property name="standardButtons">
        <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
       </property>
      </widget>
     </item>
    </layout>
   </item>
560
  </layout>
pixhawk's avatar
pixhawk committed
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597
 </widget>
 <resources/>
 <connections>
  <connection>
   <sender>buttonBox</sender>
   <signal>accepted()</signal>
   <receiver>JoystickWidget</receiver>
   <slot>accept()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>248</x>
     <y>254</y>
    </hint>
    <hint type="destinationlabel">
     <x>157</x>
     <y>274</y>
    </hint>
   </hints>
  </connection>
  <connection>
   <sender>buttonBox</sender>
   <signal>rejected()</signal>
   <receiver>JoystickWidget</receiver>
   <slot>reject()</slot>
   <hints>
    <hint type="sourcelabel">
     <x>316</x>
     <y>260</y>
    </hint>
    <hint type="destinationlabel">
     <x>286</x>
     <y>274</y>
    </hint>
   </hints>
  </connection>
 </connections>
</ui>