diff options
author | Gerald Combs <gerald@wireshark.org> | 2016-05-25 12:02:40 -0700 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-05-26 04:18:41 +0000 |
commit | 33103f3fb29629eaa0dde641bc21f88ed9469189 (patch) | |
tree | 115b8999ded83623d7785ba3d995179525af1e70 /ui/qt/sequence_diagram.h | |
parent | aaa55513465689570366c8ed86bafe7048806fd1 (diff) | |
download | wireshark-33103f3fb29629eaa0dde641bc21f88ed9469189.tar.gz |
Qt: Add next / previous sequence shortcuts.
Add next (N) and previous (P) keyboard shortcuts. The GTK+ UI uses the
down and up keys, but we're already using those for panning the Y axis.
Add a scroll margin when using N and P.
Add mouse wheel and trackpad support.
Disable mouse dragging for now until we figure out how to limit it to
our axis boundaries.
Ping-Bug: 12419
Change-Id: I292319928db365206277bf2bb3e42e14ef811ff0
Reviewed-on: https://code.wireshark.org/review/15559
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/sequence_diagram.h')
-rw-r--r-- | ui/qt/sequence_diagram.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ui/qt/sequence_diagram.h b/ui/qt/sequence_diagram.h index 3ef72b604f..7a5a45f0c9 100644 --- a/ui/qt/sequence_diagram.h +++ b/ui/qt/sequence_diagram.h @@ -35,7 +35,7 @@ struct _seq_analysis_info; struct _seq_analysis_item; -// Most of this is probably unnecessary +// Some of this is probably unnecessary class WSCPSeqData { public: @@ -44,11 +44,8 @@ public: double key; struct _seq_analysis_item *value; }; -Q_DECLARE_TYPEINFO(WSCPSeqData, Q_MOVABLE_TYPE); typedef QMap<double, WSCPSeqData> WSCPSeqDataMap; -typedef QMapIterator<double, WSCPSeqData> WSCPSeqDataMapIterator; -typedef QMutableMapIterator<double, WSCPSeqData> WSCPSeqDataMutableMapIterator; class SequenceDiagram : public QCPAbstractPlottable { @@ -58,6 +55,10 @@ public: virtual ~SequenceDiagram(); // getters: + // Next / previous packet. + int adjacentPacket(bool next); + + double selectedKey() { return selected_key_; } // setters: void setData(struct _seq_analysis_info *sainfo); @@ -85,6 +86,7 @@ private: WSCPSeqDataMap *data_; struct _seq_analysis_info *sainfo_; guint32 selected_packet_; + double selected_key_; }; #endif // SEQUENCE_DIAGRAM_H |