X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.hpp;h=bf0aa125b090ebe43ebd5951ad4f03b334cce884;hp=e86dd183bbee32192a6511b58bf29441c585be9c;hb=7d6984a5ccd1c7fee225240d7cfd5685796cfea0;hpb=ce11b2ea851633dc937881cdbd358541685b43be diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index e86dd183..bf0aa125 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -84,6 +84,7 @@ public: QAction* action_open() const; QAction* action_save_as() const; + QAction* action_save_selection_as() const; QAction* action_connect() const; QAction* action_quit() const; QAction* action_view_zoom_in() const; @@ -103,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: @@ -130,6 +132,8 @@ private: const std::map &options = std::map()); + void save_selection_to_file(); + private: void closeEvent(QCloseEvent *event); @@ -141,6 +145,7 @@ private Q_SLOTS: void on_actionOpen_triggered(); void on_actionSaveAs_triggered(); + void on_actionSaveSelectionAs_triggered(); void on_actionQuit_triggered(); void on_actionConnect_triggered(); @@ -182,6 +187,7 @@ private: QAction *const action_open_; QAction *const action_save_as_; + QAction *const action_save_selection_as_; QAction *const action_connect_; QAction *const action_quit_; QAction *const action_view_zoom_in_;