UASView.h 21.3 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
/********************************************************************************
** Form generated from reading UI file 'UASView.ui'
**
** Created: Sun Jul 11 18:53:34 2010
**      by: Qt User Interface Compiler version 4.6.2
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/

#ifndef UASVIEW_H
#define UASVIEW_H

#include <QtCore/QVariant>
14
15
16
17
18
19
20
21
22
23
24
25
26
#include <QAction>
#include <QApplication>
#include <QButtonGroup>
#include <QGridLayout>
#include <QGroupBox>
#include <QHBoxLayout>
#include <QHeaderView>
#include <QLabel>
#include <QProgressBar>
#include <QPushButton>
#include <QSpacerItem>
#include <QToolButton>
#include <QWidget>
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60

QT_BEGIN_NAMESPACE

class Ui_UASView
{
public:
    QHBoxLayout *horizontalLayout_2;
    QGroupBox *uasViewFrame;
    QGridLayout *gridLayout;
    QToolButton *typeButton;
    QSpacerItem *horizontalSpacer_2;
    QLabel *nameLabel;
    QLabel *modeLabel;
    QLabel *timeRemainingLabel;
    QLabel *timeElapsedLabel;
    QProgressBar *thrustBar;
    QLabel *groundDistanceLabel;
    QLabel *speedLabel;
    QGroupBox *heartbeatIcon;
    QProgressBar *batteryBar;
    QLabel *stateLabel;
    QLabel *waypointLabel;
    QLabel *positionLabel;
    QLabel *gpsLabel;
    QLabel *statusTextLabel;
    QHBoxLayout *horizontalLayout;
    QPushButton *liftoffButton;
    QPushButton *haltButton;
    QPushButton *continueButton;
    QPushButton *landButton;
    QPushButton *shutdownButton;
    QPushButton *abortButton;
    QPushButton *killButton;

61
    void setupUi(QWidget *UASView) {
62
63
64
65
66
67
68
69
70
71
        if (UASView->objectName().isEmpty())
            UASView->setObjectName(QString::fromUtf8("UASView"));
        UASView->resize(362, 120);
        QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
        sizePolicy.setHorizontalStretch(0);
        sizePolicy.setVerticalStretch(0);
        sizePolicy.setHeightForWidth(UASView->sizePolicy().hasHeightForWidth());
        UASView->setSizePolicy(sizePolicy);
        UASView->setMinimumSize(QSize(0, 0));
        UASView->setStyleSheet(QString::fromUtf8("QWidget#colorIcon {}\n"
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
                               "\n"
                               "QWidget {\n"
                               "background-color: none;\n"
                               "color: #DDDDDF;\n"
                               "border-color: #EEEEEE;\n"
                               "background-clip: margin;\n"
                               "}\n"
                               "\n"
                               "QLabel#nameLabel {\n"
                               "	font: bold 16px;\n"
                               "	color: #3C7B9E;\n"
                               "}\n"
                               "\n"
                               "QLabel#modeLabel {\n"
                               "	font: 12px;\n"
                               "}\n"
                               "\n"
                               "QLabel#stateLabel {\n"
                               "	font: 12px;\n"
                               "}\n"
                               "\n"
                               "QLabel#gpsLabel {\n"
                               "	font: 8px;\n"
                               "}\n"
                               "\n"
                               "QLabel#positionLabel {\n"
                               "	font: 8px;\n"
                               "}\n"
                               "\n"
                               "QLabel#timeElapsedLabel {\n"
                               "	font: 8px;\n"
                               "}\n"
                               "\n"
                               "QLabel#groundDistanceLabel {\n"
                               "	font: 8px;\n"
                               "}\n"
                               "\n"
                               "QLabel#speedLabel {\n"
                               "	font: 8px;\n"
                               "}\n"
                               "\n"
                               "QLabel#timeRemainingLabel {\n"
                               "	font: 8px;\n"
                               "}\n"
                               "\n"
                               "QLabel#waypointLabel {\n"
                               "	font: 24px;\n"
                               "}\n"
                               "\n"
                               "QGroupBox {\n"
                               "	border: 1px solid #4A4A4F;\n"
                               "	border-radius: 5px;\n"
                               "	padding: 0px 0px 0px 0px;\n"
                               "	margin: 0px;\n"
                               "}\n"
                               "\n"
                               " QGroupBox::title {\n"
                               "     subcontrol-origin: margin;\n"
                               "     subcontrol-position: top center; /* position at the top center */\n"
                               "     margin: 0 3px 0px 3px;\n"
                               " "
                               "    padding: 0 3px 0px 0px;\n"
                               "     font: bold 8px;\n"
                               " }\n"
                               "\n"
                               "QGroupBox#heartbeatIcon {\n"
                               "	background-color: red;\n"
                               "}\n"
                               "\n"
                               "QToolButton#typeButton {\n"
                               "	font-weight: bold;\n"
                               "	font-size: 12px;\n"
                               "	border: 2px solid #999999;\n"
                               "	border-radius: 5px;\n"
                               "	min-width:44px;\n"
                               "	max-width: 44px;\n"
                               "	min-height: 44px;\n"
                               "	max-height: 44px;\n"
                               "	padding: 0px;\n"
                               "	background-color: none;\n"
                               "}\n"
                               "\n"
                               "QPushButton {\n"
                               "	font-weight: bold;\n"
                               "	font-size: 12px;\n"
                               "	border: 1px solid #999999;\n"
                               "	border-radius: 10px;\n"
                               "	min-width: 20px;\n"
                               "	max-width: 40px;\n"
                               "	min-height: 16px;\n"
                               "	max-height: 16px;\n"
                               "	padding: 2px;\n"
                               "	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #777777, stop: 1 #555555);\n"
                               "}\n"
                               "\n"
                               "QPushButton:pressed {\n"
                               "	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #444444, stop: 1 #555555);\n"
                               "}\n"
                               "\n"
                               "QPushButton#abortButton {\n"
                               "	background: qlineargradient(x1:0, y1:0, x2:0, y2:1,\n"
                               "                             stop:0 #"
                               "ffee01, stop:1 #ae8f00);\n"
                               "}\n"
                               "\n"
                               "QPushButton:pressed#abortButton {\n"
                               "	background: qlineargradient(x1:0, y1:0, x2:0, y2:1,\n"
                               "                             stop:0 #bbaa00, stop:1 #a05b00);\n"
                               "}\n"
                               "\n"
                               "QPushButton#killButton {\n"
                               "	background: qlineargradient(x1:0, y1:0, x2:0, y2:1,\n"
                               "                             stop:0 #ffb917, stop:1 #b37300);\n"
                               "}\n"
                               "\n"
                               "QPushButton:pressed#killButton {\n"
                               "	background: qlineargradient(x1:0, y1:0, x2:0, y2:1,\n"
                               "                             stop:0 #bb8500, stop:1 #903000);\n"
                               "}\n"
                               "\n"
                               "\n"
                               "QProgressBar {\n"
                               "	border: 1px solid #4A4A4F;\n"
                               "	border-radius: 4px;\n"
                               "	text-align: center;\n"
                               "	padding: 2px;\n"
                               "	color: #DDDDDF;\n"
                               "	background-color: #111118;\n"
                               "}\n"
                               "\n"
                               "QProgressBar:horizontal {\n"
                               "	height: 10px;\n"
                               "}\n"
                               "\n"
                               "QProgressBar QLabel {\n"
                               "	font-size: 8px;\n"
                               "}\n"
                               "\n"
                               "QProgressBar:vertical {\n"
                               "	width: 12px;\n"
                               "}\n"
                               "\n"
                               "QProgressBar::chunk {\n"
                               "	background-color: #656565;\n"
                               "}\n"
                               "\n"
                               "QProgressBar::chunk#batteryBar {\n"
                               "	backgrou"
                               "nd-color: green;\n"
                               "}\n"
                               "\n"
                               "QProgressBar::chunk#speedBar {\n"
                               "	background-color: yellow;\n"
                               "}\n"
                               "\n"
                               "QProgressBar::chunk#thrustBar {\n"
                               "	background-color: orange;\n"
                               "}"));
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
        horizontalLayout_2 = new QHBoxLayout(UASView);
        horizontalLayout_2->setContentsMargins(6, 6, 6, 6);
        horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
        uasViewFrame = new QGroupBox(UASView);
        uasViewFrame->setObjectName(QString::fromUtf8("uasViewFrame"));
        QSizePolicy sizePolicy1(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
        sizePolicy1.setHorizontalStretch(0);
        sizePolicy1.setVerticalStretch(0);
        sizePolicy1.setHeightForWidth(uasViewFrame->sizePolicy().hasHeightForWidth());
        uasViewFrame->setSizePolicy(sizePolicy1);
        uasViewFrame->setMinimumSize(QSize(0, 0));
        gridLayout = new QGridLayout(uasViewFrame);
        gridLayout->setContentsMargins(6, 6, 6, 6);
        gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
        gridLayout->setHorizontalSpacing(6);
        gridLayout->setVerticalSpacing(2);
        typeButton = new QToolButton(uasViewFrame);
        typeButton->setObjectName(QString::fromUtf8("typeButton"));
        typeButton->setMinimumSize(QSize(48, 48));
        typeButton->setMaximumSize(QSize(48, 48));
        typeButton->setBaseSize(QSize(30, 30));
        QIcon icon;
252
        icon.addFile(QString::fromUtf8(":/files/images/mavs/unknown.svg"), QSize(), QIcon::Normal, QIcon::Off);
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
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
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
        typeButton->setIcon(icon);
        typeButton->setIconSize(QSize(42, 42));

        gridLayout->addWidget(typeButton, 0, 0, 5, 2);

        horizontalSpacer_2 = new QSpacerItem(6, 88, QSizePolicy::Expanding, QSizePolicy::Minimum);

        gridLayout->addItem(horizontalSpacer_2, 0, 2, 8, 1);

        nameLabel = new QLabel(uasViewFrame);
        nameLabel->setObjectName(QString::fromUtf8("nameLabel"));
        nameLabel->setMaximumSize(QSize(16777215, 16));
        QFont font;
        font.setBold(true);
        font.setItalic(false);
        font.setWeight(75);
        nameLabel->setFont(font);

        gridLayout->addWidget(nameLabel, 0, 3, 1, 3);

        modeLabel = new QLabel(uasViewFrame);
        modeLabel->setObjectName(QString::fromUtf8("modeLabel"));
        modeLabel->setMaximumSize(QSize(16777215, 16));
        QFont font1;
        font1.setBold(false);
        font1.setItalic(false);
        font1.setWeight(50);
        modeLabel->setFont(font1);

        gridLayout->addWidget(modeLabel, 0, 6, 1, 2);

        timeRemainingLabel = new QLabel(uasViewFrame);
        timeRemainingLabel->setObjectName(QString::fromUtf8("timeRemainingLabel"));
        timeRemainingLabel->setFont(font1);

        gridLayout->addWidget(timeRemainingLabel, 1, 3, 3, 1);

        timeElapsedLabel = new QLabel(uasViewFrame);
        timeElapsedLabel->setObjectName(QString::fromUtf8("timeElapsedLabel"));
        timeElapsedLabel->setFont(font1);

        gridLayout->addWidget(timeElapsedLabel, 1, 4, 3, 2);

        thrustBar = new QProgressBar(uasViewFrame);
        thrustBar->setObjectName(QString::fromUtf8("thrustBar"));
        QFont font2;
        font2.setPointSize(8);
        thrustBar->setFont(font2);
        thrustBar->setValue(0);

        gridLayout->addWidget(thrustBar, 3, 6, 2, 2);

        groundDistanceLabel = new QLabel(uasViewFrame);
        groundDistanceLabel->setObjectName(QString::fromUtf8("groundDistanceLabel"));
        groundDistanceLabel->setFont(font1);

        gridLayout->addWidget(groundDistanceLabel, 4, 3, 1, 1);

        speedLabel = new QLabel(uasViewFrame);
        speedLabel->setObjectName(QString::fromUtf8("speedLabel"));
        speedLabel->setFont(font1);

        gridLayout->addWidget(speedLabel, 4, 4, 1, 2);

        heartbeatIcon = new QGroupBox(uasViewFrame);
        heartbeatIcon->setObjectName(QString::fromUtf8("heartbeatIcon"));
        QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Preferred);
        sizePolicy2.setHorizontalStretch(0);
        sizePolicy2.setVerticalStretch(0);
        sizePolicy2.setHeightForWidth(heartbeatIcon->sizePolicy().hasHeightForWidth());
        heartbeatIcon->setSizePolicy(sizePolicy2);
        heartbeatIcon->setMinimumSize(QSize(18, 0));
        heartbeatIcon->setMaximumSize(QSize(18, 40));

        gridLayout->addWidget(heartbeatIcon, 5, 0, 3, 1);

        batteryBar = new QProgressBar(uasViewFrame);
        batteryBar->setObjectName(QString::fromUtf8("batteryBar"));
        batteryBar->setMinimumSize(QSize(18, 0));
        batteryBar->setMaximumSize(QSize(18, 40));
        QFont font3;
        font3.setPointSize(6);
        batteryBar->setFont(font3);
        batteryBar->setValue(0);
        batteryBar->setOrientation(Qt::Vertical);

        gridLayout->addWidget(batteryBar, 5, 1, 3, 1);

        stateLabel = new QLabel(uasViewFrame);
        stateLabel->setObjectName(QString::fromUtf8("stateLabel"));
        stateLabel->setFont(font1);

        gridLayout->addWidget(stateLabel, 5, 3, 2, 2);

        waypointLabel = new QLabel(uasViewFrame);
        waypointLabel->setObjectName(QString::fromUtf8("waypointLabel"));
        waypointLabel->setFont(font1);
        waypointLabel->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop);

        gridLayout->addWidget(waypointLabel, 7, 3, 1, 2);

        positionLabel = new QLabel(uasViewFrame);
        positionLabel->setObjectName(QString::fromUtf8("positionLabel"));
        positionLabel->setMinimumSize(QSize(0, 12));
        positionLabel->setMaximumSize(QSize(16777215, 12));
        positionLabel->setFont(font1);

        gridLayout->addWidget(positionLabel, 2, 6, 1, 1);

        gpsLabel = new QLabel(uasViewFrame);
        gpsLabel->setObjectName(QString::fromUtf8("gpsLabel"));
        gpsLabel->setMinimumSize(QSize(0, 12));
        gpsLabel->setMaximumSize(QSize(16777215, 12));
        gpsLabel->setFont(font1);

        gridLayout->addWidget(gpsLabel, 2, 7, 1, 1);

        statusTextLabel = new QLabel(uasViewFrame);
        statusTextLabel->setObjectName(QString::fromUtf8("statusTextLabel"));
        statusTextLabel->setMaximumSize(QSize(16777215, 12));
        QFont font4;
        font4.setPointSize(10);
        statusTextLabel->setFont(font4);

        gridLayout->addWidget(statusTextLabel, 5, 6, 1, 2);

        horizontalLayout = new QHBoxLayout();
        horizontalLayout->setSpacing(4);
        horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
        horizontalLayout->setSizeConstraint(QLayout::SetMinimumSize);
        liftoffButton = new QPushButton(uasViewFrame);
        liftoffButton->setObjectName(QString::fromUtf8("liftoffButton"));
        liftoffButton->setMinimumSize(QSize(26, 22));
        QIcon icon1;
