PulseView
unreleased development snapshot
A Qt-based sigrok GUI
|
#include <viewport.hpp>
Public Member Functions | |
Viewport (View &parent) | |
~Viewport () | |
shared_ptr< ViewItem > | get_mouse_over_item (const QPoint &pt) |
Private Member Functions | |
void | item_hover (const shared_ptr< ViewItem > &item, QPoint pos) |
void | drag () |
void | drag_by (const QPoint &delta) |
void | drag_release () |
vector< shared_ptr< ViewItem > > | items () |
bool | touch_event (QTouchEvent *event) |
void | paintEvent (QPaintEvent *event) |
void | mouseDoubleClickEvent (QMouseEvent *event) |
void | wheelEvent (QWheelEvent *event) |
void | on_setting_changed (const QString &key, const QVariant &value) |
Private Attributes | |
boost::optional< pv::util::Timestamp > | drag_offset_ |
int | drag_v_offset_ |
bool | allow_vertical_dragging_ |
double | pinch_offset0_ |
double | pinch_offset1_ |
bool | pinch_zoom_active_ |
Additional Inherited Members | |
Public Slots inherited from pv::views::trace::ViewWidget | |
void | clear_selection () |
Signals inherited from pv::views::trace::ViewWidget | |
void | selection_changed () |
Protected Member Functions inherited from pv::views::trace::ViewWidget | |
ViewWidget (View &parent) | |
virtual void | item_clicked (const shared_ptr< ViewItem > &item) |
bool | accept_drag () const |
bool | mouse_down () const |
void | drag_items (const QPoint &delta) |
void | mouse_left_press_event (QMouseEvent *event) |
void | mouse_left_release_event (QMouseEvent *event) |
bool | event (QEvent *event) |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
void | keyPressEvent (QKeyEvent *event) |
void | keyReleaseEvent (QKeyEvent *event) |
void | leaveEvent (QEvent *event) |
Protected Attributes inherited from pv::views::trace::ViewWidget | |
pv::views::trace::View & | view_ |
QPoint | mouse_point_ |
QPoint | mouse_down_point_ |
pv::util::Timestamp | mouse_down_offset_ |
shared_ptr< ViewItem > | mouse_down_item_ |
Qt::KeyboardModifiers | mouse_modifiers_ |
Keyboard modifiers that were active when mouse was last moved or clicked. More... | |
bool | item_dragging_ |
Definition at line 47 of file viewport.hpp.
|
explicit |
pv::views::trace::Viewport::~Viewport | ( | ) |
|
privatevirtual |
Sets this item into the dragged state.
Reimplemented from pv::views::trace::ViewWidget.
Definition at line 89 of file viewport.cpp.
|
privatevirtual |
Drag the background by the delta offset.
delta | the drag offset in pixels. |
Reimplemented from pv::views::trace::ViewWidget.
Definition at line 97 of file viewport.cpp.
|
privatevirtual |
Sets this item into the un-dragged state.
Reimplemented from pv::views::trace::ViewWidget.
Definition at line 109 of file viewport.cpp.
|
virtual |
Gets the first view item which has a hit-box that contains pt
.
pt | the point to search with. |
shared_ptr
if no item was found. Implements pv::views::trace::ViewWidget.
Definition at line 70 of file viewport.cpp.
|
privatevirtual |
Indicates when a view item is being hovered over.
item | The item that is being hovered over, or nullptr if no view item is being hovered over. |
Reimplemented from pv::views::trace::ViewWidget.
Definition at line 80 of file viewport.cpp.
|
privatevirtual |
Gets the items in the view widget.
Implements pv::views::trace::ViewWidget.
Definition at line 114 of file viewport.cpp.
|
private |
|
privatevirtual |
Implements pv::GlobalSettingsInterface.
Definition at line 309 of file viewport.cpp.
|
private |
|
privatevirtual |
Handles touch begin update and end events.
e | the event that triggered this handler. |
Reimplemented from pv::views::trace::ViewWidget.
Definition at line 125 of file viewport.cpp.
|
private |
|
private |
Definition at line 109 of file viewport.hpp.
|
private |
Definition at line 107 of file viewport.hpp.
|
private |
Definition at line 108 of file viewport.hpp.
|
private |
Definition at line 111 of file viewport.hpp.
|
private |
Definition at line 112 of file viewport.hpp.
|
private |
Definition at line 113 of file viewport.hpp.