diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-05-22 15:33:38 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-05-23 00:31:08 +0000 |
commit | b18309c07f5a2a4212764676e0e19e3b3dfa9868 (patch) | |
tree | bcf7b1ac99751da6937f84673ac3ebb30890b445 /ui/qt/main_window.cpp | |
parent | b25faac85d806d7f3977e194ca6f520da8e5c030 (diff) | |
download | wireshark-b18309c07f5a2a4212764676e0e19e3b3dfa9868.tar.gz |
Qt: Update the status bar when saving.
Plumb in more capture file callbacks. Add common functions for setting
the status bar file information. Add and update code to match the GTK+
status bar behavior.
Make sure we update the capture file length when rescanning.
Bug: 10943
Change-Id: Ie84c7a57ee421d57ba3477f8dde3847aaafa1cd1
Reviewed-on: https://code.wireshark.org/review/8594
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/main_window.cpp')
-rw-r--r-- | ui/qt/main_window.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ui/qt/main_window.cpp b/ui/qt/main_window.cpp index a9681306ee..d86c5c7d25 100644 --- a/ui/qt/main_window.cpp +++ b/ui/qt/main_window.cpp @@ -316,11 +316,28 @@ MainWindow::MainWindow(QWidget *parent) : this, SLOT(captureFileReadStarted())); connect(&capture_file_, SIGNAL(captureFileReadFinished()), this, SLOT(captureFileReadFinished())); + connect(&capture_file_, SIGNAL(captureFileReloadStarted()), + this, SLOT(captureFileReloadStarted())); + connect(&capture_file_, SIGNAL(captureFileReloadFinished()), + this, SLOT(captureFileReadFinished())); + connect(&capture_file_, SIGNAL(captureFileRescanStarted()), + this, SLOT(captureFileRescanStarted())); + connect(&capture_file_, SIGNAL(captureFileRescanFinished()), + this, SLOT(captureFileReadFinished())); connect(&capture_file_, SIGNAL(captureFileClosing()), this, SLOT(captureFileClosing())); connect(&capture_file_, SIGNAL(captureFileClosed()), this, SLOT(captureFileClosed())); + connect(&capture_file_, SIGNAL(captureFileSaveStarted(QString)), + this, SLOT(captureFileSaveStarted(QString))); + connect(&capture_file_, SIGNAL(captureFileSaveFinished()), + main_ui_->statusBar, SLOT(popFileStatus())); + connect(&capture_file_, SIGNAL(captureFileSaveFailed()), + main_ui_->statusBar, SLOT(popFileStatus())); + connect(&capture_file_, SIGNAL(captureFileSaveStopped()), + main_ui_->statusBar, SLOT(popFileStatus())); + connect(&capture_file_, SIGNAL(setCaptureStopFlag(bool)), this, SLOT(setCaptureStopFlag(bool))); |