Go to the documentation of this file.
29 #include <QStyledItemDelegate>
30 #include <QTableWidget>
31 #include <QToolButton>
89 this->communicator = communicator;
93 this->variantInfo = variantInfo;
97 this->currentProfile = currentProfile;
109 QString
getKey(
int row)
const;
110 QString
getType(
int row)
const;
111 QString
getType(QString key)
const;
112 int getRow(
const QString& key)
const;
115 void addParameterRow(QString key, QString variantIdStr, QVector<QString>
values,
bool optional =
false);
125 void rowFilled(
int rowId,
const QString& key);
138 QVector<QString> getRelevantProfiles()
const;
139 void connectUserEditSlots();
140 QStringList addVariantTypesToComboBox(QComboBox* combo);
141 QString getHumanNameFromBaseName(QString variantBaseTypeName)
const;
142 QString getBaseNameFromHumanName(QString humanName)
const;
143 static bool compareVariantNames(
const QString&
a,
const QString& b);
145 class LineEditDelegate :
public QStyledItemDelegate
147 QWidget* createEditor(QWidget* parent,
148 const QStyleOptionViewItem&
option,
149 const QModelIndex&
index)
const override;
151 LineEditDelegate delegate;
154 Qt::CheckState defaultValueState;
155 QSet<QString> keyBlackList;
bool getIsOptional(int row) const
QString getKey(int row) const
void setCurrentProfile(StatechartProfilePtr currentProfile)
statechartmodel::StateInstancePtr state
QMap< QString, VariantContainerBasePtr > getProfileVariantContainerMap(int row) const
void fillCustomColumn(int row, const QString &key)
statechartmodel::StateParameterMap originalParamMap
QMap< QString, QString > getProfileJsonMap(QString key) const
void setDefaultValueState(const Qt::CheckState &value)
Qt::CheckState getDefaultValueState() const
std::shared_ptr< class StatechartProfile > StatechartProfilePtr
void buildRequested(const statechartmodel::StateParameterMap &map)
void setStateInstance(statechartmodel::StateInstancePtr state)
QSet< QString > getKeys() const
std::shared_ptr< StateInstance > StateInstancePtr
void setCommunicator(Ice::CommunicatorPtr communicator)
void checkAndUpdateRowCount(int row, int column)
void addCustomColumn(int row)
void setKeyBlackList(const QSet< QString > &keyBlackList)
statechartmodel::StateParameterMap getStateParametersWithoutValue() const
double a(double t, double a0, double j)
std::shared_ptr< Value > value()
void typeChanged(int row, const QString &newType)
statechartmodel::StateParameterMap getStateParameters() const
QMap< QString, StateParameterPtr > StateParameterMap
std::shared_ptr< StateParameter > StateParameterPtr
int getRow(const QString &key) const
void buildFromMap(const statechartmodel::StateParameterMap &map)
statechartmodel::StateParameterPtr getStateParameter(int row) const
QMap< QString, QString > getValuesAsString(int row) const
std::shared_ptr< VariantInfo > VariantInfoPtr
QString getType(int row) const
QSet< QString > getTypes() const
void rowFilled(int rowId, const QString &key)
StatechartEditorParameterEditor(QWidget *parent=0, statechartmodel::StateInstancePtr state=statechartmodel::StateInstancePtr(), const statechartmodel::StateParameterMap ¶ms=statechartmodel::StateParameterMap())
void setVariantInfo(VariantInfoPtr variantInfo)
void refreshVariantTypes()
void init(const statechartmodel::StateParameterMap ¶ms)
This file offers overloads of toIce() and fromIce() functions for STL container types.
void typeCbChanged(const QString &)