PulseView  unreleased development snapshot
A Qt-based sigrok GUI
pv::views::trace::TraceTreeItem Class Referenceabstract

#include <tracetreeitem.hpp>

Inheritance diagram for pv::views::trace::TraceTreeItem:
Collaboration diagram for pv::views::trace::TraceTreeItem:

Public Member Functions

 TraceTreeItem ()
 
TraceTreeItemOwnerowner () 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::Popupcreate_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

TraceTreeItemOwnerowner_
 
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 ()
 

Detailed Description

Definition at line 38 of file tracetreeitem.hpp.

Constructor & Destructor Documentation

pv::views::trace::TraceTreeItem::TraceTreeItem ( )

Constructor.

Definition at line 30 of file tracetreeitem.cpp.

Member Function Documentation

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.

void pv::views::trace::TraceTreeItem::drag_by ( const QPoint &  delta)
virtual

Drags the item to a delta relative to the drag point.

Parameters
deltathe offset from the drag point.

Implements pv::views::trace::ViewItem.

Definition at line 129 of file tracetreeitem.cpp.

Here is the call graph for this function:

QPoint pv::views::trace::TraceTreeItem::drag_point ( const QRect &  rect) const
virtual

Gets the arrow-tip point of the row item marker.

Parameters
rectthe rectangle of the header area.

Implements pv::views::trace::ViewItem.

Definition at line 136 of file tracetreeitem.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the caller graph for this function:

void pv::views::trace::TraceTreeItem::select ( bool  select = true)
virtual

Selects or deselects the signal.

Reimplemented from pv::views::trace::ViewItem.

Definition at line 38 of file tracetreeitem.cpp.

Here is the call graph for this function:

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.

Here is the call graph for this function:

void pv::views::trace::TraceTreeItem::set_owner ( TraceTreeItemOwner owner)
virtual

Sets the owner this trace in the view trace hierachy.

Parameters
Thenew owner of the trace.

Reimplemented in pv::views::trace::DecodeTrace.

Definition at line 103 of file tracetreeitem.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

virtual pair<int, int> pv::views::trace::TraceTreeItem::v_extents ( ) const
pure virtual

Computes the vertical extents of the contents of this row item.

Returns
A pair containing the minimum and maximum y-values.

Implemented in pv::views::trace::DecodeTrace, pv::views::trace::AnalogSignal, pv::views::trace::LogicSignal, and pv::views::trace::TraceGroup.

Here is the caller graph for this function:

int pv::views::trace::TraceTreeItem::visual_v_offset ( ) const

Gets the vertical visual offset of this signal.

Here is the caller graph for this function:

Member Data Documentation

int pv::views::trace::TraceTreeItem::layout_v_offset_
protected

Definition at line 125 of file tracetreeitem.hpp.

TraceTreeItemOwner* pv::views::trace::TraceTreeItem::owner_
protected

Definition at line 123 of file tracetreeitem.hpp.

QPropertyAnimation pv::views::trace::TraceTreeItem::v_offset_animation_
private

Definition at line 129 of file tracetreeitem.hpp.

int pv::views::trace::TraceTreeItem::visual_v_offset_
protected

Definition at line 126 of file tracetreeitem.hpp.

Property Documentation

int pv::views::trace::TraceTreeItem::visual_v_offset
readwrite

Definition at line 44 of file tracetreeitem.hpp.


The documentation for this class was generated from the following files: