BALL  1.5.0
snapShotVisualisation.h
Go to the documentation of this file.
1 #ifndef BALL_VIEW_DIALOG_SNAPSHOTVISUALISATIONDIALOG_H
2 #define BALL_VIEW_DIALOG_SNAPSHOTVISUALISATIONDIALOG_H
3 
4 #ifndef BALL_COMMON_GLOBAL_H
5 # include <BALL/COMMON/global.h>
6 #endif
7 
8 #ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
10 #endif
11 
12 #include <BALL/VIEW/UIC/ui_snapShotVisualisation.h>
13 
14 #include <QtWidgets/QDialog>
15 
16 namespace BALL
17 {
18  class SnapShotManager;
19 
20  namespace VIEW
21  {
22 
29  : public QDialog,
30  public Ui_SnapshotVisualisationDialogData,
31  public ModularWidget
32 {
33  Q_OBJECT
34 
35  public:
36 
38 
39 
40  SnapshotVisualisationDialog(QWidget* parent = 0, const char* name = "SnapshotVisualisationDialog");
41 
44 
46  void setSnapShotManager(SnapShotManager* snapshot_manager);
47 
49  const SnapShotManager* getSnapShotManager() {return snap_shot_manager_;}
50 
52  Size getStartSnapshot() const;
53 
55  Size getEndSnapshot() const;
56 
57  public Q_SLOTS:
58 
60  void show();
61 
63  virtual void firstSnapshotClicked();
64 
66  virtual void oneForwardClicked();
67 
69  virtual void oneBackwardClicked();
70 
72  virtual void tenForwardClicked();
73 
75  virtual void tenBackwardClicked();
76 
78  virtual void hundredForwardClicked();
79 
81  virtual void hundredBackwardClicked();
82 
84  virtual void lastSnapshotClicked();
85 
87  virtual void animateClicked();
88 
90  virtual void snapShotInputTest();
91 
93  virtual void sliderMovedToPos();
94 
96  virtual void animationSpeedChanged();
97 
99  virtual void checkNoLoop();
100 
102  virtual void checkLoop();
103 
105  virtual void checkRock();
106 
108  void cancelPressed();
109 
110  protected Q_SLOTS:
111 
112  void sliderDragStarted_();
113  void sliderDragEnded_();
114 
115  protected:
116 
117  void stop_();
118  virtual void closeEvent(QCloseEvent*);
119  void update_();
120  void forward(Size nr);
121  void backward(Size nr);
122 
124  QString tmp_;
126  bool error_;
127  bool cancel_;
129  bool drag_;
130 };
131 
132 } } // namespaces
133 
134 #endif //BALL_VIEW_DIALOG_SNAPSHOTVISUALISATIONDIALOG_H
BALL::VIEW::SnapshotVisualisationDialog::error_
bool error_
Definition: snapShotVisualisation.h:126
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52
BALL::VIEW::SnapshotVisualisationDialog::snap_shot_manager_
SnapShotManager * snap_shot_manager_
Definition: snapShotVisualisation.h:125
BALL::VIEW::SnapshotVisualisationDialog::main_control_
MainControl * main_control_
Definition: snapShotVisualisation.h:123
QWidget
QDialog
BALL_SIZE_TYPE
BALL_EMBEDDABLE
#define BALL_EMBEDDABLE(TYPE, BASE)
Definition: embeddable.h:31
BALL
Definition: constants.h:12
BALL::VIEW::SnapshotVisualisationDialog
Definition: snapShotVisualisation.h:28
BALL::VIEW::SnapshotVisualisationDialog::getSnapShotManager
const SnapShotManager * getSnapShotManager()
This function gets the SnapShotManager.
Definition: snapShotVisualisation.h:49
modularWidget.h
BALL::VIEW::MainControl
Definition: mainControl.h:114
BALL::VIEW::SnapshotVisualisationDialog::tmp_
QString tmp_
Definition: snapShotVisualisation.h:124
BALL::VIEW::SnapshotVisualisationDialog::cancel_
bool cancel_
Definition: snapShotVisualisation.h:127
global.h
BALL::VIEW::ModularWidget
Definition: modularWidget.h:60
BALL::VIEW::SnapshotVisualisationDialog::animation_running_
bool animation_running_
Definition: snapShotVisualisation.h:128
BALL::SnapShotManager
Definition: snapShotManager.h:33
BALL::VIEW::SnapshotVisualisationDialog::drag_
bool drag_
Definition: snapShotVisualisation.h:129