StateTreeController Class Reference

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

+ Inheritance diagram for StateTreeController:

Public Slots

void collapseAll ()
 
void executeGroup (StatechartGroupPtr group, QString startState="")
 
void executeGroupWithDependencies (StatechartGroupPtr group, QString startState)
 
void onCloneGroup ()
 
void onContextMenu (const QPoint &point)
 
void onDeleteNode ()
 
void onExecuteGroup ()
 
void onFindStateUsages ()
 
void onGenerateStateCppFiles ()
 
void onGroupProperties ()
 
void onMakeStatePublic (bool enable)
 
void onNewDynamicRemoteStateDefinition ()
 
void onNewFolder ()
 
void onNewStateDefinition ()
 
void onOpenCMakeProject ()
 
void onOpenGroup (QString groupFile="")
 
void onOpenStateCPP ()
 
void onRenameGroup ()
 
void onRenameState ()
 
void onShowFullPath ()
 
void onStatechartFinished (int exitCode)
 
void selectNode (StateTreeNodePtr node)
 
void stopGroupExecution (StatechartGroupPtr group)
 
void stopGroupExecutionWithDependencies (StatechartGroupPtr group)
 

Signals

void closeAllTabsRequested ()
 

Public Member Functions

StatechartGroupPtr addNewGroup (const QString &groupName, const QString &groupPath, const QString &description, const QString &packageName, const QList< QString > proxies, bool generateContext, const QMap< QString, QString > &statechartGroupConfigurations)
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
StateTreeNodePtr createNewFolder (QString name, StateTreeNodePtr parent)
 
StateTreeNodePtr createNewState (QString name, StateTreeNodePtr parent, bool createDynamicRemoteState=false)
 
QVariant data (const QModelIndex &index, int role) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
StateTreeNodePtr getClosestParentFolderOrGroupNode (StateTreeNodePtr node)
 
StateTreeNodePtr getNode (QModelIndex index) const
 
StateTreeNodePtr getNodeByState (statechartmodel::StatePtr state)
 
StateTreeNodePtr getSelectedNode ()
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
QModelIndex index (int row, int column, const QModelIndex &parentIndex=QModelIndex()) const override
 
void loadAllStates ()
 
StatechartGroupPtr loadAndAddGroup (QString groupDefinitionFile)
 
StatechartGroupPtr loadGroup (QString groupDefinitionFile)
 
QMimeData * mimeData (const QModelIndexList &indexes) const override
 
QStringList mimeTypes () const override
 
bool nodeIsFolder (StateTreeNodePtr node)
 
bool nodeIsFolderOrGroup (StateTreeNodePtr node)
 
bool nodeIsGroup (StateTreeNodePtr node)
 
bool nodeIsState (StateTreeNodePtr node)
 
void openStateCPP (StateTreeNodePtr node)
 
QModelIndex parent (const QModelIndex &index) const override
 
void removeFolder (StateTreeNodePtr folderNode)
 
void removeNodeFromTree (StateTreeNodePtr node)
 
void removeState (StateTreeNodePtr stateNode)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
void saveAll ()
 
bool selectedNodeIsFolder ()
 
bool selectedNodeIsFolderOrGroup ()
 
bool selectedNodeIsGroup ()
 
bool selectedNodeIsState ()
 
void selectNodeByState (statechartmodel::StatePtr state)
 
 StateTreeController (Ice::CommunicatorPtr ic, VariantInfoPtr variantInfo, QList< QVariant > headerInfo, QTreeView *treeView, QLineEdit *filterLineEdit, const ArmarXPackageToolInterfacePtr &packageTool, const StatechartProfilesPtr &statechartProfiles, StatechartProfilePtr currentProfile, QObject *parent=0)
 
StateTreeNodePtr tryCreateNewState (QString name)
 
void tryDeleteFolder ()
 
void tryDeleteGroup ()
 
void tryDeleteState ()
 
 ~StateTreeController () override
 

Detailed Description

Definition at line 61 of file StateTreeController.h.

Constructor & Destructor Documentation

◆ StateTreeController()

StateTreeController ( Ice::CommunicatorPtr  ic,
VariantInfoPtr  variantInfo,
QList< QVariant >  headerInfo,
QTreeView *  treeView,
QLineEdit *  filterLineEdit,
const ArmarXPackageToolInterfacePtr packageTool,
const StatechartProfilesPtr statechartProfiles,
StatechartProfilePtr  currentProfile,
QObject *  parent = 0 
)

