| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
stratoshark_io_graph_dialog.h
Go to the documentation of this file.
1
9
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
22 class StratosharkIOGraphDialog : public IOGraphDialog
23{
24 Q_OBJECT
25
26 public:
36 explicit StratosharkIOGraphDialog(QWidget &parent, CaptureFile &cf);
37
41 virtual ~StratosharkIOGraphDialog();
42
58 void initialize(QWidget &parent,
59 QString displayFilter = QString(),
60 io_graph_item_unit_t value_units = IOG_ITEM_UNIT_PACKETS,
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
72 protected:
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
CaptureFile
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
IOGraphDialog::IOGraphDialog
IOGraphDialog(QWidget &parent, CaptureFile &cf, const char *type_unit_name)
Construct an IOGraphDialog.
Definition io_graph_dialog.cpp:219
StratosharkIOGraphDialog::getXAxisName
virtual QString getXAxisName() const override
Returns the localised X-axis label for the graph.
Definition stratoshark_io_graph_dialog.cpp:65
StratosharkIOGraphDialog::getFilteredName
virtual QString getFilteredName() const override
Returns the display name used when saving filtered graph data.
Definition stratoshark_io_graph_dialog.cpp:60
StratosharkIOGraphDialog::~StratosharkIOGraphDialog
virtual ~StratosharkIOGraphDialog()
Destroys the dialog.
Definition stratoshark_io_graph_dialog.cpp:41
StratosharkIOGraphDialog::getHintText
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
StratosharkIOGraphDialog::getYAxisValue
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
StratosharkIOGraphDialog::getNoDataHint
virtual QString getNoDataHint() const override
Returns the hint string displayed when the graph contains no data.
Definition stratoshark_io_graph_dialog.cpp:85
StratosharkIOGraphDialog::StratosharkIOGraphDialog
StratosharkIOGraphDialog(QWidget &parent, CaptureFile &cf)
Constructs a StratosharkIOGraphDialog.
Definition stratoshark_io_graph_dialog.cpp:36
StratosharkIOGraphDialog::getYFieldName
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
StratosharkIOGraphDialog::getYAxisName
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
StratosharkIOGraphDialog::initialize
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
StratosharkIOGraphDialog::addDefaultGraph
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_dialog.h
io_graph_item_unit_t
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
@ IOG_ITEM_UNIT_PACKETS
Definition io_graph_item.h:31