9 #ifndef UI_OPTIONSWIDGET_H
10 #define UI_OPTIONSWIDGET_H
12 #include <QtCore/QVariant>
13 #include <QtWidgets/QAction>
14 #include <QtWidgets/QApplication>
15 #include <QtWidgets/QButtonGroup>
16 #include <QtWidgets/QComboBox>
17 #include <QtWidgets/QGridLayout>
18 #include <QtWidgets/QHBoxLayout>
19 #include <QtWidgets/QHeaderView>
20 #include <QtWidgets/QLabel>
21 #include <QtWidgets/QLineEdit>
22 #include <QtWidgets/QRadioButton>
23 #include <QtWidgets/QSlider>
24 #include <QtWidgets/QSpacerItem>
25 #include <QtWidgets/QSpinBox>
26 #include <QtWidgets/QTabWidget>
27 #include <QtWidgets/QVBoxLayout>
28 #include <QtWidgets/QWidget>
29 #include "kcolorbutton.h"
36 QTabWidget *matrixOptionsTabs;
38 QGridLayout *mainLayout;
39 QHBoxLayout *colorPageLayout;
40 QVBoxLayout *toleranceLayout;
41 QRadioButton *toleranceRadioButton;
42 QHBoxLayout *toleranceOptionsLayout;
43 QSlider *toleranceSlider;
44 QVBoxLayout *toleranceEditsLayout;
45 QHBoxLayout *badCorrelationLayout;
46 QLabel *badCorrelationLabel;
47 KColorButton *badCorrelationColorButton;
48 QSpacerItem *badTolSpacer;
49 QHBoxLayout *enterToleranceLayout;
50 QLabel *toleranceLabel;
51 QLineEdit *toleranceLineEdit;
52 QSpacerItem *tolGoodSpacer;
53 QHBoxLayout *goodCorrelationLayout;
54 QLabel *goodCorrelationLabel;
55 KColorButton *goodCorrelationColorButton;
56 QVBoxLayout *gradientLayout;
57 QRadioButton *gradientRadioButton;
58 QSpacerItem *gradientSpacer;
60 QWidget *horizontalLayoutWidget_11;
61 QHBoxLayout *focusPageLayout;
62 QHBoxLayout *focusPageLayout_2;
63 QVBoxLayout *focusOptionsLayout;
64 QRadioButton *bestCorrelationRadioButton;
65 QRadioButton *worstCorrelationRadioButton;
66 QVBoxLayout *specificParametersLayout;
67 QRadioButton *specificCorrelationRadioButton;
68 QLabel *focusParametersLabel1;
69 QHBoxLayout *specificParameter1Layout;
72 QLabel *focusParametersLabel2;
73 QHBoxLayout *specificPrameter2Layout;
76 QVBoxLayout *focusToleranceLayout;
77 QRadioButton *focusToleranceRadioButton;
78 QHBoxLayout *toleranceEditLayout;
79 QLabel *focusToleranceLabel;
80 QLineEdit *focusToleranceLineEdit;
81 QHBoxLayout *elementsLayout;
82 QVBoxLayout *goodElementsLayout;
83 QLabel *goodElementsLabel;
85 QVBoxLayout *badElementsLayout;
86 QLabel *badElementsLabel;
89 QVBoxLayout *currentElementData;
90 QHBoxLayout *correlationLayout;
91 QLabel *correlationLabel;
93 QHBoxLayout *image1Layout;
95 QLabel *parameter1Name;
96 QHBoxLayout *image2Layout;
98 QLabel *parameter2Name;
100 void setupUi(
QWidget *matrixOptionsWidget)
102 if (matrixOptionsWidget->objectName().isEmpty())
103 matrixOptionsWidget->setObjectName(QStringLiteral(
"matrixOptionsWidget"));
104 matrixOptionsWidget->resize(597, 549);
105 matrixOptionsTabs =
new QTabWidget(matrixOptionsWidget);
106 matrixOptionsTabs->setObjectName(QStringLiteral(
"matrixOptionsTabs"));
107 matrixOptionsTabs->setGeometry(QRect(9, 9, 581, 391));
108 colorOptionsPage =
new QWidget();
109 colorOptionsPage->setObjectName(QStringLiteral(
"colorOptionsPage"));
110 mainLayout =
new QGridLayout(colorOptionsPage);
111 mainLayout->setObjectName(QStringLiteral(
"mainLayout"));
112 colorPageLayout =
new QHBoxLayout();
113 colorPageLayout->setObjectName(QStringLiteral(
"colorPageLayout"));
114 toleranceLayout =
new QVBoxLayout();
115 toleranceLayout->setObjectName(QStringLiteral(
"toleranceLayout"));
116 toleranceRadioButton =
new QRadioButton(colorOptionsPage);
117 toleranceRadioButton->setObjectName(QStringLiteral(
"toleranceRadioButton"));
119 toleranceLayout->addWidget(toleranceRadioButton);
121 toleranceOptionsLayout =
new QHBoxLayout();
122 toleranceOptionsLayout->setObjectName(QStringLiteral(
"toleranceOptionsLayout"));
123 toleranceSlider =
new QSlider(colorOptionsPage);
124 toleranceSlider->setObjectName(QStringLiteral(
"toleranceSlider"));
125 toleranceSlider->setOrientation(Qt::Vertical);
127 toleranceOptionsLayout->addWidget(toleranceSlider);
129 toleranceEditsLayout =
new QVBoxLayout();
130 toleranceEditsLayout->setObjectName(QStringLiteral(
"toleranceEditsLayout"));
131 badCorrelationLayout =
new QHBoxLayout();
132 badCorrelationLayout->setObjectName(QStringLiteral(
"badCorrelationLayout"));
133 badCorrelationLabel =
new QLabel(colorOptionsPage);
134 badCorrelationLabel->setObjectName(QStringLiteral(
"badCorrelationLabel"));
136 badCorrelationLayout->addWidget(badCorrelationLabel);
138 badCorrelationColorButton =
new KColorButton(colorOptionsPage);
139 badCorrelationColorButton->setObjectName(QStringLiteral(
"badCorrelationColorButton"));
141 badCorrelationLayout->addWidget(badCorrelationColorButton);
144 toleranceEditsLayout->addLayout(badCorrelationLayout);
146 badTolSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
148 toleranceEditsLayout->addItem(badTolSpacer);
150 enterToleranceLayout =
new QHBoxLayout();
151 enterToleranceLayout->setObjectName(QStringLiteral(
"enterToleranceLayout"));
152 toleranceLabel =
new QLabel(colorOptionsPage);
153 toleranceLabel->setObjectName(QStringLiteral(
"toleranceLabel"));
155 enterToleranceLayout->addWidget(toleranceLabel);
157 toleranceLineEdit =
new QLineEdit(colorOptionsPage);
158 toleranceLineEdit->setObjectName(QStringLiteral(
"toleranceLineEdit"));
159 QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Fixed);
160 sizePolicy.setHorizontalStretch(0);
161 sizePolicy.setVerticalStretch(0);
162 sizePolicy.setHeightForWidth(toleranceLineEdit->sizePolicy().hasHeightForWidth());
163 toleranceLineEdit->setSizePolicy(sizePolicy);
164 toleranceLineEdit->setMaximumSize(QSize(100, 30));
166 enterToleranceLayout->addWidget(toleranceLineEdit);
169 toleranceEditsLayout->addLayout(enterToleranceLayout);
171 tolGoodSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
173 toleranceEditsLayout->addItem(tolGoodSpacer);
175 goodCorrelationLayout =
new QHBoxLayout();
176 goodCorrelationLayout->setObjectName(QStringLiteral(
"goodCorrelationLayout"));
177 goodCorrelationLabel =
new QLabel(colorOptionsPage);
178 goodCorrelationLabel->setObjectName(QStringLiteral(
"goodCorrelationLabel"));
180 goodCorrelationLayout->addWidget(goodCorrelationLabel);
182 goodCorrelationColorButton =
new KColorButton(colorOptionsPage);
183 goodCorrelationColorButton->setObjectName(QStringLiteral(
"goodCorrelationColorButton"));
185 goodCorrelationLayout->addWidget(goodCorrelationColorButton);
188 toleranceEditsLayout->addLayout(goodCorrelationLayout);
191 toleranceOptionsLayout->addLayout(toleranceEditsLayout);
194 toleranceLayout->addLayout(toleranceOptionsLayout);
197 colorPageLayout->addLayout(toleranceLayout);
199 gradientLayout =
new QVBoxLayout();
200 gradientLayout->setObjectName(QStringLiteral(
"gradientLayout"));
201 gradientRadioButton =
new QRadioButton(colorOptionsPage);
202 gradientRadioButton->setObjectName(QStringLiteral(
"gradientRadioButton"));
204 gradientLayout->addWidget(gradientRadioButton);
206 gradientSpacer =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
208 gradientLayout->addItem(gradientSpacer);
211 colorPageLayout->addLayout(gradientLayout);
214 mainLayout->addLayout(colorPageLayout, 0, 1, 1, 1);
216 matrixOptionsTabs->addTab(colorOptionsPage, QString());
217 focusOptionsPage =
new QWidget();
218 focusOptionsPage->setObjectName(QStringLiteral(
"focusOptionsPage"));
219 horizontalLayoutWidget_11 =
new QWidget(focusOptionsPage);
220 horizontalLayoutWidget_11->setObjectName(QStringLiteral(
"horizontalLayoutWidget_11"));
221 horizontalLayoutWidget_11->setGeometry(QRect(0, 0, 577, 351));
222 focusPageLayout =
new QHBoxLayout(horizontalLayoutWidget_11);
223 focusPageLayout->setObjectName(QStringLiteral(
"focusPageLayout"));
224 focusPageLayout->setContentsMargins(0, 0, 0, 0);
225 focusPageLayout_2 =
new QHBoxLayout();
226 focusPageLayout_2->setObjectName(QStringLiteral(
"focusPageLayout_2"));
227 focusOptionsLayout =
new QVBoxLayout();
228 focusOptionsLayout->setObjectName(QStringLiteral(
"focusOptionsLayout"));
229 bestCorrelationRadioButton =
new QRadioButton(horizontalLayoutWidget_11);
230 bestCorrelationRadioButton->setObjectName(QStringLiteral(
"bestCorrelationRadioButton"));
232 focusOptionsLayout->addWidget(bestCorrelationRadioButton);
234 worstCorrelationRadioButton =
new QRadioButton(horizontalLayoutWidget_11);
235 worstCorrelationRadioButton->setObjectName(QStringLiteral(
"worstCorrelationRadioButton"));
237 focusOptionsLayout->addWidget(worstCorrelationRadioButton);
239 specificParametersLayout =
new QVBoxLayout();
240 specificParametersLayout->setObjectName(QStringLiteral(
"specificParametersLayout"));
241 specificCorrelationRadioButton =
new QRadioButton(horizontalLayoutWidget_11);
242 specificCorrelationRadioButton->setObjectName(QStringLiteral(
"specificCorrelationRadioButton"));
244 specificParametersLayout->addWidget(specificCorrelationRadioButton);
246 focusParametersLabel1 =
new QLabel(horizontalLayoutWidget_11);
247 focusParametersLabel1->setObjectName(QStringLiteral(
"focusParametersLabel1"));
248 focusParametersLabel1->setMaximumSize(QSize(16777215, 30));
250 specificParametersLayout->addWidget(focusParametersLabel1);
252 specificParameter1Layout =
new QHBoxLayout();
253 specificParameter1Layout->setObjectName(QStringLiteral(
"specificParameter1Layout"));
254 image1ComboBox =
new QComboBox(horizontalLayoutWidget_11);
255 image1ComboBox->setObjectName(QStringLiteral(
"image1ComboBox"));
257 specificParameter1Layout->addWidget(image1ComboBox);
259 parameter1ComboBox =
new QComboBox(horizontalLayoutWidget_11);
260 parameter1ComboBox->setObjectName(QStringLiteral(
"parameter1ComboBox"));
262 specificParameter1Layout->addWidget(parameter1ComboBox);
265 specificParametersLayout->addLayout(specificParameter1Layout);
267 focusParametersLabel2 =
new QLabel(horizontalLayoutWidget_11);
268 focusParametersLabel2->setObjectName(QStringLiteral(
"focusParametersLabel2"));
269 focusParametersLabel2->setMaximumSize(QSize(16777215, 30));
271 specificParametersLayout->addWidget(focusParametersLabel2);
273 specificPrameter2Layout =
new QHBoxLayout();
274 specificPrameter2Layout->setObjectName(QStringLiteral(
"specificPrameter2Layout"));
275 image2ComboBox =
new QComboBox(horizontalLayoutWidget_11);
276 image2ComboBox->setObjectName(QStringLiteral(
"image2ComboBox"));
278 specificPrameter2Layout->addWidget(image2ComboBox);
280 parameter2ComboBox =
new QComboBox(horizontalLayoutWidget_11);
281 parameter2ComboBox->setObjectName(QStringLiteral(
"parameter2ComboBox"));
283 specificPrameter2Layout->addWidget(parameter2ComboBox);
286 specificParametersLayout->addLayout(specificPrameter2Layout);
289 focusOptionsLayout->addLayout(specificParametersLayout);
292 focusPageLayout_2->addLayout(focusOptionsLayout);
294 focusToleranceLayout =
new QVBoxLayout();
295 focusToleranceLayout->setObjectName(QStringLiteral(
"focusToleranceLayout"));
296 focusToleranceRadioButton =
new QRadioButton(horizontalLayoutWidget_11);
297 focusToleranceRadioButton->setObjectName(QStringLiteral(
"focusToleranceRadioButton"));
299 focusToleranceLayout->addWidget(focusToleranceRadioButton);
301 toleranceEditLayout =
new QHBoxLayout();
302 toleranceEditLayout->setObjectName(QStringLiteral(
"toleranceEditLayout"));
303 focusToleranceLabel =
new QLabel(horizontalLayoutWidget_11);
304 focusToleranceLabel->setObjectName(QStringLiteral(
"focusToleranceLabel"));
305 focusToleranceLabel->setMaximumSize(QSize(16777215, 30));
307 toleranceEditLayout->addWidget(focusToleranceLabel);
309 focusToleranceLineEdit =
new QLineEdit(horizontalLayoutWidget_11);
310 focusToleranceLineEdit->setObjectName(QStringLiteral(
"focusToleranceLineEdit"));
312 toleranceEditLayout->addWidget(focusToleranceLineEdit);
315 focusToleranceLayout->addLayout(toleranceEditLayout);
317 elementsLayout =
new QHBoxLayout();
318 elementsLayout->setObjectName(QStringLiteral(
"elementsLayout"));
319 goodElementsLayout =
new QVBoxLayout();
320 goodElementsLayout->setObjectName(QStringLiteral(
"goodElementsLayout"));
321 goodElementsLabel =
new QLabel(horizontalLayoutWidget_11);
322 goodElementsLabel->setObjectName(QStringLiteral(
"goodElementsLabel"));
323 goodElementsLabel->setMaximumSize(QSize(16777215, 30));
324 goodElementsLabel->setFocusPolicy(Qt::NoFocus);
326 goodElementsLayout->addWidget(goodElementsLabel);
328 goodElementsSpinBox =
new QSpinBox(horizontalLayoutWidget_11);
329 goodElementsSpinBox->setObjectName(QStringLiteral(
"goodElementsSpinBox"));
330 QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Fixed);
331 sizePolicy1.setHorizontalStretch(0);
332 sizePolicy1.setVerticalStretch(0);
333 sizePolicy1.setHeightForWidth(goodElementsSpinBox->sizePolicy().hasHeightForWidth());
334 goodElementsSpinBox->setSizePolicy(sizePolicy1);
335 goodElementsSpinBox->setMaximumSize(QSize(16777215, 900));
337 goodElementsLayout->addWidget(goodElementsSpinBox);
340 elementsLayout->addLayout(goodElementsLayout);
342 badElementsLayout =
new QVBoxLayout();
343 badElementsLayout->setObjectName(QStringLiteral(
"badElementsLayout"));
344 badElementsLabel =
new QLabel(horizontalLayoutWidget_11);
345 badElementsLabel->setObjectName(QStringLiteral(
"badElementsLabel"));
346 badElementsLabel->setMaximumSize(QSize(16777215, 30));
348 badElementsLayout->addWidget(badElementsLabel);
350 badElementsSpinBox =
new QSpinBox(horizontalLayoutWidget_11);
351 badElementsSpinBox->setObjectName(QStringLiteral(
"badElementsSpinBox"));
352 badElementsSpinBox->setMaximumSize(QSize(16777215, 600));
354 badElementsLayout->addWidget(badElementsSpinBox);
357 elementsLayout->addLayout(badElementsLayout);
360 focusToleranceLayout->addLayout(elementsLayout);
363 focusPageLayout_2->addLayout(focusToleranceLayout);
366 focusPageLayout->addLayout(focusPageLayout_2);
368 matrixOptionsTabs->addTab(focusOptionsPage, QString());
369 verticalLayoutWidget =
new QWidget(matrixOptionsWidget);
370 verticalLayoutWidget->setObjectName(QStringLiteral(
"verticalLayoutWidget"));
371 verticalLayoutWidget->setGeometry(QRect(10, 410, 581, 131));
372 currentElementData =
new QVBoxLayout(verticalLayoutWidget);
373 currentElementData->setObjectName(QStringLiteral(
"currentElementData"));
374 currentElementData->setContentsMargins(0, 0, 0, 0);
375 correlationLayout =
new QHBoxLayout();
376 correlationLayout->setObjectName(QStringLiteral(
"correlationLayout"));
377 correlationLabel =
new QLabel(verticalLayoutWidget);
378 correlationLabel->setObjectName(QStringLiteral(
"correlationLabel"));
380 correlationLayout->addWidget(correlationLabel);
382 currentValue =
new QLabel(verticalLayoutWidget);
383 currentValue->setObjectName(QStringLiteral(
"currentValue"));
385 correlationLayout->addWidget(currentValue);
388 currentElementData->addLayout(correlationLayout);
390 image1Layout =
new QHBoxLayout();
391 image1Layout->setObjectName(QStringLiteral(
"image1Layout"));
392 image1Name =
new QLabel(verticalLayoutWidget);
393 image1Name->setObjectName(QStringLiteral(
"image1Name"));
395 image1Layout->addWidget(image1Name);
397 parameter1Name =
new QLabel(verticalLayoutWidget);
398 parameter1Name->setObjectName(QStringLiteral(
"parameter1Name"));
400 image1Layout->addWidget(parameter1Name);
403 currentElementData->addLayout(image1Layout);
405 image2Layout =
new QHBoxLayout();
406 image2Layout->setObjectName(QStringLiteral(
"image2Layout"));
407 image2Name =
new QLabel(verticalLayoutWidget);
408 image2Name->setObjectName(QStringLiteral(
"image2Name"));
410 image2Layout->addWidget(image2Name);
412 parameter2Name =
new QLabel(verticalLayoutWidget);
413 parameter2Name->setObjectName(QStringLiteral(
"parameter2Name"));
415 image2Layout->addWidget(parameter2Name);
418 currentElementData->addLayout(image2Layout);
421 retranslateUi(matrixOptionsWidget);
423 matrixOptionsTabs->setCurrentIndex(0);
426 QMetaObject::connectSlotsByName(matrixOptionsWidget);
429 void retranslateUi(
QWidget *matrixOptionsWidget)
431 matrixOptionsWidget->setWindowTitle(QApplication::translate(
"matrixOptionsWidget",
"Matrix Options", 0));
432 toleranceRadioButton->setText(QApplication::translate(
"matrixOptionsWidget",
"Pick Tolerance", 0));
433 badCorrelationLabel->setText(QApplication::translate(
"matrixOptionsWidget",
"Bad Correlation", 0));
434 toleranceLabel->setText(QApplication::translate(
"matrixOptionsWidget",
"Tolerance:", 0));
435 goodCorrelationLabel->setText(QApplication::translate(
"matrixOptionsWidget",
"Good Correlation", 0));
436 gradientRadioButton->setText(QApplication::translate(
"matrixOptionsWidget",
"Color Gradient", 0));
437 matrixOptionsTabs->setTabText(matrixOptionsTabs->indexOf(colorOptionsPage), QApplication::translate(
"matrixOptionsWidget",
"Color Options", 0));
438 bestCorrelationRadioButton->setText(QApplication::translate(
"matrixOptionsWidget",
"Best Correlation", 0));
439 worstCorrelationRadioButton->setText(QApplication::translate(
"matrixOptionsWidget",
"Worst Correlation", 0));
440 specificCorrelationRadioButton->setText(QApplication::translate(
"matrixOptionsWidget",
"Specific Parameters", 0));
441 focusParametersLabel1->setText(QApplication::translate(
"matrixOptionsWidget",
"Image 1:", 0));
442 focusParametersLabel2->setText(QApplication::translate(
"matrixOptionsWidget",
"Image 2:", 0));
443 focusToleranceRadioButton->setText(QApplication::translate(
"matrixOptionsWidget",
"Tolerance", 0));
444 focusToleranceLabel->setText(QApplication::translate(
"matrixOptionsWidget",
"Tolerance", 0));
445 goodElementsLabel->setText(QApplication::translate(
"matrixOptionsWidget",
"Good Correlations", 0));
446 badElementsLabel->setText(QApplication::translate(
"matrixOptionsWidget",
"Bad Correlations", 0));
447 matrixOptionsTabs->setTabText(matrixOptionsTabs->indexOf(focusOptionsPage), QApplication::translate(
"matrixOptionsWidget",
"Focus Options", 0));
448 correlationLabel->setText(QApplication::translate(
"matrixOptionsWidget",
"Current Correlation Value:", 0));
449 currentValue->setText(QApplication::translate(
"matrixOptionsWidget",
"Current Value", 0));
450 image1Name->setText(QApplication::translate(
"matrixOptionsWidget",
"Image 1 Name", 0));
451 parameter1Name->setText(QApplication::translate(
"matrixOptionsWidget",
"Parameter 1 Name", 0));
452 image2Name->setText(QApplication::translate(
"matrixOptionsWidget",
"Image 2 Name", 0));
453 parameter2Name->setText(QApplication::translate(
"matrixOptionsWidget",
"Parameter 2 Name", 0));
464 #endif // UI_OPTIONSWIDGET_H