Go to the documentation of this file.
27 #include <QStyledItemDelegate>
28 #include <QTableWidget>
29 #include <QToolButton>
98 this->communicator = communicator;
104 this->variantInfo = variantInfo;
110 this->currentProfile = currentProfile;
123 QString
getKey(
int row)
const;
124 QString
getType(
int row)
const;
125 QString
getType(QString key)
const;
126 int getRow(
const QString& key)
const;
130 QString variantIdStr,
132 bool optional =
false);
142 void rowFilled(
int rowId,
const QString& key);
155 QVector<QString> getRelevantProfiles()
const;
156 void connectUserEditSlots();
157 QStringList addVariantTypesToComboBox(QComboBox* combo);
158 QString getHumanNameFromBaseName(QString variantBaseTypeName)
const;
159 QString getBaseNameFromHumanName(QString humanName)
const;
160 static bool compareVariantNames(
const QString&
a,
const QString& b);
162 class LineEditDelegate :
public QStyledItemDelegate
164 QWidget* createEditor(QWidget* parent,
165 const QStyleOptionViewItem&
option,
166 const QModelIndex&
index)
const override;
169 LineEditDelegate delegate;
172 Qt::CheckState defaultValueState;
173 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 &)