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 46 of file StateTreeModel.h.

Constructor & Destructor Documentation

◆ StateTreeModel()

Definition at line 47 of file StateTreeModel.cpp.

Member Function Documentation

◆ addGroup()

void addGroup ( StatechartGroupPtr  group)

Definition at line 172 of file StateTreeModel.cpp.

◆ annotateAllStateRerefences()

void annotateAllStateRerefences ( )

Definition at line 103 of file StateTreeModel.cpp.

+ Here is the caller graph for this function:

◆ annotateStateRerefences()

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

Definition at line 86 of file StateTreeModel.cpp.

◆ clear()

void clear ( )

Definition at line 166 of file StateTreeModel.cpp.

◆ findStateUsages()

QList< StateInstancePtr > findStateUsages ( StateTreeNodePtr  node)

Definition at line 677 of file StateTreeModel.cpp.

◆ generateAllBaseClasses()

void generateAllBaseClasses ( QPointer< QProgressDialog >  progressDialog = NULL)

Definition at line 375 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 556 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 461 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 274 of file StateTreeModel.cpp.

+ Here is the caller graph for this function:

◆ getGroupByName()

StatechartGroupPtr getGroupByName ( const QString &  groupName) const

Definition at line 628 of file StateTreeModel.cpp.

◆ getGroups()

QList< StatechartGroupPtr > getGroups ( ) const

Definition at line 623 of file StateTreeModel.cpp.

◆ getNodeByState()

StateTreeNodePtr getNodeByState ( statechartmodel::StatePtr  state) const

Definition at line 645 of file StateTreeModel.cpp.

+ Here is the call graph for this function:

◆ getNodeByUuid()

StateTreeNodePtr getNodeByUuid ( const QString &  uuid) const

Definition at line 655 of file StateTreeModel.cpp.

+ Here is the caller graph for this function:

◆ getPackageFinder()

const CMakePackageFinder & getPackageFinder ( const QString &  packageName)

Definition at line 287 of file StateTreeModel.cpp.

+ Here is the caller graph for this function:

◆ getRootNode()

StateTreeNodePtr getRootNode ( ) const

Definition at line 618 of file StateTreeModel.cpp.

◆ groupExists() [1/2]

bool groupExists ( StatechartGroupPtr  group)

Definition at line 702 of file StateTreeModel.cpp.

+ Here is the caller graph for this function:

◆ groupExists() [2/2]

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

Definition at line 707 of file StateTreeModel.cpp.

◆ loadAllStates()

void loadAllStates ( )

Definition at line 56 of file StateTreeModel.cpp.

+ Here is the call graph for this function:

◆ loadGroup()

StatechartGroupPtr loadGroup ( QString  groupDefinitionFile,
StateTreeNodePtr  rootNode 
)

Definition at line 152 of file StateTreeModel.cpp.

+ Here is the call graph for this function:

◆ loadGroupStates()

void loadGroupStates ( StatechartGroupPtr  group)

Definition at line 74 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 120 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 303 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 185 of file StateTreeModel.cpp.

◆ notifyNewStateTreeNode()

void notifyNewStateTreeNode ( StateTreeNodePtr  node)

Definition at line 177 of file StateTreeModel.cpp.

◆ saveAll()

void saveAll ( QPointer< QProgressDialog >  progressDialog = NULL)

Definition at line 193 of file StateTreeModel.cpp.

+ Here is the call graph for this function:

◆ saveNode()

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

Definition at line 228 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 669 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 594 of file StateTreeModel.cpp.

+ Here is the call graph for this function:

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