PulseView  0.3.0
A Qt-based sigrok GUI
pv::view::SignalScaleHandle Class Reference

#include <signalscalehandle.hpp>

Inheritance diagram for pv::view::SignalScaleHandle:
Collaboration diagram for pv::view::SignalScaleHandle:

Public Member Functions

 SignalScaleHandle (Signal &owner)
 
bool enabled () const
 
void select (bool select=true)
 
void drag_release ()
 
void drag_by (const QPoint &delta)
 
QPoint point (const QRect &rect) const
 
QRectF hit_box_rect (const ViewItemPaintParams &pp) const
 
void paint_fore (QPainter &p, const ViewItemPaintParams &pp)
 
- Public Member Functions inherited from pv::view::RowItem
virtual void hover_point_changed ()
 
- Public Member Functions inherited from pv::view::ViewItem
 ViewItem ()
 
bool selected () const
 
virtual bool is_draggable () const
 
bool dragging () const
 
void drag ()
 
virtual QRectF label_rect (const QRectF &rect) 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 QMenu * create_context_menu (QWidget *parent)
 
virtual pv::widgets::Popupcreate_popup (QWidget *parent)
 
virtual void delete_pressed ()
 

Private Attributes

Signalowner_
 

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 ()
 
- Protected Attributes inherited from pv::view::ViewItem
QWidget * context_parent_
 
QPoint drag_point_
 

Detailed Description

A row item owned by a Signal that implements the v-scale adjustment grab handle.

Definition at line 35 of file signalscalehandle.hpp.

Constructor & Destructor Documentation

pv::view::SignalScaleHandle::SignalScaleHandle ( Signal owner)
explicit

Constructor

Definition at line 35 of file signalscalehandle.cpp.

Member Function Documentation

void pv::view::SignalScaleHandle::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 58 of file signalscalehandle.cpp.

Here is the call graph for this function:

void pv::view::SignalScaleHandle::drag_release ( )
virtual

Sets this item into the un-dragged state.

Reimplemented from pv::view::ViewItem.

Definition at line 51 of file signalscalehandle.cpp.

Here is the call graph for this function:

bool pv::view::SignalScaleHandle::enabled ( ) const
virtual

Returns true if the parent item is enabled.

Implements pv::view::ViewItem.

Definition at line 40 of file signalscalehandle.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QRectF pv::view::SignalScaleHandle::hit_box_rect ( const ViewItemPaintParams pp) const
virtual

Computes the outline rectangle of the viewport hit-box.

Parameters
rectthe rectangle of the viewport area.
Returns
Returns the rectangle of the hit-box.

Reimplemented from pv::view::ViewItem.

Definition at line 70 of file signalscalehandle.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::view::SignalScaleHandle::paint_fore ( QPainter &  p,
const ViewItemPaintParams pp 
)
virtual

Paints the foreground layer of the item with a QPainter

Parameters
pthe QPainter to paint into.
ppthe painting parameters object to paint with.

Reimplemented from pv::view::ViewItem.

Definition at line 82 of file signalscalehandle.cpp.

Here is the call graph for this function:

QPoint pv::view::SignalScaleHandle::point ( const QRect &  rect) const
virtual

Get the drag point.

Parameters
rectthe rectangle of the widget area.

Implements pv::view::ViewItem.

Definition at line 65 of file signalscalehandle.cpp.

Here is the call graph for this function:

void pv::view::SignalScaleHandle::select ( bool  select = true)
virtual

Selects or deselects the signal.

Reimplemented from pv::view::ViewItem.

Definition at line 45 of file signalscalehandle.cpp.

Here is the call graph for this function:

Member Data Documentation

Signal& pv::view::SignalScaleHandle::owner_
private

Definition at line 87 of file signalscalehandle.hpp.


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