aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/capture_file.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@zing.org>2014-12-22 15:51:36 -0800
committerGerald Combs <gerald@wireshark.org>2014-12-29 01:42:13 +0000
commite8ec11fb7e67f83a7296f1e87451f3d7ddd5d85d (patch)
treeebac5b8251ca402bbb09dce014bdd883fd192f3b /ui/qt/capture_file.h
parentc1d9d93efb3581f11ea8115e5b1d6a4c7105a1d2 (diff)
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.h')
-rw-r--r--ui/qt/capture_file.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/qt/capture_file.h b/ui/qt/capture_file.h
index 224926b461..11418db2a1 100644
--- a/ui/qt/capture_file.h
+++ b/ui/qt/capture_file.h
@@ -50,9 +50,9 @@ public:
/** Return a filename suitable for use in a window title.
*
* @return One of: the basename of the capture file without an extension,
- * the basename followed by "[closed]", or "[no capture file]".
+ * the basename followed by "[closing", "[closed]", or "[no capture file]".
*/
- const QString & fileTitle() { return file_title_; }
+ const QString fileTitle() { return file_title_ + file_state_; }
/** Retap the capture file
*/
@@ -94,6 +94,7 @@ private:
capture_file *cap_file_;
QString file_title_;
+ QString file_state_;
};
#endif // CAPTURE_FILE_H