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.

Definition at line 36 of file StateMimeData.h.

Constructor & Destructor Documentation

◆ AbstractStateMimeData()

Definition at line 29 of file StateMimeData.cpp.

Member Function Documentation

◆ formats()

QStringList formats ( ) const
override

Definition at line 46 of file StateMimeData.cpp.

+ Here is the caller graph for this function:

◆ getProxyName()

const QString & getProxyName ( ) const

Definition at line 68 of file StateMimeData.cpp.

◆ getState()

statechartmodel::StatePtr getState ( ) const

Definition at line 78 of file StateMimeData.cpp.

◆ hasFormat()

bool hasFormat ( const QString &  mimetype) const
override

Definition at line 35 of file StateMimeData.cpp.

+ Here is the call graph for this function:

◆ 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

Definition at line 51 of file StateMimeData.cpp.

+ Here is the call graph for this function:

◆ setProxyName()

void setProxyName ( const QString &  value)

Definition at line 73 of file StateMimeData.cpp.

+ Here is the call graph for this function:

◆ setState()

void setState ( const statechartmodel::StatePtr value)

Definition at line 83 of file StateMimeData.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ proxyName

QString proxyName
protected

Definition at line 57 of file StateMimeData.h.

◆ state

statechartmodel::StatePtr state
protected

Definition at line 56 of file StateMimeData.h.


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