X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fmainwindow.hpp;h=e9cecfb1deab73c4fcf3cb81578b3d5829c71c65;hb=3b84fd0b5f02dedfb6f7160477a63467b613c502;hp=0d2db8cb7662c911746a9054b5f8aa0f578d8226;hpb=36a8185e7e594990d475e6a043d5924605ca0f58;p=pulseview.git diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index 0d2db8c..e9cecfb 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -26,9 +26,10 @@ #include #include +#include #include "session.hpp" -#include "view/viewwidget.hpp" +#include "views/viewbase.hpp" struct srd_decoder; @@ -57,6 +58,9 @@ class MainWindow : public QMainWindow { Q_OBJECT +private: + static const QString WindowTitle; + public: explicit MainWindow(DeviceManager &device_manager, std::string open_file_name = std::string(), @@ -69,10 +73,10 @@ public: QAction* action_view_coloured_bg() const; QAction* action_about() const; - std::shared_ptr get_active_view() const; + std::shared_ptr get_active_view() const; - std::shared_ptr add_view(const QString &title, - view::ViewType type, Session &session); + std::shared_ptr add_view(const QString &title, + views::ViewType type, Session &session); std::shared_ptr add_session(); @@ -93,10 +97,13 @@ private: virtual bool restoreState(const QByteArray &state, int version = 0); private Q_SLOTS: - void on_add_view(const QString &title, view::ViewType type, + void on_add_view(const QString &title, views::ViewType type, Session *session); + void on_focus_changed(); + void on_new_session(); + void on_session_name_changed(); void on_new_view(Session *session); void on_view_close_clicked(); @@ -112,7 +119,11 @@ private: std::list< std::shared_ptr > sessions_; std::map< std::shared_ptr, - std::shared_ptr > view_docks_; + std::shared_ptr > view_docks_; + + std::map< std::shared_ptr, QMainWindow*> session_windows_; + + QTabWidget session_selector_; QAction *const action_view_sticky_scrolling_; QAction *const action_view_coloured_bg_;