]> sigrok.org Git - pulseview.git/commitdiff
MainWindow: Add selection_only parameter to export_file()
authorSoeren Apel <redacted>
Wed, 4 Nov 2015 17:37:39 +0000 (18:37 +0100)
committerSoeren Apel <redacted>
Wed, 4 Nov 2015 17:37:39 +0000 (18:37 +0100)
pv/mainwindow.cpp
pv/mainwindow.hpp

index c3f8fdb8bad914e19fd010a153fb1294c6b67df0..aca5acf3dde3c72c2935e181e7dae147ecd2f18f 100644 (file)
@@ -223,10 +223,13 @@ void MainWindow::select_device(shared_ptr<devices::Device> device)
        }
 }
 
-void MainWindow::export_file(shared_ptr<OutputFormat> format)
+void MainWindow::export_file(shared_ptr<OutputFormat> format,
+       bool selection_only)
 {
        using pv::dialogs::StoreProgress;
 
+       (void)selection_only;
+
        // Stop any currently running capture session
        session_.stop_capture();
 
index 94fc092a940c278783629c77c41099fb7ed0fd7d..bf0aa125b090ebe43ebd5951ad4f03b334cce884 100644 (file)
@@ -104,7 +104,8 @@ public:
        void select_device(std::shared_ptr<devices::Device> device);
 
 public Q_SLOTS:
-       void export_file(std::shared_ptr<sigrok::OutputFormat> format);
+       void export_file(std::shared_ptr<sigrok::OutputFormat> format,
+               bool selection_only = false);
        void import_file(std::shared_ptr<sigrok::InputFormat> format);
 
 private: