5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #ifndef SEQUENCE_DIALOG_H
25 #define SEQUENCE_DIALOG_H
33 #include "epan/packet.h"
35 #include "sequence_diagram.h"
44 class SequenceDialog
: public QDialog
49 enum SequenceType
{ any
, tcp
, voip
};
51 explicit SequenceDialog(QWidget
*parent
= 0, capture_file
*cf
= NULL
, SequenceType type
= any
);
55 void goToPacket(int packet_num
);
58 void setCaptureFile(capture_file
*cf
);
61 void showEvent(QShowEvent
*event
);
62 void resizeEvent(QResizeEvent
*event
);
63 void keyPressEvent(QKeyEvent
*event
);
64 void mouseReleaseEvent(QMouseEvent
*event
);
67 void hScrollBarChanged(int value
);
68 void vScrollBarChanged(int value
);
69 void xAxisChanged(QCPRange range
);
70 void yAxisChanged(QCPRange range
);
71 void diagramClicked(QMouseEvent
*event
);
72 void mouseMoved(QMouseEvent
*event
);
73 void mouseReleased(QMouseEvent
*event
);
75 void on_buttonBox_accepted();
76 void on_resetButton_clicked();
77 void on_actionGoToPacket_triggered();
78 void on_showComboBox_currentIndexChanged(int index
);
79 void on_flowComboBox_currentIndexChanged(int index
);
80 void on_addressComboBox_currentIndexChanged(int index
);
81 void on_actionReset_triggered();
82 void on_actionMoveRight10_triggered();
83 void on_actionMoveLeft10_triggered();
84 void on_actionMoveUp10_triggered();
85 void on_actionMoveDown10_triggered();
86 void on_actionMoveRight1_triggered();
87 void on_actionMoveLeft1_triggered();
88 void on_actionMoveUp1_triggered();
89 void on_actionMoveDown1_triggered();
92 Ui::SequenceDialog
*ui
;
93 SequenceDiagram
*seq_diagram_
;
94 capture_file
*cap_file_
;
95 seq_analysis_info_t seq_analysis_
;
103 void panAxes(int x_pixels
, int y_pixels
);
104 void resetAxes(bool keep_lower
= false);
108 #endif // SEQUENCE_DIALOG_H