| 1 |
/******************************************************************************** |
| 2 |
** Form generated from reading UI file 'validators.ui' |
| 3 |
** |
| 4 |
** Created by: Qt User Interface Compiler version 5.12.0 |
| 5 |
** |
| 6 |
** WARNING! All changes made in this file will be lost when recompiling UI file! |
| 7 |
********************************************************************************/ |
| 8 |
|
| 9 |
#ifndef VALIDATORS_H |
| 10 |
#define VALIDATORS_H |
| 11 |
|
| 12 |
#include <QtCore/QVariant> |
| 13 |
#include <QtWidgets/QApplication> |
| 14 |
#include <QtWidgets/QComboBox> |
| 15 |
#include <QtWidgets/QDoubleSpinBox> |
| 16 |
#include <QtWidgets/QFrame> |
| 17 |
#include <QtWidgets/QGridLayout> |
| 18 |
#include <QtWidgets/QGroupBox> |
| 19 |
#include <QtWidgets/QHBoxLayout> |
| 20 |
#include <QtWidgets/QLabel> |
| 21 |
#include <QtWidgets/QLineEdit> |
| 22 |
#include <QtWidgets/QPushButton> |
| 23 |
#include <QtWidgets/QSpacerItem> |
| 24 |
#include <QtWidgets/QSpinBox> |
| 25 |
#include <QtWidgets/QVBoxLayout> |
| 26 |
#include <QtWidgets/QWidget> |
| 27 |
#include "ledwidget.h" |
| 28 |
#include "localeselector.h" |
| 29 |
|
| 30 |
QT_BEGIN_NAMESPACE |
| 31 |
|
| 32 |
class Ui_ValidatorsForm |
| 33 |
{ |
| 34 |
public: |
| 35 |
QVBoxLayout *vboxLayout; |
| 36 |
QHBoxLayout *hboxLayout; |
| 37 |
LocaleSelector *localeSelector; |
| 38 |
QSpacerItem *spacerItem; |
| 39 |
QGroupBox *groupBox; |
| 40 |
QVBoxLayout *vboxLayout1; |
| 41 |
QHBoxLayout *hboxLayout1; |
| 42 |
QGridLayout *gridLayout; |
| 43 |
QLabel *label; |
| 44 |
QSpinBox *minVal; |
| 45 |
QLabel *label_2; |
| 46 |
QSpinBox *maxVal; |
| 47 |
QFrame *frame; |
| 48 |
QVBoxLayout *vboxLayout2; |
| 49 |
LEDWidget *ledWidget; |
| 50 |
QLabel *label_7; |
| 51 |
QSpacerItem *spacerItem1; |
| 52 |
QLineEdit *editor; |
| 53 |
QGroupBox *groupBox_2; |
| 54 |
QVBoxLayout *vboxLayout3; |
| 55 |
QHBoxLayout *hboxLayout2; |
| 56 |
QGridLayout *gridLayout1; |
| 57 |
QLabel *label_3; |
| 58 |
QDoubleSpinBox *doubleMinVal; |
| 59 |
QLabel *label_5; |
| 60 |
QComboBox *doubleFormat; |
| 61 |
QLabel *label_4; |
| 62 |
QDoubleSpinBox *doubleMaxVal; |
| 63 |
QLabel *label_6; |
| 64 |
QSpinBox *doubleDecimals; |
| 65 |
QFrame *frame_2; |
| 66 |
QVBoxLayout *vboxLayout4; |
| 67 |
LEDWidget *doubleLedWidget; |
| 68 |
QLabel *label_8; |
| 69 |
QSpacerItem *spacerItem2; |
| 70 |
QLineEdit *doubleEditor; |
| 71 |
QSpacerItem *spacerItem3; |
| 72 |
QHBoxLayout *hboxLayout3; |
| 73 |
QSpacerItem *spacerItem4; |
| 74 |
QPushButton *pushButton; |
| 75 |
|
| 76 |
void setupUi(QWidget *ValidatorsForm) |
| 77 |
{ |
| 78 |
if (ValidatorsForm->objectName().isEmpty()) |
| 79 |
ValidatorsForm->setObjectName(QString::fromUtf8("ValidatorsForm")); |
| 80 |
ValidatorsForm->resize(526, 668); |
| 81 |
vboxLayout = new QVBoxLayout(ValidatorsForm); |
| 82 |
#ifndef Q_OS_MAC |
| 83 |
vboxLayout->setSpacing(6); |
| 84 |
#endif |
| 85 |
#ifndef Q_OS_MAC |
| 86 |
vboxLayout->setContentsMargins(9, 9, 9, 9); |
| 87 |
#endif |
| 88 |
vboxLayout->setObjectName(QString::fromUtf8("vboxLayout")); |
| 89 |
hboxLayout = new QHBoxLayout(); |
| 90 |
#ifndef Q_OS_MAC |
| 91 |
hboxLayout->setSpacing(6); |
| 92 |
#endif |
| 93 |
#ifndef Q_OS_MAC |
| 94 |
hboxLayout->setContentsMargins(0, 0, 0, 0); |
| 95 |
#endif |
| 96 |
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout")); |
| 97 |
localeSelector = new LocaleSelector(ValidatorsForm); |
| 98 |
localeSelector->setObjectName(QString::fromUtf8("localeSelector")); |
| 99 |
|
| 100 |
hboxLayout->addWidget(localeSelector); |
| 101 |
|
| 102 |
spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
| 103 |
|
| 104 |
hboxLayout->addItem(spacerItem); |
| 105 |
|
| 106 |
|
| 107 |
vboxLayout->addLayout(hboxLayout); |
| 108 |
|
| 109 |
groupBox = new QGroupBox(ValidatorsForm); |
| 110 |
groupBox->setObjectName(QString::fromUtf8("groupBox")); |
| 111 |
vboxLayout1 = new QVBoxLayout(groupBox); |
| 112 |
#ifndef Q_OS_MAC |
| 113 |
vboxLayout1->setSpacing(6); |
| 114 |
#endif |
| 115 |
#ifndef Q_OS_MAC |
| 116 |
vboxLayout1->setContentsMargins(9, 9, 9, 9); |
| 117 |
#endif |
| 118 |
vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1")); |
| 119 |
hboxLayout1 = new QHBoxLayout(); |
| 120 |
#ifndef Q_OS_MAC |
| 121 |
hboxLayout1->setSpacing(6); |
| 122 |
#endif |
| 123 |
#ifndef Q_OS_MAC |
| 124 |
hboxLayout1->setContentsMargins(0, 0, 0, 0); |
| 125 |
#endif |
| 126 |
hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1")); |
| 127 |
gridLayout = new QGridLayout(); |
| 128 |
#ifndef Q_OS_MAC |
| 129 |
gridLayout->setSpacing(6); |
| 130 |
#endif |
| 131 |
#ifndef Q_OS_MAC |
| 132 |
gridLayout->setContentsMargins(0, 0, 0, 0); |
| 133 |
#endif |
| 134 |
gridLayout->setObjectName(QString::fromUtf8("gridLayout")); |
| 135 |
label = new QLabel(groupBox); |
| 136 |
label->setObjectName(QString::fromUtf8("label")); |
| 137 |
label->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
| 138 |
|
| 139 |
gridLayout->addWidget(label, 0, 0, 1, 1); |
| 140 |
|
| 141 |
minVal = new QSpinBox(groupBox); |
| 142 |
minVal->setObjectName(QString::fromUtf8("minVal")); |
| 143 |
QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed); |
| 144 |
sizePolicy.setHorizontalStretch(1); |
| 145 |
sizePolicy.setVerticalStretch(0); |
| 146 |
sizePolicy.setHeightForWidth(minVal->sizePolicy().hasHeightForWidth()); |
| 147 |
minVal->setSizePolicy(sizePolicy); |
| 148 |
minVal->setMinimum(-1000000); |
| 149 |
minVal->setMaximum(1000000); |
| 150 |
|
| 151 |
gridLayout->addWidget(minVal, 0, 1, 1, 1); |
| 152 |
|
| 153 |
label_2 = new QLabel(groupBox); |
| 154 |
label_2->setObjectName(QString::fromUtf8("label_2")); |
| 155 |
label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
| 156 |
|
| 157 |
gridLayout->addWidget(label_2, 1, 0, 1, 1); |
| 158 |
|
| 159 |
maxVal = new QSpinBox(groupBox); |
| 160 |
maxVal->setObjectName(QString::fromUtf8("maxVal")); |
| 161 |
sizePolicy.setHeightForWidth(maxVal->sizePolicy().hasHeightForWidth()); |
| 162 |
maxVal->setSizePolicy(sizePolicy); |
| 163 |
maxVal->setMinimum(-1000000); |
| 164 |
maxVal->setMaximum(1000000); |
| 165 |
maxVal->setValue(1000); |
| 166 |
|
| 167 |
gridLayout->addWidget(maxVal, 1, 1, 1, 1); |
| 168 |
|
| 169 |
|
| 170 |
hboxLayout1->addLayout(gridLayout); |
| 171 |
|
| 172 |
frame = new QFrame(groupBox); |
| 173 |
frame->setObjectName(QString::fromUtf8("frame")); |
| 174 |
frame->setFrameShape(QFrame::StyledPanel); |
| 175 |
frame->setFrameShadow(QFrame::Sunken); |
| 176 |
vboxLayout2 = new QVBoxLayout(frame); |
| 177 |
#ifndef Q_OS_MAC |
| 178 |
vboxLayout2->setSpacing(6); |
| 179 |
#endif |
| 180 |
#ifndef Q_OS_MAC |
| 181 |
vboxLayout2->setContentsMargins(9, 9, 9, 9); |
| 182 |
#endif |
| 183 |
vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2")); |
| 184 |
ledWidget = new LEDWidget(frame); |
| 185 |
ledWidget->setObjectName(QString::fromUtf8("ledWidget")); |
| 186 |
QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed); |
| 187 |
sizePolicy1.setHorizontalStretch(0); |
| 188 |
sizePolicy1.setVerticalStretch(0); |
| 189 |
sizePolicy1.setHeightForWidth(ledWidget->sizePolicy().hasHeightForWidth()); |
| 190 |
ledWidget->setSizePolicy(sizePolicy1); |
| 191 |
ledWidget->setPixmap(QPixmap(QString::fromUtf8(":/ledoff.png"))); |
| 192 |
ledWidget->setAlignment(Qt::AlignCenter); |
| 193 |
|
| 194 |
vboxLayout2->addWidget(ledWidget); |
| 195 |
|
| 196 |
label_7 = new QLabel(frame); |
| 197 |
label_7->setObjectName(QString::fromUtf8("label_7")); |
| 198 |
|
| 199 |
vboxLayout2->addWidget(label_7); |
| 200 |
|
| 201 |
|
| 202 |
hboxLayout1->addWidget(frame); |
| 203 |
|
| 204 |
|
| 205 |
vboxLayout1->addLayout(hboxLayout1); |
| 206 |
|
| 207 |
spacerItem1 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed); |
| 208 |
|
| 209 |
vboxLayout1->addItem(spacerItem1); |
| 210 |
|
| 211 |
editor = new QLineEdit(groupBox); |
| 212 |
editor->setObjectName(QString::fromUtf8("editor")); |
| 213 |
|
| 214 |
vboxLayout1->addWidget(editor); |
| 215 |
|
| 216 |
|
| 217 |
vboxLayout->addWidget(groupBox); |
| 218 |
|
| 219 |
groupBox_2 = new QGroupBox(ValidatorsForm); |
| 220 |
groupBox_2->setObjectName(QString::fromUtf8("groupBox_2")); |
| 221 |
vboxLayout3 = new QVBoxLayout(groupBox_2); |
| 222 |
#ifndef Q_OS_MAC |
| 223 |
vboxLayout3->setSpacing(6); |
| 224 |
#endif |
| 225 |
#ifndef Q_OS_MAC |
| 226 |
vboxLayout3->setContentsMargins(9, 9, 9, 9); |
| 227 |
#endif |
| 228 |
vboxLayout3->setObjectName(QString::fromUtf8("vboxLayout3")); |
| 229 |
hboxLayout2 = new QHBoxLayout(); |
| 230 |
#ifndef Q_OS_MAC |
| 231 |
hboxLayout2->setSpacing(6); |
| 232 |
#endif |
| 233 |
#ifndef Q_OS_MAC |
| 234 |
hboxLayout2->setContentsMargins(0, 0, 0, 0); |
| 235 |
#endif |
| 236 |
hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2")); |
| 237 |
gridLayout1 = new QGridLayout(); |
| 238 |
#ifndef Q_OS_MAC |
| 239 |
gridLayout1->setSpacing(6); |
| 240 |
#endif |
| 241 |
#ifndef Q_OS_MAC |
| 242 |
gridLayout1->setContentsMargins(0, 0, 0, 0); |
| 243 |
#endif |
| 244 |
gridLayout1->setObjectName(QString::fromUtf8("gridLayout1")); |
| 245 |
label_3 = new QLabel(groupBox_2); |
| 246 |
label_3->setObjectName(QString::fromUtf8("label_3")); |
| 247 |
label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
| 248 |
|
| 249 |
gridLayout1->addWidget(label_3, 0, 0, 1, 1); |
| 250 |
|
| 251 |
doubleMinVal = new QDoubleSpinBox(groupBox_2); |
| 252 |
doubleMinVal->setObjectName(QString::fromUtf8("doubleMinVal")); |
| 253 |
sizePolicy.setHeightForWidth(doubleMinVal->sizePolicy().hasHeightForWidth()); |
| 254 |
doubleMinVal->setSizePolicy(sizePolicy); |
| 255 |
doubleMinVal->setMinimum(-100000.000000000000000); |
| 256 |
doubleMinVal->setMaximum(100000.000000000000000); |
| 257 |
doubleMinVal->setValue(0.000000000000000); |
| 258 |
|
| 259 |
gridLayout1->addWidget(doubleMinVal, 0, 1, 1, 1); |
| 260 |
|
| 261 |
label_5 = new QLabel(groupBox_2); |
| 262 |
label_5->setObjectName(QString::fromUtf8("label_5")); |
| 263 |
label_5->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
| 264 |
|
| 265 |
gridLayout1->addWidget(label_5, 0, 2, 1, 1); |
| 266 |
|
| 267 |
doubleFormat = new QComboBox(groupBox_2); |
| 268 |
doubleFormat->addItem(QString()); |
| 269 |
doubleFormat->addItem(QString()); |
| 270 |
doubleFormat->setObjectName(QString::fromUtf8("doubleFormat")); |
| 271 |
|
| 272 |
gridLayout1->addWidget(doubleFormat, 0, 3, 1, 1); |
| 273 |
|
| 274 |
label_4 = new QLabel(groupBox_2); |
| 275 |
label_4->setObjectName(QString::fromUtf8("label_4")); |
| 276 |
label_4->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
| 277 |
|
| 278 |
gridLayout1->addWidget(label_4, 1, 0, 1, 1); |
| 279 |
|
| 280 |
doubleMaxVal = new QDoubleSpinBox(groupBox_2); |
| 281 |
doubleMaxVal->setObjectName(QString::fromUtf8("doubleMaxVal")); |
| 282 |
sizePolicy.setHeightForWidth(doubleMaxVal->sizePolicy().hasHeightForWidth()); |
| 283 |
doubleMaxVal->setSizePolicy(sizePolicy); |
| 284 |
doubleMaxVal->setMinimum(-100000.000000000000000); |
| 285 |
doubleMaxVal->setMaximum(100000.000000000000000); |
| 286 |
doubleMaxVal->setValue(1000.000000000000000); |
| 287 |
|
| 288 |
gridLayout1->addWidget(doubleMaxVal, 1, 1, 1, 1); |
| 289 |
|
| 290 |
label_6 = new QLabel(groupBox_2); |
| 291 |
label_6->setObjectName(QString::fromUtf8("label_6")); |
| 292 |
label_6->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
| 293 |
|
| 294 |
gridLayout1->addWidget(label_6, 1, 2, 1, 1); |
| 295 |
|
| 296 |
doubleDecimals = new QSpinBox(groupBox_2); |
| 297 |
doubleDecimals->setObjectName(QString::fromUtf8("doubleDecimals")); |
| 298 |
doubleDecimals->setValue(2); |
| 299 |
|
| 300 |
gridLayout1->addWidget(doubleDecimals, 1, 3, 1, 1); |
| 301 |
|
| 302 |
|
| 303 |
hboxLayout2->addLayout(gridLayout1); |
| 304 |
|
| 305 |
frame_2 = new QFrame(groupBox_2); |
| 306 |
frame_2->setObjectName(QString::fromUtf8("frame_2")); |
| 307 |
frame_2->setFrameShape(QFrame::StyledPanel); |
| 308 |
frame_2->setFrameShadow(QFrame::Sunken); |
| 309 |
vboxLayout4 = new QVBoxLayout(frame_2); |
| 310 |
#ifndef Q_OS_MAC |
| 311 |
vboxLayout4->setSpacing(6); |
| 312 |
#endif |
| 313 |
#ifndef Q_OS_MAC |
| 314 |
vboxLayout4->setContentsMargins(9, 9, 9, 9); |
| 315 |
#endif |
| 316 |
vboxLayout4->setObjectName(QString::fromUtf8("vboxLayout4")); |
| 317 |
doubleLedWidget = new LEDWidget(frame_2); |
| 318 |
doubleLedWidget->setObjectName(QString::fromUtf8("doubleLedWidget")); |
| 319 |
doubleLedWidget->setPixmap(QPixmap(QString::fromUtf8(":/ledoff.png"))); |
| 320 |
doubleLedWidget->setAlignment(Qt::AlignCenter); |
| 321 |
|
| 322 |
vboxLayout4->addWidget(doubleLedWidget); |
| 323 |
|
| 324 |
label_8 = new QLabel(frame_2); |
| 325 |
label_8->setObjectName(QString::fromUtf8("label_8")); |
| 326 |
|
| 327 |
vboxLayout4->addWidget(label_8); |
| 328 |
|
| 329 |
|
| 330 |
hboxLayout2->addWidget(frame_2); |
| 331 |
|
| 332 |
|
| 333 |
vboxLayout3->addLayout(hboxLayout2); |
| 334 |
|
| 335 |
spacerItem2 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed); |
| 336 |
|
| 337 |
vboxLayout3->addItem(spacerItem2); |
| 338 |
|
| 339 |
doubleEditor = new QLineEdit(groupBox_2); |
| 340 |
doubleEditor->setObjectName(QString::fromUtf8("doubleEditor")); |
| 341 |
|
| 342 |
vboxLayout3->addWidget(doubleEditor); |
| 343 |
|
| 344 |
|
| 345 |
vboxLayout->addWidget(groupBox_2); |
| 346 |
|
| 347 |
spacerItem3 = new QSpacerItem(20, 111, QSizePolicy::Minimum, QSizePolicy::Expanding); |
| 348 |
|
| 349 |
vboxLayout->addItem(spacerItem3); |
| 350 |
|
| 351 |
hboxLayout3 = new QHBoxLayout(); |
| 352 |
#ifndef Q_OS_MAC |
| 353 |
hboxLayout3->setSpacing(6); |
| 354 |
#endif |
| 355 |
hboxLayout3->setContentsMargins(0, 0, 0, 0); |
| 356 |
hboxLayout3->setObjectName(QString::fromUtf8("hboxLayout3")); |
| 357 |
spacerItem4 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); |
| 358 |
|
| 359 |
hboxLayout3->addItem(spacerItem4); |
| 360 |
|
| 361 |
pushButton = new QPushButton(ValidatorsForm); |
| 362 |
pushButton->setObjectName(QString::fromUtf8("pushButton")); |
| 363 |
|
| 364 |
hboxLayout3->addWidget(pushButton); |
| 365 |
|
| 366 |
|
| 367 |
vboxLayout->addLayout(hboxLayout3); |
| 368 |
|
| 369 |
|
| 370 |
retranslateUi(ValidatorsForm); |
| 371 |
QObject::connect(pushButton, SIGNAL(clicked()), ValidatorsForm, SLOT(close())); |
| 372 |
|
| 373 |
QMetaObject::connectSlotsByName(ValidatorsForm); |
| 374 |
} // setupUi |
| 375 |
|
| 376 |
void retranslateUi(QWidget *ValidatorsForm) |
| 377 |
{ |
| 378 |
ValidatorsForm->setWindowTitle(QCoreApplication::translate("ValidatorsForm", "Form", nullptr)); |
| 379 |
groupBox->setTitle(QCoreApplication::translate("ValidatorsForm", "QIntValidator", nullptr)); |
| 380 |
label->setText(QCoreApplication::translate("ValidatorsForm", "Min:", nullptr)); |
| 381 |
label_2->setText(QCoreApplication::translate("ValidatorsForm", "Max:", nullptr)); |
| 382 |
label_7->setText(QCoreApplication::translate("ValidatorsForm", "editingFinished()", nullptr)); |
| 383 |
groupBox_2->setTitle(QCoreApplication::translate("ValidatorsForm", "QDoubleValidator", nullptr)); |
| 384 |
label_3->setText(QCoreApplication::translate("ValidatorsForm", "Min:", nullptr)); |
| 385 |
label_5->setText(QCoreApplication::translate("ValidatorsForm", "Format:", nullptr)); |
| 386 |
doubleFormat->setItemText(0, QCoreApplication::translate("ValidatorsForm", "Standard", nullptr)); |
| 387 |
doubleFormat->setItemText(1, QCoreApplication::translate("ValidatorsForm", "Scientific", nullptr)); |
| 388 |
|
| 389 |
label_4->setText(QCoreApplication::translate("ValidatorsForm", "Max:", nullptr)); |
| 390 |
label_6->setText(QCoreApplication::translate("ValidatorsForm", "Decimals:", nullptr)); |
| 391 |
doubleLedWidget->setText(QString()); |
| 392 |
label_8->setText(QCoreApplication::translate("ValidatorsForm", "editingFinished()", nullptr)); |
| 393 |
pushButton->setText(QCoreApplication::translate("ValidatorsForm", "Quit", nullptr)); |
| 394 |
} // retranslateUi |
| 395 |
|
| 396 |
}; |
| 397 |
|
| 398 |
namespace Ui { |
| 399 |
class ValidatorsForm: public Ui_ValidatorsForm {}; |
| 400 |
} // namespace Ui |
| 401 |
|
| 402 |
QT_END_NAMESPACE |
| 403 |
|
| 404 |
#endif // VALIDATORS_H |