9 #ifndef UI_PQLINKSEDITOR_H 10 #define UI_PQLINKSEDITOR_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QCheckBox> 15 #include <QtWidgets/QComboBox> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QDialogButtonBox> 18 #include <QtWidgets/QGridLayout> 19 #include <QtWidgets/QHBoxLayout> 20 #include <QtWidgets/QHeaderView> 21 #include <QtWidgets/QLabel> 22 #include <QtWidgets/QLineEdit> 23 #include <QtWidgets/QListWidget> 24 #include <QtWidgets/QSpacerItem> 25 #include <QtWidgets/QStackedWidget> 26 #include <QtWidgets/QTreeView> 27 #include <QtWidgets/QWidget> 64 if (pqLinksEditor->objectName().isEmpty())
65 pqLinksEditor->setObjectName(QString::fromUtf8(
"pqLinksEditor"));
66 pqLinksEditor->resize(496, 389);
67 gridLayout =
new QGridLayout(pqLinksEditor);
69 gridLayout->setSpacing(6);
72 gridLayout->setContentsMargins(9, 9, 9, 9);
74 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
75 stackedWidget =
new QStackedWidget(pqLinksEditor);
76 stackedWidget->setObjectName(QString::fromUtf8(
"stackedWidget"));
78 page->setObjectName(QString::fromUtf8(
"page"));
79 gridLayout1 =
new QGridLayout(page);
81 gridLayout1->setSpacing(6);
84 gridLayout1->setContentsMargins(9, 9, 9, 9);
86 gridLayout1->setObjectName(QString::fromUtf8(
"gridLayout1"));
87 ObjectTreeProxy2 =
new QTreeView(page);
88 ObjectTreeProxy2->setObjectName(QString::fromUtf8(
"ObjectTreeProxy2"));
90 gridLayout1->addWidget(ObjectTreeProxy2, 0, 1, 1, 1);
92 ObjectTreeProxy1 =
new QTreeView(page);
93 ObjectTreeProxy1->setObjectName(QString::fromUtf8(
"ObjectTreeProxy1"));
95 gridLayout1->addWidget(ObjectTreeProxy1, 0, 0, 1, 1);
97 stackedWidget->addWidget(page);
98 page_2 =
new QWidget();
99 page_2->setObjectName(QString::fromUtf8(
"page_2"));
100 gridLayout2 =
new QGridLayout(page_2);
102 gridLayout2->setSpacing(6);
105 gridLayout2->setContentsMargins(9, 9, 9, 9);
107 gridLayout2->setObjectName(QString::fromUtf8(
"gridLayout2"));
108 Property1List =
new QListWidget(page_2);
109 Property1List->setObjectName(QString::fromUtf8(
"Property1List"));
110 Property1List->setSortingEnabled(
true);
112 gridLayout2->addWidget(Property1List, 1, 0, 1, 1);
114 ObjectTreeProperty1 =
new QTreeView(page_2);
115 ObjectTreeProperty1->setObjectName(QString::fromUtf8(
"ObjectTreeProperty1"));
117 gridLayout2->addWidget(ObjectTreeProperty1, 0, 0, 1, 1);
119 Property2List =
new QListWidget(page_2);
120 Property2List->setObjectName(QString::fromUtf8(
"Property2List"));
121 Property2List->setSortingEnabled(
true);
123 gridLayout2->addWidget(Property2List, 1, 1, 1, 1);
125 ObjectTreeProperty2 =
new QTreeView(page_2);
126 ObjectTreeProperty2->setObjectName(QString::fromUtf8(
"ObjectTreeProperty2"));
128 gridLayout2->addWidget(ObjectTreeProperty2, 0, 1, 1, 1);
130 stackedWidget->addWidget(page_2);
131 page_3 =
new QWidget();
132 page_3->setObjectName(QString::fromUtf8(
"page_3"));
133 gridLayout3 =
new QGridLayout(page_3);
135 gridLayout3->setSpacing(6);
138 gridLayout3->setContentsMargins(9, 9, 9, 9);
140 gridLayout3->setObjectName(QString::fromUtf8(
"gridLayout3"));
141 ObjectTreeSelection1 =
new QTreeView(page_3);
142 ObjectTreeSelection1->setObjectName(QString::fromUtf8(
"ObjectTreeSelection1"));
144 gridLayout3->addWidget(ObjectTreeSelection1, 0, 0, 1, 1);
146 ObjectTreeSelection2 =
new QTreeView(page_3);
147 ObjectTreeSelection2->setObjectName(QString::fromUtf8(
"ObjectTreeSelection2"));
149 gridLayout3->addWidget(ObjectTreeSelection2, 0, 1, 1, 1);
151 stackedWidget->addWidget(page_3);
153 gridLayout->addWidget(stackedWidget, 1, 0, 1, 2);
155 hboxLayout =
new QHBoxLayout();
157 hboxLayout->setSpacing(6);
159 hboxLayout->setContentsMargins(0, 0, 0, 0);
160 hboxLayout->setObjectName(QString::fromUtf8(
"hboxLayout"));
161 label =
new QLabel(pqLinksEditor);
162 label->setObjectName(QString::fromUtf8(
"label"));
164 hboxLayout->addWidget(label);
166 lineEdit =
new QLineEdit(pqLinksEditor);
167 lineEdit->setObjectName(QString::fromUtf8(
"lineEdit"));
169 hboxLayout->addWidget(lineEdit);
171 label_2 =
new QLabel(pqLinksEditor);
172 label_2->setObjectName(QString::fromUtf8(
"label_2"));
174 hboxLayout->addWidget(label_2);
176 comboBox =
new QComboBox(pqLinksEditor);
177 comboBox->addItem(QString());
178 comboBox->addItem(QString());
179 comboBox->addItem(QString());
180 comboBox->setObjectName(QString::fromUtf8(
"comboBox"));
182 hboxLayout->addWidget(comboBox);
184 spacerItem =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
186 hboxLayout->addItem(spacerItem);
189 gridLayout->addLayout(hboxLayout, 0, 0, 1, 2);
191 status =
new QLabel(pqLinksEditor);
192 status->setObjectName(QString::fromUtf8(
"status"));
194 gridLayout->addWidget(status, 2, 0, 1, 1);
196 interactiveViewLinkCheckBox =
new QCheckBox(pqLinksEditor);
197 interactiveViewLinkCheckBox->setObjectName(QString::fromUtf8(
"interactiveViewLinkCheckBox"));
198 interactiveViewLinkCheckBox->setVisible(
false);
200 gridLayout->addWidget(interactiveViewLinkCheckBox, 3, 0, 1, 1);
202 cameraWidgetViewLinkCheckBox =
new QCheckBox(pqLinksEditor);
203 cameraWidgetViewLinkCheckBox->setObjectName(QString::fromUtf8(
"cameraWidgetViewLinkCheckBox"));
204 cameraWidgetViewLinkCheckBox->setVisible(
false);
206 gridLayout->addWidget(cameraWidgetViewLinkCheckBox, 3, 1, 1, 1);
208 convertToIndicesCheckBox =
new QCheckBox(pqLinksEditor);
209 convertToIndicesCheckBox->setObjectName(QString::fromUtf8(
"convertToIndicesCheckBox"));
210 convertToIndicesCheckBox->setChecked(
true);
211 convertToIndicesCheckBox->setVisible(
false);
213 gridLayout->addWidget(convertToIndicesCheckBox, 2, 0, 1, 1);
215 buttonBox =
new QDialogButtonBox(pqLinksEditor);
216 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
217 buttonBox->setOrientation(Qt::Horizontal);
218 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok);
220 gridLayout->addWidget(buttonBox, 4, 1, 1, 1);
224 QObject::connect(buttonBox, SIGNAL(accepted()), pqLinksEditor, SLOT(accept()));
225 QObject::connect(buttonBox, SIGNAL(rejected()), pqLinksEditor, SLOT(reject()));
226 QObject::connect(comboBox, SIGNAL(currentIndexChanged(
int)), stackedWidget, SLOT(setCurrentIndex(
int)));
228 stackedWidget->setCurrentIndex(0);
231 QMetaObject::connectSlotsByName(pqLinksEditor);
236 pqLinksEditor->setWindowTitle(QCoreApplication::translate(
"pqLinksEditor",
"Dialog",
nullptr));
237 label->setText(QCoreApplication::translate(
"pqLinksEditor",
"Name:",
nullptr));
238 label_2->setText(QCoreApplication::translate(
"pqLinksEditor",
"Mode:",
nullptr));
239 comboBox->setItemText(0, QCoreApplication::translate(
"pqLinksEditor",
"Object Link",
nullptr));
240 comboBox->setItemText(1, QCoreApplication::translate(
"pqLinksEditor",
"Property Link",
nullptr));
241 comboBox->setItemText(2, QCoreApplication::translate(
"pqLinksEditor",
"Selection Link",
nullptr));
243 status->setText(QCoreApplication::translate(
"pqLinksEditor",
"Status",
nullptr));
244 interactiveViewLinkCheckBox->setText(QCoreApplication::translate(
"pqLinksEditor",
"Interactive View Link",
nullptr));
245 cameraWidgetViewLinkCheckBox->setText(QCoreApplication::translate(
"pqLinksEditor",
"Camera Widget View Link",
nullptr));
246 #if QT_CONFIG(tooltip) 247 convertToIndicesCheckBox->setToolTip(QCoreApplication::translate(
"pqLinksEditor",
"<span>When enabled, selection is linked by evaluating the selection on the data source and select corresponding elements based on their indices on other linked data sources, instead of sharing the actual selection between the data sources.</span>",
nullptr));
248 #endif // QT_CONFIG(tooltip) 249 convertToIndicesCheckBox->setText(QCoreApplication::translate(
"pqLinksEditor",
"Link Selected Elements",
nullptr));
260 #endif // UI_PQLINKSEDITOR_H QCheckBox * convertToIndicesCheckBox
QTreeView * ObjectTreeSelection2
QListWidget * Property2List
QStackedWidget * stackedWidget
QDialogButtonBox * buttonBox
QTreeView * ObjectTreeProperty1
A Qt dialog for editing a property/proxy/camera link.
QCheckBox * interactiveViewLinkCheckBox
QGridLayout * gridLayout1
QGridLayout * gridLayout3
QTreeView * ObjectTreeSelection1
QGridLayout * gridLayout2
QTreeView * ObjectTreeProperty2
void setupUi(QDialog *pqLinksEditor)
QCheckBox * cameraWidgetViewLinkCheckBox
void retranslateUi(QDialog *pqLinksEditor)
QTreeView * ObjectTreeProxy2
QTreeView * ObjectTreeProxy1
QListWidget * Property1List