StateTreeModel Class Reference

#include <ArmarXGui/gui-plugins/StatechartEditorPlugin/model/StateTreeModel.h>

+ Inheritance diagram for StateTreeModel:

Signals

void stateAddedOrRemoved ()
 

Public Member Functions

void addGroup (StatechartGroupPtr group)
 
void annotateAllStateRerefences ()
 
void annotateStateRerefences (const QList< statechartmodel::StatePtr > &statesToAnnotate)
 
void clear ()
 
QList< statechartmodel::StateInstancePtrfindStateUsages (StateTreeNodePtr node)
 
void generateAllBaseClasses (QPointer< QProgressDialog > progressDialog=NULL)
 
void generateBaseClass (StateTreeNodePtr node, std::filesystem::path buildDir, VariantInfoPtr variantInfo, std::vector< std::string > proxies)
 
void generateBaseClasses (const StatechartGroupPtr &group)
 
void generateGroupDocString (StatechartGroupPtr group, QString doxyGroupPath)
 
StatechartGroupPtr getGroupByName (const QString &groupName) const
 
QList< StatechartGroupPtrgetGroups () const
 
StateTreeNodePtr getNodeByState (statechartmodel::StatePtr state) const
 
StateTreeNodePtr getNodeByUuid (const QString &uuid) const
 
const CMakePackageFindergetPackageFinder (const QString &packageName)
 
StateTreeNodePtr getRootNode () const
 
bool groupExists (StatechartGroupPtr group)
 
bool groupExists (std::filesystem::path groupPath)
 
void loadAllStates ()
 
StatechartGroupPtr loadGroup (QString groupDefinitionFile, StateTreeNodePtr rootNode)
 
void loadGroupStates (StatechartGroupPtr group)
 
void loadNode (StateTreeNodePtr node, std::filesystem::path parentPath, QList< statechartmodel::StatePtr > &allTheReaders)
 
void loadVariantInfos (const std::string &packageName)
 
void notifyDeleteStateTreeNode (StateTreeNodePtr node)
 
void notifyNewStateTreeNode (StateTreeNodePtr node)
 
void saveAll (QPointer< QProgressDialog > progressDialog=NULL)
 
void saveNode (StateTreeNodePtr node, std::filesystem::path parentPath)
 
void setNodeState (StateTreeNodePtr node, statechartmodel::StatePtr state)
 
 StateTreeModel (Ice::CommunicatorPtr ic, VariantInfoPtr variantInfo)
 
void writeIfChanged (std::string targetPath, std::string contents)
 

Detailed Description

Definition at line 48 of file StateTreeModel.h.

Constructor & Destructor Documentation

◆ StateTreeModel()

Definition at line 48 of file StateTreeModel.cpp.

Member Function Documentation

◆ addGroup()

void addGroup ( StatechartGroupPtr  group)

Definition at line 187 of file StateTreeModel.cpp.

◆ annotateAllStateRerefences()

void annotateAllStateRerefences ( )

Definition at line 112 of file StateTreeModel.cpp.

+ Here is the caller graph for this function:

◆ annotateStateRerefences()

void annotateStateRerefences ( const QList< statechartmodel::StatePtr > &  statesToAnnotate)

Definition at line 94 of file StateTreeModel.cpp.

◆ clear()

void clear ( )

Definition at line 180 of file StateTreeModel.cpp.

◆ findStateUsages()

QList< StateInstancePtr > findStateUsages ( StateTreeNodePtr  node)

Definition at line 749 of file StateTreeModel.cpp.

◆ generateAllBaseClasses()

void generateAllBaseClasses ( QPointer< QProgressDialog >  progressDialog = NULL)

Definition at line 409 of file StateTreeModel.cpp.

+ Here is the call graph for this function:

◆ generateBaseClass()

void generateBaseClass ( StateTreeNodePtr  node,
std::filesystem::path  buildDir,
VariantInfoPtr  variantInfo,
std::vector< std::string >  proxies 
)