Definition at line 63 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ ~StateTreeController()

~StateTreeController ( )
override

Definition at line 189 of file StateTreeController.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ addNewGroup()

StatechartGroupPtr addNewGroup ( const QString &  groupName,
const QString &  groupPath,
const QString &  description,
const QString &  packageName,
const QList< QString >  proxies,
bool  generateContext,
const QMap< QString, QString > &  statechartGroupConfigurations 
)

Definition at line 490 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ closeAllTabsRequested

void closeAllTabsRequested ( )
signal
+ Here is the caller graph for this function:

◆ collapseAll

void collapseAll ( )
slot

Definition at line 1443 of file StateTreeController.cpp.

◆ columnCount()

int columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 387 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ createNewFolder()

StateTreeNodePtr createNewFolder ( QString  name,
StateTreeNodePtr  parent 
)

Definition at line 682 of file StateTreeController.cpp.

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

◆ createNewState()

StateTreeNodePtr createNewState ( QString  name,
StateTreeNodePtr  parent,
bool  createDynamicRemoteState = false 
)

Definition at line 645 of file StateTreeController.cpp.

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

◆ data()

QVariant data ( const QModelIndex &  index,
int  role 
) const
override

Definition at line 214 of file StateTreeController.cpp.

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

◆ executeGroup

void executeGroup ( StatechartGroupPtr  group,
QString  startState = "" 
)
slot

Definition at line 1126 of file StateTreeController.cpp.

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

◆ executeGroupWithDependencies

void executeGroupWithDependencies ( StatechartGroupPtr  group,
QString  startState 
)
slot

Definition at line 1170 of file StateTreeController.cpp.

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

◆ flags()

Qt::ItemFlags flags ( const QModelIndex &  index) const
override

Definition at line 286 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ getClosestParentFolderOrGroupNode()

StateTreeNodePtr getClosestParentFolderOrGroupNode ( StateTreeNodePtr  node)

Definition at line 533 of file StateTreeController.cpp.

◆ getNode()

StateTreeNodePtr getNode ( QModelIndex  index) const

Definition at line 697 of file StateTreeController.cpp.

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

◆ getNodeByState()

StateTreeNodePtr getNodeByState ( statechartmodel::StatePtr  state)

Definition at line 516 of file StateTreeController.cpp.

◆ getSelectedNode()

StateTreeNodePtr getSelectedNode ( )

Definition at line 521 of file StateTreeController.cpp.

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

◆ headerData()

QVariant headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override

Definition at line 308 of file StateTreeController.cpp.

◆ index()

QModelIndex index ( int  row,
int  column,
const QModelIndex &  parentIndex = QModelIndex() 
) const
override

Definition at line 318 of file StateTreeController.cpp.

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

◆ loadAllStates()

void loadAllStates ( )

Definition at line 511 of file StateTreeController.cpp.

◆ loadAndAddGroup()

StatechartGroupPtr loadAndAddGroup ( QString  groupDefinitionFile)

Definition at line 399 of file StateTreeController.cpp.

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

◆ loadGroup()

StatechartGroupPtr loadGroup ( QString  groupDefinitionFile)

Definition at line 465 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ mimeData()

QMimeData * mimeData ( const QModelIndexList &  indexes) const
override

Definition at line 1637 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ mimeTypes()

QStringList mimeTypes ( ) const
override

Definition at line 1629 of file StateTreeController.cpp.

◆ nodeIsFolder()

bool nodeIsFolder ( StateTreeNodePtr  node)

Definition at line 543 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ nodeIsFolderOrGroup()

bool nodeIsFolderOrGroup ( StateTreeNodePtr  node)

Definition at line 553 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ nodeIsGroup()

bool nodeIsGroup ( StateTreeNodePtr  node)

Definition at line 548 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ nodeIsState()

bool nodeIsState ( StateTreeNodePtr  node)

Definition at line 538 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ onCloneGroup

void onCloneGroup ( )
slot

Definition at line 1327 of file StateTreeController.cpp.

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

◆ onContextMenu

void onContextMenu ( const QPoint &  point)
slot

Definition at line 723 of file StateTreeController.cpp.

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

◆ onDeleteNode

void onDeleteNode ( )
slot

Definition at line 976 of file StateTreeController.cpp.

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

◆ onExecuteGroup

void onExecuteGroup ( )
slot

