9 #ifndef UI_CAPTURE_PREFERENCES_FRAME_H 10 #define UI_CAPTURE_PREFERENCES_FRAME_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/QFrame> 19 #include <QtWidgets/QHBoxLayout> 20 #include <QtWidgets/QHeaderView> 21 #include <QtWidgets/QLabel> 22 #include <QtWidgets/QSpacerItem> 23 #include <QtWidgets/QVBoxLayout> 30 QVBoxLayout *verticalLayout;
32 QHBoxLayout *horizontalLayout;
33 QSpacerItem *defaultInterfaceSpacer;
34 QComboBox *defaultInterfaceComboBox;
35 QCheckBox *capturePromModeCheckBox;
36 QCheckBox *capturePcapNgCheckBox;
37 QCheckBox *captureRealTimeCheckBox;
38 QCheckBox *captureAutoScrollCheckBox;
39 QCheckBox *captureNoExtcapCheckBox;
40 QSpacerItem *verticalSpacer;
44 if (CapturePreferencesFrame->objectName().isEmpty())
45 CapturePreferencesFrame->setObjectName(QStringLiteral(
"CapturePreferencesFrame"));
46 CapturePreferencesFrame->resize(354, 220);
47 CapturePreferencesFrame->setMinimumSize(QSize(0, 191));
48 CapturePreferencesFrame->setLineWidth(0);
49 verticalLayout =
new QVBoxLayout(CapturePreferencesFrame);
50 verticalLayout->setObjectName(QStringLiteral(
"verticalLayout"));
51 label =
new QLabel(CapturePreferencesFrame);
52 label->setObjectName(QStringLiteral(
"label"));
54 verticalLayout->addWidget(label);
56 horizontalLayout =
new QHBoxLayout();
57 horizontalLayout->setObjectName(QStringLiteral(
"horizontalLayout"));
58 defaultInterfaceSpacer =
new QSpacerItem(18, 20, QSizePolicy::Fixed, QSizePolicy::Minimum);
60 horizontalLayout->addItem(defaultInterfaceSpacer);
62 defaultInterfaceComboBox =
new QComboBox(CapturePreferencesFrame);
63 defaultInterfaceComboBox->setObjectName(QStringLiteral(
"defaultInterfaceComboBox"));
64 defaultInterfaceComboBox->setEditable(
true);
66 horizontalLayout->addWidget(defaultInterfaceComboBox);
69 verticalLayout->addLayout(horizontalLayout);
71 capturePromModeCheckBox =
new QCheckBox(CapturePreferencesFrame);
72 capturePromModeCheckBox->setObjectName(QStringLiteral(
"capturePromModeCheckBox"));
74 verticalLayout->addWidget(capturePromModeCheckBox);
76 capturePcapNgCheckBox =
new QCheckBox(CapturePreferencesFrame);
77 capturePcapNgCheckBox->setObjectName(QStringLiteral(
"capturePcapNgCheckBox"));
79 verticalLayout->addWidget(capturePcapNgCheckBox);
81 captureRealTimeCheckBox =
new QCheckBox(CapturePreferencesFrame);
82 captureRealTimeCheckBox->setObjectName(QStringLiteral(
"captureRealTimeCheckBox"));
84 verticalLayout->addWidget(captureRealTimeCheckBox);
86 captureAutoScrollCheckBox =
new QCheckBox(CapturePreferencesFrame);
87 captureAutoScrollCheckBox->setObjectName(QStringLiteral(
"captureAutoScrollCheckBox"));
89 verticalLayout->addWidget(captureAutoScrollCheckBox);
91 captureNoExtcapCheckBox =
new QCheckBox(CapturePreferencesFrame);
92 captureNoExtcapCheckBox->setObjectName(QStringLiteral(
"captureNoExtcapCheckBox"));
94 verticalLayout->addWidget(captureNoExtcapCheckBox);
96 verticalSpacer =
new QSpacerItem(20, 3, QSizePolicy::Minimum, QSizePolicy::Expanding);
98 verticalLayout->addItem(verticalSpacer);
101 retranslateUi(CapturePreferencesFrame);
103 QMetaObject::connectSlotsByName(CapturePreferencesFrame);
106 void retranslateUi(QFrame *CapturePreferencesFrame)
108 CapturePreferencesFrame->setWindowTitle(QApplication::translate(
"CapturePreferencesFrame",
"Frame", 0));
109 label->setText(QApplication::translate(
"CapturePreferencesFrame",
"Default interface", 0));
110 #ifndef QT_NO_TOOLTIP 111 capturePromModeCheckBox->setToolTip(QApplication::translate(
"CapturePreferencesFrame",
"<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));
112 #endif // QT_NO_TOOLTIP 113 capturePromModeCheckBox->setText(QApplication::translate(
"CapturePreferencesFrame",
"Capture packets in promiscuous mode", 0));
114 #ifndef QT_NO_TOOLTIP 115 capturePcapNgCheckBox->setToolTip(QApplication::translate(
"CapturePreferencesFrame",
"<html><head/><body><p>Capture packets in the next-generation capture file format.</p></body></html>", 0));
116 #endif // QT_NO_TOOLTIP 117 capturePcapNgCheckBox->setText(QApplication::translate(
"CapturePreferencesFrame",
"Capture packets in pcapng format", 0));
118 #ifndef QT_NO_TOOLTIP 119 captureRealTimeCheckBox->setToolTip(QApplication::translate(
"CapturePreferencesFrame",
"<html><head/><body><p>Update the list of packets while capture is in progress. This can result in dropped packets on high-speed networks.</p></body></html>", 0));
120 #endif // QT_NO_TOOLTIP 121 captureRealTimeCheckBox->setText(QApplication::translate(
"CapturePreferencesFrame",
"Update list of packets in real time", 0));
122 #ifndef QT_NO_TOOLTIP 123 captureAutoScrollCheckBox->setToolTip(QApplication::translate(
"CapturePreferencesFrame",
"<html><head/><body><p>Keep the packet list scrolled to the bottom while capturing.</p></body></html>", 0));
124 #endif // QT_NO_TOOLTIP 125 captureAutoScrollCheckBox->setText(QApplication::translate(
"CapturePreferencesFrame",
"Automatic scrolling in live capture", 0));
126 captureNoExtcapCheckBox->setText(QApplication::translate(
"CapturePreferencesFrame",
"Disable external capture interfaces", 0));
137 #endif // UI_CAPTURE_PREFERENCES_FRAME_H Definition: capture_preferences_frame.h:21
Definition: ui_about_dialog.h:291
Definition: ui_capture_preferences_frame.h:27
Definition: ui_capture_preferences_frame.h:132