AbstractStateMimeData Class Referenceabstract

The AbstractStateMimeData class is used to transport state data from the treeview to the stateview and is implemented in the editor plugin. More...

#include <ArmarXGui/gui-plugins/StatechartViewerPlugin/model/StateMimeData.h>

+ Inheritance diagram for AbstractStateMimeData:

Public Member Functions

 AbstractStateMimeData (statechartmodel::StatePtr state)
 
QStringList formats () const override
 
const QString & getProxyName () const
 
statechartmodel::StatePtr getState () const
 
bool hasFormat (const QString &mimetype) const override
 
virtual bool isInSameGroup (statechartmodel::StatePtr state) const =0
 
virtual bool isPublic () const =0
 
void setProxyName (const QString &value)
 
void setState (const statechartmodel::StatePtr &value)
 

Protected Member Functions

QVariant retrieveData (const QString &mimetype, QVariant::Type preferredType) const override
 

Protected Attributes

QString proxyName
 
statechartmodel::StatePtr state
 

Detailed Description

The AbstractStateMimeData class is used to transport state data from the treeview to the stateview and is implemented in the editor plugin.

isInSameGroup is abstract because it can only be implemented in the editor plugin, because the states do not know anything about statechart groups.

Constructor & Destructor Documentation

◆ AbstractStateMimeData()

Member Function Documentation

◆ formats()

QStringList formats ( ) const
override

◆ getProxyName()

const QString & getProxyName ( ) const

◆ getState()

statechartmodel::StatePtr getState ( ) const

◆ hasFormat()

bool hasFormat ( const QString & mimetype) const
override

◆ isInSameGroup()

virtual bool isInSameGroup ( statechartmodel::StatePtr state) const
pure virtual

◆ isPublic()

virtual bool isPublic ( ) const
pure virtual

◆ retrieveData()

QVariant retrieveData ( const QString & mimetype,
QVariant::Type preferredType ) const
overrideprotected

◆ setProxyName()

void setProxyName ( const QString & value)

◆ setState()

void setState ( const statechartmodel::StatePtr & value)

Member Data Documentation

◆ proxyName

QString proxyName
protected

◆ state

statechartmodel::StatePtr state
protected

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