COPASI API  4.16.103
CQExperimentData.h
Go to the documentation of this file.
1 // Copyright (C) 2010 - 2015 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 // Copyright (C) 2008 - 2009 by Pedro Mendes, Virginia Tech Intellectual
7 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
8 // and The University of Manchester.
9 // All rights reserved.
10 
11 // Copyright (C) 2005 - 2007 by Pedro Mendes, Virginia Tech Intellectual
12 // Properties, Inc. and EML Research, gGmbH.
13 // All rights reserved.
14 
15 #ifndef CQEXPERIMENTDATA_H
16 #define CQEXPERIMENTDATA_H
17 
18 #include <QtCore/QVariant>
19 
20 #include "ui_CQExperimentData.h"
21 
22 class CExperimentSet;
24 class CExperiment;
26 class QSignalMapper;
28 class CCopasiDataModel;
29 class CQComboDelegate;
30 
31 class CQExperimentData : public QDialog, public Ui::CQExperimentData
32 {
33  Q_OBJECT
34 
35 public:
36  CQExperimentData(QWidget* parent = 0, const char* name = 0, bool modal = false, Qt::WindowFlags fl = 0);
38 
40 
41  virtual bool load(CExperimentSet * pExperimentSet , CCopasiDataModel * pDataModel);
42 
43 public slots:
44  virtual void loadTable(CExperiment * pExperiment, const bool & guess);
45 
46 signals:
47  void experimentChanged();
48 
49 protected:
50  unsigned int mOldWeightMethod;
57  std::map<std::string, std::string> mKeyMap;
58  std::map<std::string, std::string> mFileMap;
60  int mShown;
63  bool mShowError;
66  QStringList mTypeItems;
67  QStringList mTypeWithoutTimeItems;
69 
70  virtual bool loadExperiment(CExperiment * pExperiment);
71  bool saveExperiment(CExperiment * pExperiment, const bool & full);
72  void syncExperiments();
73  bool saveTable(CExperiment * pExperiment);
74  bool isLikePreviousExperiment(CExperiment * pExperiment);
75  void enableEdit(const bool & enable);
76 
77 protected slots:
78 
79  void slotRevert();
80  void slotFirst();
81  void slotLast();
82  void slotHeader();
83  void slotExprimentType(bool isSteadyState);
85  void slotCheckTab(bool checked);
86  void slotCheckHeader(bool checked);
87  void slotExperimentAdd();
88  void slotExperimentChanged(QListWidgetItem * pCurrentItem, QListWidgetItem * pPreviousItem);
89  void slotExperimentDelete();
90  void slotFileAdd();
91  void slotFileChanged(QListWidgetItem * pCurrentItem, QListWidgetItem * pPreviousItem);
92  void slotFileDelete();
93  void slotCancel();
94  void slotOK();
95  void slotUpdateTable();
96  void slotModelObject(const QModelIndex & index);
98  void slotTypeChanged(int row, int index);
99  void slotSeparator();
100  void slotCheckFrom(bool checked);
101  void slotCheckTo(bool checked);
102 
103 private:
104  void init();
105  void destroy();
106  void setTypeItems(const int & timeRow);
107  void selectModelObject(const int & row);
108  void updateScales();
109 
110 private slots:
111  void slotWeightMethod(int weightMethod);
112 };
113 
114 #endif // CQEXPERIMENTDATA_H
void slotTypeChanged(int row, int index)
CQExperimentDataValidator * mpValidatorFirst
void slotExprimentType(bool isSteadyState)
bool isLikePreviousExperiment(CExperiment *pExperiment)
CQComboDelegate * mpComboDelegate
std::map< std::string, std::string > mFileMap
void slotFileChanged(QListWidgetItem *pCurrentItem, QListWidgetItem *pPreviousItem)
CCopasiDataModel * mpDataModel
void slotCheckTo(bool checked)
void slotCheckNormalizeWeightsPerExperiment(bool flag)
CQExperimentDataValidator * mpValidatorName
std::map< std::string, std::string > mKeyMap
CExperiment * mpExperiment
unsigned int mOldWeightMethod
bool saveExperiment(CExperiment *pExperiment, const bool &full)
void slotExperimentChanged(QListWidgetItem *pCurrentItem, QListWidgetItem *pPreviousItem)
virtual void loadTable(CExperiment *pExperiment, const bool &guess)
CExperimentFileInfo * mpFileInfo
void slotWeightMethod(int weightMethod)
void slotModelObject(const QModelIndex &index)
QStringList mTypeWithoutTimeItems
long int flag
Definition: f2c.h:52
void setTypeItems(const int &timeRow)
void enableEdit(const bool &enable)
virtual bool load(CExperimentSet *pExperimentSet, CCopasiDataModel *pDataModel)
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
void slotCheckTab(bool checked)
CExperimentSet * mpExperimentSet
CQExperimentDataValidator * mpValidatorHeader
virtual bool loadExperiment(CExperiment *pExperiment)
QStringList mTypeItems
CQExperimentData(QWidget *parent=0, const char *name=0, bool modal=false, Qt::WindowFlags fl=0)
void selectModelObject(const int &row)
CExperimentSet * mpExperimentSetCopy
bool saveTable(CExperiment *pExperiment)
void slotCheckFrom(bool checked)
CQExperimentDataValidator * mpValidatorLast
void experimentChanged()
void slotCheckHeader(bool checked)