From: Soeren Apel Date: Wed, 4 Nov 2015 17:37:39 +0000 (+0100) Subject: MainWindow: Add selection_only parameter to export_file() X-Git-Tag: pulseview-0.3.0~52 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=7d6984a5ccd1c7fee225240d7cfd5685796cfea0 MainWindow: Add selection_only parameter to export_file() --- diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index c3f8fdb8..aca5acf3 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -223,10 +223,13 @@ void MainWindow::select_device(shared_ptr device) } } -void MainWindow::export_file(shared_ptr format) +void MainWindow::export_file(shared_ptr format, + bool selection_only) { using pv::dialogs::StoreProgress; + (void)selection_only; + // Stop any currently running capture session session_.stop_capture(); diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index 94fc092a..bf0aa125 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -104,7 +104,8 @@ public: void select_device(std::shared_ptr device); public Q_SLOTS: - void export_file(std::shared_ptr format); + void export_file(std::shared_ptr format, + bool selection_only = false); void import_file(std::shared_ptr format); private: