mainguiwindow.ui 23.3 KB
Newer Older
1
2
3
4
5
6
7
8
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MainGUIWindow</class>
 <widget class="QMainWindow" name="MainGUIWindow">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
roangel's avatar
roangel committed
9
    <width>866</width>
10
    <height>820</height>
11
12
13
14
15
16
   </rect>
  </property>
  <property name="windowTitle">
   <string>MainGUIWindow</string>
  </property>
  <widget class="QWidget" name="centralWidget">
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
   <layout class="QGridLayout" name="gridLayout_3">
    <item row="0" column="0">
     <widget class="QFrame" name="frame_drawing">
      <property name="sizePolicy">
       <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
        <horstretch>0</horstretch>
        <verstretch>0</verstretch>
       </sizepolicy>
      </property>
      <property name="frameShape">
       <enum>QFrame::StyledPanel</enum>
      </property>
      <property name="frameShadow">
       <enum>QFrame::Raised</enum>
      </property>
      <layout class="QGridLayout" name="gridLayout_4">
       <item row="2" column="1">
        <widget class="QPushButton" name="pushButton_fitAll">
         <property name="text">
          <string>Fit All</string>
         </property>
        </widget>
       </item>
       <item row="2" column="0">
        <widget class="QPushButton" name="removeTable">
         <property name="text">
          <string>Remove Table</string>
         </property>
        </widget>
       </item>
       <item row="0" column="1">
        <widget class="QGroupBox" name="groupBox">
49
50
51
52
53
54
         <property name="sizePolicy">
          <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
         </property>
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
         <property name="title">
          <string>Creation Modes</string>
         </property>
         <layout class="QVBoxLayout" name="verticalLayout">
          <item>
           <widget class="QRadioButton" name="radioButton_table_mode">
            <property name="font">
             <font>
              <pointsize>7</pointsize>
             </font>
            </property>
            <property name="text">
             <string>Tables</string>
            </property>
            <property name="checked">
             <bool>true</bool>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QRadioButton" name="radioButton_crazyfly_zones_mode">
            <property name="font">
             <font>
              <pointsize>7</pointsize>
             </font>
            </property>
            <property name="text">
             <string>CrazyFly Zones</string>
            </property>
            <property name="checkable">
             <bool>true</bool>
            </property>
           </widget>
          </item>
          <item>
           <widget class="QRadioButton" name="radioButton_lock_mode">
            <property name="font">
             <font>
              <pointsize>7</pointsize>
             </font>
            </property>
            <property name="text">
             <string>Lock</string>
            </property>
            <property name="checkable">
             <bool>true</bool>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
       <item row="1" column="1">
        <widget class="QGroupBox" name="groupBox_2">
         <property name="title">
          <string>What to show</string>
         </property>
         <layout class="QGridLayout" name="gridLayout_5">
113
          <item row="4" column="0">
114
115
116
117
118
119
120
121
122
123
124
125
126
127
           <widget class="QCheckBox" name="checkBox_grid">
            <property name="font">
             <font>
              <pointsize>7</pointsize>
             </font>
            </property>
            <property name="text">
             <string>Show Grid</string>
            </property>
            <property name="checked">
             <bool>true</bool>
            </property>
           </widget>
          </item>
128
          <item row="5" column="0">
129
130
131
132
133
134
135
136
137
138
139
140
141
142
           <widget class="QCheckBox" name="checkBox_table">
            <property name="font">
             <font>
              <pointsize>7</pointsize>
             </font>
            </property>
            <property name="text">
             <string>Show Table</string>
            </property>
            <property name="checked">
             <bool>true</bool>
            </property>
           </widget>
          </item>
143
          <item row="8" column="0">
144
145
146
147
148
149
150
151
152
153
154
155
156
157
           <widget class="QCheckBox" name="checkBox_vicon_crazyflies">
            <property name="font">
             <font>
              <pointsize>7</pointsize>
             </font>
            </property>
            <property name="text">
             <string>Show CFs</string>
            </property>
            <property name="checked">
             <bool>false</bool>
            </property>
           </widget>
          </item>
158
          <item row="1" column="0">
159
160
161
162
163
164
165
166
167
168
169
170
171
172
           <widget class="QCheckBox" name="checkBox_crazyfly_zones">
            <property name="font">
             <font>
              <pointsize>7</pointsize>
             </font>
            </property>
            <property name="text">
             <string>Show CF Zones</string>
            </property>
            <property name="checked">
             <bool>true</bool>
            </property>
           </widget>
          </item>
