RobWorkProject
Public Member Functions | List of all members
ConstraintWidget::Dispatcher Class Reference

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

#include <ConstraintWidget.hpp>

Inherits SimulatorLogEntryWidget::Dispatcher.

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from SimulatorLogEntryWidget::Dispatcher
typedef rw::common::Ptr< const DispatcherPtr
 Smart pointer to a dispatcher.
 

Detailed Description

Dispatchers are responsible for creating new widgets of type SimulatorLogEntryWidget.

Member Function Documentation

◆ accepts()

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

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.

Implements SimulatorLogEntryWidget::Dispatcher.

◆ makeWidget()

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

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.

Implements SimulatorLogEntryWidget::Dispatcher.


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