3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef SCTP_GRAPH_BYTE_DIALOG_H
11 #define SCTP_GRAPH_BYTE_DIALOG_H
20 class SCTPGraphByteDialog
;
23 class QCPAbstractPlottable
;
25 struct _sctp_assoc_info
;
27 class SCTPGraphByteDialog
: public QDialog
32 explicit SCTPGraphByteDialog(QWidget
*parent
= 0, const _sctp_assoc_info
*assoc
= NULL
,
33 capture_file
*cf
= NULL
, int dir
= 0);
34 ~SCTPGraphByteDialog();
37 void setCaptureFile(capture_file
*cf
) { cap_file_
= cf
; }
40 void on_pushButton_4_clicked();
42 void graphClicked(QCPAbstractPlottable
* plottable
, int, QMouseEvent
* event
);
44 void on_saveButton_clicked();
47 Ui::SCTPGraphByteDialog
*ui
;
48 uint16_t selected_assoc_id
;
49 capture_file
*cap_file_
;
52 QVector
<double> xb
, yb
;
56 void drawBytesGraph(const _sctp_assoc_info
*selected_assoc
);
59 #endif // SCTP_GRAPH_DIALOG_H