X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fmainwindow.hpp;h=618a10e0fb51b1097a2e3b91216dd0c46a5778ad;hb=55547a4510d8ff310ab1ac57e69e3e51132b2c2f;hp=6f40ef8e85a8e22a1bed9733bf03c7600ea9c4c6;hpb=25272feeeffbf2f67645a7be29ac8704c41c1bb0;p=pulseview.git diff --git a/pv/mainwindow.hpp b/pv/mainwindow.hpp index 6f40ef8..618a10e 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; @@ -100,6 +103,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); @@ -140,6 +148,10 @@ private: void keyReleaseEvent(QKeyEvent *event); + virtual QMenu* createPopupMenu(); + + virtual bool restoreState(const QByteArray &state, int version = 0); + private Q_SLOTS: void show_session_error( const QString text, const QString info_text); @@ -181,8 +193,6 @@ private: Session session_; - pv::view::View *view_; - std::map< std::shared_ptr, std::shared_ptr > view_docks_;