9 #ifndef UI_MANAGE_INTERFACES_DIALOG_H 10 #define UI_MANAGE_INTERFACES_DIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QDialog> 17 #include <QtWidgets/QDialogButtonBox> 18 #include <QtWidgets/QHBoxLayout> 19 #include <QtWidgets/QHeaderView> 20 #include <QtWidgets/QLabel> 21 #include <QtWidgets/QPushButton> 22 #include <QtWidgets/QSpacerItem> 23 #include <QtWidgets/QTabWidget> 24 #include <QtWidgets/QToolButton> 25 #include <QtWidgets/QTreeView> 26 #include <QtWidgets/QTreeWidget> 27 #include <QtWidgets/QVBoxLayout> 28 #include <QtWidgets/QWidget> 35 QVBoxLayout *verticalLayout_4;
36 QTabWidget *tabWidget;
38 QVBoxLayout *verticalLayout;
41 QVBoxLayout *verticalLayout_2;
43 QHBoxLayout *horizontalLayout_2;
46 QSpacerItem *horizontalSpacer;
48 QVBoxLayout *verticalLayout_3;
49 QTreeWidget *remoteList;
50 QHBoxLayout *horizontalLayout_3;
51 QToolButton *addRemote;
52 QToolButton *delRemote;
53 QSpacerItem *horizontalSpacer_2;
54 QPushButton *remoteSettings;
56 QDialogButtonBox *buttonBox;
60 if (ManageInterfacesDialog->objectName().isEmpty())
61 ManageInterfacesDialog->setObjectName(QStringLiteral(
"ManageInterfacesDialog"));
62 ManageInterfacesDialog->setWindowModality(Qt::ApplicationModal);
63 ManageInterfacesDialog->resize(750, 425);
64 ManageInterfacesDialog->setModal(
false);
65 verticalLayout_4 =
new QVBoxLayout(ManageInterfacesDialog);
66 verticalLayout_4->setObjectName(QStringLiteral(
"verticalLayout_4"));
67 tabWidget =
new QTabWidget(ManageInterfacesDialog);
68 tabWidget->setObjectName(QStringLiteral(
"tabWidget"));
69 localTab =
new QWidget();
70 localTab->setObjectName(QStringLiteral(
"localTab"));
71 verticalLayout =
new QVBoxLayout(localTab);
72 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
73 localView =
new QTreeView(localTab);
74 localView->setObjectName(QStringLiteral(
"localView"));
75 localView->setFocusPolicy(Qt::NoFocus);
76 localView->setIndentation(0);
77 localView->setRootIsDecorated(
false);
78 localView->setUniformRowHeights(
true);
79 localView->setItemsExpandable(
false);
81 verticalLayout->addWidget(localView);
83 tabWidget->addTab(localTab, QString());
84 pipeTab =
new QWidget();
85 pipeTab->setObjectName(QStringLiteral(
"pipeTab"));
86 verticalLayout_2 =
new QVBoxLayout(pipeTab);
87 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
88 pipeView =
new QTreeView(pipeTab);
89 pipeView->setObjectName(QStringLiteral(
"pipeView"));
90 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
91 sizePolicy.setHorizontalStretch(0);
92 sizePolicy.setVerticalStretch(0);
93 sizePolicy.setHeightForWidth(pipeView->sizePolicy().hasHeightForWidth());
94 pipeView->setSizePolicy(sizePolicy);
95 pipeView->setBaseSize(QSize(0, 0));
96 pipeView->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
97 pipeView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
98 pipeView->setTextElideMode(Qt::ElideMiddle);
99 pipeView->setRootIsDecorated(
false);
100 pipeView->setItemsExpandable(
false);
102 verticalLayout_2->addWidget(pipeView);
104 horizontalLayout_2 =
new QHBoxLayout();
105 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
106 addPipe =
new QToolButton(pipeTab);
107 addPipe->setObjectName(QStringLiteral(
"addPipe"));
109 icon.addFile(QStringLiteral(
":/stock/plus-8.png"), QSize(), QIcon::Normal, QIcon::Off);
110 addPipe->setIcon(icon);
112 horizontalLayout_2->addWidget(addPipe);
114 delPipe =
new QToolButton(pipeTab);
115 delPipe->setObjectName(QStringLiteral(
"delPipe"));
117 icon1.addFile(QStringLiteral(
":/stock/minus-8.png"), QSize(), QIcon::Normal, QIcon::Off);
118 delPipe->setIcon(icon1);
120 horizontalLayout_2->addWidget(delPipe);
122 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
124 horizontalLayout_2->addItem(horizontalSpacer);
127 verticalLayout_2->addLayout(horizontalLayout_2);
129 tabWidget->addTab(pipeTab, QString());
130 remoteTab =
new QWidget();
131 remoteTab->setObjectName(QStringLiteral(
"remoteTab"));
132 verticalLayout_3 =
new QVBoxLayout(remoteTab);
133 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
134 remoteList =
new QTreeWidget(remoteTab);
135 remoteList->setObjectName(QStringLiteral(
"remoteList"));
136 remoteList->setUniformRowHeights(
true);
138 verticalLayout_3->addWidget(remoteList);
140 horizontalLayout_3 =
new QHBoxLayout();
141 horizontalLayout_3->setObjectName(QStringLiteral(
"horizontalLayout_3"));
142 addRemote =
new QToolButton(remoteTab);
143 addRemote->setObjectName(QStringLiteral(
"addRemote"));
144 addRemote->setIcon(icon);
146 horizontalLayout_3->addWidget(addRemote);
148 delRemote =
new QToolButton(remoteTab);
149 delRemote->setObjectName(QStringLiteral(
"delRemote"));
150 delRemote->setIcon(icon1);
152 horizontalLayout_3->addWidget(delRemote);
154 horizontalSpacer_2 =
new QSpacerItem(328, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
156 horizontalLayout_3->addItem(horizontalSpacer_2);
158 remoteSettings =
new QPushButton(remoteTab);
159 remoteSettings->setObjectName(QStringLiteral(
"remoteSettings"));
161 horizontalLayout_3->addWidget(remoteSettings);
164 verticalLayout_3->addLayout(horizontalLayout_3);
166 tabWidget->addTab(remoteTab, QString());
168 verticalLayout_4->addWidget(tabWidget);
170 hintLabel =
new QLabel(ManageInterfacesDialog);
171 hintLabel->setObjectName(QStringLiteral(
"hintLabel"));
172 hintLabel->setWordWrap(
true);
174 verticalLayout_4->addWidget(hintLabel);
176 buttonBox =
new QDialogButtonBox(ManageInterfacesDialog);
177 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
178 buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Help|QDialogButtonBox::Ok);
180 verticalLayout_4->addWidget(buttonBox);
183 retranslateUi(ManageInterfacesDialog);
184 QObject::connect(buttonBox, SIGNAL(accepted()), ManageInterfacesDialog, SLOT(accept()));
185 QObject::connect(buttonBox, SIGNAL(rejected()), ManageInterfacesDialog, SLOT(reject()));
187 tabWidget->setCurrentIndex(0);
190 QMetaObject::connectSlotsByName(ManageInterfacesDialog);
193 void retranslateUi(QDialog *ManageInterfacesDialog)
195 ManageInterfacesDialog->setWindowTitle(QApplication::translate(
"ManageInterfacesDialog",
"Manage Interfaces", 0));
196 #ifndef QT_NO_TOOLTIP 197 localTab->setToolTip(QApplication::translate(
"ManageInterfacesDialog",
"<html><head/><body><p>Click the checkbox to hide or show a hidden interface.</p></body></html>", 0));
198 #endif // QT_NO_TOOLTIP 199 tabWidget->setTabText(tabWidget->indexOf(localTab), QApplication::translate(
"ManageInterfacesDialog",
"Local Interfaces", 0));
200 #ifndef QT_NO_TOOLTIP 201 pipeTab->setToolTip(QApplication::translate(
"ManageInterfacesDialog",
"<html><head/><body><p>Add a pipe to capture from or remove an existing pipe from the list.</p></body></html>", 0));
202 #endif // QT_NO_TOOLTIP 203 #ifndef QT_NO_TOOLTIP 204 addPipe->setToolTip(QApplication::translate(
"ManageInterfacesDialog",
"<html><head/><body><p>Add a new pipe using default settings.</p></body></html>", 0));
205 #endif // QT_NO_TOOLTIP 206 addPipe->setText(QString());
207 #ifndef QT_NO_TOOLTIP 208 delPipe->setToolTip(QApplication::translate(
"ManageInterfacesDialog",
"<html><head/><body><p>Remove the selected pipe from the list.</p></body></html>", 0));
209 #endif // QT_NO_TOOLTIP 210 delPipe->setText(QString());
211 tabWidget->setTabText(tabWidget->indexOf(pipeTab), QApplication::translate(
"ManageInterfacesDialog",
"Pipes", 0));
212 QTreeWidgetItem *___qtreewidgetitem = remoteList->headerItem();
213 ___qtreewidgetitem->setText(1, QApplication::translate(
"ManageInterfacesDialog",
"Host / Device URL", 0));
214 ___qtreewidgetitem->setText(0, QApplication::translate(
"ManageInterfacesDialog",
"Show", 0));
215 #ifndef QT_NO_TOOLTIP 216 addRemote->setToolTip(QApplication::translate(
"ManageInterfacesDialog",
"<html><head/><body><p>Add a remote host and its interfaces</p></body></html>", 0));
217 #endif // QT_NO_TOOLTIP 218 addRemote->setText(QString());
219 #ifndef QT_NO_TOOLTIP 220 delRemote->setToolTip(QApplication::translate(
"ManageInterfacesDialog",
"<html><head/><body><p>Remove the selected host from the list.</p></body></html>", 0));
221 #endif // QT_NO_TOOLTIP 222 delRemote->setText(QString());
223 remoteSettings->setText(QApplication::translate(
"ManageInterfacesDialog",
"Remote Settings", 0));
224 tabWidget->setTabText(tabWidget->indexOf(remoteTab), QApplication::translate(
"ManageInterfacesDialog",
"Remote Interfaces", 0));
225 hintLabel->setText(QApplication::translate(
"ManageInterfacesDialog",
"<small><i></i></small>", 0));
236 #endif // UI_MANAGE_INTERFACES_DIALOG_H Definition: ui_manage_interfaces_dialog.h:231
Definition: ui_about_dialog.h:291
Definition: manage_interfaces_dialog.h:35
Definition: ui_manage_interfaces_dialog.h:32