387
        icon1.addFile(QString::fromUtf8(":/files/images/control/launch.svg"), QSize(), QIcon::Normal, QIcon::Off);
388
389
390
391
392
393
394
395
        liftoffButton->setIcon(icon1);

        horizontalLayout->addWidget(liftoffButton);

        haltButton = new QPushButton(uasViewFrame);
        haltButton->setObjectName(QString::fromUtf8("haltButton"));
        haltButton->setMinimumSize(QSize(26, 22));
        QIcon icon2;
396
        icon2.addFile(QString::fromUtf8(":/files/images/actions/media-playback-pause.svg"), QSize(), QIcon::Normal, QIcon::Off);
397
398
399
400
401
402
403
404
        haltButton->setIcon(icon2);

        horizontalLayout->addWidget(haltButton);

        continueButton = new QPushButton(uasViewFrame);
        continueButton->setObjectName(QString::fromUtf8("continueButton"));
        continueButton->setMinimumSize(QSize(26, 22));
        QIcon icon3;
405
        icon3.addFile(QString::fromUtf8(":/files/images/actions/media-playback-start.svg"), QSize(), QIcon::Normal, QIcon::Off);
406
407
408
409
410
411
412
413
        continueButton->setIcon(icon3);

        horizontalLayout->addWidget(continueButton);

        landButton = new QPushButton(uasViewFrame);
        landButton->setObjectName(QString::fromUtf8("landButton"));
        landButton->setMinimumSize(QSize(26, 22));
        QIcon icon4;
