X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=inline;f=pv%2Fmainwindow.hpp;h=91a0bc5d69d971076f8191b01f9d53316864acfc;hb=14f9d4a1f4472d29366ed8333b20f4041cf1b443;hp=208cbe4367e163062b59fb8fc05e6e3695da219a;hpb=0fb9d6454c286869d71621b69515802903735057;p=pulseview.git diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index 208cbe43..91a0bc5d 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_;