Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
plot_action.h
1/* @file
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
6 *
7 * Plots feature by Giovanni Musto <giovanni.musto@italdesign.it>
8 * Copyright (c) 2025-2026
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12
13#ifndef PLOT_ACTION_H
14#define PLOT_ACTION_H
15
17
18#include <QAction>
19
23class PlotAction : public QAction
24{
25 Q_OBJECT
26public:
33 explicit PlotAction(QObject* parent, const QString& y_field, bool filtered);
34
41 static QMenu* createMenu(const FieldInformation::HeaderInfo& headerinfo, QWidget* parent);
42
43signals:
49 void openPlotDialog(const QString& y_field, bool filtered);
50
51private:
53 QString y_field_;
54
56 bool filtered_;
57};
58
59#endif // PLOT_ACTION_H
An action for triggering a plot generation based on a specific field.
Definition plot_action.h:24
static QMenu * createMenu(const FieldInformation::HeaderInfo &headerinfo, QWidget *parent)
Creates a menu containing plot actions for a given field.
Definition plot_action.cpp:34
void openPlotDialog(const QString &y_field, bool filtered)
Signal emitted to open the plot dialog.
Structure holding header field information.
Definition field_information.h:36