X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fmainwindow.hpp;h=aa325e7373c0f3c21a414e35c0f045b07c8ffd9a;hb=9c91ad7f4c4814d7a4ba544938a94506b5018caf;hp=2a2dabcdc542cfd0d71490c99f3842e6852dc0c6;hpb=97378470ded88af84edaa0f1063d10d834475665;p=pulseview.git diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index 2a2dabcd..aa325e73 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -92,7 +92,8 @@ 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(); @@ -107,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); @@ -147,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: @@ -176,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