X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fmainwindow.hpp;h=aa325e7373c0f3c21a414e35c0f045b07c8ffd9a;hb=93dbad3ed4954c3e0c140c26e867bda219cd683f;hp=bf8be0ade1caa3b40caa765c721ebd71bcffc8ca;hpb=611c86259f66dd1766b10b1e1b671b0fadd51fe2;p=pulseview.git diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index bf8be0ad..aa325e73 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -92,8 +92,7 @@ public: void remove_session(shared_ptr session); - void add_session_with_file(string open_file_name, - string open_file_format, + void add_session_with_file(string open_file_name, string open_file_format, string open_setup_file_name); void add_default_session(); @@ -109,6 +108,9 @@ private: void save_ui_settings(); void restore_ui_settings(); + void zoom_current_view(double steps); + void scroll_to_start_or_end(bool start); + shared_ptr get_tab_session(int index) const; void closeEvent(QCloseEvent *event); @@ -149,6 +151,11 @@ private Q_SLOTS: void on_settingViewShowSamplingPoints_changed(const QVariant new_value); void on_settingViewShowAnalogMinorGrid_changed(const QVariant new_value); + void on_zoom_out_shortcut_triggered(); + void on_zoom_in_shortcut_triggered(); + void on_scroll_to_start_triggered(); + void on_scroll_to_end_triggered(); + void on_close_current_tab(); private: @@ -178,6 +185,12 @@ private: QShortcut *run_stop_shortcut_; QShortcut *close_application_shortcut_; QShortcut *close_current_tab_shortcut_; + QShortcut *zoom_in_shortcut_; + QShortcut *zoom_in_shortcut_2_; + QShortcut *zoom_out_shortcut_; + QShortcut *zoom_out_shortcut_2_; + QShortcut *home_shortcut_; + QShortcut *end_shortcut_; }; } // namespace pv