52 C_INT32 Answer = QMessageBox::No;
55 while (Answer == QMessageBox::No)
59 "untitled.txt",
"Text Files (*.txt)",
"Save to");
61 if (fileName.isEmpty())
return;
66 if (Answer == QMessageBox::Cancel)
return;
71 if (file.fail())
return;
91 std::string name =
static_cast<std::string
>(mpBox1->currentText().toUtf8());
94 if (name ==
"Reactions slow space" ||
95 name ==
"Reactions contribution to the mode" ||
96 name ==
"Reactions distribution between modes " ||
97 name ==
"Reactions fast space" ||
98 name ==
"Participation Index" ||
99 name ==
"Fast Participation Index" ||
100 name ==
"Slow Participation Index" ||
101 name ==
"Normed Participation Index (by column)" ||
102 name ==
"Normed Participation Index (by row)" ||
103 name ==
"Importance Index" ||
104 name ==
"Normed Importance Index (by row)")
108 mpArrayWidget->setColorCoding(tcs);
109 mpArrayWidget->setColorScalingAutomatic(
true);
120 mpArrayWidget->setColorCoding(tcs);
121 mpArrayWidget->setColorScalingAutomatic(
true);
127 mpArrayWidget->setArrayAnnotation(pResult);
137 int s = mpSlider->value();
142 mpLabelTime->setNum(0);
144 mpLabelStep->setNum(s);
154 mpTimeScaleWidget->show();
155 mpArrayWidget->hide();
157 mpButton->setText(
"Show Tables");
163 mpTimeScaleWidget->hide();
165 mpArrayWidget->show();
166 mpButton->setText(
"Show Time scales");
184 mpLabelTime->setNum(0);
185 mpLabelStep->setNum(0);
187 connect(mpBox1, SIGNAL(currentIndexChanged(
int)),
this, SLOT(
slotTableChanged()));
194 mpArrayWidget->setColorCoding(tcs);
195 mpArrayWidget->setColorScalingAutomatic(
true);
198 connect(mpSlider, SIGNAL(valueChanged(
int)),
this, SLOT(
changeInterval()));
199 connect(mpButton, SIGNAL(clicked()),
this, SLOT(
changeContents()));
200 connect(ButtonSaveData, SIGNAL(clicked()),
this, SLOT(
saveDataToFile()));
202 mpBox1->setEditable(
false);
205 mpTimeScaleWidget->hide();
207 mpArrayWidget->show();
230 mpSlider->setValue(mpSlider->minimum());
242 mpArrayWidget->switchToTable();
243 mpSlider->setDisabled(
false);
253 mpArrayWidget->setArrayAnnotation(NULL);
254 mpArrayWidget->clearWidget();
255 mpTimeScaleWidget->clearWidget();
268 int s = mpSlider->value();
272 std::string name =
static_cast<std::string
>(mpBox1->currentText().toUtf8());
275 mpArrayWidget->setArrayAnnotation(pResult);
278 mpTimeScaleWidget->paintTimeScale(vec);
284 mpArrayWidget->setArrayAnnotation(NULL);
285 mpTimeScaleWidget->clearWidget();
void setSymmetric(bool s)
const CArrayAnnotation * getTable(std::string name)
CCopasiProblem * getProblem()
void setColorMax(QColor col)
std::string getTimeUnitName() const
const std::vector< std::string > getTableName() const
C_INT32 checkSelection(const QString &file)
const unsigned C_INT32 & getStepNumber() const
static CCopasiVector< CCopasiDataModel > * getDatamodelList()
void setColorMin(QColor col)
virtual bool setAnnotationM(size_t s)=0
CVector< C_FLOAT64 > getVec_TimeScale(int step)
CCopasiMethod * getMethod()
Header file of class CArrayAnnotation.
C_FLOAT64 returnCurrentTime(int step)
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
static CLocaleString fromUtf8(const std::string &utf8)
virtual void printResult(std::ostream *ostream) const
CModel * getModel() const
static QString getSaveFileName(QWidget *parent=0, const char *name=0, const QString &startWith=QString::null, const QString &filter=QString::null, const QString &caption=QString::null, QString *pSelectedFilter=NULL, QFileDialog::Options options=0)