COPASI API  4.16.103
CQTableView.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQTableView.h,v $
3 // $Revision: 1.2 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/03/07 19:37:51 $
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 /*
15  * CQTableView.h
16  *
17  * Created on: Nov 23, 2010
18  * Author: shoops
19  */
20 
21 #ifndef COPASI_QTableView
22 #define COPASI_QTableView
23 
24 #include <QtGui/QTableView>
25 
26 class QTimer;
27 
28 class CQTableView : public QTableView
29 {
30  Q_OBJECT
31 
32 public:
33  CQTableView(QWidget * pParent = NULL);
34  virtual ~CQTableView();
35 
36  virtual void setModel(QAbstractItemModel * model);
37 
38 protected:
39  virtual void keyPressEvent(QKeyEvent * pEvent);
40 
41  virtual void mousePressEvent(QMouseEvent * pEvent);
42 
43 protected slots:
44  void slotSingleClick();
45  void slotMoveDown();
46 
47 private:
48  QTimer * mpTimer;
49  QMouseEvent * mpMouseEvent;
50  bool mMoveDown;
51  QAbstractItemModel * mpModel;
52 };
53 
54 #endif // COPASI_QTableView
virtual ~CQTableView()
Definition: CQTableView.cpp:28
bool mMoveDown
Definition: CQTableView.h:50
virtual void mousePressEvent(QMouseEvent *pEvent)
Definition: CQTableView.cpp:66
void slotMoveDown()
Definition: CQTableView.cpp:96
virtual void setModel(QAbstractItemModel *model)
Definition: CQTableView.cpp:32
QMouseEvent * mpMouseEvent
Definition: CQTableView.h:49
virtual void keyPressEvent(QKeyEvent *pEvent)
Definition: CQTableView.cpp:48
QAbstractItemModel * mpModel
Definition: CQTableView.h:51
CQTableView(QWidget *pParent=NULL)
Definition: CQTableView.cpp:13
QTimer * mpTimer
Definition: CQTableView.h:48
void slotSingleClick()
Definition: CQTableView.cpp:87