414
        icon4.addFile(QString::fromUtf8(":/files/images/control/land.svg"), QSize(), QIcon::Normal, QIcon::Off);
415
416
417
418
419
420
421
        landButton->setIcon(icon4);

        horizontalLayout->addWidget(landButton);

        shutdownButton = new QPushButton(uasViewFrame);
        shutdownButton->setObjectName(QString::fromUtf8("shutdownButton"));
        QIcon icon5;
422
        icon5.addFile(QString::fromUtf8(":/files/images/actions/system-log-out.svg"), QSize(), QIcon::Normal, QIcon::Off);
423
424
425
426
427
428
429
430
        shutdownButton->setIcon(icon5);

        horizontalLayout->addWidget(shutdownButton);

        abortButton = new QPushButton(uasViewFrame);
        abortButton->setObjectName(QString::fromUtf8("abortButton"));
        abortButton->setMinimumSize(QSize(26, 22));
        QIcon icon6;
431
        icon6.addFile(QString::fromUtf8(":/files/images/actions/media-playback-stop.svg"), QSize(), QIcon::Normal, QIcon::Off);
432
433
434
435
436
437
438
439
        abortButton->setIcon(icon6);

        horizontalLayout->addWidget(abortButton);

        killButton = new QPushButton(uasViewFrame);
        killButton->setObjectName(QString::fromUtf8("killButton"));
        killButton->setMinimumSize(QSize(26, 22));
        QIcon icon7;
