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 57 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 64 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ ~StateTreeController()

~StateTreeController ( )
override

Definition at line 205 of file StateTreeController.cpp.

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 526 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 1595 of file StateTreeController.cpp.

◆ columnCount()

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

Definition at line 413 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ createNewFolder()

StateTreeNodePtr createNewFolder ( QString  name,
StateTreeNodePtr  parent 
)

Definition at line 766 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 723 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 230 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 1244 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 1293 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 306 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ getClosestParentFolderOrGroupNode()

StateTreeNodePtr getClosestParentFolderOrGroupNode ( StateTreeNodePtr  node)

Definition at line 589 of file StateTreeController.cpp.

◆ getNode()

StateTreeNodePtr getNode ( QModelIndex  index) const

Definition at line 783 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 570 of file StateTreeController.cpp.

◆ getSelectedNode()

StateTreeNodePtr getSelectedNode ( )

Definition at line 576 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 329 of file StateTreeController.cpp.

◆ index()

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

Definition at line 340 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 564 of file StateTreeController.cpp.

◆ loadAndAddGroup()

StatechartGroupPtr loadAndAddGroup ( QString  groupDefinitionFile)

Definition at line 426 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 500 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ mimeData()

QMimeData * mimeData ( const QModelIndexList &  indexes) const
override

Definition at line 1812 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ mimeTypes()

QStringList mimeTypes ( ) const
override

Definition at line 1803 of file StateTreeController.cpp.

◆ nodeIsFolder()

bool nodeIsFolder ( StateTreeNodePtr  node)

Definition at line 601 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ nodeIsFolderOrGroup()

bool nodeIsFolderOrGroup ( StateTreeNodePtr  node)

Definition at line 613 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ nodeIsGroup()

bool nodeIsGroup ( StateTreeNodePtr  node)

Definition at line 607 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ nodeIsState()

bool nodeIsState ( StateTreeNodePtr  node)

Definition at line 595 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ onCloneGroup

void onCloneGroup ( )
slot

Definition at line 1460 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 811 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 1083 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 1331 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 1117 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 1436 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 1566 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 1110 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 1035 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 1052 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 993 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 1188 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 1226 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 1220 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 1511 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 1130 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 1205 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 1374 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ openStateCPP()

void openStateCPP ( StateTreeNodePtr  node)

Definition at line 1609 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 371 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 1741 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 1768 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ removeState()

void removeState ( StateTreeNodePtr  stateNode)

Definition at line 1702 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 390 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 1781 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ selectedNodeIsFolder()

bool selectedNodeIsFolder ( )

Definition at line 627 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 639 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ selectedNodeIsGroup()

bool selectedNodeIsGroup ( )

Definition at line 633 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 621 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 1601 of file StateTreeController.cpp.

◆ selectNodeByState()

void selectNodeByState ( statechartmodel::StatePtr  state)

Definition at line 800 of file StateTreeController.cpp.

◆ stopGroupExecution

void stopGroupExecution ( StatechartGroupPtr  group)
slot

Definition at line 1232 of file StateTreeController.cpp.

+ Here is the caller graph for this function:

◆ stopGroupExecutionWithDependencies

void stopGroupExecutionWithDependencies ( StatechartGroupPtr  group)
slot

Definition at line 1304 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ tryCreateNewState()

StateTreeNodePtr tryCreateNewState ( QString  name)

Definition at line 645 of file StateTreeController.cpp.

+ Here is the call graph for this function:

◆ tryDeleteFolder()

void tryDeleteFolder ( )

Definition at line 1709 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 1747 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 658 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: