9 #ifndef UI_PQLINKSMANAGER_H 10 #define UI_PQLINKSMANAGER_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QApplication> 14 #include <QtWidgets/QDialog> 15 #include <QtWidgets/QDialogButtonBox> 16 #include <QtWidgets/QGridLayout> 17 #include <QtWidgets/QHeaderView> 18 #include <QtWidgets/QPushButton> 19 #include <QtWidgets/QSpacerItem> 20 #include <QtWidgets/QTreeView> 21 #include <QtWidgets/QVBoxLayout> 39 if (pqLinksManager->objectName().isEmpty())
40 pqLinksManager->setObjectName(QString::fromUtf8(
"pqLinksManager"));
41 pqLinksManager->resize(567, 313);
42 gridLayout =
new QGridLayout(pqLinksManager);
44 gridLayout->setSpacing(6);
47 gridLayout->setContentsMargins(9, 9, 9, 9);
49 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
50 vboxLayout =
new QVBoxLayout();
52 vboxLayout->setSpacing(6);
55 vboxLayout->setContentsMargins(0, 0, 0, 0);
57 vboxLayout->setObjectName(QString::fromUtf8(
"vboxLayout"));
58 addButton =
new QPushButton(pqLinksManager);
59 addButton->setObjectName(QString::fromUtf8(
"addButton"));
61 vboxLayout->addWidget(addButton);
63 editButton =
new QPushButton(pqLinksManager);
64 editButton->setObjectName(QString::fromUtf8(
"editButton"));
66 vboxLayout->addWidget(editButton);
68 removeButton =
new QPushButton(pqLinksManager);
69 removeButton->setObjectName(QString::fromUtf8(
"removeButton"));
71 vboxLayout->addWidget(removeButton);
73 spacerItem =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
75 vboxLayout->addItem(spacerItem);
78 gridLayout->addLayout(vboxLayout, 0, 1, 1, 1);
80 buttonBox =
new QDialogButtonBox(pqLinksManager);
81 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
82 buttonBox->setOrientation(Qt::Horizontal);
83 buttonBox->setStandardButtons(QDialogButtonBox::Close);
85 gridLayout->addWidget(buttonBox, 1, 0, 1, 2);
87 treeView =
new QTreeView(pqLinksManager);
88 treeView->setObjectName(QString::fromUtf8(
"treeView"));
89 treeView->setAlternatingRowColors(
true);
90 treeView->setSelectionMode(QAbstractItemView::ExtendedSelection);
91 treeView->setRootIsDecorated(
false);
92 treeView->setItemsExpandable(
false);
94 gridLayout->addWidget(treeView, 0, 0, 1, 1);
96 QWidget::setTabOrder(addButton, editButton);
97 QWidget::setTabOrder(editButton, removeButton);
98 QWidget::setTabOrder(removeButton, buttonBox);
101 QObject::connect(buttonBox, SIGNAL(accepted()), pqLinksManager, SLOT(accept()));
102 QObject::connect(buttonBox, SIGNAL(rejected()), pqLinksManager, SLOT(reject()));
104 QMetaObject::connectSlotsByName(pqLinksManager);
109 pqLinksManager->setWindowTitle(QCoreApplication::translate(
"pqLinksManager",
"Dialog",
nullptr));
110 addButton->setText(QCoreApplication::translate(
"pqLinksManager",
"Add...",
nullptr));
111 editButton->setText(QCoreApplication::translate(
"pqLinksManager",
"Edit...",
nullptr));
112 removeButton->setText(QCoreApplication::translate(
"pqLinksManager",
"Remove",
nullptr));
123 #endif // UI_PQLINKSMANAGER_H void setupUi(QDialog *pqLinksManager)
QDialogButtonBox * buttonBox
void retranslateUi(QDialog *pqLinksManager)
dialog for viewing, creating, editing, removing proxy/property/camera links
QPushButton * removeButton