9 #ifndef UI_CAPTURE_INTERFACES_DIALOG_H 10 #define UI_CAPTURE_INTERFACES_DIALOG_H 12 #include <QtCore/QVariant> 13 #include <QtWidgets/QAction> 14 #include <QtWidgets/QApplication> 15 #include <QtWidgets/QButtonGroup> 16 #include <QtWidgets/QCheckBox> 17 #include <QtWidgets/QComboBox> 18 #include <QtWidgets/QDialog> 19 #include <QtWidgets/QDialogButtonBox> 20 #include <QtWidgets/QFormLayout> 21 #include <QtWidgets/QGridLayout> 22 #include <QtWidgets/QGroupBox> 23 #include <QtWidgets/QHBoxLayout> 24 #include <QtWidgets/QHeaderView> 25 #include <QtWidgets/QLabel> 26 #include <QtWidgets/QLineEdit> 27 #include <QtWidgets/QPushButton> 28 #include <QtWidgets/QRadioButton> 29 #include <QtWidgets/QSpacerItem> 30 #include <QtWidgets/QSpinBox> 31 #include <QtWidgets/QTabWidget> 32 #include <QtWidgets/QTreeWidget> 33 #include <QtWidgets/QVBoxLayout> 34 #include <QtWidgets/QWidget> 35 #include "widgets/capture_filter_combo.h" 42 QVBoxLayout *verticalLayout_12;
43 QTabWidget *tabWidget;
45 QVBoxLayout *verticalLayout_2;
46 QTreeWidget *interfaceTree;
47 QHBoxLayout *horizontalLayout;
48 QCheckBox *capturePromModeCheckBox;
49 QSpacerItem *horizontalSpacer_2;
50 QPushButton *manageButton;
51 QHBoxLayout *horizontalLayout_2;
54 QSpacerItem *horizontalSpacer_4;
55 QPushButton *compileBPF;
57 QVBoxLayout *verticalLayout_9;
58 QGroupBox *gbCaptureToFile;
59 QGridLayout *gridLayout_3;
60 QPushButton *browseButton;
62 QLineEdit *filenameLineEdit;
63 QHBoxLayout *horizontalLayout_3;
65 QRadioButton *rbPcapng;
67 QSpacerItem *horizontalSpacer_7;
68 QGroupBox *gbNewFileAuto;
69 QGridLayout *gridLayout;
71 QComboBox *MBComboBox;
72 QComboBox *SecsComboBox;
73 QSpinBox *SecsSpinBox;
74 QSpacerItem *horizontalSpacer_8;
75 QCheckBox *MBCheckBox;
76 QCheckBox *SecsCheckBox;
77 QHBoxLayout *horizontalLayout_4;
78 QCheckBox *RbCheckBox;
81 QSpacerItem *horizontalSpacer_9;
82 QSpacerItem *verticalSpacer_2;
84 QFormLayout *formLayout;
85 QHBoxLayout *horizontalLayout_8;
87 QVBoxLayout *verticalLayout;
88 QCheckBox *cbUpdatePacketsRT;
89 QCheckBox *cbAutoScroll;
90 QCheckBox *cbExtraCaptureInfo;
91 QSpacerItem *horizontalSpacer_3;
92 QGroupBox *groupBox_2;
93 QVBoxLayout *verticalLayout_3;
94 QCheckBox *cbResolveMacAddresses;
95 QCheckBox *cbResolveNetworkNames;
96 QCheckBox *cbResolveTransportNames;
97 QSpacerItem *horizontalSpacer_5;
98 QGroupBox *gbStopCaptureAuto;
99 QGridLayout *gridLayout_2;
100 QSpinBox *stopPktSpinBox;
101 QSpinBox *stopMBSpinBox;
102 QCheckBox *stopMBCheckBox;
104 QCheckBox *stopSecsCheckBox;
105 QComboBox *stopSecsComboBox;
106 QCheckBox *stopPktCheckBox;
107 QComboBox *stopMBComboBox;
108 QSpinBox *stopSecsSpinBox;
109 QSpacerItem *horizontalSpacer;
110 QSpinBox *stopFilesSpinBox;
112 QCheckBox *stopFilesCheckBox;
113 QSpacerItem *verticalSpacer_3;
114 QDialogButtonBox *buttonBox;
116 void setupUi(QDialog *CaptureInterfacesDialog)
118 if (CaptureInterfacesDialog->objectName().isEmpty())
119 CaptureInterfacesDialog->setObjectName(QStringLiteral(
"CaptureInterfacesDialog"));
120 CaptureInterfacesDialog->resize(950, 440);
121 verticalLayout_12 =
new QVBoxLayout(CaptureInterfacesDialog);
122 verticalLayout_12->setObjectName(QStringLiteral(
"verticalLayout_12"));
123 tabWidget =
new QTabWidget(CaptureInterfacesDialog);
124 tabWidget->setObjectName(QStringLiteral(
"tabWidget"));
125 inputTab =
new QWidget();
126 inputTab->setObjectName(QStringLiteral(
"inputTab"));
127 verticalLayout_2 =
new QVBoxLayout(inputTab);
128 verticalLayout_2->setObjectName(QStringLiteral(
"verticalLayout_2"));
129 interfaceTree =
new QTreeWidget(inputTab);
130 interfaceTree->setObjectName(QStringLiteral(
"interfaceTree"));
131 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
132 sizePolicy.setHorizontalStretch(0);
133 sizePolicy.setVerticalStretch(0);
134 sizePolicy.setHeightForWidth(interfaceTree->sizePolicy().hasHeightForWidth());
135 interfaceTree->setSizePolicy(sizePolicy);
136 interfaceTree->setSelectionMode(QAbstractItemView::ExtendedSelection);
137 interfaceTree->setTextElideMode(Qt::ElideMiddle);
138 interfaceTree->setSortingEnabled(
true);
140 verticalLayout_2->addWidget(interfaceTree);
142 horizontalLayout =
new QHBoxLayout();
143 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
144 capturePromModeCheckBox =
new QCheckBox(inputTab);
145 capturePromModeCheckBox->setObjectName(QStringLiteral(
"capturePromModeCheckBox"));
147 horizontalLayout->addWidget(capturePromModeCheckBox);
149 horizontalSpacer_2 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
151 horizontalLayout->addItem(horizontalSpacer_2);
153 manageButton =
new QPushButton(inputTab);
154 manageButton->setObjectName(QStringLiteral(
"manageButton"));
155 manageButton->setEnabled(
true);
157 horizontalLayout->addWidget(manageButton);
160 verticalLayout_2->addLayout(horizontalLayout);
162 horizontalLayout_2 =
new QHBoxLayout();
163 horizontalLayout_2->setObjectName(QStringLiteral(
"horizontalLayout_2"));
164 label_4 =
new QLabel(inputTab);
165 label_4->setObjectName(QStringLiteral(
"label_4"));
167 horizontalLayout_2->addWidget(label_4);
170 captureFilterComboBox->setObjectName(QStringLiteral(
"captureFilterComboBox"));
171 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Fixed);
172 sizePolicy1.setHorizontalStretch(0);
173 sizePolicy1.setVerticalStretch(0);
174 sizePolicy1.setHeightForWidth(captureFilterComboBox->sizePolicy().hasHeightForWidth());
175 captureFilterComboBox->setSizePolicy(sizePolicy1);
177 horizontalLayout_2->addWidget(captureFilterComboBox);
179 horizontalSpacer_4 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
181 horizontalLayout_2->addItem(horizontalSpacer_4);
183 compileBPF =
new QPushButton(inputTab);
184 compileBPF->setObjectName(QStringLiteral(
"compileBPF"));
186 horizontalLayout_2->addWidget(compileBPF);
188 horizontalLayout_2->setStretch(1, 1);
190 verticalLayout_2->addLayout(horizontalLayout_2);
192 tabWidget->addTab(inputTab, QString());
193 outputTab =
new QWidget();
194 outputTab->setObjectName(QStringLiteral(
"outputTab"));
195 verticalLayout_9 =
new QVBoxLayout(outputTab);
196 verticalLayout_9->setObjectName(QStringLiteral(
"verticalLayout_9"));
197 gbCaptureToFile =
new QGroupBox(outputTab);
198 gbCaptureToFile->setObjectName(QStringLiteral(
"gbCaptureToFile"));
199 gbCaptureToFile->setEnabled(
true);
200 gbCaptureToFile->setAutoFillBackground(
false);
201 gbCaptureToFile->setFlat(
true);
202 gbCaptureToFile->setCheckable(
false);
203 gridLayout_3 =
new QGridLayout(gbCaptureToFile);
204 gridLayout_3->setObjectName(QStringLiteral(
"gridLayout_3"));
205 browseButton =
new QPushButton(gbCaptureToFile);
206 browseButton->setObjectName(QStringLiteral(
"browseButton"));
208 gridLayout_3->addWidget(browseButton, 0, 2, 1, 1);
210 label_2 =
new QLabel(gbCaptureToFile);
211 label_2->setObjectName(QStringLiteral(
"label_2"));
213 gridLayout_3->addWidget(label_2, 0, 0, 1, 1);
215 filenameLineEdit =
new QLineEdit(gbCaptureToFile);
216 filenameLineEdit->setObjectName(QStringLiteral(
"filenameLineEdit"));
218 gridLayout_3->addWidget(filenameLineEdit, 0, 1, 1, 1);
221 verticalLayout_9->addWidget(gbCaptureToFile);
223 horizontalLayout_3 =
new QHBoxLayout();
224 horizontalLayout_3->setObjectName(QStringLiteral(
"horizontalLayout_3"));
225 label =
new QLabel(outputTab);
226 label->setObjectName(QStringLiteral(
"label"));
228 horizontalLayout_3->addWidget(label);
230 rbPcapng =
new QRadioButton(outputTab);
231 rbPcapng->setObjectName(QStringLiteral(
"rbPcapng"));
233 horizontalLayout_3->addWidget(rbPcapng);
235 rbPcap =
new QRadioButton(outputTab);
236 rbPcap->setObjectName(QStringLiteral(
"rbPcap"));
238 horizontalLayout_3->addWidget(rbPcap);
240 horizontalSpacer_7 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
242 horizontalLayout_3->addItem(horizontalSpacer_7);
245 verticalLayout_9->addLayout(horizontalLayout_3);
247 gbNewFileAuto =
new QGroupBox(outputTab);
248 gbNewFileAuto->setObjectName(QStringLiteral(
"gbNewFileAuto"));
249 gbNewFileAuto->setFlat(
true);
250 gbNewFileAuto->setCheckable(
true);
251 gridLayout =
new QGridLayout(gbNewFileAuto);
252 gridLayout->setObjectName(QStringLiteral(
"gridLayout"));
253 MBSpinBox =
new QSpinBox(gbNewFileAuto);
254 MBSpinBox->setObjectName(QStringLiteral(
"MBSpinBox"));
255 MBSpinBox->setWrapping(
true);
256 MBSpinBox->setButtonSymbols(QAbstractSpinBox::PlusMinus);
257 MBSpinBox->setMinimum(1);
258 MBSpinBox->setMaximum(1000000);
259 MBSpinBox->setValue(1);
261 gridLayout->addWidget(MBSpinBox, 1, 1, 1, 1);
263 MBComboBox =
new QComboBox(gbNewFileAuto);
264 MBComboBox->setObjectName(QStringLiteral(
"MBComboBox"));
266 gridLayout->addWidget(MBComboBox, 1, 2, 1, 1);
268 SecsComboBox =
new QComboBox(gbNewFileAuto);
269 SecsComboBox->setObjectName(QStringLiteral(
"SecsComboBox"));
271 gridLayout->addWidget(SecsComboBox, 2, 2, 1, 1);
273 SecsSpinBox =
new QSpinBox(gbNewFileAuto);
274 SecsSpinBox->setObjectName(QStringLiteral(
"SecsSpinBox"));
275 SecsSpinBox->setWrapping(
true);
276 SecsSpinBox->setButtonSymbols(QAbstractSpinBox::PlusMinus);
277 SecsSpinBox->setMinimum(1);
278 SecsSpinBox->setMaximum(1000000);
279 SecsSpinBox->setValue(1);
281 gridLayout->addWidget(SecsSpinBox, 2, 1, 1, 1);
283 horizontalSpacer_8 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
285 gridLayout->addItem(horizontalSpacer_8, 0, 3, 3, 1);
287 MBCheckBox =
new QCheckBox(gbNewFileAuto);
288 MBCheckBox->setObjectName(QStringLiteral(
"MBCheckBox"));
290 gridLayout->addWidget(MBCheckBox, 1, 0, 1, 1);
292 SecsCheckBox =
new QCheckBox(gbNewFileAuto);
293 SecsCheckBox->setObjectName(QStringLiteral(
"SecsCheckBox"));
295 gridLayout->addWidget(SecsCheckBox, 2, 0, 1, 1);
298 verticalLayout_9->addWidget(gbNewFileAuto);
300 horizontalLayout_4 =
new QHBoxLayout();
301 horizontalLayout_4->setObjectName(QStringLiteral(
"horizontalLayout_4"));
302 RbCheckBox =
new QCheckBox(outputTab);
303 RbCheckBox->setObjectName(QStringLiteral(
"RbCheckBox"));
305 horizontalLayout_4->addWidget(RbCheckBox);
307 RbSpinBox =
new QSpinBox(outputTab);
308 RbSpinBox->setObjectName(QStringLiteral(
"RbSpinBox"));
309 RbSpinBox->setWrapping(
true);
310 RbSpinBox->setMinimum(2);
311 RbSpinBox->setMaximum(1000);
312 RbSpinBox->setValue(2);
314 horizontalLayout_4->addWidget(RbSpinBox);
316 label_3 =
new QLabel(outputTab);
317 label_3->setObjectName(QStringLiteral(
"label_3"));
319 horizontalLayout_4->addWidget(label_3);
321 horizontalSpacer_9 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
323 horizontalLayout_4->addItem(horizontalSpacer_9);
326 verticalLayout_9->addLayout(horizontalLayout_4);
328 verticalSpacer_2 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
330 verticalLayout_9->addItem(verticalSpacer_2);
332 tabWidget->addTab(outputTab, QString());
333 gbNewFileAuto->raise();
334 gbCaptureToFile->raise();
335 optionsTab =
new QWidget();
336 optionsTab->setObjectName(QStringLiteral(
"optionsTab"));
337 formLayout =
new QFormLayout(optionsTab);
338 formLayout->setObjectName(QStringLiteral(
"formLayout"));
339 horizontalLayout_8 =
new QHBoxLayout();
340 horizontalLayout_8->setObjectName(QStringLiteral(
"horizontalLayout_8"));
341 groupBox =
new QGroupBox(optionsTab);
342 groupBox->setObjectName(QStringLiteral(
"groupBox"));
343 groupBox->setFlat(
true);
344 verticalLayout =
new QVBoxLayout(groupBox);
345 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
346 cbUpdatePacketsRT =
new QCheckBox(groupBox);
347 cbUpdatePacketsRT->setObjectName(QStringLiteral(
"cbUpdatePacketsRT"));
349 verticalLayout->addWidget(cbUpdatePacketsRT);
351 cbAutoScroll =
new QCheckBox(groupBox);
352 cbAutoScroll->setObjectName(QStringLiteral(
"cbAutoScroll"));
354 verticalLayout->addWidget(cbAutoScroll);
356 cbExtraCaptureInfo =
new QCheckBox(groupBox);
357 cbExtraCaptureInfo->setObjectName(QStringLiteral(
"cbExtraCaptureInfo"));
359 verticalLayout->addWidget(cbExtraCaptureInfo);
361 horizontalSpacer_3 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
363 verticalLayout->addItem(horizontalSpacer_3);
366 horizontalLayout_8->addWidget(groupBox);
368 groupBox_2 =
new QGroupBox(optionsTab);
369 groupBox_2->setObjectName(QStringLiteral(
"groupBox_2"));
370 groupBox_2->setFlat(
true);
371 verticalLayout_3 =
new QVBoxLayout(groupBox_2);
372 verticalLayout_3->setObjectName(QStringLiteral(
"verticalLayout_3"));
373 cbResolveMacAddresses =
new QCheckBox(groupBox_2);
374 cbResolveMacAddresses->setObjectName(QStringLiteral(
"cbResolveMacAddresses"));
376 verticalLayout_3->addWidget(cbResolveMacAddresses);
378 cbResolveNetworkNames =
new QCheckBox(groupBox_2);
379 cbResolveNetworkNames->setObjectName(QStringLiteral(
"cbResolveNetworkNames"));
381 verticalLayout_3->addWidget(cbResolveNetworkNames);
383 cbResolveTransportNames =
new QCheckBox(groupBox_2);
384 cbResolveTransportNames->setObjectName(QStringLiteral(
"cbResolveTransportNames"));
386 verticalLayout_3->addWidget(cbResolveTransportNames);
388 horizontalSpacer_5 =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
390 verticalLayout_3->addItem(horizontalSpacer_5);
393 horizontalLayout_8->addWidget(groupBox_2);
396 formLayout->setLayout(0, QFormLayout::LabelRole, horizontalLayout_8);
398 gbStopCaptureAuto =
new QGroupBox(optionsTab);
399 gbStopCaptureAuto->setObjectName(QStringLiteral(
"gbStopCaptureAuto"));
400 gbStopCaptureAuto->setEnabled(
true);
401 gbStopCaptureAuto->setFlat(
true);
402 gridLayout_2 =
new QGridLayout(gbStopCaptureAuto);
403 gridLayout_2->setObjectName(QStringLiteral(
"gridLayout_2"));
404 stopPktSpinBox =
new QSpinBox(gbStopCaptureAuto);
405 stopPktSpinBox->setObjectName(QStringLiteral(
"stopPktSpinBox"));
406 QSizePolicy sizePolicy2(QSizePolicy::Minimum, QSizePolicy::Fixed);
407 sizePolicy2.setHorizontalStretch(0);
408 sizePolicy2.setVerticalStretch(0);
409 sizePolicy2.setHeightForWidth(stopPktSpinBox->sizePolicy().hasHeightForWidth());
410 stopPktSpinBox->setSizePolicy(sizePolicy2);
411 stopPktSpinBox->setButtonSymbols(QAbstractSpinBox::PlusMinus);
412 stopPktSpinBox->setMaximum(2147483647);
413 stopPktSpinBox->setValue(1);
415 gridLayout_2->addWidget(stopPktSpinBox, 0, 1, 1, 1);
417 stopMBSpinBox =
new QSpinBox(gbStopCaptureAuto);
418 stopMBSpinBox->setObjectName(QStringLiteral(
"stopMBSpinBox"));
419 stopMBSpinBox->setButtonSymbols(QAbstractSpinBox::PlusMinus);
420 stopMBSpinBox->setMaximum(2147483647);
421 stopMBSpinBox->setValue(1);
423 gridLayout_2->addWidget(stopMBSpinBox, 2, 1, 1, 1);
425 stopMBCheckBox =
new QCheckBox(gbStopCaptureAuto);
426 stopMBCheckBox->setObjectName(QStringLiteral(
"stopMBCheckBox"));
428 gridLayout_2->addWidget(stopMBCheckBox, 2, 0, 1, 1);
430 label_7 =
new QLabel(gbStopCaptureAuto);
431 label_7->setObjectName(QStringLiteral(
"label_7"));
433 gridLayout_2->addWidget(label_7, 0, 2, 1, 1);
435 stopSecsCheckBox =
new QCheckBox(gbStopCaptureAuto);
436 stopSecsCheckBox->setObjectName(QStringLiteral(
"stopSecsCheckBox"));
438 gridLayout_2->addWidget(stopSecsCheckBox, 3, 0, 1, 1);
440 stopSecsComboBox =
new QComboBox(gbStopCaptureAuto);
441 stopSecsComboBox->setObjectName(QStringLiteral(
"stopSecsComboBox"));
443 gridLayout_2->addWidget(stopSecsComboBox, 3, 2, 1, 1);
445 stopPktCheckBox =
new QCheckBox(gbStopCaptureAuto);
446 stopPktCheckBox->setObjectName(QStringLiteral(
"stopPktCheckBox"));
448 gridLayout_2->addWidget(stopPktCheckBox, 0, 0, 1, 1);
450 stopMBComboBox =
new QComboBox(gbStopCaptureAuto);
451 stopMBComboBox->setObjectName(QStringLiteral(
"stopMBComboBox"));
453 gridLayout_2->addWidget(stopMBComboBox, 2, 2, 1, 1);
455 stopSecsSpinBox =
new QSpinBox(gbStopCaptureAuto);
456 stopSecsSpinBox->setObjectName(QStringLiteral(
"stopSecsSpinBox"));
457 stopSecsSpinBox->setButtonSymbols(QAbstractSpinBox::PlusMinus);
458 stopSecsSpinBox->setMaximum(2147483647);
459 stopSecsSpinBox->setValue(1);
461 gridLayout_2->addWidget(stopSecsSpinBox, 3, 1, 1, 1);
463 horizontalSpacer =
new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
465 gridLayout_2->addItem(horizontalSpacer, 0, 3, 4, 1);
467 stopFilesSpinBox =
new QSpinBox(gbStopCaptureAuto);
468 stopFilesSpinBox->setObjectName(QStringLiteral(
"stopFilesSpinBox"));
469 sizePolicy2.setHeightForWidth(stopFilesSpinBox->sizePolicy().hasHeightForWidth());
470 stopFilesSpinBox->setSizePolicy(sizePolicy2);
471 stopFilesSpinBox->setButtonSymbols(QAbstractSpinBox::PlusMinus);
472 stopFilesSpinBox->setMaximum(2147483647);
473 stopFilesSpinBox->setValue(1);
475 gridLayout_2->addWidget(stopFilesSpinBox, 1, 1, 1, 1);
477 label_8 =
new QLabel(gbStopCaptureAuto);
478 label_8->setObjectName(QStringLiteral(
"label_8"));
480 gridLayout_2->addWidget(label_8, 1, 2, 1, 1);
482 stopFilesCheckBox =
new QCheckBox(gbStopCaptureAuto);
483 stopFilesCheckBox->setObjectName(QStringLiteral(
"stopFilesCheckBox"));
485 gridLayout_2->addWidget(stopFilesCheckBox, 1, 0, 1, 1);
488 formLayout->setWidget(1, QFormLayout::LabelRole, gbStopCaptureAuto);
490 verticalSpacer_3 =
new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
492 formLayout->setItem(2, QFormLayout::LabelRole, verticalSpacer_3);
494 tabWidget->addTab(optionsTab, QString());
496 verticalLayout_12->addWidget(tabWidget);
498 buttonBox =
new QDialogButtonBox(CaptureInterfacesDialog);
499 buttonBox->setObjectName(QStringLiteral(
"buttonBox"));
500 buttonBox->setStandardButtons(QDialogButtonBox::Close|QDialogButtonBox::Help|QDialogButtonBox::Ok);
502 verticalLayout_12->addWidget(buttonBox);
505 retranslateUi(CaptureInterfacesDialog);
507 tabWidget->setCurrentIndex(0);
510 QMetaObject::connectSlotsByName(CaptureInterfacesDialog);
513 void retranslateUi(QDialog *CaptureInterfacesDialog)
515 QTreeWidgetItem *___qtreewidgetitem = interfaceTree->headerItem();
516 ___qtreewidgetitem->setText(7, QApplication::translate(
"CaptureInterfacesDialog",
"Capture Filter", 0));
517 ___qtreewidgetitem->setText(6, QApplication::translate(
"CaptureInterfacesDialog",
"Monitor Mode", 0));
518 ___qtreewidgetitem->setText(5, QApplication::translate(
"CaptureInterfacesDialog",
"Buffer (MB)", 0));
519 ___qtreewidgetitem->setText(4, QApplication::translate(
"CaptureInterfacesDialog",
"Snaplen (B)", 0));
520 ___qtreewidgetitem->setText(3, QApplication::translate(
"CaptureInterfacesDialog",
"Promiscuous", 0));
521 ___qtreewidgetitem->setText(2, QApplication::translate(
"CaptureInterfacesDialog",
"Link-layer Header", 0));
522 ___qtreewidgetitem->setText(1, QApplication::translate(
"CaptureInterfacesDialog",
"Traffic", 0));
523 ___qtreewidgetitem->setText(0, QApplication::translate(
"CaptureInterfacesDialog",
"Interface", 0));
524 #ifndef QT_NO_TOOLTIP 525 capturePromModeCheckBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"<html><head/><body><p>You probably want to enable this. Usually a network card will only capture the traffic sent to its own network address. If you want to capture all traffic that the network card can "see", mark this option. See the FAQ for some more details of capturing packets from a switched network.</p></body></html>", 0));
526 #endif // QT_NO_TOOLTIP 527 capturePromModeCheckBox->setText(QApplication::translate(
"CaptureInterfacesDialog",
"Enable promiscuous mode on all interfaces", 0));
528 #ifndef QT_NO_TOOLTIP 529 manageButton->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"Show and hide interfaces, add comments, and manage pipes and remote interfaces.", 0));
530 #endif // QT_NO_TOOLTIP 531 manageButton->setText(QApplication::translate(
"CaptureInterfacesDialog",
"Manage Interfaces\342\200\246", 0));
532 label_4->setText(QApplication::translate(
"CaptureInterfacesDialog",
"Capture filter for selected interfaces:", 0));
533 compileBPF->setText(QApplication::translate(
"CaptureInterfacesDialog",
"Compile BPFs", 0));
534 tabWidget->setTabText(tabWidget->indexOf(inputTab), QApplication::translate(
"CaptureInterfacesDialog",
"Input", 0));
535 #ifndef QT_NO_TOOLTIP 536 gbCaptureToFile->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"<html><head/><body><p>Enter the file name to which captured data will be written. By default, a temporary file will be used.</p></body></html>", 0));
537 #endif // QT_NO_TOOLTIP 538 gbCaptureToFile->setTitle(QApplication::translate(
"CaptureInterfacesDialog",
"Capture to a permanent file", 0));
539 browseButton->setText(QApplication::translate(
"CaptureInterfacesDialog",
"Browse\342\200\246", 0));
540 label_2->setText(QApplication::translate(
"CaptureInterfacesDialog",
"File:", 0));
541 label->setText(QApplication::translate(
"CaptureInterfacesDialog",
"Output format:", 0));
542 rbPcapng->setText(QApplication::translate(
"CaptureInterfacesDialog",
"pcapng", 0));
543 rbPcap->setText(QApplication::translate(
"CaptureInterfacesDialog",
"pcap", 0));
544 #ifndef QT_NO_TOOLTIP 545 gbNewFileAuto->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"<html><head/><body><p>Instead of using a single capture file, multiple files will be created.</p><p>The generated file names will contain an incrementing number and the start time of the capture.</p></body></html>", 0));
546 #endif // QT_NO_TOOLTIP 547 gbNewFileAuto->setTitle(QApplication::translate(
"CaptureInterfacesDialog",
"Create a new file automatically after\342\200\246", 0));
548 #ifndef QT_NO_TOOLTIP 549 MBSpinBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"<html><head/><body><p>If the selected file size is exceeded, capturing switches to the next file.</p><p>PLEASE NOTE: One option MUST be selected.</p></body></html>", 0));
550 #endif // QT_NO_TOOLTIP 552 MBComboBox->insertItems(0, QStringList()
553 << QApplication::translate(
"CaptureInterfacesDialog",
"kilobytes", 0)
554 << QApplication::translate(
"CaptureInterfacesDialog",
"megabytes", 0)
555 << QApplication::translate(
"CaptureInterfacesDialog",
"gigabytes", 0)
557 #ifndef QT_NO_TOOLTIP 558 MBComboBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"If the selected file size is exceeded, capturing switches to the next file.\n" 559 "PLEASE NOTE: One option MUST be selected.", 0));
560 #endif // QT_NO_TOOLTIP 561 SecsComboBox->clear();
562 SecsComboBox->insertItems(0, QStringList()
563 << QApplication::translate(
"CaptureInterfacesDialog",
"seconds", 0)
564 << QApplication::translate(
"CaptureInterfacesDialog",
"minutes", 0)
565 << QApplication::translate(
"CaptureInterfacesDialog",
"hours", 0)
567 #ifndef QT_NO_TOOLTIP 568 SecsComboBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"If the selected file size is exceeded, capturing switches to the next file.\n" 569 "PLEASE NOTE: One option MUST be selected.", 0));
570 #endif // QT_NO_TOOLTIP 571 #ifndef QT_NO_TOOLTIP 572 SecsSpinBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"If the selected file size is exceeded, capturing switches to the next file.\n" 573 "PLEASE NOTE: One option MUST be selected.", 0));
574 #endif // QT_NO_TOOLTIP 575 MBCheckBox->setText(QString());
576 SecsCheckBox->setText(QString());
577 #ifndef QT_NO_TOOLTIP 578 RbCheckBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"<html><head/><body><p>After capturing has switched to the next file and the given number of files has exceeded, the oldest file will be removed.</p></body></html>", 0));
579 #endif // QT_NO_TOOLTIP 580 RbCheckBox->setText(QApplication::translate(
"CaptureInterfacesDialog",
"Use a ring buffer with ", 0));
581 label_3->setText(QApplication::translate(
"CaptureInterfacesDialog",
"files", 0));
582 tabWidget->setTabText(tabWidget->indexOf(outputTab), QApplication::translate(
"CaptureInterfacesDialog",
"Output", 0));
583 groupBox->setTitle(QApplication::translate(
"CaptureInterfacesDialog",
"Display Options", 0));
584 #ifndef QT_NO_TOOLTIP 585 cbUpdatePacketsRT->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"<html><head/><body><p>Using this option will show the captured packets immediately on the main screen. Please note: this will slow down capturing, so increased packet drops might appear.</p></body></html>", 0));
586 #endif // QT_NO_TOOLTIP 587 cbUpdatePacketsRT->setText(QApplication::translate(
"CaptureInterfacesDialog",
"Update list of packets in real-time", 0));
588 #ifndef QT_NO_TOOLTIP 589 cbAutoScroll->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"<html><head/><body><p>This will scroll the "Packet List" automatically to the latest captured packet, when the "Update list of packets in real-time" option is used.</p></body></html>", 0));
590 #endif // QT_NO_TOOLTIP 591 cbAutoScroll->setText(QApplication::translate(
"CaptureInterfacesDialog",
"Automatically scroll during live capture", 0));
592 #ifndef QT_NO_TOOLTIP 593 cbExtraCaptureInfo->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"<html><head/><body><p>Show the capture info dialog while capturing.</p></body></html>", 0));
594 #endif // QT_NO_TOOLTIP 595 cbExtraCaptureInfo->setText(QApplication::translate(
"CaptureInterfacesDialog",
"Show extra capture information dialog", 0));
596 groupBox_2->setTitle(QApplication::translate(
"CaptureInterfacesDialog",
"Name Resolution", 0));
597 #ifndef QT_NO_TOOLTIP 598 cbResolveMacAddresses->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"Perform MAC layer name resolution while capturing.", 0));
599 #endif // QT_NO_TOOLTIP 600 cbResolveMacAddresses->setText(QApplication::translate(
"CaptureInterfacesDialog",
"Resolve MAC Addresses", 0));
601 #ifndef QT_NO_TOOLTIP 602 cbResolveNetworkNames->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"<html><head/><body><p>Perform network layer name resolution while capturing.</p></body></html>", 0));
603 #endif // QT_NO_TOOLTIP 604 cbResolveNetworkNames->setText(QApplication::translate(
"CaptureInterfacesDialog",
"Resolve network names", 0));
605 #ifndef QT_NO_TOOLTIP 606 cbResolveTransportNames->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"Perform transport layer name resolution while capturing.", 0));
607 #endif // QT_NO_TOOLTIP 608 cbResolveTransportNames->setText(QApplication::translate(
"CaptureInterfacesDialog",
"Resolve transport names", 0));
609 gbStopCaptureAuto->setTitle(QApplication::translate(
"CaptureInterfacesDialog",
"Stop capture automatically after\342\200\246", 0));
610 #ifndef QT_NO_TOOLTIP 611 stopPktSpinBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"Stop capturing after the specified number of packets have been captured.", 0));
612 #endif // QT_NO_TOOLTIP 613 #ifndef QT_NO_TOOLTIP 614 stopMBSpinBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"Stop capturing after the specified amount of data has been captured.", 0));
615 #endif // QT_NO_TOOLTIP 616 #ifndef QT_NO_TOOLTIP 617 stopMBCheckBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"<html><head/><body><p>Stop capturing after the specified amount of data has been captured.</p></body></html>", 0));
618 #endif // QT_NO_TOOLTIP 619 stopMBCheckBox->setText(QString());
620 label_7->setText(QApplication::translate(
"CaptureInterfacesDialog",
"packets", 0));
621 #ifndef QT_NO_TOOLTIP 622 stopSecsCheckBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"Stop capturing after the specified amount of time has passed.", 0));
623 #endif // QT_NO_TOOLTIP 624 stopSecsCheckBox->setText(QString());
625 stopSecsComboBox->clear();
626 stopSecsComboBox->insertItems(0, QStringList()
627 << QApplication::translate(
"CaptureInterfacesDialog",
"seconds", 0)
628 << QApplication::translate(
"CaptureInterfacesDialog",
"minutes", 0)
629 << QApplication::translate(
"CaptureInterfacesDialog",
"hours", 0)
631 #ifndef QT_NO_TOOLTIP 632 stopSecsComboBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"Stop capturing after the specified amount of time has passed.", 0));
633 #endif // QT_NO_TOOLTIP 634 #ifndef QT_NO_TOOLTIP 635 stopPktCheckBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"<html><head/><body><p>Stop capturing after the specified number of packets have been captured.</p></body></html>", 0));
636 #endif // QT_NO_TOOLTIP 637 stopPktCheckBox->setText(QString());
638 stopMBComboBox->clear();
639 stopMBComboBox->insertItems(0, QStringList()
640 << QApplication::translate(
"CaptureInterfacesDialog",
"kilobytes", 0)
641 << QApplication::translate(
"CaptureInterfacesDialog",
"megabytes", 0)
642 << QApplication::translate(
"CaptureInterfacesDialog",
"gigabytes", 0)
644 #ifndef QT_NO_TOOLTIP 645 stopMBComboBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"Stop capturing after the specified amount of data has been captured.", 0));
646 #endif // QT_NO_TOOLTIP 647 #ifndef QT_NO_TOOLTIP 648 stopSecsSpinBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"Stop capturing after the specified amount of time has passed.", 0));
649 #endif // QT_NO_TOOLTIP 650 #ifndef QT_NO_TOOLTIP 651 stopFilesSpinBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"Stop capturing after the specified number of packets have been captured.", 0));
652 #endif // QT_NO_TOOLTIP 653 label_8->setText(QApplication::translate(
"CaptureInterfacesDialog",
"files", 0));
654 #ifndef QT_NO_TOOLTIP 655 stopFilesCheckBox->setToolTip(QApplication::translate(
"CaptureInterfacesDialog",
"<html><head/><body><p>Stop capturing after the specified number of files have been created.</p></body></html>", 0));
656 #endif // QT_NO_TOOLTIP 657 stopFilesCheckBox->setText(QString());
658 tabWidget->setTabText(tabWidget->indexOf(optionsTab), QApplication::translate(
"CaptureInterfacesDialog",
"Options", 0));
659 Q_UNUSED(CaptureInterfacesDialog);
670 #endif // UI_CAPTURE_INTERFACES_DIALOG_H Definition: ui_capture_interfaces_dialog.h:665
Definition: ui_about_dialog.h:291
Definition: capture_filter_combo.h:18
Definition: ui_capture_interfaces_dialog.h:39