COPASI API  4.16.103
CQAnimationWindow.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 QANIMATION_WINDOW_H
7 #define QANIMATION_WINDOW_H
8 
9 #include <QtGui/QMainWindow>
10 #include <QtCore/QSharedPointer>
11 
12 #include <UI/CWindowInterface.h>
13 
14 #include <layout/CLayoutState.h>
15 #include <qlayout/ui_CQAnimationWindow.h>
16 
17 class CQLayoutScene;
18 class CQCopasiAnimation;
19 class CCopasiDataModel;
20 class QCloseEvent;
21 class QMenu;
22 class CLayout;
23 class CQLayoutThread;
24 
25 class CQAnimationWindow : public CWindowInterface, public Ui::CQAnimationWindow
26 {
27  Q_OBJECT
28 public:
29  CQAnimationWindow(CLayout* layout, CCopasiDataModel* dataModel = NULL);
31  virtual ~CQAnimationWindow();
32  void setScene(CQLayoutScene* scene, CCopasiDataModel* dataModel);
33  void setAnimation(CQCopasiAnimation* animation, CCopasiDataModel* dataModel);
34  virtual QMenu *getWindowMenu() const;
35 public slots:
36  void slotShowStep(int);
37  void slotExportImage();
38  void slotEditSettings();
39  void slotSwitchAnimation();
40  void slotRandomizeLayout();
41  void slotAutoLayout();
42  void slotStopLayout();
43  void slotLayoutStateChanged(QSharedPointer<CLayoutState> state);
44 private:
45  void init();
46  void toggleUI(bool isPlaying);
47 protected:
48  virtual void closeEvent(QCloseEvent *closeEvent);
49 
52  QMenu* mpWindowMenu;
56 };
57 
58 #endif // QANIMATION_WINDOW_H
void slotAutoLayout()
Slots the auto layout.
void toggleUI(bool isPlaying)
CCopasiDataModel * mpModel
virtual QMenu * getWindowMenu() const
void setScene(CQLayoutScene *scene, CCopasiDataModel *dataModel)
void setAnimation(CQCopasiAnimation *animation, CCopasiDataModel *dataModel)
void slotLayoutStateChanged(QSharedPointer< CLayoutState > state)
CQLayoutThread * mpLayoutThread
CQLayoutScene * mpScene
virtual void closeEvent(QCloseEvent *closeEvent)
CQCopasiAnimation * mAnimation