]> sigrok.org Git - pulseview.git/commitdiff
LogicSignal: Added set_logic_data
authorJoel Holdsworth <redacted>
Sat, 28 Mar 2015 12:54:12 +0000 (12:54 +0000)
committerJoel Holdsworth <redacted>
Thu, 28 May 2015 14:59:04 +0000 (15:59 +0100)
pv/view/logicsignal.cpp
pv/view/logicsignal.hpp

index 18ca52007b89a5b92186a6446d1d5f614d80c59b..0d31696100545ae99e80c4fd0f64bc749bc67b48 100644 (file)
@@ -140,6 +140,11 @@ shared_ptr<pv::data::Logic> LogicSignal::logic_data() const
        return data_;
 }
 
+void LogicSignal::set_logic_data(std::shared_ptr<pv::data::Logic> data)
+{
+       data_ = data;
+}
+
 std::pair<int, int> LogicSignal::v_extents() const
 {
        return make_pair(-SignalHeight - SignalMargin, SignalMargin);
index 2542e241711a595565b47daabe863f27dc393aab..4df0f8ce77d99f74fbc1c388c773b625b3810c0e 100644 (file)
@@ -75,6 +75,8 @@ public:
 
        std::shared_ptr<pv::data::Logic> logic_data() const;
 
+       void set_logic_data(std::shared_ptr<pv::data::Logic> data);
+
        /**
         * Computes the vertical extents of the contents of this row item.
         * @return A pair containing the minimum and maximum y-values.