PulseView
0.3.0
A Qt-based sigrok GUI
|
#include <tracetreeitem.hpp>
Public Member Functions | |
TraceTreeItem () | |
TraceTreeItemOwner * | owner () const |
void | select (bool select=true) |
int | layout_v_offset () const |
void | set_layout_v_offset (int v_offset) |
int | visual_v_offset () const |
void | set_visual_v_offset (int v_offset) |
void | force_to_v_offset (int v_offset) |
void | animate_to_layout_v_offset () |
void | set_owner (pv::view::TraceTreeItemOwner *owner) |
int | get_visual_y () const |
void | drag_by (const QPoint &delta) |
QPoint | point (const QRect &rect) const |
void | set_bgcolour_state (bool state) |
virtual std::pair< int, int > | v_extents () const =0 |
Public Member Functions inherited from pv::view::RowItem | |
virtual void | hover_point_changed () |
Public Member Functions inherited from pv::view::ViewItem | |
ViewItem () | |
virtual bool | enabled () const =0 |
bool | selected () const |
virtual bool | is_draggable () const |
bool | dragging () const |
void | drag () |
virtual void | drag_release () |
virtual QRectF | label_rect (const QRectF &rect) const |
virtual QRectF | hit_box_rect (const ViewItemPaintParams &pp) const |
virtual void | paint_label (QPainter &p, const QRect &rect, bool hover) |
virtual void | paint_back (QPainter &p, const ViewItemPaintParams &pp) |
virtual void | paint_mid (QPainter &p, const ViewItemPaintParams &pp) |
virtual void | paint_fore (QPainter &p, const ViewItemPaintParams &pp) |
virtual QMenu * | create_context_menu (QWidget *parent) |
virtual pv::widgets::Popup * | create_popup (QWidget *parent) |
virtual void | delete_pressed () |
Protected Attributes | |
TraceTreeItemOwner * | owner_ |
int | layout_v_offset_ |
int | visual_v_offset_ |
bool | bgcolour_state_ |
Protected Attributes inherited from pv::view::ViewItem | |
QWidget * | context_parent_ |
QPoint | drag_point_ |
Properties | |
int | visual_v_offset |
Private Attributes | |
QPropertyAnimation | v_offset_animation_ |
Additional Inherited Members | |
Static Public Member Functions inherited from pv::view::ViewItem | |
static QColor | select_text_colour (QColor background) |
Static Public Attributes inherited from pv::view::ViewItem | |
static const QSizeF | LabelPadding |
static const int | HighlightRadius = 3 |
Static Protected Member Functions inherited from pv::view::ViewItem | |
static QPen | highlight_pen () |
Definition at line 35 of file tracetreeitem.hpp.
pv::view::TraceTreeItem::TraceTreeItem | ( | ) |
Constructor.
Definition at line 30 of file tracetreeitem.cpp.
void pv::view::TraceTreeItem::animate_to_layout_v_offset | ( | ) |
Begins an animation that will animate the visual offset toward the layout offset.
Definition at line 84 of file tracetreeitem.cpp.
|
virtual |
Drags the item to a delta relative to the drag point.
delta | the offset from the drag point. |
Implements pv::view::ViewItem.
Definition at line 129 of file tracetreeitem.cpp.
void pv::view::TraceTreeItem::force_to_v_offset | ( | int | v_offset | ) |
Sets the visual and layout offset of this signal.
Definition at line 73 of file tracetreeitem.cpp.
int pv::view::TraceTreeItem::get_visual_y | ( | ) | const |
Gets the visual y-offset of the axis.
Definition at line 123 of file tracetreeitem.cpp.
int pv::view::TraceTreeItem::layout_v_offset | ( | ) | const |
Gets the vertical layout offset of this signal.
Definition at line 44 of file tracetreeitem.cpp.
TraceTreeItemOwner * pv::view::TraceTreeItem::owner | ( | ) | const |
Gets the owner this item in the view item hierachy.
Definition at line 98 of file tracetreeitem.cpp.
|
virtual |
Gets the arrow-tip point of the row item marker.
rect | the rectangle of the header area. |
Implements pv::view::ViewItem.
Definition at line 136 of file tracetreeitem.cpp.
|
virtual |
Selects or deselects the signal.
Reimplemented from pv::view::ViewItem.
Definition at line 38 of file tracetreeitem.cpp.
void pv::view::TraceTreeItem::set_bgcolour_state | ( | bool | state | ) |
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.
state | New bg color state to use. |
Definition at line 141 of file tracetreeitem.cpp.
void pv::view::TraceTreeItem::set_layout_v_offset | ( | int | v_offset | ) |
Sets the vertical layout offset of this signal.
Definition at line 49 of file tracetreeitem.cpp.
void pv::view::TraceTreeItem::set_owner | ( | pv::view::TraceTreeItemOwner * | owner | ) |
Sets the owner this trace in the view trace hierachy.
The | new owner of the trace. |
Definition at line 103 of file tracetreeitem.cpp.
void pv::view::TraceTreeItem::set_visual_v_offset | ( | int | v_offset | ) |
Sets the vertical visual offset of this signal.
Definition at line 65 of file tracetreeitem.cpp.
|
pure virtual |
Computes the vertical extents of the contents of this row item.
Implemented in pv::view::DecodeTrace, pv::view::LogicSignal, pv::view::TraceGroup, and pv::view::AnalogSignal.
int pv::view::TraceTreeItem::visual_v_offset | ( | ) | const |
Gets the vertical visual offset of this signal.
|
protected |
Definition at line 133 of file tracetreeitem.hpp.
|
protected |
Definition at line 130 of file tracetreeitem.hpp.
|
protected |
Definition at line 128 of file tracetreeitem.hpp.
|
private |
Definition at line 136 of file tracetreeitem.hpp.
|
protected |
Definition at line 131 of file tracetreeitem.hpp.
|
readwrite |
Definition at line 41 of file tracetreeitem.hpp.