HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / ui / qt / sequence_dialog.h
blob8da1c46b67fd7b724feb36f579342cfefd736dd7
1 /* sequence_dialog.h
3 * $Id$
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
27 #include "config.h"
29 #include <glib.h>
31 #include "cfile.h"
33 #include "epan/packet.h"
35 #include "sequence_diagram.h"
37 #include <QDialog>
38 #include <QMenu>
40 namespace Ui {
41 class SequenceDialog;
44 class SequenceDialog : public QDialog
46 Q_OBJECT
48 public:
49 enum SequenceType { any, tcp, voip };
51 explicit SequenceDialog(QWidget *parent = 0, capture_file *cf = NULL, SequenceType type = any);
52 ~SequenceDialog();
54 signals:
55 void goToPacket(int packet_num);
57 public slots:
58 void setCaptureFile(capture_file *cf);
60 protected:
61 void showEvent(QShowEvent *event);
62 void resizeEvent(QResizeEvent *event);
63 void keyPressEvent(QKeyEvent *event);
64 void mouseReleaseEvent(QMouseEvent *event);
66 private slots:
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();
91 private:
92 Ui::SequenceDialog *ui;
93 SequenceDiagram *seq_diagram_;
94 capture_file *cap_file_;
95 seq_analysis_info_t seq_analysis_;
96 int num_items_;
97 guint32 packet_num_;
98 double one_em_;
99 int node_label_w_;
100 QMenu ctx_menu_;
102 void fillDiagram();
103 void panAxes(int x_pixels, int y_pixels);
104 void resetAxes(bool keep_lower = false);
108 #endif // SEQUENCE_DIALOG_H