X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fmainwindow.hpp;h=aa325e7373c0f3c21a414e35c0f045b07c8ffd9a;hb=93dbad3ed4954c3e0c140c26e867bda219cd683f;hp=92fba45f622a93d96337d0937fd0248a62a0435f;hpb=96dbf014dad1309d4ade9c14a8b46733e2f531c8;p=pulseview.git diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index 92fba45f..aa325e73 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -108,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); @@ -148,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: @@ -177,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