PulseView
0.3.0
A Qt-based sigrok GUI
|
#include <cursor.hpp>
Public Member Functions | |
Cursor (View &view, double time) | |
bool | enabled () const |
QString | get_text () const |
QRectF | label_rect (const QRectF &rect) const |
Public Member Functions inherited from pv::view::TimeMarker | |
const pv::util::Timestamp & | time () const |
void | set_time (const pv::util::Timestamp &time) override |
float | get_x () const |
QPoint | point (const QRect &rect) const |
QRectF | label_rect (const QRectF &rect) const |
QRectF | hit_box_rect (const ViewItemPaintParams &pp) const |
void | paint_label (QPainter &p, const QRect &rect, bool hover) |
void | paint_fore (QPainter &p, const ViewItemPaintParams &pp) |
virtual pv::widgets::Popup * | create_popup (QWidget *parent) |
Public Member Functions inherited from pv::view::TimeItem | |
void | drag_by (const QPoint &delta) |
Public Member Functions inherited from pv::view::ViewItem | |
ViewItem () | |
bool | selected () const |
virtual void | select (bool select=true) |
virtual bool | is_draggable () const |
bool | dragging () const |
void | drag () |
virtual void | drag_release () |
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 void | delete_pressed () |
Static Public Attributes | |
static const QColor | FillColour |
Static Public Attributes inherited from pv::view::TimeMarker | |
static const int | ArrowSize = 4 |
Static Public Attributes inherited from pv::view::ViewItem | |
static const QSizeF | LabelPadding |
static const int | HighlightRadius = 3 |
Private Member Functions | |
std::shared_ptr< Cursor > | get_other_cursor () const |
Additional Inherited Members | |
Static Public Member Functions inherited from pv::view::ViewItem | |
static QColor | select_text_colour (QColor background) |
Protected Member Functions inherited from pv::view::TimeMarker | |
TimeMarker (View &view, const QColor &colour, const pv::util::Timestamp &time) | |
Protected Member Functions inherited from pv::view::TimeItem | |
TimeItem (View &view) | |
Static Protected Member Functions inherited from pv::view::ViewItem | |
static QPen | highlight_pen () |
Protected Attributes inherited from pv::view::TimeMarker | |
const QColor & | colour_ |
pv::util::Timestamp | time_ |
QSizeF | text_size_ |
QWidgetAction * | value_action_ |
pv::widgets::TimestampSpinBox * | value_widget_ |
bool | updating_value_widget_ |
Protected Attributes inherited from pv::view::TimeItem | |
View & | view_ |
Protected Attributes inherited from pv::view::ViewItem | |
QWidget * | context_parent_ |
QPoint | drag_point_ |
Definition at line 35 of file cursor.hpp.
pv::view::Cursor::Cursor | ( | View & | view, |
double | time | ||
) |
Constructor.
view | A reference to the view that owns this cursor pair. |
time | The time to set the flag to. |
Definition at line 47 of file cursor.cpp.
|
virtual |
Returns true if the item is visible and enabled.
Implements pv::view::ViewItem.
Definition at line 52 of file cursor.cpp.
|
private |
Definition at line 92 of file cursor.cpp.
|
virtual |
Gets the text to show in the marker.
Implements pv::view::TimeMarker.
Definition at line 57 of file cursor.cpp.
|
virtual |
Gets the marker label rectangle.
rect | The rectangle of the ruler client area. |
Reimplemented from pv::view::ViewItem.
Definition at line 66 of file cursor.cpp.
|
static |
Definition at line 40 of file cursor.hpp.