orca-robotics


INTRODUCTION
Overview
Download and Install
Documentation

REPOSITORY
Interfaces
Drivers
Libraries
Utilities
Software Map

DEVELOPER
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

hydroqgui::IGuiElementFactory Class Reference

#include <iguielementfactory.h>

Inherits hydroutil::Uncopyable.

Inheritance diagram for hydroqgui::IGuiElementFactory:

Inheritance graph
[legend]
List of all members.

Public Member Functions

std::vector< QString > supportedElementTypes () const
std::vector< std::string > supportedElementTypesAsStdString () const
 An STL version of the function above.
bool isSupported (const QString &elementType) const
virtual bool lookupElementType (const QStringList &ids, QString &elementType) const =0
virtual ::hydroqguielementutil::IGuiElementcreate (const QString &elementType, const QStringList &elementDetails, QColor suggestedColor,::hydroqguielementutil::IHumanManager &humanManager,::hydroqguielementutil::MouseEventManager &mouseEventManager,::hydroqguielementutil::ShortcutKeyManager &shortcutKeyManager, const GuiElementSet &guiElementSet) const =0

Protected Member Functions

void addSupportedType (const QString &elementType)
 Adds type to the list of supported elements.

Detailed Description

Intended as a base class for plug-in Gui Element factories.


Member Function Documentation

virtual ::hydroqguielementutil::IGuiElement* hydroqgui::IGuiElementFactory::create const QString &  elementType,
const QStringList &  elementDetails,
QColor  suggestedColor,
::hydroqguielementutil::IHumanManager humanManager,
::hydroqguielementutil::MouseEventManager mouseEventManager,
::hydroqguielementutil::ShortcutKeyManager shortcutKeyManager,
const GuiElementSet guiElementSet
const [pure virtual]
 

Creates a GuiElement using the elementType and elementDetails information. The elementType must be in the list of supportedElementTypes_. ElementDetails contains the connection details relevant to interfaces to be set up within the element. ElementDetails is a list of strings that look like this: interface/component Returns a NULL pointer if something goes wrong The factory should set a colour with guiElement->setColor, possibly using the suggested color.

bool hydroqgui::IGuiElementFactory::isSupported const QString &  elementType  )  const
 

Returns TRUE if the specified list of interface types is supported by this factory. Use addSupportedType() to define a list of supported types during initialization.

virtual bool hydroqgui::IGuiElementFactory::lookupElementType const QStringList &  ids,
QString &  elementType
const [pure virtual]
 

Looks up the elementType corresponding to the ids coming back from the required interfaces when connecting through clicking on the registry view. Example: 'ids' orca::LaserScanner2d maps to 'elementType' LaserScanner2d Needs to be augmented only for complicated elementTypes which have more than one interface. Returns true if an elementType was found otherwise false.

std::vector< QString > hydroqgui::IGuiElementFactory::supportedElementTypes  )  const
 

Returns a vector of all supported interface types. Use addSupportedType() to define a list of supported types during initialization.


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

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5