Definition at line 604 of file StateTreeModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ generateBaseClasses()

void generateBaseClasses ( const StatechartGroupPtr group)

Definition at line 499 of file StateTreeModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ generateGroupDocString()

void generateGroupDocString ( StatechartGroupPtr  group,
QString  doxyGroupPath 
)

Definition at line 299 of file StateTreeModel.cpp.

+ Here is the caller graph for this function:

◆ getGroupByName()

StatechartGroupPtr getGroupByName ( const QString &  groupName) const

Definition at line 694 of file StateTreeModel.cpp.

◆ getGroups()

QList< StatechartGroupPtr > getGroups ( ) const

Definition at line 688 of file StateTreeModel.cpp.

◆ getNodeByState()

StateTreeNodePtr getNodeByState ( statechartmodel::StatePtr  state) const

Definition at line 711 of file StateTreeModel.cpp.

+ Here is the call graph for this function:

◆ getNodeByUuid()

StateTreeNodePtr getNodeByUuid ( const QString &  uuid) const

Definition at line 722 of file StateTreeModel.cpp.

+ Here is the caller graph for this function:

◆ getPackageFinder()

const CMakePackageFinder & getPackageFinder ( const QString &  packageName)

Definition at line 315 of file StateTreeModel.cpp.

+ Here is the caller graph for this function:

◆ getRootNode()

StateTreeNodePtr getRootNode ( ) const

Definition at line 682 of file StateTreeModel.cpp.

◆ groupExists() [1/2]

bool groupExists ( StatechartGroupPtr  group)

Definition at line 775 of file StateTreeModel.cpp.

+ Here is the caller graph for this function:

◆ groupExists() [2/2]

bool groupExists ( std::filesystem::path  groupPath)

Definition at line 781 of file StateTreeModel.cpp.

◆ loadAllStates()

void loadAllStates ( )

Definition at line 58 of file StateTreeModel.cpp.

+ Here is the call graph for this function:

◆ loadGroup()

StatechartGroupPtr loadGroup ( QString  groupDefinitionFile,
StateTreeNodePtr  rootNode 
)

Definition at line 165 of file StateTreeModel.cpp.

+ Here is the call graph for this function:

◆ loadGroupStates()

void loadGroupStates ( StatechartGroupPtr  group)

Definition at line 79 of file StateTreeModel.cpp.

+ Here is the call graph for this function:

◆ loadNode()

void loadNode ( StateTreeNodePtr  node,
std::filesystem::path  parentPath,
QList< statechartmodel::StatePtr > &  allTheReaders 
)

Definition at line 130 of file StateTreeModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ loadVariantInfos()

void loadVariantInfos ( const std::string &  packageName)

Definition at line 331 of file StateTreeModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ notifyDeleteStateTreeNode()

void notifyDeleteStateTreeNode ( StateTreeNodePtr  node)

Definition at line 202 of file StateTreeModel.cpp.

◆ notifyNewStateTreeNode()

void notifyNewStateTreeNode ( StateTreeNodePtr  node)

Definition at line 193 of file StateTreeModel.cpp.

◆ saveAll()

void saveAll ( QPointer< QProgressDialog >  progressDialog = NULL)

Definition at line 211 of file StateTreeModel.cpp.

+ Here is the call graph for this function:

◆ saveNode()

void saveNode ( StateTreeNodePtr  node,
std::filesystem::path  parentPath 
)

Definition at line 247 of file StateTreeModel.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setNodeState()

void setNodeState ( StateTreeNodePtr  node,
statechartmodel::StatePtr  state 
)

Definition at line 737 of file StateTreeModel.cpp.

+ Here is the caller graph for this function:

◆ stateAddedOrRemoved

void stateAddedOrRemoved ( )
signal

◆ writeIfChanged()

void writeIfChanged ( std::string  targetPath,
std::string  contents 
)

Definition at line 657 of file StateTreeModel.cpp.

+ Here is the call graph for this function:

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