PulseView  0.3.0
A Qt-based sigrok GUI
pv::view::MarginWidget Class Referenceabstract

#include <marginwidget.hpp>

Inheritance diagram for pv::view::MarginWidget:
Collaboration diagram for pv::view::MarginWidget:

Public Member Functions

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

Protected Member Functions

virtual void item_clicked (const std::shared_ptr< pv::view::ViewItem > &item)
 
void show_popup (const std::shared_ptr< ViewItem > &item)
 
virtual void contextMenuEvent (QContextMenuEvent *event)
 
virtual void keyPressEvent (QKeyEvent *e)
 
- Protected Member Functions inherited from pv::view::ViewWidget
 ViewWidget (View &parent)
 
virtual void item_hover (const std::shared_ptr< pv::view::ViewItem > &item)
 
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 std::vector< std::shared_ptr< pv::view::ViewItem > > items ()=0
 
virtual std::shared_ptr< pv::view::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 *e)
 
bool event (QEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 
void mouseReleaseEvent (QMouseEvent *event)
 
void mouseMoveEvent (QMouseEvent *event)
 
void leaveEvent (QEvent *event)
 

Additional Inherited Members

- Public Slots inherited from pv::view::ViewWidget
void clear_selection ()
 
- Signals inherited from pv::view::ViewWidget
void selection_changed ()
 
- Protected Attributes inherited from pv::view::ViewWidget
pv::view::Viewview_
 
QPoint mouse_point_
 
QPoint mouse_down_point_
 
std::shared_ptr< ViewItemmouse_down_item_
 
bool item_dragging_
 

Detailed Description

Definition at line 35 of file marginwidget.hpp.

Constructor & Destructor Documentation

pv::view::MarginWidget::MarginWidget ( pv::view::View parent)

Definition at line 35 of file marginwidget.cpp.

Member Function Documentation

void pv::view::MarginWidget::contextMenuEvent ( QContextMenuEvent *  event)
protectedvirtual

Reimplemented in pv::view::Header.

Definition at line 54 of file marginwidget.cpp.

Here is the call graph for this function:

virtual QSize pv::view::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::view::Ruler, and pv::view::Header.

void pv::view::MarginWidget::item_clicked ( const std::shared_ptr< pv::view::ViewItem > &  item)
protectedvirtual

Indicates the event an a view item has been clicked.

Parameters
itemthe view item that has been clicked.

Reimplemented from pv::view::ViewWidget.

Definition at line 41 of file marginwidget.cpp.

Here is the call graph for this function:

void pv::view::MarginWidget::keyPressEvent ( QKeyEvent *  e)
protectedvirtual

Reimplemented in pv::view::Header.

Definition at line 65 of file marginwidget.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::view::MarginWidget::show_popup ( const std::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: