X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftrace%2Fdecodetrace.hpp;h=258509e66ea4ec4869bda2a185e95454f73130d7;hb=7697cd83435e88689936b14c952b8a34d5258b69;hp=b6791c4381af50a5c81396bc7ecf217e0506738d;hpb=440bdf504a05efe589e8954ad28be62ba2c2d325;p=pulseview.git diff --git a/pv/views/trace/decodetrace.hpp b/pv/views/trace/decodetrace.hpp index b6791c43..258509e6 100644 --- a/pv/views/trace/decodetrace.hpp +++ b/pv/views/trace/decodetrace.hpp @@ -29,6 +29,7 @@ #include #include +#include #include #include #include @@ -97,6 +98,7 @@ struct DecodeTraceRow { ContainerWidget* container; QWidget* header_container; QWidget* selector_container; + QCheckBox* row_visibility_checkbox; vector selectors; QColor row_color; @@ -148,6 +150,12 @@ public: shared_ptr 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. @@ -311,7 +319,7 @@ private: QPushButton* stack_button_; unsigned int default_row_height_, annotation_height_; - unsigned int visible_rows_, max_visible_rows_; + unsigned int visible_rows_; int min_useful_label_width_; bool always_show_all_rows_, show_hidden_rows_;