9 #ifndef UI_PQSERIESGENERATORDIALOG_H 10 #define UI_PQSERIESGENERATORDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QComboBox> 15 #include <QtWidgets/QDialog> 16 #include <QtWidgets/QDialogButtonBox> 17 #include <QtWidgets/QFrame> 18 #include <QtWidgets/QGridLayout> 19 #include <QtWidgets/QHBoxLayout> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QScrollArea> 22 #include <QtWidgets/QSpinBox> 23 #include <QtWidgets/QVBoxLayout> 24 #include <QtWidgets/QWidget> 53 void setupUi(QDialog *SeriesGeneratorDialog)
55 if (SeriesGeneratorDialog->objectName().isEmpty())
56 SeriesGeneratorDialog->setObjectName(QString::fromUtf8(
"SeriesGeneratorDialog"));
57 SeriesGeneratorDialog->resize(352, 315);
58 gridLayout =
new QGridLayout(SeriesGeneratorDialog);
59 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
60 comboBox =
new QComboBox(SeriesGeneratorDialog);
61 comboBox->addItem(QString());
62 comboBox->addItem(QString());
63 comboBox->addItem(QString());
64 comboBox->addItem(QString());
65 comboBox->setObjectName(QString::fromUtf8(
"comboBox"));
67 gridLayout->addWidget(comboBox, 3, 1, 1, 1);
69 line_2 =
new QFrame(SeriesGeneratorDialog);
70 line_2->setObjectName(QString::fromUtf8(
"line_2"));
71 line_2->setFrameShape(QFrame::HLine);
72 line_2->setFrameShadow(QFrame::Sunken);
74 gridLayout->addWidget(line_2, 2, 0, 1, 2);
76 horizontalLayout =
new QHBoxLayout();
77 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
79 min->setObjectName(QString::fromUtf8(
"min"));
81 horizontalLayout->addWidget(min);
83 label =
new QLabel(SeriesGeneratorDialog);
84 label->setObjectName(QString::fromUtf8(
"label"));
85 label->setAlignment(Qt::AlignCenter);
87 horizontalLayout->addWidget(label);
90 max->setObjectName(QString::fromUtf8(
"max"));
92 horizontalLayout->addWidget(max);
95 gridLayout->addLayout(horizontalLayout, 1, 0, 1, 2);
97 label_3 =
new QLabel(SeriesGeneratorDialog);
98 label_3->setObjectName(QString::fromUtf8(
"label_3"));
100 gridLayout->addWidget(label_3, 3, 0, 1, 1);
102 label_nsamples =
new QLabel(SeriesGeneratorDialog);
103 label_nsamples->setObjectName(QString::fromUtf8(
"label_nsamples"));
105 gridLayout->addWidget(label_nsamples, 4, 0, 1, 1);
107 nsamples =
new QSpinBox(SeriesGeneratorDialog);
108 nsamples->setObjectName(QString::fromUtf8(
"nsamples"));
109 nsamples->setMinimum(1);
110 nsamples->setMaximum(1000);
111 nsamples->setValue(10);
113 gridLayout->addWidget(nsamples, 4, 1, 1, 1);
115 label_ratio =
new QLabel(SeriesGeneratorDialog);
116 label_ratio->setObjectName(QString::fromUtf8(
"label_ratio"));
118 gridLayout->addWidget(label_ratio, 5, 0, 1, 1);
121 ratio->setObjectName(QString::fromUtf8(
"ratio"));
123 gridLayout->addWidget(ratio, 5, 1, 1, 1);
125 buttonBox =
new QDialogButtonBox(SeriesGeneratorDialog);
126 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
127 buttonBox->setOrientation(Qt::Horizontal);
128 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
130 gridLayout->addWidget(buttonBox, 7, 0, 1, 2);
132 verticalLayout =
new QVBoxLayout();
133 verticalLayout->setSpacing(0);
134 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
135 label_2 =
new QLabel(SeriesGeneratorDialog);
136 label_2->setObjectName(QString::fromUtf8(
"label_2"));
138 verticalLayout->addWidget(label_2);
140 line =
new QFrame(SeriesGeneratorDialog);
141 line->setObjectName(QString::fromUtf8(
"line"));
142 line->setFrameShape(QFrame::HLine);
143 line->setFrameShadow(QFrame::Sunken);
145 verticalLayout->addWidget(line);
148 gridLayout->addLayout(verticalLayout, 0, 0, 1, 2);
150 scrollArea =
new QScrollArea(SeriesGeneratorDialog);
151 scrollArea->setObjectName(QString::fromUtf8(
"scrollArea"));
152 QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Expanding);
153 sizePolicy.setHorizontalStretch(0);
154 sizePolicy.setVerticalStretch(0);
155 sizePolicy.setHeightForWidth(scrollArea->sizePolicy().hasHeightForWidth());
156 scrollArea->setSizePolicy(sizePolicy);
157 scrollArea->setWidgetResizable(
true);
158 scrollAreaWidgetContents =
new QWidget();
159 scrollAreaWidgetContents->setObjectName(QString::fromUtf8(
"scrollAreaWidgetContents"));
160 scrollAreaWidgetContents->setGeometry(QRect(0, 0, 326, 79));
161 verticalLayout_2 =
new QVBoxLayout(scrollAreaWidgetContents);
162 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
163 message =
new QLabel(scrollAreaWidgetContents);
164 message->setObjectName(QString::fromUtf8(
"message"));
168 message->setFont(font);
169 message->setWordWrap(
true);
171 verticalLayout_2->addWidget(message);
173 scrollArea->setWidget(scrollAreaWidgetContents);
175 gridLayout->addWidget(scrollArea, 6, 0, 1, 2);
179 QObject::connect(buttonBox, SIGNAL(accepted()), SeriesGeneratorDialog, SLOT(accept()));
180 QObject::connect(buttonBox, SIGNAL(rejected()), SeriesGeneratorDialog, SLOT(reject()));
182 QMetaObject::connectSlotsByName(SeriesGeneratorDialog);
187 SeriesGeneratorDialog->setWindowTitle(QCoreApplication::translate(
"SeriesGeneratorDialog",
"Generate Number Series",
nullptr));
188 comboBox->setItemText(0, QCoreApplication::translate(
"SeriesGeneratorDialog",
"Linear",
nullptr));
189 comboBox->setItemText(1, QCoreApplication::translate(
"SeriesGeneratorDialog",
"Logarithmic",
nullptr));
190 comboBox->setItemText(2, QCoreApplication::translate(
"SeriesGeneratorDialog",
"Geometric (samples)",
nullptr));
191 comboBox->setItemText(3, QCoreApplication::translate(
"SeriesGeneratorDialog",
"Geometric (common ratio)",
nullptr));
193 label->setText(QCoreApplication::translate(
"SeriesGeneratorDialog",
"<html><head/><body><p><span style=\" font-weight:600;\">-</span></p></body></html>",
nullptr));
194 label_3->setText(QCoreApplication::translate(
"SeriesGeneratorDialog",
"Type:",
nullptr));
195 label_nsamples->setText(QCoreApplication::translate(
"SeriesGeneratorDialog",
"Number of Samples:",
nullptr));
196 label_ratio->setText(QCoreApplication::translate(
"SeriesGeneratorDialog",
"Common Ratio:",
nullptr));
197 ratio->setText(QCoreApplication::translate(
"SeriesGeneratorDialog",
"1.1",
nullptr));
198 label_2->setText(QCoreApplication::translate(
"SeriesGeneratorDialog",
"Range",
nullptr));
199 message->setText(QString());
210 #endif // UI_PQSERIESGENERATORDIALOG_H
QDialogButtonBox * buttonBox
void setupUi(QDialog *SeriesGeneratorDialog)
QWidget * scrollAreaWidgetContents
QVBoxLayout * verticalLayout
QVBoxLayout * verticalLayout_2
pqLineEdit subclass that supports a low precision view when inactive
void retranslateUi(QDialog *SeriesGeneratorDialog)
QHBoxLayout * horizontalLayout