X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fsession.hpp;h=95a50c21c73a098e4ab89f1e3060843d90d1e071;hp=19860b6b5ad3c26ce04a2a2a52935d3aed535f65;hb=f4e57597347e47a4ea58fbdc7b0a22e07f1c0ede;hpb=36a8185e7e594990d475e6a043d5924605ca0f58 diff --git a/pv/session.hpp b/pv/session.hpp index 19860b6b..95a50c21 100644 --- a/pv/session.hpp +++ b/pv/session.hpp @@ -42,7 +42,7 @@ #include #include "util.hpp" -#include "view/viewwidget.hpp" +#include "views/viewbase.hpp" struct srd_decoder; struct srd_channel; @@ -78,8 +78,8 @@ namespace toolbars { class MainBar; } -namespace view { -class View; +namespace views { +class ViewBase; } class Session : public QObject @@ -110,9 +110,9 @@ public: void set_name(QString name); - const std::list< std::shared_ptr > views() const; + const std::list< std::shared_ptr > views() const; - std::shared_ptr main_view() const; + std::shared_ptr main_view() const; void set_main_bar(std::shared_ptr main_bar); @@ -137,11 +137,11 @@ public: double get_samplerate() const; - void register_view(std::shared_ptr view); + void register_view(std::shared_ptr view); - void deregister_view(std::shared_ptr view); + void deregister_view(std::shared_ptr view); - bool has_view(std::shared_ptr view); + bool has_view(std::shared_ptr view); const std::unordered_set< std::shared_ptr > signalbases() const; @@ -183,8 +183,8 @@ private: std::shared_ptr device_; QString default_name_, name_; - std::list< std::shared_ptr > views_; - std::shared_ptr main_view_; + std::list< std::shared_ptr > views_; + std::shared_ptr main_view_; std::shared_ptr main_bar_; @@ -221,7 +221,7 @@ Q_SIGNALS: void frame_ended(); - void add_view(const QString &title, view::ViewType type, + void add_view(const QString &title, views::ViewType type, Session *session); };