diff options
author | Gerald Combs <gerald@wireshark.org> | 2014-12-29 14:12:43 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-12-30 20:44:02 +0000 |
commit | 3b578619098dc86e69a2ddbbc5b10d0fdb062537 (patch) | |
tree | efccb738368246c11d30a6c5a76a757a9357f612 /ui/qt/follow_stream_dialog.h | |
parent | 97f5f39c96eaeddbc05906abcf4d1a7fadb5a69c (diff) |
Qt: More WiresharkDialog conversions.
Convert the Follow Stream and Export Objects dialogs.
Change-Id: I8a4dda634f2f0475a24cf09601f76fb52069fe50
Reviewed-on: https://code.wireshark.org/review/6126
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/follow_stream_dialog.h')
-rw-r--r-- | ui/qt/follow_stream_dialog.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/ui/qt/follow_stream_dialog.h b/ui/qt/follow_stream_dialog.h index 9a2fa55e37..107767d446 100644 --- a/ui/qt/follow_stream_dialog.h +++ b/ui/qt/follow_stream_dialog.h @@ -36,7 +36,8 @@ #include "ui/follow.h" -#include <QDialog> +#include "wireshark_dialog.h" + #include <QFile> #include <QMap> #include <QPushButton> @@ -60,18 +61,18 @@ namespace Ui { class FollowStreamDialog; } -class FollowStreamDialog : public QDialog +class FollowStreamDialog : public WiresharkDialog { Q_OBJECT public: - explicit FollowStreamDialog(QWidget *parent = 0, follow_type_t type = FOLLOW_TCP, capture_file *cf = NULL); + explicit FollowStreamDialog(QWidget &parent, CaptureFile &cf, follow_type_t type = FOLLOW_TCP); ~FollowStreamDialog(); bool follow(QString previous_filter = QString(), bool use_stream_index = false); public slots: - void setCaptureFile(capture_file *cf); + void captureFileClosing(); protected: bool eventFilter(QObject *obj, QEvent *event); @@ -102,7 +103,8 @@ signals: private: void removeStreamControls(); void resetStream(void); - void updateWidgets(bool enable = true); + void updateWidgets(bool follow_in_progress); + void updateWidgets() { updateWidgets(false); } // Needed for WiresharkDialog? frs_return_t showBuffer(char *buffer, size_t nchars, gboolean is_from_server, guint32 packet_num, guint32 *global_pos); @@ -117,7 +119,6 @@ private: Ui::FollowStreamDialog *ui; - capture_file *cap_file_; QPushButton *b_filter_out_; QPushButton *b_find_; QPushButton *b_print_; |