]> sigrok.org Git - pulseview.git/blobdiff - pv/views/viewbase.hpp
Make new views take over the main view's signal settings
[pulseview.git] / pv / views / viewbase.hpp
index 3d43ca9a12bc6d3277f92ee7805da0e851f1584f..9621f35117bd47a702eb9e397afa7e8a54fc9d7c 100644 (file)
@@ -72,6 +72,9 @@ private:
 public:
        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
         * not reset the signal bases or any other connections with the session.
@@ -126,6 +129,9 @@ protected:
        util::TimeUnit time_unit_;
 
        unordered_set< shared_ptr<data::SignalBase> > signalbases_;
+#ifdef ENABLE_DECODE
+       unordered_set< shared_ptr<data::DecodeSignal> > decode_signals_;
+#endif
 
        /// The ID of the currently displayed segment
        uint32_t current_segment_;