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

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

#include <InformationDockSlotStrategy.hpp>

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

Public Member Functions

void setup (QFormLayout *layout) override
 Sets up the QFormLayout. More...
 
void updateView (QFormLayout *layout, Slot *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< Slot >
virtual Slotapplicable (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, Slot *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< Slot >
static QString tr (const char *s, const char *c=nullptr, int n=-1)
 
- Protected Attributes inherited from InformationDockElementBaseStrategy< Slot >
TimeUnitLabelstartField
 
TimeUnitLabelendField
 
TimeUnitLabelruntimeField
 

Detailed Description

A InformationDockElementStrategy to display information about a Slot.

Definition at line 28 of file InformationDockSlotStrategy.hpp.

Member Function Documentation

◆ setup()

void InformationDockSlotStrategy::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 31 of file InformationDockSlotStrategy.cpp.

◆ title()

std::string InformationDockSlotStrategy::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 42 of file InformationDockSlotStrategy.cpp.

◆ updateView()

void InformationDockSlotStrategy::updateView ( QFormLayout *  layout,
Slot 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 21 of file InformationDockSlotStrategy.cpp.


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