]> sigrok.org Git - pulseview.git/blobdiff - pv/toolbars/mainbar.hpp
Session: Fix issue #67 by improving error handling
[pulseview.git] / pv / toolbars / mainbar.hpp
index 04c344c5351088e8e636e50159adb1c536d3dc08..e4aa39b6743f1a8484beaced925079269befe8c4 100644 (file)
@@ -96,6 +96,7 @@ public:
 
        QAction* action_new_view() const;
        QAction* action_open() const;
+       QAction* action_save() const;
        QAction* action_save_as() const;
        QAction* action_save_selection_as() const;
        QAction* action_restore_setup() const;
@@ -120,7 +121,7 @@ private Q_SLOTS:
        void show_session_error(const QString text, const QString info_text);
 
        void export_file(shared_ptr<sigrok::OutputFormat> format,
-               bool selection_only = false);
+               bool selection_only = false, QString file_name = "");
        void import_file(shared_ptr<sigrok::InputFormat> format);
 
        void on_device_selected();
@@ -134,6 +135,7 @@ private Q_SLOTS:
        void on_actionNewView_triggered(QAction* action = nullptr);
 
        void on_actionOpen_triggered();
+       void on_actionSave_triggered();
        void on_actionSaveAs_triggered();
        void on_actionSaveSelectionAs_triggered();
 
@@ -143,6 +145,7 @@ private Q_SLOTS:
        void on_actionConnect_triggered();
 
        void on_add_decoder_clicked();
+       void on_add_math_signal_clicked();
 
 protected:
        void add_toolbar_widgets();
@@ -156,6 +159,7 @@ Q_SIGNALS:
 private:
        QAction *const action_new_view_;
        QAction *const action_open_;
+       QAction *const action_save_;
        QAction *const action_save_as_;
        QAction *const action_save_selection_as_;
        QAction *const action_restore_setup_;
@@ -182,6 +186,8 @@ private:
 #ifdef ENABLE_DECODE
        QToolButton *add_decoder_button_;
 #endif
+
+       QToolButton *add_math_signal_button_;
 };
 
 } // namespace toolbars