Go to the documentation of this file.
26 #include <QStyledItemDelegate>
27 #include <QTableWidget>
58 this->communicator = communicator;
62 this->variantInfo = variantInfo;
66 this->currentProfile = currentProfile;
76 QString
getJson(QString key)
const;
77 QString
getKey(
int row)
const;
79 QString
getType(QString key)
const;
80 int getRow(
const QString& key)
const;
93 void rowFilled(
int rowId,
const QString& key);
95 void buildFromMap(
const StateParameterMap& map,
const std::map<QString, std::pair<QString, QString> >& jsonStringMap = std::map<QString, std::pair<QString, QString>>());
103 void __buildFromMap(
const StateParameterMap& map,
const std::map<QString, std::pair<QString, QString> >& jsonStringMap = std::map<QString, std::pair<QString, QString>>());
106 void connectUserEditSlots();
107 void addVariantTypesToComboBox(QComboBox* combo);
108 QString getHumanNameFromBaseName(QString variantBaseTypeName)
const;
109 QString getBaseNameFromHumanName(QString humanName)
const;
110 static bool compareVariantNames(
const QString&
a,
const QString& b);
112 class LineEditDelegate :
public QStyledItemDelegate
114 QWidget* createEditor(QWidget* parent,
115 const QStyleOptionViewItem&
option,
116 const QModelIndex&
index)
const override;
118 LineEditDelegate delegate;
121 Qt::CheckState defaultValueState;
122 QSet<QString> keyBlackList;
QSet< QString > getKeys() const
Qt::CheckState getDefaultValueState() const
StringVariantContainerBaseMap getStringValueMap() const
void setDefaultValueState(const Qt::CheckState &value)
void setCurrentProfile(StatechartProfilePtr currentProfile)
std::shared_ptr< class StatechartProfile > StatechartProfilePtr
StateParameterMap getStateParameters() const
void createValueButton(int row, const QString &jsonValue)
void setCommunicator(Ice::CommunicatorPtr communicator)
QString getType(int row) const
void editDefaultButtonClicked()
void buildFromMap(const StateParameterMap &map, const std::map< QString, std::pair< QString, QString > > &jsonStringMap=std::map< QString, std::pair< QString, QString >>())
StateParameterIceBasePtr getStateParameter(int row) const
QString getValueAsString(int row) const
QString getKey(int row) const
void setKeyBlackList(const QSet< QString > &keyBlackList)
double a(double t, double a0, double j)
std::shared_ptr< Value > value()
VariantContainerBasePtr getVariantContainer(int row) const
QMap< QString, StateParameterPtr > StateParameterMap
void setVariantInfo(VariantInfoPtr variantInfo)
QString getJson(QString key) const
void refreshVariantTypes()
bool getIsOptional(int row) const
int getRow(const QString &key) const
void rowFilled(int rowId, const QString &key)
void buildRequested(const StateParameterMap &map, const std::map< QString, std::pair< QString, QString > > &jsonStringMap)
StateParameterMap getStateParametersWithoutValue() const
std::shared_ptr< VariantInfo > VariantInfoPtr
void checkAndUpdateRowCount(int row, int column)
StateParameterEditor(QWidget *parent=0, const StateParameterMap ¶ms=StateParameterMap())
This file offers overloads of toIce() and fromIce() functions for STL container types.
void typeCbChanged(const QString &text)