10#ifndef DISTRIBUTIONDIALOG_H
11#define DISTRIBUTIONDIALOG_H
22class QCPAbstractPlottable;
28class QSortFilterProxyModel;
31class DistributionDialog;
77 void showIOGraph(
const QString &displayFilter,
const QVector<QString> &filters,
78 const QVector<QString> &names);
104 bool eventFilter(QObject *obj, QEvent *event)
override;
108 enum class FlavorText {
111 MultipleObservations,
121 static QString flavorText(FlavorText
id);
129 QStringList summaryTexts()
const;
143 QList<int> sourceRows(
bool selected_only)
const;
148 void updatePercentDelegate();
162 void chartBarClicked(QCPAbstractPlottable *plottable,
int dataIndex);
168 static void tapReset(
void *tapdata);
189 static void tapDraw(
void *tapdata);
191 Ui::DistributionDialog *ui;
193 QSortFilterProxyModel *proxy_;
196 QLabel *empty_hint_label_;
197 QPushButton *copy_button_;
198 QPushButton *save_button_;
199 QPushButton *io_graph_button_;
200 QString applied_limit_;
201 QCPBars *chart_bars_;
202 QList<int> chart_rows_;
215 static constexpr int chartRows = 10;
233 void updateSummary();
239 void showContextMenu(
const QPoint &pos);
249 void on_actionCopy_triggered();
254 void on_actionSaveAs_triggered();
260 void on_actionShowInIOGraph_triggered();
266 void on_resolveCheckBox_toggled(
bool checked);
272 void on_chartCheckBox_toggled(
bool checked);
277 void on_buttonBox_helpRequested();
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
void showIOGraph(const QString &displayFilter, const QVector< QString > &filters, const QVector< QString > &names)
Emitted to open an I/O Graph with one graph per selected row.
~DistributionDialog()
Destroys the dialog.
Definition distribution_dialog.cpp:145
DistributionDialog(QWidget &parent, CaptureFile &cf, const QString &fields)
Constructs the Distribution dialog.
Definition distribution_dialog.cpp:42
void endRetapPackets() override
Publishes the final counts of a retap, also when no packet matched and therefore no draw happened.
Definition distribution_dialog.cpp:277
bool eventFilter(QObject *obj, QEvent *event) override
Relayouts the chart when the plot is resized.
Definition distribution_dialog.cpp:304
void filterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type)
Emitted when a filter action of the context menu is triggered.
void updateWidgets() override
Updates the enabled state of the inputs, buttons and actions from the field list, the display filter,...
Definition distribution_dialog.cpp:246
void beginRetapPackets() override
Disables the inputs while a retap runs.
Definition distribution_dialog.cpp:271
Table model of the distinct value combinations of the counted fields.
Definition distribution_model.h:61
Action
Defines an action to be taken with a filter.
Definition filter_action.h:30
ActionType
Defines how the new filter should be combined with the existing one.
Definition filter_action.h:43
Delegate for drawing a percentage bar in an item view.
Definition percent_bar_delegate.h:40
WiresharkDialog(QWidget &parent, CaptureFile &capture_file)
Constructs a new WiresharkDialog object.
Definition wireshark_dialog.cpp:30
Represents the metadata and indexing information for a single captured frame.
Definition packet_info.h:43
A statistics table: title, headers and one list of cell values per row.
Definition stat_table_exporter.h:43
Holds all state for the dissection of a single byte array, including session, buffer,...
Definition epan_dissect.h:28
tap_packet_status
Definition tap.h:22