copasi API
0.1
|
00001 // Begin CVS Header 00002 // $Source: /fs/turing/cvs/copasi_dev/copasi/UI/copasiWidget.h,v $ 00003 // $Revision: 1.27 $ 00004 // $Name: Build-33 $ 00005 // $Author: shoops $ 00006 // $Date: 2009/07/20 16:06:21 $ 00007 // End CVS Header 00008 00009 // Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual 00010 // Properties, Inc., EML Research, gGmbH, University of Heidelberg, 00011 // and The University of Manchester. 00012 // All rights reserved. 00013 00014 // Copyright (C) 2001 - 2007 by Pedro Mendes, Virginia Tech Intellectual 00015 // Properties, Inc. and EML Research, gGmbH. 00016 // All rights reserved. 00017 00018 /******************************************************** 00019 Author: Liang Xu 00020 Version : 1.xx <first> 00021 Description: 00022 Date: 04/03 00023 Comment : CopasiWidget: Provide base class for all widget: for resizable/minimize 00024 Contact: Please contact lixu1@vt.edu. 00025 *********************************************************/ 00026 00027 #ifndef COPASI_WIDGET_H 00028 #define COPASI_WIDGET_H 00029 #include <qwidget.h> 00030 //Added by qt3to4: 00031 #include <QResizeEvent> 00032 #include "UI/listviews.h" 00033 00034 class DataModelGUI; 00035 class QResizeEvent; 00036 class ListViews; 00037 class CCopasiDataModel; 00038 class CCopasiObject; 00039 00040 class CopasiWidget : public QWidget 00041 { 00042 Q_OBJECT 00043 00044 public: 00045 CopasiWidget(QWidget * parent = 0, const char * name = 0, Qt::WFlags f = 0); 00046 virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key); 00047 virtual bool leave(); 00048 bool enter(const std::string & key); 00049 virtual void setFramework(int framework); 00050 bool getIgnoreUpdates(); 00051 void setIgnoreUpdates(bool v); 00052 CCopasiDataModel * getDataModel(); 00053 00054 protected: 00055 virtual bool enterProtected(); 00056 00057 ListViews * mpListView; 00058 std::string mKey; 00059 CCopasiObject * mpObject; 00060 CCopasiDataModel * mpDataModel; 00061 00062 bool mIgnoreUpdates; 00063 int mFramework; 00064 00065 protected slots: 00066 virtual bool protectedNotify(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key = ""); 00067 }; 00068 00069 #endif // !defined(COPASI_WIDGET_H)