X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fmainwindow.hpp;h=91a0bc5d69d971076f8191b01f9d53316864acfc;hb=7cd2b5f35bbc29136173acbc4c6d9b5f4e8f7606;hp=208cbe4367e163062b59fb8fc05e6e3695da219a;hpb=0fb9d6454c286869d71621b69515802903735057;p=pulseview.git diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index 208cbe4..91a0bc5 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -30,6 +30,7 @@ #include #include "session.hpp" +#include "view/viewwidget.hpp" struct srd_decoder; @@ -100,6 +101,11 @@ public: QMenu* menu_decoder_add() const; #endif + std::shared_ptr get_active_view() const; + + std::shared_ptr add_view(const QString &title, + view::ViewType type, Session &session); + void run_stop(); void select_device(std::shared_ptr device); @@ -181,10 +187,8 @@ private: Session session_; - pv::view::View *view_; - - QWidget *central_widget_; - QVBoxLayout *vertical_layout_; + std::map< std::shared_ptr, + std::shared_ptr > view_docks_; toolbars::MainBar *main_bar_;