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> 62 if (pqLinksEditor->objectName().isEmpty())
63 pqLinksEditor->setObjectName(QString::fromUtf8(
"pqLinksEditor"));
64 pqLinksEditor->resize(496, 389);
65 gridLayout =
new QGridLayout(pqLinksEditor);
67 gridLayout->setSpacing(6);
70 gridLayout->setContentsMargins(9, 9, 9, 9);
72 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
73 stackedWidget =
new QStackedWidget(pqLinksEditor);
74 stackedWidget->setObjectName(QString::fromUtf8(
"stackedWidget"));
76 page->setObjectName(QString::fromUtf8(
"page"));
77 gridLayout1 =
new QGridLayout(page);
79 gridLayout1->setSpacing(6);
82 gridLayout1->setContentsMargins(9, 9, 9, 9);
84 gridLayout1->setObjectName(QString::fromUtf8(
"gridLayout1"));
85 ObjectTreeProxy2 =
new QTreeView(page);
86 ObjectTreeProxy2->setObjectName(QString::fromUtf8(
"ObjectTreeProxy2"));
88 gridLayout1->addWidget(ObjectTreeProxy2, 0, 1, 1, 1);
90 ObjectTreeProxy1 =
new QTreeView(page);
91 ObjectTreeProxy1->setObjectName(QString::fromUtf8(
"ObjectTreeProxy1"));
93 gridLayout1->addWidget(ObjectTreeProxy1, 0, 0, 1, 1);
95 stackedWidget->addWidget(page);
96 page_2 =
new QWidget();
97 page_2->setObjectName(QString::fromUtf8(
"page_2"));
98 gridLayout2 =
new QGridLayout(page_2);
100 gridLayout2->setSpacing(6);
103 gridLayout2->setContentsMargins(9, 9, 9, 9);
105 gridLayout2->setObjectName(QString::fromUtf8(
"gridLayout2"));
106 Property1List =
new QListWidget(page_2);
107 Property1List->setObjectName(QString::fromUtf8(
"Property1List"));
108 Property1List->setSortingEnabled(
true);
110 gridLayout2->addWidget(Property1List, 1, 0, 1, 1);
112 ObjectTreeProperty1 =
new QTreeView(page_2);
113 ObjectTreeProperty1->setObjectName(QString::fromUtf8(
"ObjectTreeProperty1"));
115 gridLayout2->addWidget(ObjectTreeProperty1, 0, 0, 1, 1);
117 Property2List =
new QListWidget(page_2);
118 Property2List->setObjectName(QString::fromUtf8(
"Property2List"));
119 Property2List->setSortingEnabled(
true);
121 gridLayout2->addWidget(Property2List, 1, 1, 1, 1);
123 ObjectTreeProperty2 =
new QTreeView(page_2);
124 ObjectTreeProperty2->setObjectName(QString::fromUtf8(
"ObjectTreeProperty2"));
126 gridLayout2->addWidget(ObjectTreeProperty2, 0, 1, 1, 1);
128 stackedWidget->addWidget(page_2);
129 page_3 =
new QWidget();
130 page_3->setObjectName(QString::fromUtf8(
"page_3"));
131 gridLayout3 =
new QGridLayout(page_3);
133 gridLayout3->setSpacing(6);
136 gridLayout3->setContentsMargins(9, 9, 9, 9);
138 gridLayout3->setObjectName(QString::fromUtf8(
"gridLayout3"));
139 ObjectTreeSelection1 =
new QTreeView(page_3);
140 ObjectTreeSelection1->setObjectName(QString::fromUtf8(
"ObjectTreeSelection1"));
142 gridLayout3->addWidget(ObjectTreeSelection1, 0, 0, 1, 1);
144 ObjectTreeSelection2 =
new QTreeView(page_3);
145 ObjectTreeSelection2->setObjectName(QString::fromUtf8(
"ObjectTreeSelection2"));
147 gridLayout3->addWidget(ObjectTreeSelection2, 0, 1, 1, 1);
149 stackedWidget->addWidget(page_3);
151 gridLayout->addWidget(stackedWidget, 1, 0, 1, 2);
153 hboxLayout =
new QHBoxLayout();
155 hboxLayout->setSpacing(6);
157 hboxLayout->setContentsMargins(0, 0, 0, 0);
158 hboxLayout->setObjectName(QString::fromUtf8(
"hboxLayout"));
159 label =
new QLabel(pqLinksEditor);
160 label->setObjectName(QString::fromUtf8(
"label"));
162 hboxLayout->addWidget(label);
164 lineEdit =
new QLineEdit(pqLinksEditor);
165 lineEdit->setObjectName(QString::fromUtf8(
"lineEdit"));
167 hboxLayout->addWidget(lineEdit);
169 label_2 =
new QLabel(pqLinksEditor);
170 label_2->setObjectName(QString::fromUtf8(
"label_2"));
172 hboxLayout->addWidget(label_2);
174 comboBox =
new QComboBox(pqLinksEditor);
175 comboBox->addItem(QString());
176 comboBox->addItem(QString());
177 comboBox->addItem(QString());
178 comboBox->setObjectName(QString::fromUtf8(
"comboBox"));
180 hboxLayout->addWidget(comboBox);
182 spacerItem =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
184 hboxLayout->addItem(spacerItem);
187 gridLayout->addLayout(hboxLayout, 0, 0, 1, 2);
189 interactiveViewLinkCheckBox =
new QCheckBox(pqLinksEditor);
190 interactiveViewLinkCheckBox->setObjectName(QString::fromUtf8(
"interactiveViewLinkCheckBox"));
191 interactiveViewLinkCheckBox->setVisible(
false);
193 gridLayout->addWidget(interactiveViewLinkCheckBox, 2, 0, 1, 1);
195 convertToIndicesCheckBox =
new QCheckBox(pqLinksEditor);
196 convertToIndicesCheckBox->setObjectName(QString::fromUtf8(
"convertToIndicesCheckBox"));
197 convertToIndicesCheckBox->setChecked(
true);
198 convertToIndicesCheckBox->setVisible(
false);
200 gridLayout->addWidget(convertToIndicesCheckBox, 2, 0, 1, 1);
202 buttonBox =
new QDialogButtonBox(pqLinksEditor);
203 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
204 buttonBox->setOrientation(Qt::Horizontal);
205 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok);
207 gridLayout->addWidget(buttonBox, 2, 1, 1, 1);
211 QObject::connect(buttonBox, SIGNAL(accepted()), pqLinksEditor, SLOT(accept()));
212 QObject::connect(buttonBox, SIGNAL(rejected()), pqLinksEditor, SLOT(reject()));
213 QObject::connect(comboBox, SIGNAL(currentIndexChanged(
int)), stackedWidget, SLOT(setCurrentIndex(
int)));
215 stackedWidget->setCurrentIndex(0);
218 QMetaObject::connectSlotsByName(pqLinksEditor);
223 pqLinksEditor->setWindowTitle(QCoreApplication::translate(
"pqLinksEditor",
"Dialog",
nullptr));
224 label->setText(QCoreApplication::translate(
"pqLinksEditor",
"Name:",
nullptr));
225 label_2->setText(QCoreApplication::translate(
"pqLinksEditor",
"Mode:",
nullptr));
226 comboBox->setItemText(0, QCoreApplication::translate(
"pqLinksEditor",
"Object Link",
nullptr));
227 comboBox->setItemText(1, QCoreApplication::translate(
"pqLinksEditor",
"Property Link",
nullptr));
228 comboBox->setItemText(2, QCoreApplication::translate(
"pqLinksEditor",
"Selection Link",
nullptr));
230 interactiveViewLinkCheckBox->setText(QCoreApplication::translate(
"pqLinksEditor",
"Interactive View Link",
nullptr));
231 #if QT_CONFIG(tooltip) 232 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));
233 #endif // QT_CONFIG(tooltip) 234 convertToIndicesCheckBox->setText(QCoreApplication::translate(
"pqLinksEditor",
"Link Selected Elements",
nullptr));
245 #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)
void retranslateUi(QDialog *pqLinksEditor)
QTreeView * ObjectTreeProxy2
QTreeView * ObjectTreeProxy1
QListWidget * Property1List