StateParameterEditor Class Reference

#include <ArmarXGui/gui-plugins/StatechartEventSenderPlugin/StateParameterEditor.h>

+ Inheritance diagram for StateParameterEditor:

Public Types

enum  ColumnIds {
  eKey, eType, eOptional, eProvideDefaultValue,
  eValue, eDeleteButton
}
 

Public Slots

int addParameterRow ()
 
void buildFromMap (const StateParameterMap &map, const std::map< QString, std::pair< QString, QString >> &jsonStringMap=std::map< QString, std::pair< QString, QString >>())
 
void checkAndUpdateRowCount (int row, int column)
 
void deleteRow ()
 
void editDefaultButtonClicked ()
 
void refreshVariantTypes ()
 
void typeCbChanged (const QString &text)
 

Signals

void buildRequested (const StateParameterMap &map, const std::map< QString, std::pair< QString, QString >> &jsonStringMap)
 
void rowAdded (int rowId)
 
void rowFilled (int rowId, const QString &key)
 

Public Member Functions

void addParameterRow (QString key, QString variantIdStr, QString value, bool optional=false)
 
void createValueButton (int row, const QString &jsonValue)
 
Qt::CheckState getDefaultValueState () const
 
bool getIsOptional (int row) const
 
QString getJson (QString key) const
 
QString getKey (int row) const
 
QSet< QString > getKeys () const
 
int getRow (const QString &key) const
 
StateParameterIceBasePtr getStateParameter (int row) const
 
StateParameterMap getStateParameters () const
 
StateParameterMap getStateParametersWithoutValue () const
 
StringVariantContainerBaseMap getStringValueMap () const
 
QString getType (int row) const
 
QString getType (QString key) const
 
QString getValueAsString (int row) const
 
VariantContainerBasePtr getVariantContainer (int row) const
 
void setCommunicator (Ice::CommunicatorPtr communicator)
 
void setCurrentProfile (StatechartProfilePtr currentProfile)
 
void setDefaultValueState (const Qt::CheckState &value)
 
void setHeaders ()
 
void setKeyBlackList (const QSet< QString > &keyBlackList)
 
void setVariantInfo (VariantInfoPtr variantInfo)
 
 StateParameterEditor (QWidget *parent=0, const StateParameterMap &params=StateParameterMap())
 

Detailed Description

Definition at line 38 of file StateParameterEditor.h.

Member Enumeration Documentation

◆ ColumnIds

enum ColumnIds
Enumerator
eKey 
eType 
eOptional 
eProvideDefaultValue 
eValue 
eDeleteButton 

Definition at line 42 of file StateParameterEditor.h.

Constructor & Destructor Documentation

◆ StateParameterEditor()

StateParameterEditor ( QWidget *  parent = 0,
const StateParameterMap &  params = StateParameterMap() 
)
explicit

Definition at line 50 of file StateParameterEditor.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ addParameterRow [1/2]

int addParameterRow ( )
slot

Definition at line 438 of file StateParameterEditor.cpp.

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

◆ addParameterRow() [2/2]

void addParameterRow ( QString  key,
QString  variantIdStr,
QString  value,
bool  optional = false 
)

Definition at line 481 of file StateParameterEditor.cpp.

+ Here is the call graph for this function:

◆ buildFromMap

void buildFromMap ( const StateParameterMap &  map,
const std::map< QString, std::pair< QString, QString >> &  jsonStringMap = std::map<QString, std::pair<QString, QString>>() 
)
slot

Definition at line 1010 of file StateParameterEditor.cpp.

+ Here is the caller graph for this function:

◆ buildRequested

void buildRequested ( const StateParameterMap &  map,
const std::map< QString, std::pair< QString, QString >> &  jsonStringMap 
)
signal
+ Here is the caller graph for this function:

◆ checkAndUpdateRowCount

void checkAndUpdateRowCount ( int  row,
int  column 
)
slot

Definition at line 745 of file StateParameterEditor.cpp.

+ Here is the call graph for this function:

