PulseView  unreleased development snapshot
A Qt-based sigrok GUI
pv::views::trace::TraceGroup Class Reference

#include <tracegroup.hpp>

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

Public Member Functions

virtual ~TraceGroup ()
 
bool enabled () const
 
pv::Sessionsession ()
 
const pv::Sessionsession () const
 
virtual Viewview ()
 
virtual const Viewview () const
 
pair< int, int > v_extents () const
 
void paint_label (QPainter &p, const QRect &rect, bool hover)
 
QRectF label_rect (const QRectF &rect) const
 
bool pt_in_label_rect (int left, int right, const QPoint &point)
 
QMenu * create_header_context_menu (QWidget *parent)
 
pv::widgets::Popupcreate_popup (QWidget *parent)
 
int owner_visual_v_offset () const
 
unsigned int depth () const
 
void ungroup ()
 
void row_item_appearance_changed (bool label, bool content)
 
void extents_changed (bool horz, bool vert)
 
- Public Member Functions inherited from pv::views::trace::TraceTreeItem
 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
 
- Public Member Functions inherited from pv::views::trace::ViewItem
 ViewItem ()
 
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 hit_box_rect (const ViewItemPaintParams &pp) const
 
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_view_context_menu (QWidget *parent, QPoint &click_pos)
 
virtual void delete_pressed ()
 
virtual void hover_point_changed (const QPoint &hp)
 
virtual void mouse_left_press_event (const QMouseEvent *event)
 
- Public Member Functions inherited from pv::views::trace::TraceTreeItemOwner
virtual const item_listchild_items () const
 
vector< shared_ptr< TraceTreeItem > > trace_tree_child_items () const
 
void clear_child_items ()
 
void add_child_item (shared_ptr< TraceTreeItem > item)
 
void remove_child_item (shared_ptr< TraceTreeItem > item)
 
virtual void restack_items ()
 
pair< int, int > v_extents () const
 
- Public Member Functions inherited from pv::views::trace::ViewItemOwner
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
template<class T >
vector< shared_ptr< T > > list_by_type ()
 

Private Slots

void on_ungroup ()
 

Static Private Attributes

static const int Padding = 8
 
static const int Width = 12
 
static const int LineThickness = 5
 
static const QColor LineColor
 

Additional Inherited Members

- Public Types inherited from pv::views::trace::ViewItemOwner
typedef vector< shared_ptr< ViewItem > > item_list
 
typedef ViewItemIterator< ViewItemOwner, ViewItemiterator
 
typedef ViewItemIterator< const ViewItemOwner, ViewItemconst_iterator
 
- 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 ()
 
- Protected Attributes inherited from pv::views::trace::TraceTreeItem
TraceTreeItemOwnerowner_
 
int layout_v_offset_
 
int visual_v_offset_
 
- Protected Attributes inherited from pv::views::trace::ViewItem
QWidget * context_parent_
 
QPoint drag_point_
 
- Protected Attributes inherited from pv::views::trace::ViewItemOwner
item_list items_
 
- Properties inherited from pv::views::trace::TraceTreeItem
int visual_v_offset
 

Detailed Description

Definition at line 32 of file tracegroup.hpp.

Constructor & Destructor Documentation

pv::views::trace::TraceGroup::~TraceGroup ( )
virtual

Virtual destructor

Definition at line 44 of file tracegroup.cpp.

Here is the call graph for this function:

Member Function Documentation

QMenu * pv::views::trace::TraceGroup::create_header_context_menu ( QWidget *  parent)
virtual

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

Definition at line 136 of file tracegroup.cpp.

Here is the call graph for this function:

pv::widgets::Popup * pv::views::trace::TraceGroup::create_popup ( QWidget *  parent)
virtual

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

Definition at line 152 of file tracegroup.cpp.

unsigned int pv::views::trace::TraceGroup::depth ( ) const
virtual

Returns the number of nested parents that this row item owner has.

Implements pv::views::trace::TraceTreeItemOwner.

