BALL
1.4.1
|
00001 #ifndef BALL_VIEW_DIALOG_SNAPSHOTVISUALISATIONDIALOG_H 00002 #define BALL_VIEW_DIALOG_SNAPSHOTVISUALISATIONDIALOG_H 00003 00004 #ifndef BALL_COMMON_GLOBAL_H 00005 # include <BALL/COMMON/global.h> 00006 #endif 00007 00008 #ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H 00009 #include <BALL/VIEW/KERNEL/modularWidget.h> 00010 #endif 00011 00012 #include <BALL/VIEW/UIC/ui_snapShotVisualisation.h> 00013 00014 #include <QtGui/QDialog> 00015 00016 namespace BALL 00017 { 00018 class SnapShotManager; 00019 00020 namespace VIEW 00021 { 00022 00028 class BALL_VIEW_EXPORT SnapshotVisualisationDialog 00029 : public QDialog, 00030 public Ui_SnapshotVisualisationDialogData, 00031 public ModularWidget 00032 { 00033 Q_OBJECT 00034 00035 public: 00036 00037 BALL_EMBEDDABLE(SnapshotVisualisationDialog, ModularWidget) 00038 00039 00040 SnapshotVisualisationDialog(QWidget* parent = 0, const char* name = "SnapshotVisualisationDialog"); 00041 00043 ~SnapshotVisualisationDialog(); 00044 00046 void setSnapShotManager(SnapShotManager* snapshot_manager); 00047 00049 const SnapShotManager* getSnapShotManager() {return snap_shot_manager_;} 00050 00052 Size getStartSnapshot() const; 00053 00055 Size getEndSnapshot() const; 00056 00057 public slots: 00058 00060 void show(); 00061 00063 virtual void firstSnapshotClicked(); 00064 00066 virtual void oneForwardClicked(); 00067 00069 virtual void oneBackwardClicked(); 00070 00072 virtual void tenForwardClicked(); 00073 00075 virtual void tenBackwardClicked(); 00076 00078 virtual void hundredForwardClicked(); 00079 00081 virtual void hundredBackwardClicked(); 00082 00084 virtual void lastSnapshotClicked(); 00085 00087 virtual void animateClicked(); 00088 00090 virtual void snapShotInputTest(); 00091 00093 virtual void sliderMovedToPos(); 00094 00096 virtual void animationSpeedChanged(); 00097 00099 virtual void checkNoLoop(); 00100 00102 virtual void checkLoop(); 00103 00105 virtual void checkRock(); 00106 00108 void cancelPressed(); 00109 00110 protected slots: 00111 00112 void sliderDragStarted_(); 00113 void sliderDragEnded_(); 00114 00115 protected: 00116 00117 void stop_(); 00118 virtual void closeEvent(QCloseEvent*); 00119 void update_(); 00120 void forward(Size nr); 00121 void backward(Size nr); 00122 00123 MainControl* main_control_; 00124 QString tmp_; 00125 SnapShotManager* snap_shot_manager_; 00126 bool error_; 00127 bool cancel_; 00128 bool animation_running_; 00129 bool drag_; 00130 }; 00131 00132 } } // namespaces 00133 00134 #endif //BALL_VIEW_DIALOG_SNAPSHOTVISUALISATIONDIALOG_H