COPASI API  4.16.103
CQReportsWidget.h
Go to the documentation of this file.
1 // Begin CVS Header
2 // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQReportsWidget.h,v $
3 // $Revision: 1.5 $
4 // $Name: $
5 // $Author: shoops $
6 // $Date: 2011/10/14 16:17:46 $
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 CQReportsWidget_h
20 #define CQReportsWidget_h
21 
22 #include <QtCore/QVariant>
23 
24 #include "copasi/UI/ui_CQReportsWidget.h"
25 
27 #include "copasi/UI/CQReportDM.h"
28 
29 class CQReportsWidget : public CopasiWidget, public Ui::CQReportsWidget
30 {
31  Q_OBJECT
32 
33 public:
34  CQReportsWidget(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  virtual void setFramework(int framework);
40 
41 private:
44  void deleteSelectedReports();
45  void updateDeleteBtns();
46 
47 protected:
48  virtual void keyPressEvent(QKeyEvent* ev);
49  virtual bool enterProtected();
50 
51 protected slots:
52  virtual void slotBtnNewClicked();
53  virtual void slotBtnDeleteClicked();
54  virtual void slotBtnClearClicked();
55  virtual void slotSelectionChanged(const QItemSelection& selected,
56  const QItemSelection& deselected);
57  virtual void slotDoubleClicked(const QModelIndex proxyIndex);
58  virtual void dataChanged(const QModelIndex& topLeft,
59  const QModelIndex& bottomRight);
60  virtual void slotFilterChanged();
61 };
62 
63 #endif // CQReportsWidget_h
CQSortFilterProxyModel * mpProxyModel
objectType
virtual bool enterProtected()
virtual void keyPressEvent(QKeyEvent *ev)
CQReportsWidget(QWidget *parent=0, const char *name=0)
virtual void slotBtnDeleteClicked()
virtual void slotDoubleClicked(const QModelIndex proxyIndex)
virtual bool leave()
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
virtual void slotBtnNewClicked()
CQReportDM * mpReportDM
virtual void slotBtnClearClicked()
void deleteSelectedReports()
virtual void slotFilterChanged()
virtual void slotSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
virtual void setFramework(int framework)