COPASI API  4.16.103
CQEventWidget1.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) 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) 2007 by Pedro Mendes, Virginia Tech Intellectual
12 // Properties, Inc. and EML Research, gGmbH.
13 // All rights reserved.
14 
15 #ifndef CQEVENTWIDGET1_H
16 #define CQEVENTWIDGET1_H
17 
18 #include <QtCore/QVariant>
19 
20 #include "ui_CQEventWidget1.h"
21 
22 #include "copasi/model/CEvent.h"
24 
25 class CQExpressionWidget;
26 class CCompartment;
27 class CExpression;
28 
29 class CQEventWidget1 : public CopasiWidget, public Ui::CQEventWidget1
30 {
31  Q_OBJECT
32 
33 public:
34  CQEventWidget1(QWidget* parent = 0, const char* name = 0);
36 
37  virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key);
38  virtual bool leave();
39 
40 protected:
41  virtual bool enterProtected();
42 
43 protected slots:
44 
45 private:
49  QString mEAName;
50  bool mChanged;
52  std::string mAssignmentKey;
55 
56  void init();
57  bool loadFromEvent();
58  void saveToEvent();
59  void showDelayExpression(bool display);
60  std::string mKeyToCopy;
61 
62 private slots:
63  void slotBtnNew();
64  void slotBtnCopy();
65  void slotBtnDelete();
66  void slotAddTarget();
67  void slotDeleteTarget();
68  void slotSelectObject();
69  void slotActualizeAssignmentExpression(int index);
70  void slotChooseDelay(int choice);
71 };
72 
73 #endif // CQEVENTWIDGET1_H
Definition: CEvent.h:152
void slotBtnNew()
Slot to create a new event; activated whenever the New button is clicked.
bool mExpressionDelayValid
void slotSelectObject()
Slot to select an object from the existing ones -only- for target.
virtual bool leave()
objectType
virtual bool enterProtected()
std::string mKeyToCopy
bool mExpressionTriggerValid
void slotChooseDelay(int choice)
CQEventWidget1(QWidget *parent=0, const char *name=0)
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
CEvent * mpEvent
size_t mCurrentTarget
void slotActualizeAssignmentExpression(int index)
Slot to actualize the assignment expression widget of event assignment according to the target...
std::string mAssignmentKey
void showDelayExpression(bool display)
Header file of class CEvent.
CCopasiVector< CEventAssignment > mAssignments