Definition at line 1205 of file StateTreeController.cpp.

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

◆ onFindStateUsages

void onFindStateUsages ( )
slot

Definition at line 1010 of file StateTreeController.cpp.

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

◆ onGenerateStateCppFiles

void onGenerateStateCppFiles ( )
slot

Definition at line 1307 of file StateTreeController.cpp.

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

◆ onGroupProperties

void onGroupProperties ( )
slot

Definition at line 1423 of file StateTreeController.cpp.

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

◆ onMakeStatePublic

void onMakeStatePublic ( bool  enable)
slot

Definition at line 1002 of file StateTreeController.cpp.

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

◆ onNewDynamicRemoteStateDefinition

void onNewDynamicRemoteStateDefinition ( )
slot

Definition at line 931 of file StateTreeController.cpp.

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

◆ onNewFolder

void onNewFolder ( )
slot

Definition at line 947 of file StateTreeController.cpp.

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

◆ onNewStateDefinition

void onNewStateDefinition ( )
slot

Definition at line 891 of file StateTreeController.cpp.

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

◆ onOpenCMakeProject

void onOpenCMakeProject ( )
slot

Definition at line 1077 of file StateTreeController.cpp.

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

◆ onOpenGroup

void onOpenGroup ( QString  groupFile = "")
slot

Definition at line 1108 of file StateTreeController.cpp.

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

◆ onOpenStateCPP

void onOpenStateCPP ( )
slot

Definition at line 1103 of file StateTreeController.cpp.

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

◆ onRenameGroup

void onRenameGroup ( )
slot

Definition at line 1371 of file StateTreeController.cpp.

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

◆ onRenameState

void onRenameState ( )
slot

Definition at line 1022 of file StateTreeController.cpp.

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

◆ onShowFullPath

void onShowFullPath ( )
slot

Definition at line 1091 of file StateTreeController.cpp.

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

◆ onStatechartFinished

void onStatechartFinished ( int  exitCode)
slot

Definition at line 1247 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ openStateCPP()

void openStateCPP ( StateTreeNodePtr  node)

Definition at line 1455 of file StateTreeController.cpp.

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

◆ parent()

QModelIndex parent ( const QModelIndex &  index) const
override

Definition at line 348 of file StateTreeController.cpp.

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

◆ removeFolder()

void removeFolder ( StateTreeNodePtr  folderNode)

Definition at line 1571 of file StateTreeController.cpp.

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

◆ removeNodeFromTree()

void removeNodeFromTree ( StateTreeNodePtr  node)

Definition at line 1596 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ removeState()

void removeState ( StateTreeNodePtr  stateNode)

Definition at line 1537 of file StateTreeController.cpp.

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

◆ rowCount()

int rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 366 of file StateTreeController.cpp.

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

◆ saveAll()

void saveAll ( )

Definition at line 1608 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ selectedNodeIsFolder()

bool selectedNodeIsFolder ( )

Definition at line 563 of file StateTreeController.cpp.

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

◆ selectedNodeIsFolderOrGroup()

bool selectedNodeIsFolderOrGroup ( )

Definition at line 573 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ selectedNodeIsGroup()

bool selectedNodeIsGroup ( )

Definition at line 568 of file StateTreeController.cpp.

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

◆ selectedNodeIsState()

bool selectedNodeIsState ( )

Definition at line 558 of file StateTreeController.cpp.

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

◆ selectNode

void selectNode ( StateTreeNodePtr  node)
slot

Definition at line 1448 of file StateTreeController.cpp.

◆ selectNodeByState()

void selectNodeByState ( statechartmodel::StatePtr  state)

Definition at line 713 of file StateTreeController.cpp.

◆ stopGroupExecution

void stopGroupExecution ( StatechartGroupPtr  group)
slot

Definition at line 1115 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ stopGroupExecutionWithDependencies

void stopGroupExecutionWithDependencies ( StatechartGroupPtr  group)
slot

Definition at line 1180 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ tryCreateNewState()

StateTreeNodePtr tryCreateNewState ( QString  name)

Definition at line 578 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ tryDeleteFolder()

void tryDeleteFolder ( )

Definition at line 1543 of file StateTreeController.cpp.

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

◆ tryDeleteGroup()

void tryDeleteGroup ( )

Definition at line 1577 of file StateTreeController.cpp.

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

◆ tryDeleteState()

void tryDeleteState ( )

Definition at line 590 of file StateTreeController.cpp.

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

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