9 #ifndef UI_PQPLUGINDIALOG_H 10 #define UI_PQPLUGINDIALOG_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/QHeaderView> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QPushButton> 22 #include <QtWidgets/QSpacerItem> 23 #include <QtWidgets/QSplitter> 24 #include <QtWidgets/QVBoxLayout> 54 if (pqPluginDialog->objectName().isEmpty())
55 pqPluginDialog->setObjectName(QString::fromUtf8(
"pqPluginDialog"));
56 pqPluginDialog->resize(800, 600);
57 vboxLayout =
new QVBoxLayout(pqPluginDialog);
58 vboxLayout->setObjectName(QString::fromUtf8(
"vboxLayout"));
59 HelpText =
new QLabel(pqPluginDialog);
60 HelpText->setObjectName(QString::fromUtf8(
"HelpText"));
61 HelpText->setWordWrap(
true);
63 vboxLayout->addWidget(HelpText);
65 splitter =
new QSplitter(pqPluginDialog);
66 splitter->setObjectName(QString::fromUtf8(
"splitter"));
67 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
68 sizePolicy.setHorizontalStretch(0);
69 sizePolicy.setVerticalStretch(0);
70 sizePolicy.setHeightForWidth(splitter->sizePolicy().hasHeightForWidth());
71 splitter->setSizePolicy(sizePolicy);
72 hboxLayout =
new QHBoxLayout(splitter);
73 hboxLayout->setObjectName(QString::fromUtf8(
"hboxLayout"));
74 remoteGroup =
new QGroupBox(splitter);
75 remoteGroup->setObjectName(QString::fromUtf8(
"remoteGroup"));
76 gridLayout =
new QGridLayout(remoteGroup);
77 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
78 gridLayout->setContentsMargins(0, -1, -1, -1);
79 spacerItem =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
81 gridLayout->addItem(spacerItem, 2, 2, 1, 1);
84 remotePlugins->setObjectName(QString::fromUtf8(
"remotePlugins"));
85 remotePlugins->setContextMenuPolicy(Qt::NoContextMenu);
86 remotePlugins->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
87 remotePlugins->setSelectionMode(QAbstractItemView::ExtendedSelection);
89 gridLayout->addWidget(remotePlugins, 0, 0, 2, 5);
91 loadRemote =
new QPushButton(remoteGroup);
92 loadRemote->setObjectName(QString::fromUtf8(
"loadRemote"));
94 gridLayout->addWidget(loadRemote, 2, 0, 1, 1);
96 removeRemote =
new QPushButton(remoteGroup);
97 removeRemote->setObjectName(QString::fromUtf8(
"removeRemote"));
98 removeRemote->setEnabled(
false);
100 gridLayout->addWidget(removeRemote, 2, 4, 1, 1);
102 loadSelected_Remote =
new QPushButton(remoteGroup);
103 loadSelected_Remote->setObjectName(QString::fromUtf8(
"loadSelected_Remote"));
104 loadSelected_Remote->setEnabled(
false);
106 gridLayout->addWidget(loadSelected_Remote, 2, 1, 1, 1);
108 splitter->addWidget(remoteGroup);
110 hboxLayout->addWidget(remoteGroup);
112 localGroup =
new QGroupBox(splitter);
113 localGroup->setObjectName(QString::fromUtf8(
"localGroup"));
114 gridLayout1 =
new QGridLayout(localGroup);
115 gridLayout1->setObjectName(QString::fromUtf8(
"gridLayout1"));
116 gridLayout1->setContentsMargins(-1, -1, 0, -1);
117 spacerItem1 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
119 gridLayout1->addItem(spacerItem1, 3, 2, 1, 1);
122 localPlugins->setObjectName(QString::fromUtf8(
"localPlugins"));
123 localPlugins->setContextMenuPolicy(Qt::NoContextMenu);
124 localPlugins->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
125 localPlugins->setSelectionMode(QAbstractItemView::ExtendedSelection);
127 gridLayout1->addWidget(localPlugins, 0, 0, 2, 4);
129 removeLocal =
new QPushButton(localGroup);
130 removeLocal->setObjectName(QString::fromUtf8(
"removeLocal"));
131 removeLocal->setEnabled(
false);
133 gridLayout1->addWidget(removeLocal, 3, 3, 1, 1);
135 loadLocal =
new QPushButton(localGroup);
136 loadLocal->setObjectName(QString::fromUtf8(
"loadLocal"));
138 gridLayout1->addWidget(loadLocal, 3, 0, 1, 1);
140 loadSelected_Local =
new QPushButton(localGroup);
141 loadSelected_Local->setObjectName(QString::fromUtf8(
"loadSelected_Local"));
142 loadSelected_Local->setEnabled(
false);
144 gridLayout1->addWidget(loadSelected_Local, 3, 1, 1, 1);
146 splitter->addWidget(localGroup);
148 hboxLayout->addWidget(localGroup);
151 vboxLayout->addWidget(splitter);
153 buttonBox =
new QDialogButtonBox(pqPluginDialog);
154 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
155 buttonBox->setOrientation(Qt::Horizontal);
156 buttonBox->setStandardButtons(QDialogButtonBox::Close);
158 vboxLayout->addWidget(buttonBox);
160 QWidget::setTabOrder(remotePlugins, loadRemote);
161 QWidget::setTabOrder(loadRemote, loadSelected_Remote);
162 QWidget::setTabOrder(loadSelected_Remote, removeRemote);
163 QWidget::setTabOrder(removeRemote, localPlugins);
164 QWidget::setTabOrder(localPlugins, loadLocal);
165 QWidget::setTabOrder(loadLocal, loadSelected_Local);
166 QWidget::setTabOrder(loadSelected_Local, removeLocal);
167 QWidget::setTabOrder(removeLocal, buttonBox);
170 QObject::connect(buttonBox, SIGNAL(accepted()), pqPluginDialog, SLOT(accept()));
171 QObject::connect(buttonBox, SIGNAL(rejected()), pqPluginDialog, SLOT(reject()));
173 QMetaObject::connectSlotsByName(pqPluginDialog);
178 pqPluginDialog->setWindowTitle(QCoreApplication::translate(
"pqPluginDialog",
"Plugin Manager",
nullptr));
179 HelpText->setText(QCoreApplication::translate(
"pqPluginDialog",
"TextLabel",
nullptr));
180 remoteGroup->setTitle(QCoreApplication::translate(
"pqPluginDialog",
"Remote Plugins",
nullptr));
181 QTreeWidgetItem *___qtreewidgetitem = remotePlugins->headerItem();
182 ___qtreewidgetitem->setText(0, QCoreApplication::translate(
"pqPluginDialog",
"1",
nullptr));
183 loadRemote->setText(QCoreApplication::translate(
"pqPluginDialog",
"Load New ...",
nullptr));
184 removeRemote->setText(QCoreApplication::translate(
"pqPluginDialog",
"Remove",
nullptr));
185 loadSelected_Remote->setText(QCoreApplication::translate(
"pqPluginDialog",
"Load Selected",
nullptr));
186 localGroup->setTitle(QCoreApplication::translate(
"pqPluginDialog",
"Local Plugins",
nullptr));
187 QTreeWidgetItem *___qtreewidgetitem1 = localPlugins->headerItem();
188 ___qtreewidgetitem1->setText(0, QCoreApplication::translate(
"pqPluginDialog",
"1",
nullptr));
189 removeLocal->setText(QCoreApplication::translate(
"pqPluginDialog",
"Remove",
nullptr));
190 loadLocal->setText(QCoreApplication::translate(
"pqPluginDialog",
"Load New ...",
nullptr));
191 loadSelected_Local->setText(QCoreApplication::translate(
"pqPluginDialog",
"Load Selected",
nullptr));
202 #endif // UI_PQPLUGINDIALOG_H QDialogButtonBox * buttonBox
QPushButton * loadSelected_Local
void setupUi(QDialog *pqPluginDialog)
pqPluginTreeWidget * localPlugins
void retranslateUi(QDialog *pqPluginDialog)
QSpacerItem * spacerItem1
QPushButton * removeLocal
QPushButton * removeRemote
QPushButton * loadSelected_Remote
QGridLayout * gridLayout1
pqPluginTreeWidget * remotePlugins