COPASI API  4.16.103
CQMiriamWidget.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) 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 CQMIRIAMWIDGET_H
12 #define CQMIRIAMWIDGET_H
13 
14 #include <QtCore/QVariant>
15 
16 #include "copasi/MIRIAMUI/ui_CQMiriamWidget.h"
17 
22 
25 
26 class CMIRIAMInfo;
27 
28 class CQMiriamWidget : public CopasiWidget, public Ui::CQMiriamWidget
29 {
30  Q_OBJECT
31 
32 public:
33  CQMiriamWidget(QWidget* parent = 0, const char* name = 0);
35 
36  virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key);
37  virtual bool leave();
38  const CMIRIAMInfo & getMIRIAMInfo() const;
39  void updateResourcesList();
40 
41 protected:
42  virtual bool enterProtected();
43  virtual void showEvent(QShowEvent * event);
44 
45 private:
58  QStringList mPredicates;
59  QStringList mResources;
60  QStringList mReferences;
61  std::vector< CQTableView * > mWidgets;
62  std::vector< CQBaseDataModel * > mDMs;
63  std::vector< CQSortFilterProxyModel * > mProxyDMs;
64  void deleteSelectedAuthors();
68  void keyPressEvent(QKeyEvent* ev);
69  std::string mKeyToCopy;
70 
71 protected slots:
72  virtual void slotBtnDeleteClicked();
73  virtual void slotBtnClearClicked();
74  virtual void slotBtnBrowseReference(const QModelIndex& index);
75  virtual void slotBtnBrowseDescription(const QModelIndex& index);
76  virtual void slotCreatedDTChanged(QDateTime newDT);
77  virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
78  virtual void slotCopyEvent();
79  virtual void slotBtnCopy();
80 };
81 
82 #endif // CQMIRIAMWIDGET_H
void keyPressEvent(QKeyEvent *ev)
void deleteSelectedModifieds()
virtual void slotCreatedDTChanged(QDateTime newDT)
objectType
CQSortFilterProxyModel * mpCreatorPDM
std::vector< CQSortFilterProxyModel * > mProxyDMs
CMIRIAMInfo * mpMIRIAMInfo
CQSortFilterProxyModel * mpModifiedPDM
CQMiriamWidget(QWidget *parent=0, const char *name=0)
const CMIRIAMInfo & getMIRIAMInfo() const
virtual void slotBtnClearClicked()
CQSortFilterProxyModel * mpBiologicalDescriptionPDM
QStringList mResources
void deleteSelectedAuthors()
CQModifiedDM * mpModifiedDM
std::vector< CQTableView * > mWidgets
void deleteSelectedReferences()
CQReferenceDM * mpReferenceDM
virtual void slotBtnDeleteClicked()
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
virtual void showEvent(QShowEvent *event)
std::string mKeyToCopy
virtual bool enterProtected()
QStringList mReferences
virtual void slotBtnBrowseReference(const QModelIndex &index)
void deleteSelectedBiologicalDescriptions()
virtual void slotBtnCopy()
std::vector< CQBaseDataModel * > mDMs
virtual void slotCopyEvent()
CQCreatorDM * mpCreatorDM
CQComboDelegate * mpResourceDelegate2
CQComboDelegate * mpPredicateDelegate
QStringList mPredicates
void updateResourcesList()
CQComboDelegate * mpResourceDelegate1
virtual void slotBtnBrowseDescription(const QModelIndex &index)
CQSortFilterProxyModel * mpReferencePDM
virtual bool leave()
CQBiologicalDescriptionDM * mpBiologicalDescriptionDM
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)