COPASI API  4.16.103
CQParameterSetsWidget.h
Go to the documentation of this file.
1 // Copyright (C) 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 #ifndef CQParameterSetsWidget_h
7 #define CQParameterSetsWidget_h
8 
9 #include <QtCore/QVariant>
10 
11 #include "copasi/UI/ui_CQParameterSetsWidget.h"
12 
15 
16 class CQParameterSetsWidget : public CopasiWidget, public Ui::CQParameterSetsWidget
17 {
18  Q_OBJECT
19 
20 public:
21  CQParameterSetsWidget(QWidget* parent = 0, const char* name = 0);
23 
24  virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key);
25  virtual bool leave();
26  virtual void setFramework(int framework);
27 
28 private:
31  void deleteSelected();
32  void updateDeleteBtns();
33 
34 protected:
35  virtual void keyPressEvent(QKeyEvent* ev);
36  virtual bool enterProtected();
37 
38 protected slots:
39  virtual void slotBtnNewClicked();
40  virtual void slotBtnDeleteClicked();
41  virtual void slotBtnClearClicked();
42  virtual void slotSelectionChanged(const QItemSelection& selected,
43  const QItemSelection& deselected);
44  virtual void slotDoubleClicked(const QModelIndex proxyIndex);
45  virtual void dataChanged(const QModelIndex& topLeft,
46  const QModelIndex& bottomRight);
47  virtual void slotFilterChanged();
48 };
49 
50 #endif // CQParameterSetsWidget_h
objectType
virtual void setFramework(int framework)
CQParameterSetsWidget(QWidget *parent=0, const char *name=0)
virtual void slotDoubleClicked(const QModelIndex proxyIndex)
virtual void keyPressEvent(QKeyEvent *ev)
CQSortFilterProxyModel * mpProxyModel
CQParameterSetsDM * mpParameterSetsDM
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
virtual void slotSelectionChanged(const QItemSelection &selected, const QItemSelection &deselected)
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)