]> sigrok.org Git - pulseview.git/blobdiff - pv/mainwindow.hpp
Implement MainWindow::add_view()
[pulseview.git] / pv / mainwindow.hpp
index 1ab3c589e615bc1251ddf351d924634f92a0b6d8..91a0bc5d69d971076f8191b01f9d53316864acfc 100644 (file)
@@ -30,6 +30,7 @@
 #include <QMainWindow>
 
 #include "session.hpp"
 #include <QMainWindow>
 
 #include "session.hpp"
+#include "view/viewwidget.hpp"
 
 struct srd_decoder;
 
 
 struct srd_decoder;
 
@@ -102,6 +103,9 @@ public:
 
        std::shared_ptr<pv::view::View> get_active_view() const;
 
 
        std::shared_ptr<pv::view::View> get_active_view() const;
 
+       std::shared_ptr<pv::view::View> add_view(const QString &title,
+               view::ViewType type, Session &session);
+
        void run_stop();
 
        void select_device(std::shared_ptr<devices::Device> device);
        void run_stop();
 
        void select_device(std::shared_ptr<devices::Device> device);