173
          <item row="2" column="0">
174
175
176
177
178
179
180
181
182
183
184
185
186
187
           <widget class="QCheckBox" name="checkBox_vicon_markers">
            <property name="font">
             <font>
              <pointsize>7</pointsize>
             </font>
            </property>
            <property name="text">
             <string>Show Markers</string>
            </property>
            <property name="checked">
             <bool>false</bool>
            </property>
           </widget>
          </item>
188
          <item row="8" column="1">
189
           <widget class="QDoubleSpinBox" name="scaleSpinBox">
190
191
192
193
194
195
196
            <property name="font">
             <font>
              <pointsize>7</pointsize>
             </font>
            </property>
           </widget>
          </item>
197
          <item row="2" column="1">
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
           <widget class="QCheckBox" name="checkBox_vicon_highlight_markers">
            <property name="font">
             <font>
              <pointsize>6</pointsize>
             </font>
            </property>
            <property name="text">
             <string>Highlight Markers</string>
            </property>
            <property name="checkable">
             <bool>false</bool>
            </property>
           </widget>
          </item>
         </layout>
        </widget>
       </item>
roangel's avatar
roangel committed
215
216
217
218
219
220
221
222
223
224
225
226
227
       <item row="0" column="0" rowspan="2">
        <widget class="myGraphicsView" name="graphicsView">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
         </property>
         <property name="mouseTracking">
          <bool>true</bool>
         </property>
        </widget>
       </item>
228
229
230
231
232
233
      </layout>
      <zorder>graphicsView</zorder>
      <zorder>removeTable</zorder>
      <zorder>groupBox</zorder>
      <zorder>groupBox_2</zorder>
      <zorder>pushButton_fitAll</zorder>
234
     </widget>
235
236
237
238
239
240
241
242
    </item>
    <item row="0" column="1">
     <widget class="QFrame" name="frame_3">
      <property name="sizePolicy">
       <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
        <horstretch>0</horstretch>
        <verstretch>0</verstretch>
       </sizepolicy>
243
      </property>
244
245
      <property name="frameShape">
       <enum>QFrame::StyledPanel</enum>
246
      </property>
247
248
      <property name="frameShadow">
       <enum>QFrame::Raised</enum>
249
      </property>
roangel's avatar
roangel committed
250
      <layout class="QVBoxLayout" name="verticalLayout_2">
251
252
253
254
255
256
257
       <item>
        <widget class="QPushButton" name="all_motors_off_button">
         <property name="text">
          <string>All motors OFF</string>
         </property>
        </widget>
       </item>
roangel's avatar
roangel committed
258
259
260
261
262
       <item>
        <widget class="QTabWidget" name="tabWidget_2">
         <property name="currentIndex">
          <number>0</number>
         </property>
263

roangel's avatar
roangel committed
264
265
266
267
268
         <widget class="QWidget" name="links_tab">
          <attribute name="title">
           <string>Links</string>
          </attribute>
          <layout class="QGridLayout" name="gridLayout">
269
           <item row="6" column="1" colspan="6">
270
            <widget class="QLabel" name="err_message_student_id">
roangel's avatar
roangel committed
271
272
273
274
275
276
277
278
279
280
             <property name="font">
              <font>
               <pointsize>7</pointsize>
              </font>
             </property>
             <property name="text">
              <string>TextLabel</string>
             </property>
            </widget>
           </item>
281
           <item row="15" column="1" colspan="6">
282
            <widget class="QLabel" name="err_message_cf_zone">
roangel's avatar
roangel committed
283
284
285
286
287
288
289
290
291
292
             <property name="font">
              <font>
               <pointsize>7</pointsize>
              </font>
             </property>
             <property name="text">
              <string>TextLabel</string>
             </property>
            </widget>
           </item>
293
           <item row="10" column="1" colspan="6">
294
            <widget class="QLabel" name="err_message_cf">
roangel's avatar
roangel committed
295
296
297
298
299
300
301
302
303
304
             <property name="font">
              <font>
               <pointsize>7</pointsize>
              </font>
             </property>
             <property name="text">
              <string>TextLabel</string>
             </property>
            </widget>
           </item>
