mirror of
https://github.com/vale981/Taevitas
synced 2025-03-04 17:11:40 -05:00
fix fit
This commit is contained in:
parent
362aeebb11
commit
77e9f071b4
3 changed files with 122 additions and 109 deletions
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 4.2.1, 2017-03-24T19:31:44. -->
|
||||
<!-- Written by QtCreator 4.2.1, 2017-03-25T10:17:51. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
|
|
|
@ -37,6 +37,64 @@
|
|||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="0" column="1" rowspan="3">
|
||||
<widget class="QLabel" name="preview_widget">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<property name="title">
|
||||
<string>Status</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="statusLabel">
|
||||
<property name="text">
|
||||
<string>Waiting.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="recStats" native="true">
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="1" column="1">
|
||||
<widget class="QLCDNumber" name="timeCaptured"/>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLCDNumber" name="framesCaptured"/>
|
||||
</item>
|
||||
<item row="0" column="0" alignment="Qt::AlignHCenter">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Frames</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" alignment="Qt::AlignHCenter">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Minutes</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="sizePolicy">
|
||||
|
@ -202,64 +260,6 @@
|
|||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" rowspan="3">
|
||||
<widget class="QLabel" name="preview_widget">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QGroupBox" name="groupBox_2">
|
||||
<property name="title">
|
||||
<string>Status</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QLabel" name="statusLabel">
|
||||
<property name="text">
|
||||
<string>Waiting.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="recStats" native="true">
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="1" column="1">
|
||||
<widget class="QLCDNumber" name="timeCaptured"/>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLCDNumber" name="framesCaptured"/>
|
||||
</item>
|
||||
<item row="0" column="0" alignment="Qt::AlignHCenter">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Frames</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" alignment="Qt::AlignHCenter">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Minutes</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
#include <QtWidgets/QFormLayout>
|
||||
#include <QtWidgets/QGridLayout>
|
||||
#include <QtWidgets/QGroupBox>
|
||||
#include <QtWidgets/QHBoxLayout>
|
||||
#include <QtWidgets/QHeaderView>
|
||||
#include <QtWidgets/QLCDNumber>
|
||||
#include <QtWidgets/QLabel>
|
||||
|
@ -37,7 +36,17 @@ class Ui_MainWindow
|
|||
public:
|
||||
QWidget *centralWidget;
|
||||
QGridLayout *gridLayout;
|
||||
QSpacerItem *verticalSpacer;
|
||||
QLabel *preview_widget;
|
||||
QGroupBox *groupBox_2;
|
||||
QVBoxLayout *verticalLayout_2;
|
||||
QLabel *statusLabel;
|
||||
QWidget *recStats;
|
||||
QGridLayout *gridLayout_2;
|
||||
QLCDNumber *timeCaptured;
|
||||
QLCDNumber *framesCaptured;
|
||||
QLabel *label_3;
|
||||
QLabel *label_4;
|
||||
QGroupBox *groupBox;
|
||||
QVBoxLayout *verticalLayout;
|
||||
QFormLayout *formLayout;
|
||||
|
@ -54,14 +63,6 @@ public:
|
|||
QCheckBox *saveFrames;
|
||||
QPushButton *startButton;
|
||||
QPushButton *preview_button;
|
||||
QGroupBox *groupBox_2;
|
||||
QVBoxLayout *verticalLayout_2;
|
||||
QLabel *statusLabel;
|
||||
QWidget *recStats;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QLCDNumber *framesCaptured;
|
||||
QLCDNumber *timeCaptured;
|
||||
QSpacerItem *verticalSpacer;
|
||||
|
||||
void setupUi(QMainWindow *MainWindow)
|
||||
{
|
||||
|
@ -79,13 +80,60 @@ public:
|
|||
gridLayout->setSpacing(6);
|
||||
gridLayout->setContentsMargins(11, 11, 11, 11);
|
||||
gridLayout->setObjectName(QStringLiteral("gridLayout"));
|
||||
verticalSpacer = new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::MinimumExpanding);
|
||||
|
||||
gridLayout->addItem(verticalSpacer, 1, 0, 1, 1);
|
||||
|
||||
preview_widget = new QLabel(centralWidget);
|
||||
preview_widget->setObjectName(QStringLiteral("preview_widget"));
|
||||
preview_widget->setEnabled(false);
|
||||
preview_widget->setFrameShape(QFrame::StyledPanel);
|
||||
preview_widget->setFrameShadow(QFrame::Raised);
|
||||
|
||||
gridLayout->addWidget(preview_widget, 1, 1, 2, 1);
|
||||
gridLayout->addWidget(preview_widget, 0, 1, 3, 1);
|
||||
|
||||
groupBox_2 = new QGroupBox(centralWidget);
|
||||
groupBox_2->setObjectName(QStringLiteral("groupBox_2"));
|
||||
verticalLayout_2 = new QVBoxLayout(groupBox_2);
|
||||
verticalLayout_2->setSpacing(6);
|
||||
verticalLayout_2->setContentsMargins(11, 11, 11, 11);
|
||||
verticalLayout_2->setObjectName(QStringLiteral("verticalLayout_2"));
|
||||
statusLabel = new QLabel(groupBox_2);
|
||||
statusLabel->setObjectName(QStringLiteral("statusLabel"));
|
||||
|
||||
verticalLayout_2->addWidget(statusLabel);
|
||||
|
||||
recStats = new QWidget(groupBox_2);
|
||||
recStats->setObjectName(QStringLiteral("recStats"));
|
||||
gridLayout_2 = new QGridLayout(recStats);
|
||||
gridLayout_2->setSpacing(6);
|
||||
gridLayout_2->setContentsMargins(11, 11, 11, 11);
|
||||
gridLayout_2->setObjectName(QStringLiteral("gridLayout_2"));
|
||||
timeCaptured = new QLCDNumber(recStats);
|
||||
timeCaptured->setObjectName(QStringLiteral("timeCaptured"));
|
||||
|
||||
gridLayout_2->addWidget(timeCaptured, 1, 1, 1, 1);
|
||||
|
||||
framesCaptured = new QLCDNumber(recStats);
|
||||
framesCaptured->setObjectName(QStringLiteral("framesCaptured"));
|
||||
|
||||
gridLayout_2->addWidget(framesCaptured, 1, 0, 1, 1);
|
||||
|
||||
label_3 = new QLabel(recStats);
|
||||
label_3->setObjectName(QStringLiteral("label_3"));
|
||||
|
||||
gridLayout_2->addWidget(label_3, 0, 0, 1, 1, Qt::AlignHCenter);
|
||||
|
||||
label_4 = new QLabel(recStats);
|
||||
label_4->setObjectName(QStringLiteral("label_4"));
|
||||
|
||||
gridLayout_2->addWidget(label_4, 0, 1, 1, 1, Qt::AlignHCenter);
|
||||
|
||||
|
||||
verticalLayout_2->addWidget(recStats);
|
||||
|
||||
|
||||
gridLayout->addWidget(groupBox_2, 2, 0, 1, 1, Qt::AlignLeft);
|
||||
|
||||
groupBox = new QGroupBox(centralWidget);
|
||||
groupBox->setObjectName(QStringLiteral("groupBox"));
|
||||
|
@ -194,44 +242,7 @@ public:
|
|||
verticalLayout->addWidget(recOptions);
|
||||
|
||||
|
||||
gridLayout->addWidget(groupBox, 0, 0, 1, 1);
|
||||
|
||||
groupBox_2 = new QGroupBox(centralWidget);
|
||||
groupBox_2->setObjectName(QStringLiteral("groupBox_2"));
|
||||
verticalLayout_2 = new QVBoxLayout(groupBox_2);
|
||||
verticalLayout_2->setSpacing(6);
|
||||
verticalLayout_2->setContentsMargins(11, 11, 11, 11);
|
||||
verticalLayout_2->setObjectName(QStringLiteral("verticalLayout_2"));
|
||||
statusLabel = new QLabel(groupBox_2);
|
||||
statusLabel->setObjectName(QStringLiteral("statusLabel"));
|
||||
|
||||
verticalLayout_2->addWidget(statusLabel);
|
||||
|
||||
recStats = new QWidget(groupBox_2);
|
||||
recStats->setObjectName(QStringLiteral("recStats"));
|
||||
horizontalLayout = new QHBoxLayout(recStats);
|
||||
horizontalLayout->setSpacing(6);
|
||||
horizontalLayout->setContentsMargins(11, 11, 11, 11);
|
||||
horizontalLayout->setObjectName(QStringLiteral("horizontalLayout"));
|
||||
framesCaptured = new QLCDNumber(recStats);
|
||||
framesCaptured->setObjectName(QStringLiteral("framesCaptured"));
|
||||
|
||||
horizontalLayout->addWidget(framesCaptured);
|
||||
|
||||
timeCaptured = new QLCDNumber(recStats);
|
||||
timeCaptured->setObjectName(QStringLiteral("timeCaptured"));
|
||||
|
||||
horizontalLayout->addWidget(timeCaptured);
|
||||
|
||||
|
||||
verticalLayout_2->addWidget(recStats);
|
||||
|
||||
|
||||
gridLayout->addWidget(groupBox_2, 2, 0, 1, 1);
|
||||
|
||||
verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
||||
|
||||
gridLayout->addItem(verticalSpacer, 1, 0, 1, 1);
|
||||
gridLayout->addWidget(groupBox, 0, 0, 1, 1, Qt::AlignLeft);
|
||||
|
||||
MainWindow->setCentralWidget(centralWidget);
|
||||
|
||||
|
@ -244,6 +255,10 @@ public:
|
|||
{
|
||||
MainWindow->setWindowTitle(QApplication::translate("MainWindow", "Taevitas", Q_NULLPTR));
|
||||
preview_widget->setText(QString());
|
||||
groupBox_2->setTitle(QApplication::translate("MainWindow", "Status", Q_NULLPTR));
|
||||
statusLabel->setText(QApplication::translate("MainWindow", "Waiting.", Q_NULLPTR));
|
||||
label_3->setText(QApplication::translate("MainWindow", "Frames", Q_NULLPTR));
|
||||
label_4->setText(QApplication::translate("MainWindow", "Minutes", Q_NULLPTR));
|
||||
groupBox->setTitle(QApplication::translate("MainWindow", "Settings", Q_NULLPTR));
|
||||
cameraSelector->setCurrentText(QString());
|
||||
label->setText(QApplication::translate("MainWindow", "Camera:", Q_NULLPTR));
|
||||
|
@ -255,8 +270,6 @@ public:
|
|||
saveFrames->setText(QApplication::translate("MainWindow", " Save Frames", Q_NULLPTR));
|
||||
startButton->setText(QApplication::translate("MainWindow", "Start", Q_NULLPTR));
|
||||
preview_button->setText(QApplication::translate("MainWindow", "Preview Camera", Q_NULLPTR));
|
||||
groupBox_2->setTitle(QApplication::translate("MainWindow", "Status", Q_NULLPTR));
|
||||
statusLabel->setText(QApplication::translate("MainWindow", "Waiting.", Q_NULLPTR));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue