X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fmainwindow.hpp;h=0904845f983e5362c8ad56ee76633dcac8ce5e6e;hb=cc9646457d64b0a74e59ef511c3ae3db345bdbe4;hp=ddad67050f03a5a78317ae00fd00d17750ad53c0;hpb=f4e57597347e47a4ea58fbdc7b0a22e07f1c0ede;p=pulseview.git diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index ddad670..0904845 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -26,6 +26,8 @@ #include #include +#include +#include #include "session.hpp" #include "views/viewbase.hpp" @@ -88,6 +90,8 @@ private: void restore_ui_settings(); + std::shared_ptr get_tab_session(int index) const; + private: void closeEvent(QCloseEvent *event); @@ -100,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(); @@ -117,8 +125,13 @@ 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_; QAction *const action_view_coloured_bg_;