22 mShowMethodParameters(false)
26 mpTableParameter->verticalHeader()->setResizeMode(QHeaderView::ResizeToContents);
27 mpTableParameter->horizontalHeader()->setResizeMode(QHeaderView::ResizeToContents);
28 mpTableParameter->horizontalHeader()->hide();
33 mpLblParameter->hide();
34 mpTableParameter->hide();
55 if (!mpTableParameter->item(i, 0))
58 Value = mpTableParameter->item(i, 0)->text();
106 connect(mpBoxMethod, SIGNAL(activated(
int)),
this, SLOT(
changeMethod(
int)));
114 disconnect(mpBoxMethod, SIGNAL(activated(
int)),
this, SLOT(
changeMethod(
int)));
124 mpLblParameter->show();
125 mpTableParameter->show();
129 mpLblParameter->hide();
130 mpTableParameter->hide();
136 if (!
mpTask)
return false;
157 mpTableParameter->setVerticalHeaderItem(i,
new QTableWidgetItem());
162 QTableWidgetItem *pValueItem =
new QTableWidgetItem();
163 pValueItem->setData(Qt::EditRole, QVariant(Value));
164 pValueItem->setTextAlignment(Qt::AlignRight);
165 mpTableParameter->setItem(i, 0, pValueItem);
169 mpTableParameter->resizeColumnsToContents();
176 if (!
mpTask)
return false;
180 if (!pMethod)
return false;
182 bool changed =
false;
203 if (!mpTableParameter->item(i, 0))
206 Value = mpTableParameter->item(i, 0)->text();
235 if (found->second != pMethod)
237 delete found->second;
238 found->second = pMethod;
264 std::map< CCopasiMethod::SubType, CCopasiMethod * >::const_iterator found =
mMethodHistory.find(Type);
268 return found->second;
291 std::map< CCopasiMethod::SubType, CCopasiMethod * >::iterator it =
mMethodHistory.begin();
292 std::map< CCopasiMethod::SubType, CCopasiMethod * >::iterator end =
mMethodHistory.end();
294 for (; it != end; ++it)
virtual const std::string & getName(const size_t &index) const
bool setParameterValue(CCopasiParameterGroup *group, const size_t &index, const QString &value)
const CCopasiMethod::SubType & getSubType() const
QString getParameterValue(const CCopasiParameterGroup *group, const size_t &index, CCopasiParameter::Type *type)
virtual bool setMethodType(const int &type)
CType toEnum(const char *attribute, const char **enumNames, const CType &enumDefault)
CCopasiMethod * getMethod()
static const std::string SubTypeName[]
virtual CCopasiMethod * createMethod(const int &type) const