16 #include <QtCore/QFileInfo>
17 #include <QtGui/QLineEdit>
18 #include <QtGui/QCheckBox>
19 #include <QtGui/QPainter>
20 #include <QtGui/QMessageBox>
79 mTopLabel->setText(
"Steady State found.");
83 mTabWidget->setTabEnabled(0,
true);
84 mTabWidget->setTabEnabled(1,
true);
85 mTabWidget->setTabEnabled(2,
true);
89 mTopLabel->setText(
"Equilibrium steady state.");
93 mTabWidget->setTabEnabled(0,
true);
94 mTabWidget->setTabEnabled(1,
true);
95 mTabWidget->setTabEnabled(2,
true);
101 mTopLabel->setText(
"Invalid steady state (negative concentrations). No LNA calculated!");
105 mTopLabel->setText(
"No steady state found. No LNA calculated!");
109 mTopLabel->setText(
"The reduced system has non-negative Eigen values! No LNA calculated!");
118 mpArrayCovarianceMatrix->setArrayAnnotation(NULL);
119 mpArrayCovarianceMatrixReduced->setArrayAnnotation(NULL);
120 mpArrayBMatrixReduced->setArrayAnnotation(NULL);
134 if (mComboScale->currentIndex() == 0)
139 mpArrayCovarianceMatrix->setColorCoding(tcs);
140 mpArrayCovarianceMatrix->setColorScalingAutomatic(
true);
147 mpArrayCovarianceMatrix->setColorCoding(tcs);
148 mpArrayCovarianceMatrix->setColorScalingAutomatic(
true);
151 mpArrayCovarianceMatrix->setArrayAnnotation(covarianceMatrixAnn);
158 if (mComboScale->currentIndex() == 0)
163 mpArrayCovarianceMatrixReduced->setColorCoding(tcs);
164 mpArrayCovarianceMatrixReduced->setColorScalingAutomatic(
true);
171 mpArrayCovarianceMatrixReduced->setColorCoding(tcs);
172 mpArrayCovarianceMatrixReduced->setColorScalingAutomatic(
true);
175 mpArrayCovarianceMatrixReduced->setArrayAnnotation(covarianceMatrixReducedAnn);
182 if (mComboScale->currentIndex() == 0)
187 mpArrayBMatrixReduced->setColorCoding(tcs);
188 mpArrayBMatrixReduced->setColorScalingAutomatic(
true);
195 mpArrayBMatrixReduced->setColorCoding(tcs);
196 mpArrayBMatrixReduced->setColorScalingAutomatic(
true);
199 mpArrayBMatrixReduced->setArrayAnnotation(bMatrixReducedAnn);
204 C_INT32 Answer = QMessageBox::No;
207 while (Answer == QMessageBox::No)
211 "untitled.txt",
"TEXT Files (*.txt)",
"Save to");
213 if (fileName.isEmpty())
return;
218 if (Answer == QMessageBox::Cancel)
return;
245 mTopLabel->setText(
"No result available, please execute the LNA task.");
247 mpArrayCovarianceMatrix->setArrayAnnotation(NULL);
248 mpArrayCovarianceMatrixReduced->setArrayAnnotation(NULL);
249 mpArrayBMatrixReduced->setArrayAnnotation(NULL);
const CArrayAnnotation * getUnscaledBMatrixReducedAnn() const
const CLNAMethod::EVStatus & getEigenValueStatus() const
const CSteadyStateMethod::ReturnCode & getSteadyStateStatus() const
const CArrayAnnotation * getScaledBMatrixReducedAnn() const
const CArrayAnnotation * getScaledCovarianceMatrixAnn() const
const CModel * getModel() const
const CArrayAnnotation * getUnscaledCovarianceMatrixReducedAnn() const
const CArrayAnnotation * getUnscaledCovarianceMatrixAnn() const
C_INT32 checkSelection(const QString &file)
static CCopasiVector< CCopasiDataModel > * getDatamodelList()
const CArrayAnnotation * getScaledCovarianceMatrixReducedAnn() const
Header file of class CArrayAnnotation.
const CResult & getResult() const
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
static CLocaleString fromUtf8(const std::string &utf8)
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)