9 #ifndef UI_PQREMOTECOMMANDDIALOGFORM_H 10 #define UI_PQREMOTECOMMANDDIALOGFORM_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QComboBox> 15 #include <QtWidgets/QDialog> 16 #include <QtWidgets/QFormLayout> 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/QTextBrowser> 24 #include <QtWidgets/QVBoxLayout> 64 void setupUi(QDialog *pqRemoteCommandDialogForm)
66 if (pqRemoteCommandDialogForm->objectName().isEmpty())
67 pqRemoteCommandDialogForm->setObjectName(QString::fromUtf8(
"pqRemoteCommandDialogForm"));
68 pqRemoteCommandDialogForm->resize(350, 431);
69 QSizePolicy sizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
70 sizePolicy.setHorizontalStretch(0);
71 sizePolicy.setVerticalStretch(0);
72 sizePolicy.setHeightForWidth(pqRemoteCommandDialogForm->sizePolicy().hasHeightForWidth());
73 pqRemoteCommandDialogForm->setSizePolicy(sizePolicy);
74 pqRemoteCommandDialogForm->setMinimumSize(QSize(350, 0));
75 verticalLayout_2 =
new QVBoxLayout(pqRemoteCommandDialogForm);
76 verticalLayout_2->setObjectName(QString::fromUtf8(
"verticalLayout_2"));
77 groupBox =
new QGroupBox(pqRemoteCommandDialogForm);
78 groupBox->setObjectName(QString::fromUtf8(
"groupBox"));
79 verticalLayout_3 =
new QVBoxLayout(groupBox);
80 verticalLayout_3->setObjectName(QString::fromUtf8(
"verticalLayout_3"));
81 commandTemplates =
new QComboBox(groupBox);
82 commandTemplates->setObjectName(QString::fromUtf8(
"commandTemplates"));
83 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Fixed);
84 sizePolicy1.setHorizontalStretch(0);
85 sizePolicy1.setVerticalStretch(0);
86 sizePolicy1.setHeightForWidth(commandTemplates->sizePolicy().hasHeightForWidth());
87 commandTemplates->setSizePolicy(sizePolicy1);
88 commandTemplates->setMinimumSize(QSize(100, 0));
89 commandTemplates->setEditable(
false);
91 verticalLayout_3->addWidget(commandTemplates);
93 horizontalLayout_3 =
new QHBoxLayout();
94 horizontalLayout_3->setObjectName(QString::fromUtf8(
"horizontalLayout_3"));
95 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
97 horizontalLayout_3->addItem(horizontalSpacer_3);
99 addCommand =
new QPushButton(groupBox);
100 addCommand->setObjectName(QString::fromUtf8(
"addCommand"));
101 QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Fixed);
102 sizePolicy2.setHorizontalStretch(0);
103 sizePolicy2.setVerticalStretch(0);
104 sizePolicy2.setHeightForWidth(addCommand->sizePolicy().hasHeightForWidth());
105 addCommand->setSizePolicy(sizePolicy2);
106 addCommand->setMinimumSize(QSize(60, 24));
107 addCommand->setMaximumSize(QSize(60, 24));
108 addCommand->setCheckable(
true);
110 horizontalLayout_3->addWidget(addCommand);
112 editCommand =
new QPushButton(groupBox);
113 editCommand->setObjectName(QString::fromUtf8(
"editCommand"));
114 sizePolicy2.setHeightForWidth(editCommand->sizePolicy().hasHeightForWidth());
115 editCommand->setSizePolicy(sizePolicy2);
116 editCommand->setMinimumSize(QSize(60, 24));
117 editCommand->setMaximumSize(QSize(60, 24));
119 horizontalLayout_3->addWidget(editCommand);
121 deleteCommand =
new QPushButton(groupBox);
122 deleteCommand->setObjectName(QString::fromUtf8(
"deleteCommand"));
123 sizePolicy2.setHeightForWidth(deleteCommand->sizePolicy().hasHeightForWidth());
124 deleteCommand->setSizePolicy(sizePolicy2);
125 deleteCommand->setMinimumSize(QSize(60, 24));
126 deleteCommand->setMaximumSize(QSize(60, 24));
128 horizontalLayout_3->addWidget(deleteCommand);
131 verticalLayout_3->addLayout(horizontalLayout_3);
134 verticalLayout_2->addWidget(groupBox);
136 groupBox_2 =
new QGroupBox(pqRemoteCommandDialogForm);
137 groupBox_2->setObjectName(QString::fromUtf8(
"groupBox_2"));
138 QSizePolicy sizePolicy3(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
139 sizePolicy3.setHorizontalStretch(0);
140 sizePolicy3.setVerticalStretch(0);
141 sizePolicy3.setHeightForWidth(groupBox_2->sizePolicy().hasHeightForWidth());
142 groupBox_2->setSizePolicy(sizePolicy3);
143 formLayout =
new QFormLayout(groupBox_2);
144 formLayout->setObjectName(QString::fromUtf8(
"formLayout"));
145 formLayout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
146 label_9 =
new QLabel(groupBox_2);
147 label_9->setObjectName(QString::fromUtf8(
"label_9"));
148 label_9->setWordWrap(
true);
150 formLayout->setWidget(0, QFormLayout::LabelRole, label_9);
152 feUrl =
new QLineEdit(groupBox_2);
153 feUrl->setObjectName(QString::fromUtf8(
"feUrl"));
155 formLayout->setWidget(0, QFormLayout::FieldRole, feUrl);
157 label_10 =
new QLabel(groupBox_2);
158 label_10->setObjectName(QString::fromUtf8(
"label_10"));
160 formLayout->setWidget(1, QFormLayout::LabelRole, label_10);
162 horizontalLayout =
new QHBoxLayout();
163 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
164 sshExec =
new QLineEdit(groupBox_2);
165 sshExec->setObjectName(QString::fromUtf8(
"sshExec"));
167 horizontalLayout->addWidget(sshExec);
169 sshExecBrowse =
new QPushButton(groupBox_2);
170 sshExecBrowse->setObjectName(QString::fromUtf8(
"sshExecBrowse"));
171 sizePolicy2.setHeightForWidth(sshExecBrowse->sizePolicy().hasHeightForWidth());
172 sshExecBrowse->setSizePolicy(sizePolicy2);
173 sshExecBrowse->setMinimumSize(QSize(24, 24));
174 sshExecBrowse->setMaximumSize(QSize(24, 24));
176 font.setFamily(QString::fromUtf8(
"AlArabiya"));
177 font.setPointSize(8);
180 sshExecBrowse->setFont(font);
182 horizontalLayout->addWidget(sshExecBrowse);
185 formLayout->setLayout(1, QFormLayout::FieldRole, horizontalLayout);
187 label_11 =
new QLabel(groupBox_2);
188 label_11->setObjectName(QString::fromUtf8(
"label_11"));
190 formLayout->setWidget(2, QFormLayout::LabelRole, label_11);
192 horizontalLayout_2 =
new QHBoxLayout();
193 horizontalLayout_2->setObjectName(QString::fromUtf8(
"horizontalLayout_2"));
194 xtExec =
new QLineEdit(groupBox_2);
195 xtExec->setObjectName(QString::fromUtf8(
"xtExec"));
197 horizontalLayout_2->addWidget(xtExec);
199 xtExecBrowse =
new QPushButton(groupBox_2);
200 xtExecBrowse->setObjectName(QString::fromUtf8(
"xtExecBrowse"));
201 sizePolicy2.setHeightForWidth(xtExecBrowse->sizePolicy().hasHeightForWidth());
202 xtExecBrowse->setSizePolicy(sizePolicy2);
203 xtExecBrowse->setMinimumSize(QSize(24, 24));
204 xtExecBrowse->setMaximumSize(QSize(24, 24));
205 xtExecBrowse->setFont(font);
207 horizontalLayout_2->addWidget(xtExecBrowse);
210 formLayout->setLayout(2, QFormLayout::FieldRole, horizontalLayout_2);
212 label_12 =
new QLabel(groupBox_2);
213 label_12->setObjectName(QString::fromUtf8(
"label_12"));
215 formLayout->setWidget(3, QFormLayout::LabelRole, label_12);
217 xtOpts =
new QLineEdit(groupBox_2);
218 xtOpts->setObjectName(QString::fromUtf8(
"xtOpts"));
220 formLayout->setWidget(3, QFormLayout::FieldRole, xtOpts);
222 label =
new QLabel(groupBox_2);
223 label->setObjectName(QString::fromUtf8(
"label"));
225 formLayout->setWidget(4, QFormLayout::LabelRole, label);
227 pvHost =
new QLineEdit(groupBox_2);
228 pvHost->setObjectName(QString::fromUtf8(
"pvHost"));
230 formLayout->setWidget(4, QFormLayout::FieldRole, pvHost);
233 verticalLayout_2->addWidget(groupBox_2);
235 groupBox_3 =
new QGroupBox(pqRemoteCommandDialogForm);
236 groupBox_3->setObjectName(QString::fromUtf8(
"groupBox_3"));
237 verticalLayout =
new QVBoxLayout(groupBox_3);
238 verticalLayout->setObjectName(QString::fromUtf8(
"verticalLayout"));
239 previewCommand =
new QTextBrowser(groupBox_3);
240 previewCommand->setObjectName(QString::fromUtf8(
"previewCommand"));
241 previewCommand->setMaximumSize(QSize(16777215, 80));
245 previewCommand->setFont(font1);
246 previewCommand->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
248 verticalLayout->addWidget(previewCommand);
250 horizontalLayout_4 =
new QHBoxLayout();
251 horizontalLayout_4->setObjectName(QString::fromUtf8(
"horizontalLayout_4"));
252 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
254 horizontalLayout_4->addItem(horizontalSpacer);
256 execCommand =
new QPushButton(groupBox_3);
257 execCommand->setObjectName(QString::fromUtf8(
"execCommand"));
259 horizontalLayout_4->addWidget(execCommand);
261 cancelCommand =
new QPushButton(groupBox_3);
262 cancelCommand->setObjectName(QString::fromUtf8(
"cancelCommand"));
264 horizontalLayout_4->addWidget(cancelCommand);
267 verticalLayout->addLayout(horizontalLayout_4);
270 verticalLayout_2->addWidget(groupBox_3);
274 QObject::connect(execCommand, SIGNAL(released()), pqRemoteCommandDialogForm, SLOT(accept()));
275 QObject::connect(cancelCommand, SIGNAL(released()), pqRemoteCommandDialogForm, SLOT(reject()));
277 QMetaObject::connectSlotsByName(pqRemoteCommandDialogForm);
282 pqRemoteCommandDialogForm->setWindowTitle(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"Remote Command Editor",
nullptr));
283 groupBox->setTitle(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"Command Template",
nullptr));
284 #if QT_CONFIG(tooltip) 285 addCommand->setToolTip(QString());
286 #endif // QT_CONFIG(tooltip) 287 addCommand->setText(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"Add",
nullptr));
288 #if QT_CONFIG(tooltip) 289 editCommand->setToolTip(QString());
290 #endif // QT_CONFIG(tooltip) 291 editCommand->setText(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"Edit",
nullptr));
292 #if QT_CONFIG(tooltip) 293 deleteCommand->setToolTip(QString());
294 #endif // QT_CONFIG(tooltip) 295 deleteCommand->setText(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"Delete",
nullptr));
296 groupBox_2->setTitle(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"Parameters",
nullptr));
297 label_9->setText(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"FE_URL",
nullptr));
298 #if QT_CONFIG(tooltip) 299 feUrl->setToolTip(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"ssh url to cluster login (eg user@login.com)",
nullptr));
300 #endif // QT_CONFIG(tooltip) 301 label_10->setText(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"SSH_EXEC",
nullptr));
302 #if QT_CONFIG(tooltip) 303 sshExec->setToolTip(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"path to ssh",
nullptr));
304 #endif // QT_CONFIG(tooltip) 305 sshExec->setText(QString());
306 #if QT_CONFIG(tooltip) 307 sshExecBrowse->setToolTip(QString());
308 #endif // QT_CONFIG(tooltip) 309 sshExecBrowse->setText(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"...",
nullptr));
310 label_11->setText(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"TERM_EXEC",
nullptr));
311 #if QT_CONFIG(tooltip) 312 xtExec->setToolTip(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"path to terminal",
nullptr));
313 #endif // QT_CONFIG(tooltip) 314 xtExec->setText(QString());
315 #if QT_CONFIG(tooltip) 316 xtExecBrowse->setToolTip(QString());
317 #endif // QT_CONFIG(tooltip) 318 xtExecBrowse->setText(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"...",
nullptr));
319 label_12->setText(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"TERM_OPTS",
nullptr));
320 #if QT_CONFIG(tooltip) 321 xtOpts->setToolTip(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"terminal options",
nullptr));
322 #endif // QT_CONFIG(tooltip) 323 xtOpts->setText(QString());
324 label->setText(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"PV_HOST",
nullptr));
325 groupBox_3->setTitle(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"Command Preview",
nullptr));
326 #if QT_CONFIG(tooltip) 327 execCommand->setToolTip(QString());
328 #endif // QT_CONFIG(tooltip) 329 execCommand->setText(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"execute",
nullptr));
330 #if QT_CONFIG(tooltip) 331 cancelCommand->setToolTip(QString());
332 #endif // QT_CONFIG(tooltip) 333 cancelCommand->setText(QCoreApplication::translate(
"pqRemoteCommandDialogForm",
"cancel",
nullptr));
344 #endif // UI_PQREMOTECOMMANDDIALOGFORM_H