2013-10-24 22:52:30 +00:00
|
|
|
/* sequence_dialog.h
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SEQUENCE_DIALOG_H
|
|
|
|
#define SEQUENCE_DIALOG_H
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
#include "cfile.h"
|
|
|
|
|
|
|
|
#include "epan/packet.h"
|
|
|
|
|
2014-11-19 00:21:42 +00:00
|
|
|
#include "ui/tap-sequence-analysis.h"
|
|
|
|
|
|
|
|
#include "qcustomplot.h"
|
2014-12-29 19:42:01 +00:00
|
|
|
#include "wireshark_dialog.h"
|
2013-10-24 22:52:30 +00:00
|
|
|
|
2013-11-12 01:08:08 +00:00
|
|
|
#include <QMenu>
|
2013-10-24 22:52:30 +00:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class SequenceDialog;
|
|
|
|
}
|
|
|
|
|
2014-11-19 00:21:42 +00:00
|
|
|
class SequenceDiagram;
|
|
|
|
|
2014-12-29 19:42:01 +00:00
|
|
|
class SequenceDialog : public WiresharkDialog
|
2013-10-24 22:52:30 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
2014-02-25 20:42:35 +00:00
|
|
|
|
2013-10-24 22:52:30 +00:00
|
|
|
public:
|
2014-12-29 19:42:01 +00:00
|
|
|
explicit SequenceDialog(QWidget &parent, CaptureFile &cf, seq_analysis_info_t *sainfo = NULL);
|
2013-10-24 22:52:30 +00:00
|
|
|
~SequenceDialog();
|
2014-02-25 20:42:35 +00:00
|
|
|
|
2013-10-24 22:52:30 +00:00
|
|
|
signals:
|
|
|
|
void goToPacket(int packet_num);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void showEvent(QShowEvent *event);
|
|
|
|
void resizeEvent(QResizeEvent *event);
|
2013-11-12 01:08:08 +00:00
|
|
|
void keyPressEvent(QKeyEvent *event);
|
2013-10-25 23:16:56 +00:00
|
|
|
void mouseReleaseEvent(QMouseEvent *event);
|
2013-10-24 22:52:30 +00:00
|
|
|
|
|
|
|
private slots:
|
2014-12-29 19:42:01 +00:00
|
|
|
void updateWidgets();
|
2013-10-25 23:16:56 +00:00
|
|
|
void hScrollBarChanged(int value);
|
|
|
|
void vScrollBarChanged(int value);
|
|
|
|
void xAxisChanged(QCPRange range);
|
|
|
|
void yAxisChanged(QCPRange range);
|
|
|
|
void diagramClicked(QMouseEvent *event);
|
|
|
|
void mouseMoved(QMouseEvent *event);
|
|
|
|
void mouseReleased(QMouseEvent *event);
|
|
|
|
|
2013-11-12 01:08:08 +00:00
|
|
|
void on_buttonBox_accepted();
|
2013-10-24 22:52:30 +00:00
|
|
|
void on_resetButton_clicked();
|
2013-10-25 23:16:56 +00:00
|
|
|
void on_actionGoToPacket_triggered();
|
2013-11-11 22:00:48 +00:00
|
|
|
void on_showComboBox_currentIndexChanged(int index);
|
|
|
|
void on_flowComboBox_currentIndexChanged(int index);
|
|
|
|
void on_addressComboBox_currentIndexChanged(int index);
|
2013-11-12 01:08:08 +00:00
|
|
|
void on_actionReset_triggered();
|
|
|
|
void on_actionMoveRight10_triggered();
|
|
|
|
void on_actionMoveLeft10_triggered();
|
|
|
|
void on_actionMoveUp10_triggered();
|
|
|
|
void on_actionMoveDown10_triggered();
|
|
|
|
void on_actionMoveRight1_triggered();
|
|
|
|
void on_actionMoveLeft1_triggered();
|
|
|
|
void on_actionMoveUp1_triggered();
|
|
|
|
void on_actionMoveDown1_triggered();
|
2013-11-11 22:00:48 +00:00
|
|
|
|
2013-10-24 22:52:30 +00:00
|
|
|
private:
|
|
|
|
Ui::SequenceDialog *ui;
|
|
|
|
SequenceDiagram *seq_diagram_;
|
2014-11-19 00:21:42 +00:00
|
|
|
seq_analysis_info_t *sainfo_;
|
2013-10-25 23:16:56 +00:00
|
|
|
int num_items_;
|
|
|
|
guint32 packet_num_;
|
2013-10-24 22:52:30 +00:00
|
|
|
double one_em_;
|
2013-10-25 23:16:56 +00:00
|
|
|
int node_label_w_;
|
2013-11-12 01:08:08 +00:00
|
|
|
QMenu ctx_menu_;
|
2013-10-24 22:52:30 +00:00
|
|
|
|
|
|
|
void fillDiagram();
|
2013-11-12 01:08:08 +00:00
|
|
|
void panAxes(int x_pixels, int y_pixels);
|
2013-10-24 22:52:30 +00:00
|
|
|
void resetAxes(bool keep_lower = false);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SEQUENCE_DIALOG_H
|
2013-11-14 17:37:40 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|