305
           <item row="5" column="1">
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
            <widget class="QSpinBox" name="spinBox_student_ids">
             <property name="sizePolicy">
              <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
               <horstretch>0</horstretch>
               <verstretch>0</verstretch>
              </sizepolicy>
             </property>
             <property name="minimum">
              <number>1</number>
             </property>
             <property name="maximum">
              <number>20</number>
             </property>
             <property name="value">
              <number>1</number>
             </property>
            </widget>
           </item>
           <item row="2" column="1">
            <widget class="QListWidget" name="list_discovered_student_ids">
             <property name="sizePolicy">
              <sizepolicy hsizetype="Expanding" vsizetype="Minimum">
               <horstretch>0</horstretch>
               <verstretch>0</verstretch>
              </sizepolicy>
             </property>
            </widget>
           </item>
334
           <item row="9" column="1">
335
336
            <widget class="QComboBox" name="comboBoxCFs"/>
           </item>
337
338
339
340
           <item row="14" column="1">
            <widget class="QComboBox" name="comboBoxCFZones"/>
           </item>
           <item row="4" column="1">
341
            <widget class="QLabel" name="label_4">
roangel's avatar
roangel committed
342
             <property name="text">
343
              <string>Choose Student ID:</string>
roangel's avatar
roangel committed
344
345
346
             </property>
            </widget>
           </item>
347
           <item row="7" column="1">
roangel's avatar
roangel committed
348
349
350
351
352
353
            <widget class="QLabel" name="label_2">
             <property name="text">
              <string>Choose CF to link:</string>
             </property>
            </widget>
           </item>
354
           <item row="13" column="1">
roangel's avatar
roangel committed
355
356
357
358
359
360
            <widget class="QLabel" name="label_3">
             <property name="text">
              <string>Choose CF Zone to link:</string>
             </property>
            </widget>
           </item>
361
           <item row="9" column="6">
roangel's avatar
roangel committed
362
363
364
            <widget class="QPushButton" name="refresh_cfs_button">
             <property name="text">
              <string>Refresh CFs</string>
365
             </property>
roangel's avatar
roangel committed
366
367
            </widget>
           </item>
368
           <item row="2" column="6">
roangel's avatar
roangel committed
369
370
371
            <widget class="QPushButton" name="refresh_student_ids_button">
             <property name="text">
              <string>Refresh IDs</string>
372
             </property>
roangel's avatar
roangel committed
373
374
            </widget>
           </item>
375
           <item row="16" column="1" colspan="6">
376
            <widget class="QTableWidget" name="table_links">
377
378
             <property name="minimumSize">
              <size>
roangel's avatar
roangel committed
379
               <width>273</width>
380
381
382
               <height>0</height>
              </size>
             </property>
383
384
385
386
387
388
389
390
391
392
             <property name="wordWrap">
              <bool>true</bool>
             </property>
             <property name="rowCount">
              <number>0</number>
             </property>
             <property name="columnCount">
              <number>0</number>
             </property>
             <attribute name="horizontalHeaderVisible">
393
              <bool>false</bool>
394
395
396
             </attribute>
            </widget>
           </item>
397
           <item row="14" column="6">
398
399
400
401
402
403
            <widget class="QPushButton" name="link_button">
             <property name="text">
              <string>Link!</string>
             </property>
            </widget>
           </item>
404
           <item row="18" column="6">
405
406
407
408
409
410
            <widget class="QPushButton" name="unlink_button">
             <property name="text">
              <string>Unlink!</string>
             </property>
            </widget>
           </item>
411
           <item row="20" column="6">
412
413
414
415
416
417
            <widget class="QPushButton" name="save_in_DB_button">
             <property name="text">
              <string>Save in DB</string>
             </property>
            </widget>
           </item>
418
419
420
421
422
423
424
425
426
427
428
           <item row="11" column="6">
            <widget class="QLineEdit" name="radioAddress_text">
             <property name="readOnly">
              <bool>true</bool>
             </property>
             <property name="clearButtonEnabled">
              <bool>false</bool>
             </property>
            </widget>
           </item>
           <item row="19" column="6">
429
430
431
432
433
434
            <widget class="QPushButton" name="load_from_DB_button">
             <property name="text">
              <string>Load from DB</string>
             </property>
            </widget>
           </item>
435
           <item row="11" column="1">
436
437
438
439
440
441
            <widget class="QLabel" name="label">
             <property name="text">
              <string>Radio Address:</string>
             </property>
            </widget>
           </item>
442
           <item row="12" column="6">
