COPASI API  4.16.103
CQFunctionsWidget.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQFunctionsWidget.h,v $
3 // $Revision: 1.6 $
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 CQFunctionsWidget_h
20 #define CQFunctionsWidget_h
21 
22 #include <QtCore/QVariant>
23 
24 #include "copasi/UI/ui_CQFunctionsWidget.h"
25 
27 #include "copasi/UI/CQFunctionDM.h"
28 
29 class CQFunctionsWidget : public CopasiWidget, public Ui::CQFunctionsWidget
30 {
31  Q_OBJECT
32 
33 public:
34  CQFunctionsWidget(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 private:
47  void updateDeleteBtns();
48 
49 protected:
50  virtual void keyPressEvent(QKeyEvent* ev);
51 
52 protected slots:
53  virtual void slotBtnNewClicked();
54  virtual void slotBtnDeleteClicked();
55  virtual void slotBtnClearClicked();
56  virtual void slotSelectionChanged(const QItemSelection& selected,
57  const QItemSelection& deselected);
58  virtual void slotDoubleClicked(const QModelIndex proxyIndex);
59  virtual void dataChanged(const QModelIndex& topLeft,
60  const QModelIndex& bottomRight);
61  virtual void slotFilterChanged();
62 };
63 
64 #endif // CQFunctionsWidget_h
virtual void slotDoubleClicked(const QModelIndex proxyIndex)
objectType
CQFunctionDM * mpFunctionDM
virtual void keyPressEvent(QKeyEvent *ev)
virtual void slotBtnDeleteClicked()
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
CQSortFilterProxyModel * mpProxyModel
virtual bool enterProtected()
virtual void slotBtnClearClicked()
virtual void slotFilterChanged()
virtual void slotSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
virtual void slotBtnNewClicked()
CQFunctionsWidget(QWidget *parent=0, const char *name=0)
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)