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 40 of file StateParameterEditor.h.

Member Enumeration Documentation

◆ ColumnIds

enum ColumnIds
Enumerator
eKey 
eType 
eOptional 
eProvideDefaultValue 
eValue 
eDeleteButton 

Definition at line 45 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 424 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 467 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 956 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 716 of file StateParameterEditor.cpp.

+ Here is the call graph for this function:

◆ createValueButton()

void createValueButton ( int  row,
const QString &  jsonValue 
)

Definition at line 531 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 698 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 774 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 932 of file StateParameterEditor.cpp.

◆ getIsOptional()

bool getIsOptional ( int  row) const

Definition at line 412 of file StateParameterEditor.cpp.

+ Here is the caller graph for this function:

◆ getJson()

QString getJson ( QString  key) const

Definition at line 177 of file StateParameterEditor.cpp.

+ Here is the call graph for this function:

◆ getKey()

QString getKey ( int  row) const

Definition at line 351 of file StateParameterEditor.cpp.

+ Here is the caller graph for this function:

◆ getKeys()

QSet< QString > getKeys ( ) const

Definition at line 84 of file StateParameterEditor.cpp.

◆ getRow()

int getRow ( const QString &  key) const

Definition at line 391 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 99 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 113 of file StateParameterEditor.cpp.

+ Here is the call graph for this function:

◆ getStateParametersWithoutValue()

StateParameterMap getStateParametersWithoutValue ( ) const

◆ getStringValueMap()

StringVariantContainerBaseMap getStringValueMap ( ) const

Definition at line 141 of file StateParameterEditor.cpp.

+ Here is the call graph for this function:

◆ getType() [1/2]

QString getType ( int  row) const

Definition at line 366 of file StateParameterEditor.cpp.

+ Here is the caller graph for this function:

◆ getType() [2/2]

QString getType ( QString  key) const

Definition at line 385 of file StateParameterEditor.cpp.

+ Here is the call graph for this function:

◆ getValueAsString()

QString getValueAsString ( int  row) const

Definition at line 160 of file StateParameterEditor.cpp.

◆ getVariantContainer()

VariantContainerBasePtr getVariantContainer ( int  row) const

Definition at line 263 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 763 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 64 of file StateParameterEditor.h.

◆ setDefaultValueState()

void setDefaultValueState ( const Qt::CheckState &  value)

Definition at line 937 of file StateParameterEditor.cpp.

+ Here is the call graph for this function:

◆ setHeaders()

void setHeaders ( )

Definition at line 945 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 79 of file StateParameterEditor.cpp.

◆ setVariantInfo()

void setVariantInfo ( VariantInfoPtr  variantInfo)
inline

Definition at line 60 of file StateParameterEditor.h.

◆ typeCbChanged

void typeCbChanged ( const QString &  text)
slot

Definition at line 633 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: