COPASI API  4.16.103
CQTabWidget.h
Go to the documentation of this file.
1 // Copyright (C) 2012 - 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 /*
7  * CQTabWidget.h
8  *
9  * Created on: May 8, 2012
10  * Author: shoops
11  */
12 
13 #ifndef COPASI_CQTabWidget
14 #define COPASI_CQTabWidget
15 
16 #include <QtCore/QVariant>
17 
18 #include "copasi/UI/ui_CQTabWidget.h"
19 
20 #include <vector>
21 
22 class CQTabWidget: public CopasiWidget, public Ui::CQTabWidget
23 {
24  Q_OBJECT
25 
26 public:
28  QWidget * parent = 0, Qt::WindowFlags f = 0);
29  virtual ~CQTabWidget();
30 
31  virtual bool leave();
32  virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string & key);
33 
34  void selectTab(int index) const;
35 
36 protected:
37  virtual bool enterProtected();
38 
39  void load();
40 
41  bool save();
42 
43 private slots:
44  void slotBtnCommit();
45  void slotBtnRevert();
46  void slotBtnDelete();
47  void slotBtnNew();
48  void slotBtnCopy();
49 
50 signals:
51  void deleteClicked();
52  void newClicked();
53  void copyClicked();
54 
55 private:
56  std::vector< CopasiWidget * > mPages;
59 };
60 
61 #endif // COPASI_CQTabWidget
virtual bool enterProtected()
Definition: CQTabWidget.cpp:94
objectType
virtual bool update(ListViews::ObjectType objectType, ListViews::Action action, const std::string &key)
void copyClicked()
void newClicked()
CQTabWidget(const ListViews::ObjectType &objectType, CopasiWidget *pCopasiWidget, QWidget *parent=0, Qt::WindowFlags f=0)
Definition: CQTabWidget.cpp:24
void slotBtnDelete()
void selectTab(int index) const
void slotBtnCopy()
std::vector< CopasiWidget * > mPages
Definition: CQTabWidget.h:56
void deleteClicked()
void slotBtnNew()
virtual bool leave()
Definition: CQTabWidget.cpp:79
void slotBtnRevert()
virtual ~CQTabWidget()
Definition: CQTabWidget.cpp:74
void slotBtnCommit()
ListViews::ObjectType mObjectType
Definition: CQTabWidget.h:57
bool mIgnoreLeave
Definition: CQTabWidget.h:58