COPASI API  4.16.103
CQSpeciesWidget.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQSpeciesWidget.h,v $
3 // $Revision: 1.10 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/10/14 16:17:45 $
7 // End CVS Header
8 
9 // Copyright (C) 2011 - 2010 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 #ifndef CQSpeciesWidget_h
20 #define CQSpeciesWidget_h
21 
22 #include <QtCore/QVariant>
23 
24 #include "copasi/UI/ui_CQSpeciesWidget.h"
25 
28 #include "copasi/UI/CQSpecieDM.h"
29 
30 class CQSpeciesWidget : public CopasiWidget, public Ui::CQSpeciesWidget
31 {
32  Q_OBJECT
33 
34 public:
35  CQSpeciesWidget(QWidget* parent = 0, const char* name = 0);
37 
38  virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key);
39  virtual bool leave();
40  virtual void setFramework(int framework);
41 
42 private:
45  QStringList mCompartments;
48  void deleteSelectedSpecies();
49  void updateDeleteBtns();
50 
51 protected:
52  virtual bool enterProtected();
53  virtual void keyPressEvent(QKeyEvent* ev);
54  void refreshCompartments();
55 
56 protected slots:
57  virtual void slotBtnNewClicked();
58  virtual void slotBtnDeleteClicked();
59  virtual void slotBtnClearClicked();
60  virtual void slotSelectionChanged(const QItemSelection& selected,
61  const QItemSelection& deselected);
62  virtual void slotDoubleClicked(const QModelIndex proxyIndex);
63  virtual void dataChanged(const QModelIndex& topLeft,
64  const QModelIndex& bottomRight);
65  virtual void slotFilterChanged();
66 };
67 
68 #endif // CQSpeciesWidget_h
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
CQSortFilterProxyModel * mpProxyModel
virtual void slotDoubleClicked(const QModelIndex proxyIndex)
objectType
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
virtual bool enterProtected()
QStringList mCompartments
CQSpecieDM * mpSpecieDM
virtual void slotBtnNewClicked()
virtual void slotSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
void deleteSelectedSpecies()
virtual void slotFilterChanged()
virtual void keyPressEvent(QKeyEvent *ev)
virtual void slotBtnClearClicked()
CQIndexComboDelegate * mpTypeDelegate
virtual void slotBtnDeleteClicked()
virtual void setFramework(int framework)
virtual bool leave()
CQComboDelegate * mpCompartmentDelegate
CQSpeciesWidget(QWidget *parent=0, const char *name=0)