COPASI API  4.16.103
CQLayoutView.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 QLAYOUT_VIEW_H
7 #define QLAYOUT_VIEW_H
8 
9 #include <QtGui/QGraphicsView>
10 
11 class CQLayoutScene;
12 class QAction;
13 class QMenu;
14 class QToolBar;
15 class QComboBox;
16 class CCopasiDataModel;
17 class CLayout;
18 
19 class CQLayoutView: public QGraphicsView
20 {
21  Q_OBJECT
22 public:
23  CQLayoutView(QWidget*parent = NULL);
25  virtual ~CQLayoutView();
26  void fillZoomMenu(QMenu* menu);
27  void fillZoomTooBar(QToolBar* toolBar);
28  void fillSelectionToolBar(QToolBar* toolBar);
29  void setDataModel(CCopasiDataModel* dataModel, CLayout *layout = NULL);
31 
32 public slots:
33  void slotFitOnScreen();
34  void slotResetZoom();
35  void slotZoomIn();
36  void slotZoomOut();
37  void slotSaveToFile(const QString& fileName);
38  void slotLayoutChanged(int);
40 
41 protected:
42  void wheelEvent(QWheelEvent* event);
43 
44  QAction* mpActZoomIn;
45  QAction* mpActZoomOut;
46  QAction* mpActFitOnScreen;
47  QAction* mpActResetZoom;
48  double mScaleFactor;
49  QComboBox* mpLayoutDropdown;
50  QComboBox* mpRenderDropdown;
53 
54 private:
55  void createActions();
56 };
57 
58 #endif
bool mIgnoreEvents
Definition: CQLayoutView.h:51
void setDataModel(CCopasiDataModel *dataModel, CLayout *layout=NULL)
QComboBox * mpLayoutDropdown
Definition: CQLayoutView.h:49
QAction * mpActZoomOut
Definition: CQLayoutView.h:45
void fillZoomTooBar(QToolBar *toolBar)
QAction * mpActFitOnScreen
Definition: CQLayoutView.h:46
double mScaleFactor
Definition: CQLayoutView.h:48
void slotResetZoom()
void fillZoomMenu(QMenu *menu)
CCopasiDataModel * getDataModel()
void fillSelectionToolBar(QToolBar *toolBar)
QAction * mpActZoomIn
Definition: CQLayoutView.h:44
CCopasiDataModel * mpDataModel
Definition: CQLayoutView.h:52
void slotFitOnScreen()
QAction * mpActResetZoom
Definition: CQLayoutView.h:47
void slotZoomOut()
void slotLayoutChanged(int)
CQLayoutView(QWidget *parent=NULL)
QComboBox * mpRenderDropdown
Definition: CQLayoutView.h:50
void createActions()
virtual ~CQLayoutView()
void slotRenderInformationChanged(int)
void slotSaveToFile(const QString &fileName)
void wheelEvent(QWheelEvent *event)