9 #ifndef UI_PQORBITCREATORDIALOG_H 10 #define UI_PQORBITCREATORDIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QDialog> 15 #include <QtWidgets/QDialogButtonBox> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QGroupBox> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QLabel> 20 #include <QtWidgets/QLineEdit> 21 #include <QtWidgets/QPushButton> 22 #include <QtWidgets/QSpacerItem> 23 #include <QtWidgets/QVBoxLayout> 53 if (OrbitCreatorDialog->objectName().isEmpty())
54 OrbitCreatorDialog->setObjectName(QString::fromUtf8(
"OrbitCreatorDialog"));
55 OrbitCreatorDialog->resize(309, 210);
56 vboxLayout =
new QVBoxLayout(OrbitCreatorDialog);
57 vboxLayout->setObjectName(QString::fromUtf8(
"vboxLayout"));
58 groupBox =
new QGroupBox(OrbitCreatorDialog);
59 groupBox->setObjectName(QString::fromUtf8(
"groupBox"));
60 gridLayout =
new QGridLayout(groupBox);
61 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
62 label =
new QLabel(groupBox);
63 label->setObjectName(QString::fromUtf8(
"label"));
65 gridLayout->addWidget(label, 0, 0, 1, 1);
68 center0->setObjectName(QString::fromUtf8(
"center0"));
70 gridLayout->addWidget(center0, 0, 1, 1, 1);
73 center1->setObjectName(QString::fromUtf8(
"center1"));
75 gridLayout->addWidget(center1, 0, 2, 1, 1);
78 center2->setObjectName(QString::fromUtf8(
"center2"));
80 gridLayout->addWidget(center2, 0, 3, 1, 1);
82 normalLabel =
new QLabel(groupBox);
83 normalLabel->setObjectName(QString::fromUtf8(
"normalLabel"));
85 gridLayout->addWidget(normalLabel, 1, 0, 1, 1);
88 normal0->setObjectName(QString::fromUtf8(
"normal0"));
90 gridLayout->addWidget(normal0, 1, 1, 1, 1);
93 normal1->setObjectName(QString::fromUtf8(
"normal1"));
95 gridLayout->addWidget(normal1, 1, 2, 1, 1);
98 normal2->setObjectName(QString::fromUtf8(
"normal2"));
100 gridLayout->addWidget(normal2, 1, 3, 1, 1);
102 label_2 =
new QLabel(groupBox);
103 label_2->setObjectName(QString::fromUtf8(
"label_2"));
105 gridLayout->addWidget(label_2, 2, 0, 1, 1);
108 origin0->setObjectName(QString::fromUtf8(
"origin0"));
110 gridLayout->addWidget(origin0, 2, 1, 1, 1);
112 spacerItem =
new QSpacerItem(20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding);
114 gridLayout->addItem(spacerItem, 3, 2, 1, 1);
116 origin1 =
new QLineEdit(groupBox);
117 origin1->setObjectName(QString::fromUtf8(
"origin1"));
119 gridLayout->addWidget(origin1, 2, 2, 1, 1);
121 origin2 =
new QLineEdit(groupBox);
122 origin2->setObjectName(QString::fromUtf8(
"origin2"));
124 gridLayout->addWidget(origin2, 2, 3, 1, 1);
127 vboxLayout->addWidget(groupBox);
129 hboxLayout =
new QHBoxLayout();
130 hboxLayout->setObjectName(QString::fromUtf8(
"hboxLayout"));
131 resetCenter =
new QPushButton(OrbitCreatorDialog);
132 resetCenter->setObjectName(QString::fromUtf8(
"resetCenter"));
134 hboxLayout->addWidget(resetCenter);
136 buttonBox =
new QDialogButtonBox(OrbitCreatorDialog);
137 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
138 buttonBox->setOrientation(Qt::Horizontal);
139 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
141 hboxLayout->addWidget(buttonBox);
144 vboxLayout->addLayout(hboxLayout);
148 QObject::connect(buttonBox, SIGNAL(accepted()), OrbitCreatorDialog, SLOT(accept()));
149 QObject::connect(buttonBox, SIGNAL(rejected()), OrbitCreatorDialog, SLOT(reject()));
151 QMetaObject::connectSlotsByName(OrbitCreatorDialog);
156 OrbitCreatorDialog->setWindowTitle(QCoreApplication::translate(
"OrbitCreatorDialog",
"Create Orbit",
nullptr));
157 groupBox->setTitle(QCoreApplication::translate(
"OrbitCreatorDialog",
"Orbit Parameters",
nullptr));
158 label->setText(QCoreApplication::translate(
"OrbitCreatorDialog",
"Center",
nullptr));
159 normalLabel->setText(QCoreApplication::translate(
"OrbitCreatorDialog",
"Normal",
nullptr));
160 label_2->setText(QCoreApplication::translate(
"OrbitCreatorDialog",
"Origin",
nullptr));
161 resetCenter->setText(QCoreApplication::translate(
"OrbitCreatorDialog",
"Reset Center",
nullptr));
172 #endif // UI_PQORBITCREATORDIALOG_H
QDialogButtonBox * buttonBox
pqLineEdit is a specialization of QLineEdit which provide a new property 'text2'. ...
QPushButton * resetCenter
void setupUi(QDialog *OrbitCreatorDialog)
void retranslateUi(QDialog *OrbitCreatorDialog)