PulseView
unreleased development snapshot
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 () |
virtual void | set_owner (TraceTreeItemOwner *owner) |
int | get_visual_y () const |
void | drag_by (const QPoint &delta) |
QPoint | drag_point (const QRect &rect) const |
virtual pair< int, int > | v_extents () const =0 |
Public Member Functions inherited from pv::views::trace::ViewItem | |
ViewItem () | |
virtual bool | enabled () const =0 |
virtual bool | is_selectable (QPoint pos) const |
bool | selected () const |
virtual bool | is_draggable (QPoint pos) 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, ViewItemPaintParams &pp) |
virtual void | paint_mid (QPainter &p, ViewItemPaintParams &pp) |
virtual void | paint_fore (QPainter &p, ViewItemPaintParams &pp) |
virtual QMenu * | create_header_context_menu (QWidget *parent) |
virtual QMenu * | create_view_context_menu (QWidget *parent, QPoint &click_pos) |
virtual pv::widgets::Popup * | create_popup (QWidget *parent) |
virtual void | delete_pressed () |
virtual void | hover_point_changed (const QPoint &hp) |
virtual void | mouse_left_press_event (const QMouseEvent *event) |
Protected Attributes | |
TraceTreeItemOwner * | owner_ |
int | layout_v_offset_ |
int | visual_v_offset_ |
Protected Attributes inherited from pv::views::trace::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::views::trace::ViewItem | |
static QColor | select_text_color (QColor background) |
Static Public Attributes inherited from pv::views::trace::ViewItem | |
static const QSizeF | LabelPadding |
static const int | HighlightRadius = 3 |
Static Protected Member Functions inherited from pv::views::trace::ViewItem | |
static QPen | highlight_pen () |
Definition at line 38 of file tracetreeitem.hpp.
pv::views::trace::TraceTreeItem::TraceTreeItem | ( | ) |
Constructor.
Definition at line 30 of file tracetreeitem.cpp.
void pv::views::trace::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::views::trace::ViewItem.
Definition at line 129 of file tracetreeitem.cpp.
|
virtual |
Gets the arrow-tip point of the row item marker.
rect | the rectangle of the header area. |
Implements pv::views::trace::ViewItem.
Definition at line 136 of file tracetreeitem.cpp.
void pv::views::trace::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::views::trace::TraceTreeItem::get_visual_y | ( | ) | const |
Gets the visual y-offset of the axis.
Definition at line 123 of file tracetreeitem.cpp.
int pv::views::trace::TraceTreeItem::layout_v_offset | ( | ) | const |
Gets the vertical layout offset of this signal.
Definition at line 44 of file tracetreeitem.cpp.
TraceTreeItemOwner * pv::views::trace::TraceTreeItem::owner | ( | ) | const |
Gets the owner of this item in the view item hierachy.
Definition at line 98 of file tracetreeitem.cpp.
|
virtual |
Selects or deselects the signal.
Reimplemented from pv::views::trace::ViewItem.
Definition at line 38 of file tracetreeitem.cpp.
void pv::views::trace::TraceTreeItem::set_layout_v_offset | ( | int | v_offset | ) |
Sets the vertical layout offset of this signal.
Definition at line 49 of file tracetreeitem.cpp.
|
virtual |
Sets the owner this trace in the view trace hierachy.
The | new owner of the trace. |
Reimplemented in pv::views::trace::DecodeTrace.
Definition at line 103 of file tracetreeitem.cpp.
void pv::views::trace::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::views::trace::DecodeTrace, pv::views::trace::AnalogSignal, pv::views::trace::LogicSignal, and pv::views::trace::TraceGroup.
int pv::views::trace::TraceTreeItem::visual_v_offset | ( | ) | const |
Gets the vertical visual offset of this signal.
|
protected |
Definition at line 125 of file tracetreeitem.hpp.
|
protected |
Definition at line 123 of file tracetreeitem.hpp.
|
private |
Definition at line 129 of file tracetreeitem.hpp.
|
protected |
Definition at line 126 of file tracetreeitem.hpp.
|
readwrite |
Definition at line 44 of file tracetreeitem.hpp.