443
444
445
446
447
448
449
450
451
452
453
            <widget class="QLabel" name="err_message_radio_address">
             <property name="font">
              <font>
               <pointsize>7</pointsize>
              </font>
             </property>
             <property name="text">
              <string>TextLabel</string>
             </property>
            </widget>
           </item>
roangel's avatar
roangel committed
454
455
          </layout>
         </widget>
456
457
458
459
460

         <widget class="QWidget" name="localisation_tab">
          <attribute name="title">
            <string>Localisation</string>
          </attribute>
tiagos's avatar
tiagos committed
461
          <layout class="QGridLayout" name="uwblayout">
462
            <item row="1" column="1">
tiagos's avatar
tiagos committed
463
              <widget class="QLabel" name="label_settings">
464
                <property name="text">
tiagos's avatar
tiagos committed
465
                  <string>Calibrate Anchors:</string>
466
                </property>
tiagos's avatar
tiagos committed
467
              </widget>
468
            </item>
tiagos's avatar
tiagos committed
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



            <item row="1" column="7">
              <layout class="QGridLayout">
                <item row="1" column="1">
                  <widget class="QPushButton" name="calibrateAnchors_button">
                    <property name="text">
                      <string>Run</string>
                    </property>
                  </widget>
                </item>
                <item row="1" column="2">
                  <widget class="QCheckBox" name="checkBox_localisation_done">
                    <property name="checked">
                      <bool>false</bool>
                    </property>
                    <property name="enabled">
                      <bool>false</bool>
                    </property>
                  </widget>
                </item>
              </layout>
            </item>
            <item row="2" column="1" colspan="6">
              <widget class="QTableWidget" name="table_anchorPos">
                <property name="minimumSize">
                  <size>
tiagos's avatar
tiagos committed
497
                    <width>362</width>
tiagos's avatar
tiagos committed
498
499
                    <height>140</height>
                  </size>
tiagos's avatar
tiagos committed
500
                </property>
tiagos's avatar
tiagos committed
501
502
                <property name="maximumSize">
                  <size>
tiagos's avatar
tiagos committed
503
                   <width>362</width>
tiagos's avatar
tiagos committed
504
505
506
                   <height>140</height>
                  </size>
                </property> 
tiagos's avatar
tiagos committed
507
508
509
                <property name="rowCount">
                  <number>0</number>
                </property>
tiagos's avatar
tiagos committed
510
511
              </widget>
            </item>
tiagos's avatar
tiagos committed
512
            <item row="2" column="7">
tiagos's avatar
tiagos committed
513
514
515
516
              <widget class="QPushButton" name="reloadAnchors_button">
                <property name="text">
                  <string>Reload Anchors</string>
                </property>
tiagos's avatar
tiagos committed
517
                <!-- <property name="enabled">
tiagos's avatar
tiagos committed
518
                  <bool>false</bool>
tiagos's avatar
tiagos committed
519
                </property> -->
tiagos's avatar
tiagos committed
520
521
              </widget>
            </item>
tiagos's avatar
tiagos committed
522
            
tiagos's avatar
tiagos committed
523
            <item row="3" column="1">
tiagos's avatar
tiagos committed
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
              <layout class="QGridLayout">
                <item row="1" column="1">
                  <widget class="QLabel">
                    <property name="text">
                      <string>x-offset:</string>
                    </property>
                  </widget>
                </item>
                <item row="1" column="2">
                  <widget class="QDoubleSpinBox" name="uwbxoffset">
                    <property name="decimals">
                      <number>3</number>
                    </property>
                    <property name="minimum">
                      <number>-20</number>
                    </property>
                    <property name="maximum">
                      <number>20</number>
                    </property>
                    <property name="singleStep">
                      <double>0.001</double>
                    </property>
tiagos's avatar
tiagos committed
546
547
548
                    <property name="enabled">
                      <bool>false</bool>          
                    </property>
tiagos's avatar
tiagos committed
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
                  </widget>
                </item>
                <item row="2" column="1">
                  <widget class="QLabel">
                    <property name="text">
                      <string>y-offset:</string>
                    </property>
                  </widget>
                </item>
                <item row="2" column="2">
                  <widget class="QDoubleSpinBox" name="uwbyoffset">
                    <property name="decimals">
                      <number>3</number>
                    </property>
                    <property name="minimum">
                      <number>-20</number>
                    </property>
                    <property name="maximum">
                      <number>20</number>
                    </property>
                    <property name="singleStep">
                      <double>0.001</double>
                    </property>
