diff options
author | Gerald Combs <gerald@zing.org> | 2014-12-22 15:51:36 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-12-29 01:42:13 +0000 |
commit | e8ec11fb7e67f83a7296f1e87451f3d7ddd5d85d (patch) | |
tree | ebac5b8251ca402bbb09dce014bdd883fd192f3b /ui/qt/capture_file_properties_dialog.h | |
parent | c1d9d93efb3581f11ea8115e5b1d6a4c7105a1d2 (diff) | |
download | wireshark-e8ec11fb7e67f83a7296f1e87451f3d7ddd5d85d.tar.gz |
Qt: Add a WiresharkDialog convenience class.
Add WiresharkDialog, a common base class for dialogs centered around
capture files. Make it a parent of Capture File Properties, Traffic
Table, Conversations, and Endpoints.
Rename CaptureFile::read_only_ to file_closed_. Add methods to
WiresharkApplication for generating consistent window titles.
Change-Id: Idc771556d8192e60f85dddc08fc4757698dee257
Reviewed-on: https://code.wireshark.org/review/6097
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/capture_file_properties_dialog.h')
-rw-r--r-- | ui/qt/capture_file_properties_dialog.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/ui/qt/capture_file_properties_dialog.h b/ui/qt/capture_file_properties_dialog.h index 485d7920c5..09272a4994 100644 --- a/ui/qt/capture_file_properties_dialog.h +++ b/ui/qt/capture_file_properties_dialog.h @@ -26,11 +26,11 @@ #include "config.h" +#include <glib.h> + #include <string.h> #include <time.h> -#include "qt_ui_utils.h" - #include <epan/strutil.h> #include <wiretap/wtap.h> @@ -41,8 +41,9 @@ #include "ui/capture_globals.h" #endif +#include "wireshark_dialog.h" + #include <QClipboard> -#include <QDialog> namespace Ui { class CaptureFilePropertiesDialog; @@ -50,17 +51,14 @@ class CaptureFilePropertiesDialog; class QAbstractButton; -class CaptureFilePropertiesDialog : public QDialog +class CaptureFilePropertiesDialog : public WiresharkDialog { Q_OBJECT public: - explicit CaptureFilePropertiesDialog(QWidget *parent = 0, capture_file *cf = NULL); + explicit CaptureFilePropertiesDialog(QWidget &parent, CaptureFile& capture_file); ~CaptureFilePropertiesDialog(); -public slots: - void setCaptureFile(capture_file *cf); - signals: void captureCommentChanged(); @@ -70,7 +68,6 @@ protected slots: private: Ui::CaptureFilePropertiesDialog *ui; - capture_file *cap_file_; QString timeToString(time_t ti_time); QString summaryToHtml(); |