Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
stratoshark_io_graph_dialog.h
Go to the documentation of this file.
1
10#ifndef STRATOSHARK_IO_GRAPH_DIALOG_H
11#define STRATOSHARK_IO_GRAPH_DIALOG_H
12
13#include <config.h>
14#include "io_graph_dialog.h"
15
16
23{
24 Q_OBJECT
25
26public:
36 explicit StratosharkIOGraphDialog(QWidget &parent, CaptureFile &cf);
37
42
58 void initialize(QWidget &parent,
59 QString displayFilter = QString(),
61 QString yfield = QString(),
62 bool is_sibling_dialog = false,
63 const QVector<QString> convFilters = QVector<QString>());
64
70 virtual void addDefaultGraph(bool enabled, int idx = 0) override;
71
72protected:
77 virtual QString getFilteredName() const override;
78
83 virtual QString getXAxisName() const override;
84
90 virtual const char *getYAxisName(io_graph_item_unit_t value_units) const override;
91
98 virtual QString getYFieldName(io_graph_item_unit_t value_units, const QString &yfield) const override;
99
105 virtual int getYAxisValue(const QString &data) override;
106
111 virtual QString getNoDataHint() const override;
112
118 virtual QString getHintText(unsigned num_items) const override;
119};
120
121#endif // STRATOSHARK_IO_GRAPH_DIALOG_H
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
Dialog for configuring and displaying I/O throughput graphs.
Definition io_graph_dialog.h:116
Stratoshark-specific I/O graph dialog, overriding axis labels, default graphs, and hint strings to us...
Definition stratoshark_io_graph_dialog.h:23
virtual QString getXAxisName() const override
Returns the localised X-axis label for the graph.
Definition stratoshark_io_graph_dialog.cpp:65
virtual QString getFilteredName() const override
Returns the display name used when saving filtered graph data.
Definition stratoshark_io_graph_dialog.cpp:60
virtual ~StratosharkIOGraphDialog()
Destroys the dialog.
Definition stratoshark_io_graph_dialog.cpp:41
virtual QString getHintText(unsigned num_items) const override
Returns the status-bar hint string summarising the graph contents.
Definition stratoshark_io_graph_dialog.cpp:90
virtual int getYAxisValue(const QString &data) override
Parses a Y-axis value from a raw data string in the graph model.
Definition stratoshark_io_graph_dialog.cpp:80
virtual QString getNoDataHint() const override
Returns the hint string displayed when the graph contains no data.
Definition stratoshark_io_graph_dialog.cpp:85
virtual QString getYFieldName(io_graph_item_unit_t value_units, const QString &yfield) const override
Returns the default Y-axis field name for the given unit and explicit field override.
Definition stratoshark_io_graph_dialog.cpp:75
virtual const char * getYAxisName(io_graph_item_unit_t value_units) const override
Returns the localised Y-axis label for the given unit type.
Definition stratoshark_io_graph_dialog.cpp:70
void initialize(QWidget &parent, QString displayFilter=QString(), io_graph_item_unit_t value_units=IOG_ITEM_UNIT_PACKETS, QString yfield=QString(), bool is_sibling_dialog=false, const QVector< QString > convFilters=QVector< QString >())
Completes dialog initialization after construction.
Definition stratoshark_io_graph_dialog.cpp:45
virtual void addDefaultGraph(bool enabled, int idx=0) override
Adds a Stratoshark-appropriate default graph to the dialog.
Definition stratoshark_io_graph_dialog.cpp:50
io_graph_item_unit_t
Selects the Y-axis value unit or aggregate calculation mode for an I/O graph plot.
Definition io_graph_item.h:29
@ IOG_ITEM_UNIT_PACKETS
Definition io_graph_item.h:31