COPASI API  4.16.103
CQPlotsWidget.h
Go to the documentation of this file.
1 // Copyright (C) 2010 - 2013 by Pedro Mendes, Virginia Tech Intellectual
2 // Properties, Inc., University of Heidelberg, and The University
3 // of Manchester.
4 // All rights reserved.
5 
6 // Copyright (C) 2009 by Pedro Mendes, Virginia Tech Intellectual
7 // Properties, Inc., EML Research, gGmbH, University of Heidelberg,
8 // and The University of Manchester.
9 // All rights reserved.
10 
11 #ifndef CQPlotsWidget_h
12 #define CQPlotsWidget_h
13 
14 #include <QtCore/QVariant>
15 
16 #include "copasi/UI/ui_CQPlotsWidget.h"
17 
19 #include "copasi/UI/CQPlotDM.h"
20 
21 class CQPlotsWidget : public CopasiWidget, public Ui::CQPlotsWidget
22 {
23  Q_OBJECT
24 
25 public:
26  CQPlotsWidget(QWidget* parent = 0, const char* name = 0);
28 
29  virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key);
30  virtual bool leave();
31  virtual void setFramework(int framework);
32 
33 private:
36  void deleteSelectedPlots();
37  void updateDeleteBtns();
38 
39 protected:
40  virtual void keyPressEvent(QKeyEvent* ev);
41  virtual bool enterProtected();
42 
43 protected slots:
44  virtual void slotBtnNewClicked();
45  virtual void slotBtnDeleteClicked();
46  virtual void slotBtnClearClicked();
47  virtual void slotBtnActivateAllClicked();
48  virtual void slotBtnDeactivateAllClicked();
49  virtual void slotSelectionChanged(const QItemSelection& selected,
50  const QItemSelection& deselected);
51  virtual void slotDoubleClicked(const QModelIndex proxyIndex);
52  virtual void dataChanged(const QModelIndex& topLeft,
53  const QModelIndex& bottomRight);
54  virtual void slotFilterChanged();
55 };
56 
57 #endif // CQPlotsWidget_h
CQSortFilterProxyModel * mpProxyModel
Definition: CQPlotsWidget.h:35
objectType
virtual void slotFilterChanged()
void updateDeleteBtns()
virtual void slotSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
virtual void slotBtnDeleteClicked()
virtual bool leave()
virtual void slotBtnActivateAllClicked()
virtual void slotBtnClearClicked()
virtual void setFramework(int framework)
CQPlotDM * mpPlotDM
Definition: CQPlotsWidget.h:34
virtual bool enterProtected()
void deleteSelectedPlots()
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
virtual void slotDoubleClicked(const QModelIndex proxyIndex)
virtual void keyPressEvent(QKeyEvent *ev)
virtual void slotBtnDeactivateAllClicked()
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
virtual void slotBtnNewClicked()
CQPlotsWidget(QWidget *parent=0, const char *name=0)