X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fmainwindow.hpp;h=0904845f983e5362c8ad56ee76633dcac8ce5e6e;hb=cc9646457d64b0a74e59ef511c3ae3db345bdbe4;hp=2448a3570d45b9f10187a480d6ef7a85dcf5a83d;hpb=cbf7b5db5c3c04b95daf77bc0e6dc112c15e0195;p=pulseview.git diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index 2448a35..0904845 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(); @@ -122,6 +129,8 @@ private: 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_;