PulseView  unreleased development snapshot
A Qt-based sigrok GUI
pv::views::trace::Header Class Reference

#include <header.hpp>

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

Public Member Functions

 Header (View &parent)
 
QSize sizeHint () const
 
QSize extended_size_hint () const
 
- Public Member Functions inherited from pv::views::trace::MarginWidget
 MarginWidget (View &parent)
 

Private Slots

void on_group ()
 
void on_ungroup ()
 

Private Member Functions

vector< shared_ptr< ViewItem > > items ()
 
shared_ptr< ViewItemget_mouse_over_item (const QPoint &pt)
 
void paintEvent (QPaintEvent *event)
 
void contextMenuEvent (QContextMenuEvent *event)
 
void keyPressEvent (QKeyEvent *event)
 

Static Private Attributes

static const int Padding = 12
 

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 Slots inherited from pv::views::trace::MarginWidget
virtual void on_popup_closed ()
 
- Protected Member Functions inherited from pv::views::trace::MarginWidget
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 ()
 
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)
 
- 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

The Header class provides an area for Trace labels to be shown, trace-related settings to be edited, trace groups to be shown and similar. Essentially, it is the main management area of the View itself and shown on the left-hand side of the trace area.

Definition at line 46 of file header.hpp.

Constructor & Destructor Documentation

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

Definition at line 59 of file header.cpp.

Member Function Documentation

void pv::views::trace::Header::contextMenuEvent ( QContextMenuEvent *  event)
privatevirtual

Reimplemented from pv::views::trace::MarginWidget.

Definition at line 122 of file header.cpp.

Here is the call graph for this function:

QSize pv::views::trace::Header::extended_size_hint ( ) const
virtual

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

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

Implements pv::views::trace::MarginWidget.

Definition at line 75 of file header.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

shared_ptr< ViewItem > pv::views::trace::Header::get_mouse_over_item ( const QPoint &  pt)
privatevirtual

Gets the first view item which has a label that contains pt .

Parameters
ptthe point to search with.
Returns
the view item that has been found, or and empty shared_ptr if no item was found.

Implements pv::views::trace::ViewWidget.

Definition at line 87 of file header.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

vector< shared_ptr< ViewItem > > pv::views::trace::Header::items ( )
privatevirtual

Gets the row items.

Implements pv::views::trace::ViewWidget.

Definition at line 80 of file header.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::Header::keyPressEvent ( QKeyEvent *  event)
privatevirtual

Reimplemented from pv::views::trace::MarginWidget.

Definition at line 148 of file header.cpp.

Here is the call graph for this function:

void pv::views::trace::Header::on_group ( )
privateslot

Definition at line 160 of file header.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::Header::on_ungroup ( )
privateslot

Definition at line 197 of file header.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::views::trace::Header::paintEvent ( QPaintEvent *  event)
private

Definition at line 98 of file header.cpp.

Here is the call graph for this function:

QSize pv::views::trace::Header::sizeHint ( ) const

Definition at line 64 of file header.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const int pv::views::trace::Header::Padding = 12
staticprivate

Definition at line 51 of file header.hpp.


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