X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.hpp;h=0904845f983e5362c8ad56ee76633dcac8ce5e6e;hp=e9cecfb1deab73c4fcf3cb81578b3d5829c71c65;hb=cc9646457d64b0a74e59ef511c3ae3db345bdbe4;hpb=3b84fd0b5f02dedfb6f7160477a63467b613c502 diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index e9cecfb1..0904845f 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -26,6 +26,7 @@ #include #include +#include #include #include "session.hpp" @@ -89,6 +90,8 @@ private: void restore_ui_settings(); + std::shared_ptr get_tab_session(int index) const; + private: void closeEvent(QCloseEvent *event); @@ -101,12 +104,16 @@ private Q_SLOTS: Session *session); void on_focus_changed(); + void on_focused_session_changed(std::shared_ptr session); - void on_new_session(); + void on_new_session_clicked(); void on_session_name_changed(); void on_new_view(Session *session); void on_view_close_clicked(); + void on_tab_changed(int index); + void on_tab_close_requested(int index); + void on_actionViewStickyScrolling_triggered(); void on_actionViewColouredBg_triggered(); @@ -118,11 +125,12 @@ private: std::list< std::shared_ptr > sessions_; - std::map< std::shared_ptr, - std::shared_ptr > view_docks_; + std::map< QDockWidget*, std::shared_ptr > view_docks_; std::map< std::shared_ptr, QMainWindow*> session_windows_; + QWidget *static_tab_widget_; + QToolButton *new_session_button_; QTabWidget session_selector_; QAction *const action_view_sticky_scrolling_;