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

A InformationDockElementStrategy to display information about a Communication. More...

#include <InformationDockCommunicationStrategy.hpp>

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

Public Member Functions

void setup (QFormLayout *layout) override
 Sets up the QFormLayout. More...
 
void updateView (QFormLayout *layout, Communication *element) override
 Updates the view. More...
 
std::string title () override
 Returns the title the information dock should show. More...
 
- Public Member Functions inherited from InformationDockElementBaseStrategy< Communication >
virtual Communicationapplicable (TimedElement *t)
 Checks if the strategy is applicable for an element and returns the casted element if so. More...
 
void setup (QFormLayout *layout) override
 Sets up the QFormLayout. More...
 
virtual void updateView (QFormLayout *layout, Communication *element)
 Updates the view. More...
 
bool update (QFormLayout *layout, TimedElement *element) override
 Sets up the QFormLayout. More...
 
std::string title () override
 Returns the title the information dock should show. More...
 
virtual void setup (QFormLayout *)
 Sets up the QFormLayout. More...
 
virtual bool update (QFormLayout *, TimedElement *)
 Updates the view to show details about a newly selected element. More...
 
virtual std::string title ()
 Returns the title the information dock should show. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from InformationDockElementBaseStrategy< Communication >
static QString tr (const char *s, const char *c=nullptr, int n=-1)
 
- Protected Attributes inherited from InformationDockElementBaseStrategy< Communication >
TimeUnitLabelstartField
 
TimeUnitLabelendField
 
TimeUnitLabelruntimeField
 

Detailed Description

A InformationDockElementStrategy to display information about a Communication.

Definition at line 28 of file InformationDockCommunicationStrategy.hpp.

Member Function Documentation

◆ setup()

void InformationDockCommunicationStrategy::setup ( QFormLayout *  layout)
overridevirtual

Sets up the QFormLayout.

In derived classes this function should be overwritten and fields and rows should be added to the form layout.

Parameters
layoutThe layout of the detailed window pane

Reimplemented from InformationDockElementStrategy.

Definition at line 21 of file InformationDockCommunicationStrategy.cpp.

◆ title()

std::string InformationDockCommunicationStrategy::title ( )
overridevirtual

Returns the title the information dock should show.

Returns
The title for the information dock should show

Reimplemented from InformationDockElementStrategy.

Definition at line 57 of file InformationDockCommunicationStrategy.cpp.

◆ updateView()

void InformationDockCommunicationStrategy::updateView ( QFormLayout *  layout,
Communication element 
)
override

Updates the view.

Derived classes should overwrite this function but call the base implementation as it updates the time fields. The element pointer is guaranteed to be not null.

Parameters
layoutThe layout of the detailed window pane
elementThe newly selected element

Definition at line 37 of file InformationDockCommunicationStrategy.cpp.


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