X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fmainwindow.hpp;h=547089c59e5a39a17acf36771a75e37c094daa1f;hb=47e9e7bbc3a4e91a960f4cbb1db48c5aff6dcace;hp=1ab3c589e615bc1251ddf351d924634f92a0b6d8;hpb=168bd8ac353d715257e7267dcf4eeb1aaef6365c;p=pulseview.git diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index 1ab3c589..547089c5 100644 --- a/pv/mainwindow.hpp +++ b/pv/mainwindow.hpp @@ -30,6 +30,7 @@ #include #include "session.hpp" +#include "view/viewwidget.hpp" struct srd_decoder; @@ -82,6 +83,8 @@ public: std::string open_file_format = std::string(), QWidget *parent = 0); + ~MainWindow(); + QAction* action_open() const; QAction* action_save_as() const; QAction* action_save_selection_as() const; @@ -102,6 +105,9 @@ public: 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);