![]() |
PulseView
unreleased development snapshot
A Qt-based sigrok GUI
|
#include <triggermarker.hpp>
Public Member Functions | |
TriggerMarker (View &view, const pv::util::Timestamp &time) | |
TriggerMarker (const TriggerMarker &marker) | |
bool | enabled () const override |
bool | is_draggable (QPoint pos) const override |
void | set_time (const pv::util::Timestamp &time) override |
virtual const pv::util::Timestamp | time () const override |
float | get_x () const override |
QPoint | drag_point (const QRect &rect) const override |
void | paint_fore (QPainter &p, ViewItemPaintParams &pp) override |
![]() | |
virtual const pv::util::Timestamp | delta (const pv::util::Timestamp &other) const |
void | drag_by (const QPoint &delta) |
bool | is_snapping_disabled () const |
![]() | |
ViewItem () | |
virtual bool | is_selectable (QPoint pos) const |
bool | selected () const |
virtual void | select (bool select=true) |
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, ViewItemPaintParams &pp) |
virtual void | paint_mid (QPainter &p, ViewItemPaintParams &pp) |
virtual QMenu * | create_header_context_menu (QWidget *parent) |
virtual QMenu * | create_view_context_menu (QWidget *parent, QPoint &click_pos) |
virtual pv::widgets::Popup * | create_popup (QWidget *parent) |
virtual void | delete_pressed () |
virtual void | hover_point_changed (const QPoint &hp) |
virtual void | mouse_left_press_event (const QMouseEvent *event) |
Static Public Attributes | |
static const QColor | Color |
![]() | |
static const QSizeF | LabelPadding |
static const int | HighlightRadius = 3 |
Private Attributes | |
pv::util::Timestamp | time_ |
Additional Inherited Members | |
![]() | |
static QColor | select_text_color (QColor background) |
![]() | |
TimeItem (View &view) | |
![]() | |
static QPen | highlight_pen () |
![]() | |
bool | snapping_disabled_ = false |
View & | view_ |
![]() | |
QWidget * | context_parent_ |
QPoint | drag_point_ |
The TriggerMarker class is used to show to the user at what point in time a trigger occured. It is not editable by the user.
Definition at line 35 of file triggermarker.hpp.
pv::views::trace::TriggerMarker::TriggerMarker | ( | View & | view, |
const pv::util::Timestamp & | time | ||
) |
Constructor.
view | A reference to the view that owns this marker. |
time | The time to set the marker to. |
Definition at line 29 of file triggermarker.cpp.
pv::views::trace::TriggerMarker::TriggerMarker | ( | const TriggerMarker & | marker | ) |
Copy constructor.
Definition at line 35 of file triggermarker.cpp.
|
overridevirtual |
Gets the arrow-tip point of the time marker.
rect | the rectangle of the ruler area. |
Implements pv::views::trace::ViewItem.
Definition at line 69 of file triggermarker.cpp.
|
overridevirtual |
Returns true if the item is visible and enabled.
Implements pv::views::trace::ViewItem.
Definition at line 41 of file triggermarker.cpp.
|
overridevirtual |
Implements pv::views::trace::TimeItem.
Definition at line 64 of file triggermarker.cpp.
|
overridevirtual |
Returns true if the item may be dragged/moved.
Reimplemented from pv::views::trace::ViewItem.
Definition at line 46 of file triggermarker.cpp.
|
overridevirtual |
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::views::trace::ViewItem.
Definition at line 77 of file triggermarker.cpp.
|
overridevirtual |
Sets the time of the marker.
Implements pv::views::trace::TimeItem.
Definition at line 52 of file triggermarker.cpp.
|
overridevirtual |
Returns the time this time item is set to.
Implements pv::views::trace::TimeItem.
Definition at line 59 of file triggermarker.cpp.
|
static |
Definition at line 40 of file triggermarker.hpp.
|
private |
Definition at line 88 of file triggermarker.hpp.