COPASI API  4.16.103
copasiWidget.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/copasiWidget.h,v $
3 // $Revision: 1.28 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/10/14 15:24:29 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 by Pedro Mendes, Virginia Tech Intellectual
10 // Properties, Inc., University of Heidelberg, and The University
11 // of Manchester.
12 // All rights reserved.
13 
14 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
15 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
16 // and The University of Manchester.
17 // All rights reserved.
18 
19 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual
20 // Properties, Inc. and EML Research, gGmbH.
21 // All rights reserved.
22 
23 /********************************************************
24  Author: Liang Xu
25  Version : 1.xx <first>
26  Description:
27  Date: 04/03
28  Comment : CopasiWidget: Provide base class for all widget: for resizable/minimize
29  Contact: Please contact lixu1@vt.edu.
30  *********************************************************/
31 
32 #ifndef COPASI_WIDGET_H
33 #define COPASI_WIDGET_H
34 
35 #include <QtGui/QWidget>
36 
37 #include "copasi/UI/listviews.h"
38 
39 class DataModelGUI;
40 class QResizeEvent;
41 class ListViews;
42 class CCopasiDataModel;
43 class CCopasiObject;
44 
45 class CopasiWidget : public QWidget
46 {
47  Q_OBJECT
48 
49 public:
50  CopasiWidget(QWidget * parent = 0, const char * name = 0, Qt::WFlags f = 0);
51  virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key);
52  virtual bool leave();
53  bool enter(const std::string & key);
54  virtual void setFramework(int framework);
55  bool getIgnoreUpdates();
56  void setIgnoreUpdates(bool v);
58 
59 protected:
60  virtual bool enterProtected();
61 
63  std::string mKey;
66 
69 
70 protected slots:
71  virtual bool protectedNotify(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key = "");
72 };
73 
74 #endif // !defined(COPASI_WIDGET_H)
virtual bool enterProtected()
objectType
CCopasiObject * mpObject
Definition: copasiWidget.h:64
bool mIgnoreUpdates
Definition: copasiWidget.h:67
virtual bool leave()
ListViews * mpListView
Definition: copasiWidget.h:62
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
CopasiWidget(QWidget *parent=0, const char *name=0, Qt::WFlags f=0)
virtual bool protectedNotify(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key="")
void setIgnoreUpdates(bool v)
CCopasiDataModel * mpDataModel
Definition: copasiWidget.h:65
virtual void setFramework(int framework)
std::string mKey
Definition: copasiWidget.h:63
CCopasiDataModel * getDataModel()
bool getIgnoreUpdates()
bool enter(const std::string &key)