440
        icon7.addFile(QString::fromUtf8(":/files/images/actions/process-stop.svg"), QSize(), QIcon::Normal, QIcon::Off);
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
        killButton->setIcon(icon7);

        horizontalLayout->addWidget(killButton);


        gridLayout->addLayout(horizontalLayout, 6, 5, 2, 3);


        horizontalLayout_2->addWidget(uasViewFrame);


        retranslateUi(UASView);

        QMetaObject::connectSlotsByName(UASView);
    } // setupUi

457
    void retranslateUi(QWidget *UASView) {
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
        UASView->setWindowTitle(QApplication::translate("UASView", "Form", 0, QApplication::UnicodeUTF8));
        uasViewFrame->setTitle(QString());
        typeButton->setText(QApplication::translate("UASView", "...", 0, QApplication::UnicodeUTF8));
        nameLabel->setText(QApplication::translate("UASView", "UAS001", 0, QApplication::UnicodeUTF8));
        modeLabel->setText(QApplication::translate("UASView", "Waiting for first update..", 0, QApplication::UnicodeUTF8));
        timeRemainingLabel->setText(QApplication::translate("UASView", "00:00:00", 0, QApplication::UnicodeUTF8));
        timeElapsedLabel->setText(QApplication::translate("UASView", "00:00:00", 0, QApplication::UnicodeUTF8));
        groundDistanceLabel->setText(QApplication::translate("UASView", "00.00 m", 0, QApplication::UnicodeUTF8));
        speedLabel->setText(QApplication::translate("UASView", "00.0 m/s", 0, QApplication::UnicodeUTF8));
        heartbeatIcon->setTitle(QString());
        stateLabel->setText(QApplication::translate("UASView", "UNINIT", 0, QApplication::UnicodeUTF8));
        waypointLabel->setText(QApplication::translate("UASView", "WPX", 0, QApplication::UnicodeUTF8));
        positionLabel->setText(QApplication::translate("UASView", "00.0  00.0  00.0 m", 0, QApplication::UnicodeUTF8));
        gpsLabel->setText(QApplication::translate("UASView", "00 00 00 N  00 00 00 E", 0, QApplication::UnicodeUTF8));
        statusTextLabel->setText(QApplication::translate("UASView", "Unknown status", 0, QApplication::UnicodeUTF8));
        liftoffButton->setText(QString());
        haltButton->setText(QString());
        continueButton->setText(QString());
        landButton->setText(QString());
        shutdownButton->setText(QString());
        abortButton->setText(QString());
        killButton->setText(QString());
    } // retranslateUi

};

484
485
486
namespace Ui
{
class UASView: public Ui_UASView {};
487
488
489
490
491
} // namespace Ui

QT_END_NAMESPACE

#endif // UASVIEW_H