Motiv
Marvelous OTF2 Traces Interactive Visualizer
Loading...
Searching...
No Matches
Public Slots | Signals | Public Member Functions | Protected Member Functions | List of all members
TraceOverviewTimelineView Class Reference

A smaller TimelineView dock widget designed for an overview and quick navigation. More...

#include <TraceOverviewTimelineView.hpp>

Inheritance diagram for TraceOverviewTimelineView:
Inheritance graph
[legend]
Collaboration diagram for TraceOverviewTimelineView:
Collaboration graph
[legend]

Public Slots

void updateView ()
 Updates the view to reflect the current selection of the TraceDataProxy. More...
 
void setSelectionWindow (types::TraceTime from, types::TraceTime to)
 Set a new selection window. The UI is updated to reflect the changes. More...
 

Signals

void windowSelectionChanged (types::TraceTime from, types::TraceTime to)
 Signals a change in the selection. More...
 

Public Member Functions

 TraceOverviewTimelineView (Trace *fullTrace, QWidget *parent=nullptr)
 Creates a new instance of the TraceOverviewTimelineView class. More...
 

Protected Member Functions

void mousePressEvent (QMouseEvent *event) override
 
void mouseReleaseEvent (QMouseEvent *event) override
 
void mouseMoveEvent (QMouseEvent *event) override
 
void resizeEvent (QResizeEvent *event) override
 

Detailed Description

A smaller TimelineView dock widget designed for an overview and quick navigation.

A TraceOverviewTimelineView always shows the entire loaded trace but highlights the current selected time window. Furthermore, it allows selecting a new time range by dragging a selection in the overview.

Definition at line 33 of file TraceOverviewTimelineView.hpp.

Constructor & Destructor Documentation

◆ TraceOverviewTimelineView()

TraceOverviewTimelineView::TraceOverviewTimelineView ( Trace fullTrace,
QWidget *  parent = nullptr 
)
explicit

Creates a new instance of the TraceOverviewTimelineView class.

Parameters
fullTracePointer to the entire loaded trace
parentThe parent QWidget

Definition at line 28 of file TraceOverviewTimelineView.cpp.

Member Function Documentation

◆ mouseMoveEvent()

void TraceOverviewTimelineView::mouseMoveEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 150 of file TraceOverviewTimelineView.cpp.

◆ mousePressEvent()

void TraceOverviewTimelineView::mousePressEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 140 of file TraceOverviewTimelineView.cpp.

◆ mouseReleaseEvent()

void TraceOverviewTimelineView::mouseReleaseEvent ( QMouseEvent *  event)
overrideprotected

Definition at line 157 of file TraceOverviewTimelineView.cpp.

◆ resizeEvent()

void TraceOverviewTimelineView::resizeEvent ( QResizeEvent *  event)
overrideprotected

Definition at line 104 of file TraceOverviewTimelineView.cpp.

◆ setSelectionWindow

void TraceOverviewTimelineView::setSelectionWindow ( types::TraceTime  from,
types::TraceTime  to 
)
slot

Set a new selection window. The UI is updated to reflect the changes.

Parameters
fromThe new start of the selection
toThe new end of the selection

Definition at line 121 of file TraceOverviewTimelineView.cpp.

◆ updateView

void TraceOverviewTimelineView::updateView ( )
slot

Updates the view to reflect the current selection of the TraceDataProxy.

Definition at line 111 of file TraceOverviewTimelineView.cpp.

◆ windowSelectionChanged

void TraceOverviewTimelineView::windowSelectionChanged ( types::TraceTime  from,
types::TraceTime  to 
)
signal

Signals a change in the selection.

This signal should trigger the main view to zoom to the selected time window.

Parameters
fromThe newly selected start time of the selection
toThe newly selected end time of the selection

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