◆ createValueButton()

void createValueButton ( int  row,
const QString &  jsonValue 
)

Definition at line 551 of file StateParameterEditor.cpp.

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

◆ deleteRow

void deleteRow ( )
slot

Definition at line 726 of file StateParameterEditor.cpp.

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

◆ editDefaultButtonClicked

void editDefaultButtonClicked ( )
slot

Definition at line 807 of file StateParameterEditor.cpp.

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

◆ getDefaultValueState()

Qt::CheckState getDefaultValueState ( ) const

Definition at line 986 of file StateParameterEditor.cpp.

◆ getIsOptional()

bool getIsOptional ( int  row) const

Definition at line 426 of file StateParameterEditor.cpp.

+ Here is the caller graph for this function:

◆ getJson()

QString getJson ( QString  key) const

Definition at line 186 of file StateParameterEditor.cpp.

+ Here is the call graph for this function:

◆ getKey()

QString getKey ( int  row) const

Definition at line 362 of file StateParameterEditor.cpp.

+ Here is the caller graph for this function:

◆ getKeys()

QSet< QString > getKeys ( ) const

Definition at line 88 of file StateParameterEditor.cpp.

◆ getRow()

int getRow ( const QString &  key) const

Definition at line 404 of file StateParameterEditor.cpp.

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

◆ getStateParameter()

StateParameterIceBasePtr getStateParameter ( int  row) const

Definition at line 104 of file StateParameterEditor.cpp.

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

◆ getStateParameters()

StateParameterMap getStateParameters ( ) const

Definition at line 119 of file StateParameterEditor.cpp.

+ Here is the call graph for this function:

◆ getStateParametersWithoutValue()

StateParameterMap getStateParametersWithoutValue ( ) const

◆ getStringValueMap()

StringVariantContainerBaseMap getStringValueMap ( ) const

Definition at line 148 of file StateParameterEditor.cpp.

+ Here is the call graph for this function:

◆ getType() [1/2]

QString getType ( int  row) const

Definition at line 378 of file StateParameterEditor.cpp.

+ Here is the caller graph for this function:

◆ getType() [2/2]

QString getType ( QString  key) const

Definition at line 397 of file StateParameterEditor.cpp.

+ Here is the call graph for this function:

◆ getValueAsString()

QString getValueAsString ( int  row) const

Definition at line 168 of file StateParameterEditor.cpp.

◆ getVariantContainer()

VariantContainerBasePtr getVariantContainer ( int  row) const

Definition at line 272 of file StateParameterEditor.cpp.

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

◆ refreshVariantTypes

void refreshVariantTypes ( )
slot

Definition at line 796 of file StateParameterEditor.cpp.

◆ rowAdded

void rowAdded ( int  rowId)
signal
+ Here is the caller graph for this function:

◆ rowFilled

void rowFilled ( int  rowId,
const QString &  key 
)
signal
+ Here is the caller graph for this function:

◆ setCommunicator()

void setCommunicator ( Ice::CommunicatorPtr  communicator)
inline

Definition at line 56 of file StateParameterEditor.h.

◆ setCurrentProfile()

void setCurrentProfile ( StatechartProfilePtr  currentProfile)
inline

Definition at line 68 of file StateParameterEditor.h.

◆ setDefaultValueState()

void setDefaultValueState ( const Qt::CheckState &  value)

Definition at line 992 of file StateParameterEditor.cpp.

+ Here is the call graph for this function:

◆ setHeaders()

void setHeaders ( )

Definition at line 998 of file StateParameterEditor.cpp.

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

◆ setKeyBlackList()

void setKeyBlackList ( const QSet< QString > &  keyBlackList)

Definition at line 82 of file StateParameterEditor.cpp.

◆ setVariantInfo()

void setVariantInfo ( VariantInfoPtr  variantInfo)
inline

Definition at line 62 of file StateParameterEditor.h.

◆ typeCbChanged

void typeCbChanged ( const QString &  text)
slot

Definition at line 657 of file StateParameterEditor.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: