]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/decodetrace.hpp
TraceView: Prevent decode traces from changing order
[pulseview.git] / pv / views / trace / decodetrace.hpp
index b6791c4381af50a5c81396bc7ecf217e0506738d..f2b28be04dd04772254095c156713d2e4bf52a71 100644 (file)
@@ -29,6 +29,7 @@
 #include <vector>
 
 #include <QColor>
+#include <QComboBox>
 #include <QCheckBox>
 #include <QElapsedTimer>
 #include <QPolygon>
@@ -97,6 +98,7 @@ struct DecodeTraceRow {
        ContainerWidget* container;
        QWidget* header_container;
        QWidget* selector_container;
+       QCheckBox* row_visibility_checkbox;
        vector<QCheckBox*> selectors;
 
        QColor row_color;
@@ -148,6 +150,12 @@ public:
 
        shared_ptr<SignalBase> base() const;
 
+       /**
+        * Sets the owner this trace in the view trace hierachy.
+        * @param The new owner of the trace.
+        */
+       virtual void set_owner(TraceTreeItemOwner *owner);
+
        /**
         * Computes the vertical extents of the contents of this row item.
         * @return A pair containing the minimum and maximum y-values.