tiagos's avatar
tiagos committed
572
573
574
                    <property name="enabled">
                      <bool>false</bool>          
                    </property>
tiagos's avatar
tiagos committed
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
                  </widget>
                </item>
                <item row="3" column="1">
                  <widget class="QLabel">
                    <property name="text">
                      <string>z-offset:</string>
                    </property>
                  </widget>
                </item>
                <item row="3" column="2">
                  <widget class="QDoubleSpinBox" name="uwbzoffset">
                    <property name="decimals">
                      <number>3</number>
                    </property>
                    <property name="minimum">
                      <number>-20</number>
                    </property>
                    <property name="maximum">
                      <number>20</number>
                    </property>
                    <property name="singleStep">
                      <double>0.001</double>
                    </property>
tiagos's avatar
tiagos committed
598
599
600
                    <property name="enabled">
                      <bool>false</bool>          
                    </property>
tiagos's avatar
tiagos committed
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
                  </widget>
                </item>
              </layout>
            </item>
            <item row="3" column="7">
              <widget class="QPushButton" name="set_offset_button">
                <property name="text">
                  <string>Set Offset</string>
                </property>
                <property name="enabled">
                  <bool>false</bool>
                </property>
              </widget>
            </item>
            <item row="4" column="1">
616
617
618
619
620
621
622
              <widget class="QCheckBox" name="checkBox_enable_UWB">
                <property name="text">
                  <string>Enable UWB Positioning</string>
                </property>
                <property name="checked">
                  <bool>false</bool>
                </property>
tiagos's avatar
tiagos committed
623
624
625
                <property name="enabled">
                  <bool>false</bool>
                </property>
626
627
              </widget>
            </item>
tiagos's avatar
tiagos committed
628
629
630
631



            <item row="12" column="1">
tiagos's avatar
tiagos committed
632
633
634
635
636
637
638
639
640
              <widget class="QLabel" name="label_anchors123">
                <property name="text">
                  <string></string>
                </property>
              </widget> 
            </item>
            
            
            
641
642
643
          </layout>
         </widget>
        
roangel's avatar
roangel committed
644
645
646
        </widget>
       </item>
      </layout>
647
     </widget>
648
    </item>
roangel's avatar
roangel committed
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
    <item row="1" column="0" colspan="2">
     <widget class="QFrame" name="frame">
      <property name="sizePolicy">
       <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
        <horstretch>0</horstretch>
        <verstretch>0</verstretch>
       </sizepolicy>
      </property>
      <property name="frameShape">
       <enum>QFrame::StyledPanel</enum>
      </property>
      <property name="frameShadow">
       <enum>QFrame::Raised</enum>
      </property>
      <layout class="QVBoxLayout" name="verticalLayout_3">
       <item>
        <widget class="QTabWidget" name="tabWidget">
         <property name="sizePolicy">
          <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
           <horstretch>0</horstretch>
           <verstretch>0</verstretch>
          </sizepolicy>
         </property>
         <property name="layoutDirection">
          <enum>Qt::LeftToRight</enum>
         </property>
         <property name="currentIndex">
          <number>-1</number>
         </property>
         <property name="tabsClosable">
          <bool>true</bool>
         </property>
        </widget>
       </item>
      </layout>
     </widget>
    </item>
686
   </layout>
687
688
689
690
691
692
  </widget>
  <widget class="QMenuBar" name="menuBar">
   <property name="geometry">
    <rect>
     <x>0</x>
     <y>0</y>
roangel's avatar
roangel committed
693
     <width>866</width>
694
     <height>25</height>
695
696
697
698
699
700
701
702
    </rect>
   </property>
  </widget>
  <widget class="QToolBar" name="mainToolBar">
   <attribute name="toolBarArea">
    <enum>TopToolBarArea</enum>
   </attribute>
   <attribute name="toolBarBreak">
roangel's avatar
roangel committed
703
    <bool>false</bool>
704
705
706
707
708
709
710
711
712
   </attribute>
  </widget>
  <widget class="QStatusBar" name="statusBar"/>
 </widget>
 <layoutdefault spacing="6" margin="11"/>
 <customwidgets>
  <customwidget>
   <class>myGraphicsView</class>
   <extends>QGraphicsView</extends>
713
   <header>myGraphicsView.h</header>
714
715
716
717
718
  </customwidget>
 </customwidgets>
 <resources/>
 <connections/>
</ui>