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

A UI component that shows additional information. More...

#include <InformationDock.hpp>

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

Public Slots

void setElement (TimedElement *element)
 Sets the current element. More...
 

Signals

void zoomToWindow (types::TraceTime from, types::TraceTime to)
 Signal indicating to zoom to a specific time window. More...
 

Public Member Functions

 InformationDock (QWidget *parent=nullptr)
 Creates a new instance of the InformationDock class. More...
 
void addElementStrategy (InformationDockElementStrategy *s)
 Add a strategy to display information for specific items. More...
 

Protected Member Functions

virtual void updateView ()
 Updates the view. More...
 

Detailed Description

A UI component that shows additional information.

An InformationDock shows more detailed and additional information about the current selected item.

Definition at line 34 of file InformationDock.hpp.

Constructor & Destructor Documentation

◆ InformationDock()

InformationDock::InformationDock ( QWidget *  parent = nullptr)
explicit

Creates a new instance of the InformationDock class.

Parameters
parentThe parent QWidget

Definition at line 26 of file InformationDock.cpp.

◆ ~InformationDock()

InformationDock::~InformationDock ( )
override

Definition at line 30 of file InformationDock.cpp.

Member Function Documentation

◆ addElementStrategy()

void InformationDock::addElementStrategy ( InformationDockElementStrategy s)

Add a strategy to display information for specific items.

When the selection changes the InformationDock instance iterates over all added InformationDockElementStrategy s and tries to update them until the first reports it accepted the update by returning True from the update function.

Parameters
sThe strategy to add

Definition at line 66 of file InformationDock.cpp.

◆ setElement

void InformationDock::setElement ( TimedElement element)
slot

Sets the current element.

This triggers an updateView call

Parameters
elementThe newly selected element

Definition at line 60 of file InformationDock.cpp.

◆ updateView()

void InformationDock::updateView ( )
protectedvirtual

Updates the view.

This function iterates over all added InformationDockElementStrategy s and tries to update them until the first reports it accepted the update by returning True from the update function.

Definition at line 38 of file InformationDock.cpp.

◆ zoomToWindow

void InformationDock::zoomToWindow ( types::TraceTime  from,
types::TraceTime  to 
)
signal

Signal indicating to zoom to a specific time window.

Parameters
fromThe time at which the new time window should start
toThe time at which the new time window should end

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