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;
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();
void on_actionNewView_triggered(QAction* action = nullptr);
void on_actionOpen_triggered();
+ void on_actionSave_triggered();
void on_actionSaveAs_triggered();
void on_actionSaveSelectionAs_triggered();
void on_actionConnect_triggered();
void on_add_decoder_clicked();
+ void on_add_math_signal_clicked();
protected:
void add_toolbar_widgets();
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_;
#ifdef ENABLE_DECODE
QToolButton *add_decoder_button_;
#endif
+
+ QToolButton *add_math_signal_button_;
};
} // namespace toolbars