SCTPGraphArwndDialog: Detect max arwnd value when startArwnd is not set
[metze/wireshark/wip.git] / ui / qt / sctp_graph_arwnd_dialog.h
1 /* sctp_graph_arwn_dialog.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9
10 #ifndef SCTP_GRAPH_ARWND_DIALOG_H
11 #define SCTP_GRAPH_ARWND_DIALOG_H
12
13 #include <config.h>
14 #include <glib.h>
15
16 #include "cfile.h"
17
18 #include <QDialog>
19
20 namespace Ui {
21 class SCTPGraphArwndDialog;
22 }
23
24 class QCPAbstractPlottable;
25
26 struct _sctp_assoc_info;
27
28 class SCTPGraphArwndDialog : public QDialog
29 {
30     Q_OBJECT
31
32 public:
33     explicit SCTPGraphArwndDialog(QWidget *parent = 0, struct _sctp_assoc_info *assoc = NULL, capture_file *cf = NULL, int dir = 0);
34     ~SCTPGraphArwndDialog();
35
36 public slots:
37     void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
38
39 private slots:
40     void on_pushButton_4_clicked();
41
42     void graphClicked(QCPAbstractPlottable* plottable, QMouseEvent* event);
43
44     void on_saveButton_clicked();
45
46 private:
47     Ui::SCTPGraphArwndDialog *ui;
48     struct _sctp_assoc_info *selected_assoc;
49     capture_file *cap_file_;
50     int frame_num;
51     int direction;
52     guint32 startArwnd;
53     QVector<double> xa, ya;
54     QVector<guint32> fa;
55  //   QVector<QString> typeStrings;
56
57     void drawGraph();
58     void drawArwndGraph();
59 };
60
61 #endif // SCTP_GRAPH_DIALOG_H
62
63 /*
64  * Editor modelines
65  *
66  * Local Variables:
67  * c-basic-offset: 4
68  * tab-width: 8
69  * indent-tabs-mode: nil
70  * End:
71  *
72  * ex: set shiftwidth=4 tabstop=8 expandtab:
73  * :indentSize=4:tabSize=8:noTabs=true:
74  */