COPASI API  4.16.103
CQMergingData.h
Go to the documentation of this file.
1 // Copyright (C) 2010 - 2013 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) 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 #ifndef CQMERGINGDATA_H
12 #define CQMERGINGDATA_H
13 
14 #include <string>
15 #include <vector>
16 
17 #include <QtGui/QPixmap>
18 #include <QtGui/QDialog>
19 
20 #include "model/CModel.h"
21 
22 #include "ui_CQMergingData.h"
23 
24 class CQMergingData : public QDialog, public Ui::CQMergingData
25 {
26  Q_OBJECT
27 
28 public:
29  CQMergingData(QWidget* parent = 0, Qt::WindowFlags fl = 0, bool simple = false);
31 
32  std::map<QTreeWidgetItem*, CCopasiObject*> mItemMap1;
33  std::map<QTreeWidgetItem*, CCopasiObject*> mItemMap2;
34 
35 protected:
37 
38 protected slots:
39 
40  void treeSelectionChanged();
41 
42 private:
43 
44  /**
45  * fills a tree widget with the items of the model. All tree items are mapped to the model items
46  * in itemMap.
47  * const std::set<CCopasiObject*> & added : contains the model elements that were added by the latest
48  * model adding operation. They will be highlighted.
49  * If highlightInvolved is true, items that are actually referred to in other parts of the model are
50  * highlighted (these are the items that it is useful to replace)
51  */
52  void fillTree(QTreeWidget* pW, const CModel* pModel, std::map<QTreeWidgetItem*, CCopasiObject*>& itemMap,
53  bool flagGlobalQuantities, bool flagReactions,
54  const std::set<CCopasiObject*> & added,
55  bool highlightInvolved);
56 
57  void load();
58 
59 private slots:
60  void slotBtnMerge();
61  void slotBtnCancel();
62 };
63 
64 #endif // CQMERGINGDATA_H
void treeSelectionChanged()
std::map< QTreeWidgetItem *, CCopasiObject * > mItemMap2
Definition: CQMergingData.h:33
CModel * mpModel
Definition: CQMergingData.h:36
CQMergingData(QWidget *parent=0, Qt::WindowFlags fl=0, bool simple=false)
void fillTree(QTreeWidget *pW, const CModel *pModel, std::map< QTreeWidgetItem *, CCopasiObject * > &itemMap, bool flagGlobalQuantities, bool flagReactions, const std::set< CCopasiObject * > &added, bool highlightInvolved)
bool fl(const C_FLOAT64 &d1, const C_FLOAT64 &d2)
std::map< QTreeWidgetItem *, CCopasiObject * > mItemMap1
Definition: CQMergingData.h:32
Definition: CModel.h:50