PulseView  0.3.0
A Qt-based sigrok GUI
pv::view::TraceTreeItem Class Referenceabstract

#include <tracetreeitem.hpp>

Inheritance diagram for pv::view::TraceTreeItem:
Collaboration diagram for pv::view::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 ()
 
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::Popupcreate_popup (QWidget *parent)
 
virtual void delete_pressed ()
 

Protected Attributes

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

Detailed Description

Definition at line 35 of file tracetreeitem.hpp.

Constructor & Destructor Documentation

pv::view::TraceTreeItem::TraceTreeItem ( )

Constructor.

Definition at line 30 of file tracetreeitem.cpp.

Member Function Documentation

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.

void pv::view::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::view::ViewItem.

Definition at line 129 of file tracetreeitem.cpp.

Here is the call graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

int pv::view::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::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.

Here is the caller graph for this function:

QPoint pv::view::TraceTreeItem::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::view::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::view::TraceTreeItem::select ( bool  select = true)
virtual

Selects or deselects the signal.

Reimplemented from pv::view::ViewItem.

Definition at line 38 of file tracetreeitem.cpp.

Here is the call graph for this function:

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.

Parameters
stateNew 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.

Here is the call graph for this function:

void pv::view::TraceTreeItem::set_owner ( pv::view::TraceTreeItemOwner owner)

Sets the owner this trace in the view trace hierachy.

Parameters
Thenew owner of the trace.

Definition at line 103 of file tracetreeitem.cpp.

Here is the call graph for this function:

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.

Here is the call graph for this function:

virtual std::pair<int, int> pv::view::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::view::DecodeTrace, pv::view::LogicSignal, pv::view::TraceGroup, and pv::view::AnalogSignal.

Here is the caller graph for this function:

int pv::view::TraceTreeItem::visual_v_offset ( ) const

Gets the vertical visual offset of this signal.

Here is the caller graph for this function:

Member Data Documentation

bool pv::view::TraceTreeItem::bgcolour_state_
protected

Definition at line 133 of file tracetreeitem.hpp.

int pv::view::TraceTreeItem::layout_v_offset_
protected

Definition at line 130 of file tracetreeitem.hpp.

TraceTreeItemOwner* pv::view::TraceTreeItem::owner_
protected

Definition at line 128 of file tracetreeitem.hpp.

QPropertyAnimation pv::view::TraceTreeItem::v_offset_animation_
private

Definition at line 136 of file tracetreeitem.hpp.

int pv::view::TraceTreeItem::visual_v_offset_
protected

Definition at line 131 of file tracetreeitem.hpp.

Property Documentation

int pv::view::TraceTreeItem::visual_v_offset
readwrite

Definition at line 41 of file tracetreeitem.hpp.


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