| 1 | /******************************************************************************** |
| 2 | ** Form generated from reading UI file 'camera.ui' |
| 3 | ** |
| 4 | ** Created by: Qt User Interface Compiler version 5.15.9 |
| 5 | ** |
| 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! |
| 7 | ********************************************************************************/ |
| 8 | |
| 9 | #ifndef UI_CAMERA_H |
| 10 | #define UI_CAMERA_H |
| 11 | |
| 12 | #include <QtCore/QVariant> |
| 13 | #include <QtGui/QIcon> |
| 14 | #include <QtWidgets/QAction> |
| 15 | #include <QtWidgets/QApplication> |
| 16 | #include <QtWidgets/QGridLayout> |
| 17 | #include <QtWidgets/QLabel> |
| 18 | #include <QtWidgets/QMainWindow> |
| 19 | #include <QtWidgets/QMenu> |
| 20 | #include <QtWidgets/QMenuBar> |
| 21 | #include <QtWidgets/QPushButton> |
| 22 | #include <QtWidgets/QSlider> |
| 23 | #include <QtWidgets/QSpacerItem> |
| 24 | #include <QtWidgets/QStackedWidget> |
| 25 | #include <QtWidgets/QStatusBar> |
| 26 | #include <QtWidgets/QTabWidget> |
| 27 | #include <QtWidgets/QWidget> |
| 28 | #include "qcameraviewfinder.h" |
| 29 | |
| 30 | QT_BEGIN_NAMESPACE |
| 31 | |
| 32 | class Ui_Camera |
| 33 | { |
| 34 | public: |
| 35 | QAction *actionExit; |
| 36 | QAction *actionStartCamera; |
| 37 | QAction *actionStopCamera; |
| 38 | QAction *actionSettings; |
| 39 | QWidget *centralwidget; |
| 40 | QGridLayout *gridLayout_3; |
| 41 | QStackedWidget *stackedWidget; |
| 42 | QWidget *viewfinderPage; |
| 43 | QGridLayout *gridLayout_5; |
| 44 | QCameraViewfinder *viewfinder; |
| 45 | QWidget *previewPage; |
| 46 | QGridLayout *gridLayout_4; |
| 47 | QLabel *lastImagePreviewLabel; |
| 48 | QPushButton *lockButton; |
| 49 | QTabWidget *captureWidget; |
| 50 | QWidget *tab_2; |
| 51 | QGridLayout *gridLayout; |
| 52 | QPushButton *takeImageButton; |
| 53 | QSpacerItem *verticalSpacer_2; |
| 54 | QLabel *label; |
| 55 | QSlider *exposureCompensation; |
| 56 | QWidget *tab; |
| 57 | QGridLayout *gridLayout_2; |
| 58 | QPushButton *recordButton; |
| 59 | QPushButton *pauseButton; |
| 60 | QPushButton *stopButton; |
| 61 | QSpacerItem *verticalSpacer; |
| 62 | QPushButton *muteButton; |
| 63 | QMenuBar *; |
| 64 | QMenu *; |
| 65 | QMenu *; |
| 66 | QStatusBar *statusbar; |
| 67 | |
| 68 | void setupUi(QMainWindow *Camera) |
| 69 | { |
| 70 | if (Camera->objectName().isEmpty()) |
| 71 | Camera->setObjectName(QString::fromUtf8(str: "Camera" )); |
| 72 | Camera->resize(w: 668, h: 422); |
| 73 | actionExit = new QAction(Camera); |
| 74 | actionExit->setObjectName(QString::fromUtf8(str: "actionExit" )); |
| 75 | actionStartCamera = new QAction(Camera); |
| 76 | actionStartCamera->setObjectName(QString::fromUtf8(str: "actionStartCamera" )); |
| 77 | actionStopCamera = new QAction(Camera); |
| 78 | actionStopCamera->setObjectName(QString::fromUtf8(str: "actionStopCamera" )); |
| 79 | actionSettings = new QAction(Camera); |
| 80 | actionSettings->setObjectName(QString::fromUtf8(str: "actionSettings" )); |
| 81 | centralwidget = new QWidget(Camera); |
| 82 | centralwidget->setObjectName(QString::fromUtf8(str: "centralwidget" )); |
| 83 | gridLayout_3 = new QGridLayout(centralwidget); |
| 84 | gridLayout_3->setObjectName(QString::fromUtf8(str: "gridLayout_3" )); |
| 85 | stackedWidget = new QStackedWidget(centralwidget); |
| 86 | stackedWidget->setObjectName(QString::fromUtf8(str: "stackedWidget" )); |
| 87 | QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); |
| 88 | sizePolicy.setHorizontalStretch(1); |
| 89 | sizePolicy.setVerticalStretch(0); |
| 90 | sizePolicy.setHeightForWidth(stackedWidget->sizePolicy().hasHeightForWidth()); |
| 91 | stackedWidget->setSizePolicy(sizePolicy); |
| 92 | QPalette palette; |
| 93 | QBrush brush(QColor(255, 255, 255, 255)); |
| 94 | brush.setStyle(Qt::SolidPattern); |
| 95 | palette.setBrush(cg: QPalette::Active, cr: QPalette::Base, brush); |
| 96 | QBrush brush1(QColor(145, 145, 145, 255)); |
| 97 | brush1.setStyle(Qt::SolidPattern); |
| 98 | palette.setBrush(cg: QPalette::Active, cr: QPalette::Window, brush: brush1); |
| 99 | palette.setBrush(cg: QPalette::Inactive, cr: QPalette::Base, brush); |
| 100 | palette.setBrush(cg: QPalette::Inactive, cr: QPalette::Window, brush: brush1); |
| 101 | palette.setBrush(cg: QPalette::Disabled, cr: QPalette::Base, brush: brush1); |
| 102 | palette.setBrush(cg: QPalette::Disabled, cr: QPalette::Window, brush: brush1); |
| 103 | stackedWidget->setPalette(palette); |
| 104 | viewfinderPage = new QWidget(); |
| 105 | viewfinderPage->setObjectName(QString::fromUtf8(str: "viewfinderPage" )); |
| 106 | gridLayout_5 = new QGridLayout(viewfinderPage); |
| 107 | gridLayout_5->setObjectName(QString::fromUtf8(str: "gridLayout_5" )); |
| 108 | viewfinder = new QCameraViewfinder(viewfinderPage); |
| 109 | viewfinder->setObjectName(QString::fromUtf8(str: "viewfinder" )); |
| 110 | |
| 111 | gridLayout_5->addWidget(viewfinder, row: 0, column: 0, rowSpan: 1, columnSpan: 1); |
| 112 | |
| 113 | stackedWidget->addWidget(w: viewfinderPage); |
| 114 | previewPage = new QWidget(); |
| 115 | previewPage->setObjectName(QString::fromUtf8(str: "previewPage" )); |
| 116 | gridLayout_4 = new QGridLayout(previewPage); |
| 117 | gridLayout_4->setObjectName(QString::fromUtf8(str: "gridLayout_4" )); |
| 118 | lastImagePreviewLabel = new QLabel(previewPage); |
| 119 | lastImagePreviewLabel->setObjectName(QString::fromUtf8(str: "lastImagePreviewLabel" )); |
| 120 | QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding); |
| 121 | sizePolicy1.setHorizontalStretch(0); |
| 122 | sizePolicy1.setVerticalStretch(0); |
| 123 | sizePolicy1.setHeightForWidth(lastImagePreviewLabel->sizePolicy().hasHeightForWidth()); |
| 124 | lastImagePreviewLabel->setSizePolicy(sizePolicy1); |
| 125 | lastImagePreviewLabel->setFrameShape(QFrame::Box); |
| 126 | |
| 127 | gridLayout_4->addWidget(lastImagePreviewLabel, row: 0, column: 0, rowSpan: 1, columnSpan: 1); |
| 128 | |
| 129 | stackedWidget->addWidget(w: previewPage); |
| 130 | |
| 131 | gridLayout_3->addWidget(stackedWidget, row: 0, column: 0, rowSpan: 3, columnSpan: 1); |
| 132 | |
| 133 | lockButton = new QPushButton(centralwidget); |
| 134 | lockButton->setObjectName(QString::fromUtf8(str: "lockButton" )); |
| 135 | |
| 136 | gridLayout_3->addWidget(lockButton, row: 1, column: 1, rowSpan: 1, columnSpan: 2); |
| 137 | |
| 138 | captureWidget = new QTabWidget(centralwidget); |
| 139 | captureWidget->setObjectName(QString::fromUtf8(str: "captureWidget" )); |
| 140 | tab_2 = new QWidget(); |
| 141 | tab_2->setObjectName(QString::fromUtf8(str: "tab_2" )); |
| 142 | gridLayout = new QGridLayout(tab_2); |
| 143 | gridLayout->setObjectName(QString::fromUtf8(str: "gridLayout" )); |
| 144 | takeImageButton = new QPushButton(tab_2); |
| 145 | takeImageButton->setObjectName(QString::fromUtf8(str: "takeImageButton" )); |
| 146 | takeImageButton->setEnabled(false); |
| 147 | QIcon icon; |
| 148 | icon.addFile(fileName: QString::fromUtf8(str: ":/images/shutter.svg" ), size: QSize(), mode: QIcon::Normal, state: QIcon::Off); |
| 149 | takeImageButton->setIcon(icon); |
| 150 | |
| 151 | gridLayout->addWidget(takeImageButton, row: 0, column: 0, rowSpan: 1, columnSpan: 1); |
| 152 | |
| 153 | verticalSpacer_2 = new QSpacerItem(20, 161, QSizePolicy::Minimum, QSizePolicy::Expanding); |
| 154 | |
| 155 | gridLayout->addItem(item: verticalSpacer_2, row: 1, column: 0, rowSpan: 1, columnSpan: 1); |
| 156 | |
| 157 | label = new QLabel(tab_2); |
| 158 | label->setObjectName(QString::fromUtf8(str: "label" )); |
| 159 | |
| 160 | gridLayout->addWidget(label, row: 2, column: 0, rowSpan: 1, columnSpan: 1); |
| 161 | |
| 162 | exposureCompensation = new QSlider(tab_2); |
| 163 | exposureCompensation->setObjectName(QString::fromUtf8(str: "exposureCompensation" )); |
| 164 | exposureCompensation->setMinimum(-4); |
| 165 | exposureCompensation->setMaximum(4); |
| 166 | exposureCompensation->setPageStep(2); |
| 167 | exposureCompensation->setOrientation(Qt::Horizontal); |
| 168 | exposureCompensation->setTickPosition(QSlider::TicksAbove); |
| 169 | |
| 170 | gridLayout->addWidget(exposureCompensation, row: 3, column: 0, rowSpan: 1, columnSpan: 1); |
| 171 | |
| 172 | captureWidget->addTab(widget: tab_2, QString()); |
| 173 | tab = new QWidget(); |
| 174 | tab->setObjectName(QString::fromUtf8(str: "tab" )); |
| 175 | gridLayout_2 = new QGridLayout(tab); |
| 176 | gridLayout_2->setObjectName(QString::fromUtf8(str: "gridLayout_2" )); |
| 177 | recordButton = new QPushButton(tab); |
| 178 | recordButton->setObjectName(QString::fromUtf8(str: "recordButton" )); |
| 179 | |
| 180 | gridLayout_2->addWidget(recordButton, row: 0, column: 0, rowSpan: 1, columnSpan: 1); |
| 181 | |
| 182 | pauseButton = new QPushButton(tab); |
| 183 | pauseButton->setObjectName(QString::fromUtf8(str: "pauseButton" )); |
| 184 | |
| 185 | gridLayout_2->addWidget(pauseButton, row: 1, column: 0, rowSpan: 1, columnSpan: 1); |
| 186 | |
| 187 | stopButton = new QPushButton(tab); |
| 188 | stopButton->setObjectName(QString::fromUtf8(str: "stopButton" )); |
| 189 | |
| 190 | gridLayout_2->addWidget(stopButton, row: 2, column: 0, rowSpan: 1, columnSpan: 1); |
| 191 | |
| 192 | verticalSpacer = new QSpacerItem(20, 76, QSizePolicy::Minimum, QSizePolicy::Expanding); |
| 193 | |
| 194 | gridLayout_2->addItem(item: verticalSpacer, row: 3, column: 0, rowSpan: 1, columnSpan: 1); |
| 195 | |
| 196 | muteButton = new QPushButton(tab); |
| 197 | muteButton->setObjectName(QString::fromUtf8(str: "muteButton" )); |
| 198 | muteButton->setCheckable(true); |
| 199 | |
| 200 | gridLayout_2->addWidget(muteButton, row: 4, column: 0, rowSpan: 1, columnSpan: 1); |
| 201 | |
| 202 | captureWidget->addTab(widget: tab, QString()); |
| 203 | |
| 204 | gridLayout_3->addWidget(captureWidget, row: 2, column: 1, rowSpan: 1, columnSpan: 2); |
| 205 | |
| 206 | Camera->setCentralWidget(centralwidget); |
| 207 | menubar = new QMenuBar(Camera); |
| 208 | menubar->setObjectName(QString::fromUtf8(str: "menubar" )); |
| 209 | menubar->setGeometry(QRect(0, 0, 668, 21)); |
| 210 | menuFile = new QMenu(menubar); |
| 211 | menuFile->setObjectName(QString::fromUtf8(str: "menuFile" )); |
| 212 | menuDevices = new QMenu(menubar); |
| 213 | menuDevices->setObjectName(QString::fromUtf8(str: "menuDevices" )); |
| 214 | Camera->setMenuBar(menubar); |
| 215 | statusbar = new QStatusBar(Camera); |
| 216 | statusbar->setObjectName(QString::fromUtf8(str: "statusbar" )); |
| 217 | Camera->setStatusBar(statusbar); |
| 218 | |
| 219 | menubar->addAction(action: menuFile->menuAction()); |
| 220 | menubar->addAction(action: menuDevices->menuAction()); |
| 221 | menuFile->addAction(action: actionStartCamera); |
| 222 | menuFile->addAction(action: actionStopCamera); |
| 223 | menuFile->addSeparator(); |
| 224 | menuFile->addAction(action: actionSettings); |
| 225 | menuFile->addSeparator(); |
| 226 | menuFile->addAction(action: actionExit); |
| 227 | |
| 228 | retranslateUi(Camera); |
| 229 | QObject::connect(sender: recordButton, SIGNAL(clicked()), receiver: Camera, SLOT(record())); |
| 230 | QObject::connect(sender: stopButton, SIGNAL(clicked()), receiver: Camera, SLOT(stop())); |
| 231 | QObject::connect(sender: pauseButton, SIGNAL(clicked()), receiver: Camera, SLOT(pause())); |
| 232 | QObject::connect(sender: actionExit, SIGNAL(triggered()), receiver: Camera, SLOT(close())); |
| 233 | QObject::connect(sender: takeImageButton, SIGNAL(clicked()), receiver: Camera, SLOT(takeImage())); |
| 234 | QObject::connect(sender: lockButton, SIGNAL(clicked()), receiver: Camera, SLOT(toggleLock())); |
| 235 | QObject::connect(sender: muteButton, SIGNAL(toggled(bool)), receiver: Camera, SLOT(setMuted(bool))); |
| 236 | QObject::connect(sender: exposureCompensation, SIGNAL(valueChanged(int)), receiver: Camera, SLOT(setExposureCompensation(int))); |
| 237 | QObject::connect(sender: actionSettings, SIGNAL(triggered()), receiver: Camera, SLOT(configureCaptureSettings())); |
| 238 | QObject::connect(sender: actionStartCamera, SIGNAL(triggered()), receiver: Camera, SLOT(startCamera())); |
| 239 | QObject::connect(sender: actionStopCamera, SIGNAL(triggered()), receiver: Camera, SLOT(stopCamera())); |
| 240 | |
| 241 | stackedWidget->setCurrentIndex(0); |
| 242 | captureWidget->setCurrentIndex(0); |
| 243 | |
| 244 | |
| 245 | QMetaObject::connectSlotsByName(o: Camera); |
| 246 | } // setupUi |
| 247 | |
| 248 | void retranslateUi(QMainWindow *Camera) |
| 249 | { |
| 250 | Camera->setWindowTitle(QCoreApplication::translate(context: "Camera" , key: "Camera" , disambiguation: nullptr)); |
| 251 | actionExit->setText(QCoreApplication::translate(context: "Camera" , key: "Exit" , disambiguation: nullptr)); |
| 252 | actionStartCamera->setText(QCoreApplication::translate(context: "Camera" , key: "Start Camera" , disambiguation: nullptr)); |
| 253 | actionStopCamera->setText(QCoreApplication::translate(context: "Camera" , key: "Stop Camera" , disambiguation: nullptr)); |
| 254 | actionSettings->setText(QCoreApplication::translate(context: "Camera" , key: "Settings" , disambiguation: nullptr)); |
| 255 | lastImagePreviewLabel->setText(QString()); |
| 256 | lockButton->setText(QCoreApplication::translate(context: "Camera" , key: "Focus" , disambiguation: nullptr)); |
| 257 | takeImageButton->setText(QCoreApplication::translate(context: "Camera" , key: "Capture Photo" , disambiguation: nullptr)); |
| 258 | label->setText(QCoreApplication::translate(context: "Camera" , key: "Exposure Compensation:" , disambiguation: nullptr)); |
| 259 | captureWidget->setTabText(index: captureWidget->indexOf(widget: tab_2), text: QCoreApplication::translate(context: "Camera" , key: "Image" , disambiguation: nullptr)); |
| 260 | recordButton->setText(QCoreApplication::translate(context: "Camera" , key: "Record" , disambiguation: nullptr)); |
| 261 | pauseButton->setText(QCoreApplication::translate(context: "Camera" , key: "Pause" , disambiguation: nullptr)); |
| 262 | stopButton->setText(QCoreApplication::translate(context: "Camera" , key: "Stop" , disambiguation: nullptr)); |
| 263 | muteButton->setText(QCoreApplication::translate(context: "Camera" , key: "Mute" , disambiguation: nullptr)); |
| 264 | captureWidget->setTabText(index: captureWidget->indexOf(widget: tab), text: QCoreApplication::translate(context: "Camera" , key: "Video" , disambiguation: nullptr)); |
| 265 | menuFile->setTitle(QCoreApplication::translate(context: "Camera" , key: "File" , disambiguation: nullptr)); |
| 266 | menuDevices->setTitle(QCoreApplication::translate(context: "Camera" , key: "Devices" , disambiguation: nullptr)); |
| 267 | } // retranslateUi |
| 268 | |
| 269 | }; |
| 270 | |
| 271 | namespace Ui { |
| 272 | class Camera: public Ui_Camera {}; |
| 273 | } // namespace Ui |
| 274 | |
| 275 | QT_END_NAMESPACE |
| 276 | |
| 277 | #endif // UI_CAMERA_H |
| 278 | |