X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Ftracetreeitem.hpp;h=8317db7b7454b040384f1b4933a3e6deb0f21b9a;hp=8a72f6ebd59217e0ec7522cc514205b09d69ea64;hb=4ca23e7d62d75523710fe4117f904ded4d26544a;hpb=c373f82810ad9c5376a7370118de9dd587ee0e43 diff --git a/pv/view/tracetreeitem.hpp b/pv/view/tracetreeitem.hpp index 8a72f6eb..8317db7b 100644 --- a/pv/view/tracetreeitem.hpp +++ b/pv/view/tracetreeitem.hpp @@ -47,10 +47,15 @@ public: TraceTreeItem(); /** - * Gets the owner this item in the view item hierachy. + * Gets the owner of this item in the view item hierachy. */ TraceTreeItemOwner* owner() const; + /** + * Selects or deselects the signal. + */ + void select(bool select = true); + /** * Gets the vertical layout offset of this signal. */ @@ -105,6 +110,14 @@ public: */ QPoint point(const QRect &rect) const; + /** + * Sets the new background colour state: false = dark, true = bright. + * This is to allow for alternating backgrounds but has no effect + * when coloured background colours are used. + * @param state New bg color state to use. + */ + void set_bgcolour_state(bool state); + /** * Computes the vertical extents of the contents of this row item. * @return A pair containing the minimum and maximum y-values. @@ -117,6 +130,8 @@ protected: int layout_v_offset_; int visual_v_offset_; + bool bgcolour_state_; + private: QPropertyAnimation v_offset_animation_; };