PulseView  unreleased development snapshot
A Qt-based sigrok GUI
pv::views::trace::MarginWidget Class Referenceabstract

#include <marginwidget.hpp>

Inheritance diagram for pv::views::trace::MarginWidget:
Collaboration diagram for pv::views::trace::MarginWidget:

Public Member Functions

 MarginWidget (View &parent)
 
virtual QSize extended_size_hint () const =0
 

Protected Slots

virtual void contextMenuEvent (QContextMenuEvent *event)
 
virtual void keyPressEvent (QKeyEvent *event)
 
virtual void on_popup_closed ()
 

Protected Member Functions

virtual void item_clicked (const shared_ptr< ViewItem > &item)
 
void show_popup (const shared_ptr< ViewItem > &item)
 
- Protected Member Functions inherited from pv::views::trace::ViewWidget
 ViewWidget (View &parent)
 
virtual void item_hover (const shared_ptr< ViewItem > &item, QPoint pos)
 
bool accept_drag () const
 
bool mouse_down () const
 
void drag_items (const QPoint &delta)
 
virtual void drag ()
 
virtual void drag_by (const QPoint &delta)
 
virtual void drag_release ()
 
virtual vector< shared_ptr< ViewItem > > items ()=0
 
virtual shared_ptr< ViewItemget_mouse_over_item (const QPoint &pt)=0
 
void mouse_left_press_event (QMouseEvent *event)
 
void mouse_left_release_event (QMouseEvent *event)
 
virtual bool touch_event (QTouchEvent *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)
 

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 Attributes inherited from pv::views::trace::ViewWidget
pv::views::trace::Viewview_
 
QPoint mouse_point_
 
QPoint mouse_down_point_
 
pv::util::Timestamp mouse_down_offset_
 
shared_ptr< ViewItemmouse_down_item_
 
Qt::KeyboardModifiers mouse_modifiers_
 Keyboard modifiers that were active when mouse was last moved or clicked. More...
 
bool item_dragging_
 

Detailed Description

Definition at line 37 of file marginwidget.hpp.

Constructor & Destructor Documentation

pv::views::trace::MarginWidget::MarginWidget ( View parent)

Definition at line 35 of file marginwidget.cpp.

Member Function Documentation

void pv::views::trace::MarginWidget::contextMenuEvent ( QContextMenuEvent *  event)
protectedvirtualslot

Reimplemented in pv::views::trace::Ruler, and pv::views::trace::Header.

Definition at line 57 of file marginwidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual QSize pv::views::trace::MarginWidget::extended_size_hint ( ) const
pure virtual

The extended area that the margin widget would like to be sized to.

Remarks
This area is the area specified by sizeHint, extended by the area to overlap the viewport.

Implemented in pv::views::trace::Ruler, and pv::views::trace::Header.

void pv::views::trace::MarginWidget::item_clicked ( const shared_ptr< ViewItem > &  item)
protectedvirtual

Indicates the event an a view item has been clicked.

Parameters
itemthe view item that has been clicked.

Reimplemented from pv::views::trace::ViewWidget.

Definition at line 41 of file marginwidget.cpp.

Here is the call graph for this function:

void pv::views::trace::MarginWidget::keyPressEvent ( QKeyEvent *  event)
protectedvirtualslot

Reimplemented in pv::views::trace::Header.

Definition at line 72 of file marginwidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::MarginWidget::on_popup_closed ( )
protectedvirtualslot

Definition at line 86 of file marginwidget.cpp.

Here is the caller graph for this function:

void pv::views::trace::MarginWidget::show_popup ( const shared_ptr< ViewItem > &  item)
protected

Shows the popup of a the specified ViewItem .

Parameters
itemThe item to show the popup for.

Definition at line 47 of file marginwidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


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