*/
TraceTreeItem();
+ /**
+ * Gets the owner 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.
*/
*/
void animate_to_layout_v_offset();
- /**
- * Gets the owner this trace in the view trace hierachy.
- */
- pv::view::TraceTreeItemOwner* owner() const;
-
/**
* Sets the owner this trace in the view trace hierachy.
* @param The new owner of the trace.
*/
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.
virtual std::pair<int, int> v_extents() const = 0;
protected:
- pv::view::TraceTreeItemOwner *owner_;
+ TraceTreeItemOwner *owner_;
int layout_v_offset_;
int visual_v_offset_;
+ bool bgcolour_state_;
+
private:
QPropertyAnimation v_offset_animation_;
};