PulseView
0.3.0
A Qt-based sigrok GUI
|
#include <signalscalehandle.hpp>
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::Popup * | create_popup (QWidget *parent) |
virtual void | delete_pressed () |
Private Attributes | |
Signal & | owner_ |
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_ |
A row item owned by a Signal
that implements the v-scale adjustment grab handle.
Definition at line 35 of file signalscalehandle.hpp.
|
explicit |
Constructor
Definition at line 35 of file signalscalehandle.cpp.
|
virtual |
Drags the item to a delta relative to the drag point.
delta | the offset from the drag point. |
Implements pv::view::ViewItem.
Definition at line 58 of file signalscalehandle.cpp.
|
virtual |
Sets this item into the un-dragged state.
Reimplemented from pv::view::ViewItem.
Definition at line 51 of file signalscalehandle.cpp.
|
virtual |
Returns true if the parent item is enabled.
Implements pv::view::ViewItem.
Definition at line 40 of file signalscalehandle.cpp.
|
virtual |
Computes the outline rectangle of the viewport hit-box.
rect | the rectangle of the viewport area. |
Reimplemented from pv::view::ViewItem.
Definition at line 70 of file signalscalehandle.cpp.
|
virtual |
Paints the foreground layer of the item with a QPainter
p | the QPainter to paint into. |
pp | the painting parameters object to paint with. |
Reimplemented from pv::view::ViewItem.
Definition at line 82 of file signalscalehandle.cpp.
|
virtual |
Get the drag point.
rect | the rectangle of the widget area. |
Implements pv::view::ViewItem.
Definition at line 65 of file signalscalehandle.cpp.
|
virtual |
Selects or deselects the signal.
Reimplemented from pv::view::ViewItem.
Definition at line 45 of file signalscalehandle.cpp.
|
private |
Definition at line 87 of file signalscalehandle.hpp.