RobWorkProject  23.9.11-
Public Member Functions | List of all members
DistanceMultiResultWidget::Dispatcher Class Reference

Dispatchers are responsible for creating new widgets of type SimulatorLogEntryWidget. More...

#include <DistanceMultiResultWidget.hpp>

Inherits Dispatcher.

Public Member Functions

 Dispatcher ()
 Constructor.
 
virtual ~Dispatcher ()
 Destructor.
 
SimulatorLogEntryWidgetmakeWidget (rw::core::Ptr< const rwsim::log::SimulatorLog > entry, QWidget *parent=0) const
 Make new SimulatorLogEntryWidget. More...
 
bool accepts (rw::core::Ptr< const rwsim::log::SimulatorLog > entry) const
 Check if the widget created by this dispatcher will be work for the given log entry. More...
 

Detailed Description

Dispatchers are responsible for creating new widgets of type SimulatorLogEntryWidget.

Member Function Documentation

◆ accepts()

bool accepts ( rw::core::Ptr< const rwsim::log::SimulatorLog entry) const

Check if the widget created by this dispatcher will be work for the given log entry.

Parameters
entry[in] the entry.
Returns
true if widgets will work for this entry, or false otherwise.

◆ makeWidget()

SimulatorLogEntryWidget* makeWidget ( rw::core::Ptr< const rwsim::log::SimulatorLog entry,
QWidget *  parent = 0 
) const

Make new SimulatorLogEntryWidget.

Parameters
entry[in] the entry to make widget for.
parent[in] the parent Qt widget (optional).
Returns
a pointer to the widget - ownership is shared by the caller and the parent widget if given.

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