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> 58 if (pqPluginDialog->objectName().isEmpty())
59 pqPluginDialog->setObjectName(QString::fromUtf8(
"pqPluginDialog"));
60 pqPluginDialog->resize(800, 600);
61 vboxLayout =
new QVBoxLayout(pqPluginDialog);
62 vboxLayout->setObjectName(QString::fromUtf8(
"vboxLayout"));
63 HelpText =
new QLabel(pqPluginDialog);
64 HelpText->setObjectName(QString::fromUtf8(
"HelpText"));
65 HelpText->setWordWrap(
true);
67 vboxLayout->addWidget(HelpText);
69 splitter =
new QSplitter(pqPluginDialog);
70 splitter->setObjectName(QString::fromUtf8(
"splitter"));
71 QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
72 sizePolicy.setHorizontalStretch(0);
73 sizePolicy.setVerticalStretch(0);
74 sizePolicy.setHeightForWidth(splitter->sizePolicy().hasHeightForWidth());
75 splitter->setSizePolicy(sizePolicy);
76 hboxLayout =
new QHBoxLayout(splitter);
77 hboxLayout->setObjectName(QString::fromUtf8(
"hboxLayout"));
78 remoteGroup =
new QGroupBox(splitter);
79 remoteGroup->setObjectName(QString::fromUtf8(
"remoteGroup"));
80 gridLayout =
new QGridLayout(remoteGroup);
81 gridLayout->setObjectName(QString::fromUtf8(
"gridLayout"));
82 gridLayout->setContentsMargins(0, -1, -1, -1);
83 spacerItem =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
85 gridLayout->addItem(spacerItem, 2, 2, 1, 1);
88 remotePlugins->setObjectName(QString::fromUtf8(
"remotePlugins"));
89 remotePlugins->setContextMenuPolicy(Qt::NoContextMenu);
90 remotePlugins->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
91 remotePlugins->setSelectionMode(QAbstractItemView::ExtendedSelection);
93 gridLayout->addWidget(remotePlugins, 0, 0, 2, 5);
95 loadRemote =
new QPushButton(remoteGroup);
96 loadRemote->setObjectName(QString::fromUtf8(
"loadRemote"));
98 gridLayout->addWidget(loadRemote, 2, 0, 1, 1);
100 loadSelected_Remote =
new QPushButton(remoteGroup);
101 loadSelected_Remote->setObjectName(QString::fromUtf8(
"loadSelected_Remote"));
102 loadSelected_Remote->setEnabled(
false);
104 gridLayout->addWidget(loadSelected_Remote, 2, 1, 1, 1);
106 removeRemote =
new QPushButton(remoteGroup);
107 removeRemote->setObjectName(QString::fromUtf8(
"removeRemote"));
108 removeRemote->setEnabled(
false);
110 gridLayout->addWidget(removeRemote, 2, 2, 1, 1);
112 spacerItem1 =
new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
114 gridLayout->addItem(spacerItem1, 3, 3, 1, 1);
116 addConfig_Remote =
new QPushButton(remoteGroup);
117 addConfig_Remote->setObjectName(QString::fromUtf8(
"addConfig_Remote"));
119 gridLayout->addWidget(addConfig_Remote, 2, 4, 1, 1);
121 splitter->addWidget(remoteGroup);
123 hboxLayout->addWidget(remoteGroup);
125 localGroup =
new QGroupBox(splitter);
126 localGroup->setObjectName(QString::fromUtf8(
"localGroup"));
127 gridLayout1 =
new QGridLayout(localGroup);
128 gridLayout1->setObjectName(QString::fromUtf8(
"gridLayout1"));
129 gridLayout1->setContentsMargins(-1, -1, 0, -1);
130 spacerItem2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
132 gridLayout1->addItem(spacerItem2, 3, 2, 1, 1);
135 localPlugins->setObjectName(QString::fromUtf8(
"localPlugins"));
136 localPlugins->setContextMenuPolicy(Qt::NoContextMenu);
137 localPlugins->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
138 localPlugins->setSelectionMode(QAbstractItemView::ExtendedSelection);
140 gridLayout1->addWidget(localPlugins, 0, 0, 2, 5);
142 loadLocal =
new QPushButton(localGroup);
143 loadLocal->setObjectName(QString::fromUtf8(
"loadLocal"));
145 gridLayout1->addWidget(loadLocal, 3, 0, 1, 1);
147 loadSelected_Local =
new QPushButton(localGroup);
148 loadSelected_Local->setObjectName(QString::fromUtf8(
"loadSelected_Local"));
149 loadSelected_Local->setEnabled(
false);
151 gridLayout1->addWidget(loadSelected_Local, 3, 1, 1, 1);
153 removeLocal =
new QPushButton(localGroup);
154 removeLocal->setObjectName(QString::fromUtf8(
"removeLocal"));
155 removeLocal->setEnabled(
false);
157 gridLayout1->addWidget(removeLocal, 3, 2, 1, 1);
159 spacerItem3 =
new QSpacerItem(0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum);
161 gridLayout1->addItem(spacerItem3, 3, 3, 1, 1);
163 addConfig_Local =
new QPushButton(localGroup);
164 addConfig_Local->setObjectName(QString::fromUtf8(
"addConfig_Local"));
166 gridLayout1->addWidget(addConfig_Local, 3, 4, 1, 1);
168 splitter->addWidget(localGroup);
170 hboxLayout->addWidget(localGroup);
173 vboxLayout->addWidget(splitter);
175 buttonBox =
new QDialogButtonBox(pqPluginDialog);
176 buttonBox->setObjectName(QString::fromUtf8(
"buttonBox"));
177 buttonBox->setOrientation(Qt::Horizontal);
178 buttonBox->setStandardButtons(QDialogButtonBox::Close);
180 vboxLayout->addWidget(buttonBox);
182 QWidget::setTabOrder(remotePlugins, loadRemote);
183 QWidget::setTabOrder(loadRemote, loadSelected_Remote);
184 QWidget::setTabOrder(loadSelected_Remote, removeRemote);
185 QWidget::setTabOrder(removeRemote, localPlugins);
186 QWidget::setTabOrder(localPlugins, loadLocal);
187 QWidget::setTabOrder(loadLocal, loadSelected_Local);
188 QWidget::setTabOrder(loadSelected_Local, removeLocal);
189 QWidget::setTabOrder(removeLocal, buttonBox);
192 QObject::connect(buttonBox, SIGNAL(accepted()), pqPluginDialog, SLOT(accept()));
193 QObject::connect(buttonBox, SIGNAL(rejected()), pqPluginDialog, SLOT(reject()));
195 QMetaObject::connectSlotsByName(pqPluginDialog);
200 pqPluginDialog->setWindowTitle(QCoreApplication::translate(
"pqPluginDialog",
"Plugin Manager",
nullptr));
201 HelpText->setText(QCoreApplication::translate(
"pqPluginDialog",
"TextLabel",
nullptr));
202 remoteGroup->setTitle(QCoreApplication::translate(
"pqPluginDialog",
"Remote Plugins",
nullptr));
203 QTreeWidgetItem *___qtreewidgetitem = remotePlugins->headerItem();
204 ___qtreewidgetitem->setText(0, QCoreApplication::translate(
"pqPluginDialog",
"1",
nullptr));
205 loadRemote->setText(QCoreApplication::translate(
"pqPluginDialog",
"Load New ...",
nullptr));
206 loadSelected_Remote->setText(QCoreApplication::translate(
"pqPluginDialog",
"Load Selected",
nullptr));
207 removeRemote->setText(QCoreApplication::translate(
"pqPluginDialog",
"Remove",
nullptr));
208 addConfig_Remote->setText(QCoreApplication::translate(
"pqPluginDialog",
"Add plugin configuration file",
nullptr));
209 localGroup->setTitle(QCoreApplication::translate(
"pqPluginDialog",
"Local Plugins",
nullptr));
210 QTreeWidgetItem *___qtreewidgetitem1 = localPlugins->headerItem();
211 ___qtreewidgetitem1->setText(0, QCoreApplication::translate(
"pqPluginDialog",
"1",
nullptr));
212 loadLocal->setText(QCoreApplication::translate(
"pqPluginDialog",
"Load New ...",
nullptr));
213 loadSelected_Local->setText(QCoreApplication::translate(
"pqPluginDialog",
"Load Selected",
nullptr));
214 removeLocal->setText(QCoreApplication::translate(
"pqPluginDialog",
"Remove",
nullptr));
215 addConfig_Local->setText(QCoreApplication::translate(
"pqPluginDialog",
"Add plugin configuration file",
nullptr));
226 #endif // UI_PQPLUGINDIALOG_H QDialogButtonBox * buttonBox
QPushButton * loadSelected_Local
void setupUi(QDialog *pqPluginDialog)
QSpacerItem * spacerItem3
QPushButton * addConfig_Remote
QSpacerItem * spacerItem2
pqPluginTreeWidget * localPlugins
void retranslateUi(QDialog *pqPluginDialog)
QSpacerItem * spacerItem1
QPushButton * removeLocal
QPushButton * removeRemote
QPushButton * addConfig_Local
QPushButton * loadSelected_Remote
QGridLayout * gridLayout1
pqPluginTreeWidget * remotePlugins