X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fviews%2Fviewbase.hpp;h=9621f35117bd47a702eb9e397afa7e8a54fc9d7c;hp=0c7b0463661d3019943859883bff3b14987962e4;hb=0a952555b9d153f42912e47f35fac5dd4643fca9;hpb=baf867eddd4efbc465f5a3490b1ea21dfe7ba597 diff --git a/pv/views/viewbase.hpp b/pv/views/viewbase.hpp index 0c7b0463..9621f351 100644 --- a/pv/views/viewbase.hpp +++ b/pv/views/viewbase.hpp @@ -26,6 +26,7 @@ #include #include +#include #include #include @@ -69,7 +70,10 @@ private: static const int MaxViewAutoUpdateRate; public: - explicit ViewBase(Session &session, bool is_main_view = false, QWidget *parent = nullptr); + explicit ViewBase(Session &session, bool is_main_view = false, QMainWindow *parent = nullptr); + + virtual ViewType get_type() const = 0; + bool is_main_view() const; /** * Resets the view to its default state after construction. It does however @@ -125,6 +129,9 @@ protected: util::TimeUnit time_unit_; unordered_set< shared_ptr > signalbases_; +#ifdef ENABLE_DECODE + unordered_set< shared_ptr > decode_signals_; +#endif /// The ID of the currently displayed segment uint32_t current_segment_;