Definition at line 163 of file tracegroup.cpp.

Here is the call graph for this function:

bool pv::views::trace::TraceGroup::enabled ( ) const
virtual

Returns true if the item is visible and enabled.

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

Definition at line 50 of file tracegroup.cpp.

Here is the call graph for this function:

void pv::views::trace::TraceGroup::extents_changed ( bool  horz,
bool  vert 
)
virtual

Implements pv::views::trace::TraceTreeItemOwner.

Definition at line 190 of file tracegroup.cpp.

Here is the call graph for this function:

QRectF pv::views::trace::TraceGroup::label_rect ( const QRectF &  rect) const
virtual

Computes the outline rectangle of a label.

Parameters
rectthe rectangle of the header area.
Returns
Returns the rectangle of the signal label.

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

Definition at line 116 of file tracegroup.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::TraceGroup::on_ungroup ( )
privateslot

Definition at line 179 of file tracegroup.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int pv::views::trace::TraceGroup::owner_visual_v_offset ( ) const
virtual

Returns the total vertical offset of this trace and all it's owners

Implements pv::views::trace::TraceTreeItemOwner.

Definition at line 158 of file tracegroup.cpp.

Here is the call graph for this function:

void pv::views::trace::TraceGroup::paint_label ( QPainter &  p,
const QRect &  rect,
bool  hover 
)
virtual

Paints the signal label.

Parameters
pthe QPainter to paint into.
rightthe x-coordinate of the right edge of the header area.
hovertrue if the label is being hovered over by the mouse.

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

Definition at line 85 of file tracegroup.cpp.

Here is the call graph for this function:

bool pv::views::trace::TraceGroup::pt_in_label_rect ( int  left,
int  right,
const QPoint &  point 
)

Determines if a point is in the header label rect.

Parameters
leftthe x-coordinate of the left edge of the header area.
rightthe x-coordinate of the right edge of the header area.
pointthe point to test.

Definition at line 127 of file tracegroup.cpp.

void pv::views::trace::TraceGroup::row_item_appearance_changed ( bool  label,
bool  content 
)
virtual

Implements pv::views::trace::TraceTreeItemOwner.

Definition at line 184 of file tracegroup.cpp.

Here is the call graph for this function:

pv::Session & pv::views::trace::TraceGroup::session ( )
virtual

Returns the session of the onwer.

Implements pv::views::trace::TraceTreeItemOwner.

Definition at line 56 of file tracegroup.cpp.

Here is the call graph for this function:

const pv::Session & pv::views::trace::TraceGroup::session ( ) const
virtual

Returns the session of the onwer.

Implements pv::views::trace::TraceTreeItemOwner.

Definition at line 62 of file tracegroup.cpp.

Here is the call graph for this function:

void pv::views::trace::TraceGroup::ungroup ( )

Definition at line 168 of file tracegroup.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

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

Implements pv::views::trace::TraceTreeItem.

Definition at line 80 of file tracegroup.cpp.

Here is the call graph for this function:

View * pv::views::trace::TraceGroup::view ( )
virtual

Returns the view of the owner.

Implements pv::views::trace::TraceTreeItemOwner.

Definition at line 68 of file tracegroup.cpp.

Here is the call graph for this function:

const View * pv::views::trace::TraceGroup::view ( ) const
virtual

Returns the view of the owner.

Implements pv::views::trace::TraceTreeItemOwner.

Definition at line 74 of file tracegroup.cpp.

Here is the call graph for this function:

Member Data Documentation

const QColor pv::views::trace::TraceGroup::LineColor
staticprivate

Definition at line 40 of file tracegroup.hpp.

const int pv::views::trace::TraceGroup::LineThickness = 5
staticprivate

Definition at line 39 of file tracegroup.hpp.

const int pv::views::trace::TraceGroup::Padding = 8
staticprivate

Definition at line 37 of file tracegroup.hpp.

const int pv::views::trace::TraceGroup::Width = 12
staticprivate

Definition at line 38 of file tracegroup.hpp.


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