00001
00002
00003
00004
00005 #ifndef BALL_VIEW_DIALOGS_DOCKPROGRESSDIALOG_H
00006 #define BALL_VIEW_DIALOGS_DOCKPROGRESSDIALOG_H
00007
00008 #ifndef BALL_COMMON_GLOBAL_H
00009 # include <BALL/COMMON/global.h>
00010 #endif
00011
00012 #ifndef BALL_DATATYPE_OPTIONS_H
00013 # include <BALL/DATATYPE/options.h>
00014 #endif
00015
00016 #ifndef BALL_STRUCTURE_DOCKING_DOCKINGALGORITHM_H
00017 # include <BALL/STRUCTURE/DOCKING/dockingAlgorithm.h>
00018 #endif
00019
00020 #include <QtCore/qtimer.h>
00021 #include <QtCore/qdatetime.h>
00022
00023 #ifdef BALL_COMPILER_MSVC
00024 # include <BALL/VIEW/UIC/ui_dockProgressDialog.h>
00025 #else
00026 # include <BALL/VIEW/UIC/dockProgressDialogData.h>
00027 #endif
00028
00029
00030 namespace BALL
00031 {
00032 namespace VIEW
00033 {
00037 class BALL_VIEW_EXPORT DockProgressDialog :
00038 public QDialog,
00039 public Ui_DockProgressDialogData
00040 {
00041 Q_OBJECT
00042
00043 public:
00044
00048
00055 DockProgressDialog(QWidget* parent = 0, const char* name = "DockProgressDialog");
00056
00059 virtual ~DockProgressDialog();
00061
00065
00069 void setDockingAlgorithm(DockingAlgorithm* alg);
00070
00073 const DockingAlgorithm* getDockingAlgorithm() const;
00074
00084 void fillDialog(const QString& p1, const QString& p2, const QString& alg, const QString& sf, const Options& alg_opt, const Options& sf_opt);
00086
00087 public slots:
00088
00091 void show();
00092
00093
00097 void pauseClicked();
00098
00103 void abortClicked();
00104
00105
00106 protected slots:
00107
00113 void updateProgress_();
00114
00115
00116 private:
00117
00122 DockProgressDialog(const DockProgressDialog& dock_prog_dialog);
00123
00129
00132 const DockProgressDialog& operator =(const DockProgressDialog& dock_prog_dialog);
00134
00137 DockingAlgorithm* alg_;
00138
00141 QTimer timer_;
00142
00145 QDateTime start_time_;
00146 };
00147
00148 } }
00149 #endif