diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-09-04 23:15:59 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-09-04 23:15:59 +0000 |
commit | 03fd39d7f0c409a45e422d9142b48536ec5c8647 (patch) | |
tree | e8c1be0562459e4d302310d65cfd367b929e5564 /ui/qt/tcp_stream_dialog.h | |
parent | 1abd5a5965e3542c7dfcf6ec258daffe1d9fb504 (diff) |
Throughput graph updates.
GTK+: Fix what appears to be an off-by-one error in the MA period (21
segments instead of 20). Throw away our initial segment length instead
of subtracting it from the moving sum, which skews the sum.
Qt: Add the througput graph. Use bits/s for the throughput y axis. Let
the user switch between graph types. The dialog hangs when doing this. I
haven't been able to track down the cause. Remove some unused code.
Both: Tell the user that we're using a 20 segment moving average. Move
more routines to tap-tcp-stream.[ch].
svn path=/trunk/; revision=51759
Diffstat (limited to 'ui/qt/tcp_stream_dialog.h')
-rw-r--r-- | ui/qt/tcp_stream_dialog.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/ui/qt/tcp_stream_dialog.h b/ui/qt/tcp_stream_dialog.h index 129c1b9345..f9b874a9dd 100644 --- a/ui/qt/tcp_stream_dialog.h +++ b/ui/qt/tcp_stream_dialog.h @@ -52,6 +52,9 @@ public: signals: void goToPacket(int packet_num); +public slots: + void setCaptureFile(capture_file *cf); + protected: void keyPressEvent(QKeyEvent *event); @@ -60,18 +63,29 @@ private: capture_file *cap_file_; QMap<double, struct segment *> segment_map_; struct tcp_graph graph_; - QRectF data_range_; + QCPPlotTitle *title_; QCPItemTracer *tracer_; guint32 packet_num_; + double y_translate_mul_; + int num_dsegs_; + int num_acks_; + int num_sack_ranges_; + void fillGraph(); + void resetAxes(); + void initializeStevens(); + void initializeThroughput(); + QString streamDescription(); bool compareHeaders(struct segment *seg); void toggleTracerStyle(bool force_default = false); private slots: void graphClicked(QMouseEvent *event); void mouseMoved(QMouseEvent *event); + void translateYRange(const QCPRange &y_range1); void on_buttonBox_accepted(); + void on_graphTypeComboBox_currentIndexChanged(int index); }; #endif // TCP_STREAM_DIALOG_H |