summaryrefslogtreecommitdiff
path: root/ui/qt/main_window.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-05-22 15:33:38 -0700
committerGerald Combs <gerald@wireshark.org>2015-05-23 00:31:08 +0000
commitb18309c07f5a2a4212764676e0e19e3b3dfa9868 (patch)
treebcf7b1ac99751da6937f84673ac3ebb30890b445 /ui/qt/main_window.cpp
parentb25faac85d806d7f3977e194ca6f520da8e5c030 (diff)
downloadwireshark-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.cpp17
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)));