Loading...
Searching...
No Matches
dockProgressDialog.h
Go to the documentation of this file.
//
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_DIALOGS_DOCKPROGRESSDIALOG_H
#define BALL_VIEW_DIALOGS_DOCKPROGRESSDIALOG_H
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
#ifndef BALL_DATATYPE_OPTIONS_H
# include <BALL/DATATYPE/options.h>
#endif
#ifndef BALL_DOCKING_COMMON_DOCKINGALGORITHM_H
# include <BALL/DOCKING/COMMON/dockingAlgorithm.h>
#endif
#include <QtCore/QTimer>
#include <QtCore/QDateTime>
#include <BALL/VIEW/UIC/ui_dockProgressDialog.h>
namespace BALL
{
namespace VIEW
{
class BALL_VIEW_EXPORT DockProgressDialog :
public QDialog,
public Ui_DockProgressDialogData
{
Q_OBJECT
public:
DockProgressDialog(QWidget* parent = 0, const char* name = "DockProgressDialog");
virtual ~DockProgressDialog();
void setDockingAlgorithm(DockingAlgorithm* alg);
const DockingAlgorithm* getDockingAlgorithm() const;
void fillDialog(const QString& p1, const QString& p2, const QString& alg, const QString& sf, const Options& alg_opt, const Options& sf_opt);
public Q_SLOTS:
void show();
// TODO: pause algorithm!!!
void pauseClicked();
void abortClicked();
protected Q_SLOTS:
void updateProgress_();
private:
DockProgressDialog(const DockProgressDialog& dock_prog_dialog);
const DockProgressDialog& operator =(const DockProgressDialog& dock_prog_dialog);
DockingAlgorithm* alg_;
QTimer timer_;
QDateTime start_time_;
};
} } // Namespaces
#endif
global.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::DockingAlgorithm
Definition dockingAlgorithm.h:46
BALL::Options
Definition options.h:48
BALL::VIEW::DockProgressDialog::pauseClicked
void pauseClicked()
BALL::VIEW::DockProgressDialog::DockProgressDialog
DockProgressDialog(QWidget *parent=0, const char *name="DockProgressDialog")
BALL::VIEW::DockProgressDialog::abortClicked
void abortClicked()
BALL::VIEW::DockProgressDialog::show
void show()
BALL::VIEW::DockProgressDialog::setDockingAlgorithm
void setDockingAlgorithm(DockingAlgorithm *alg)
BALL::VIEW::DockProgressDialog::getDockingAlgorithm
const DockingAlgorithm * getDockingAlgorithm() const
BALL::VIEW::DockProgressDialog::fillDialog
void fillDialog(const QString &p1, const QString &p2, const QString &alg, const QString &sf, const Options &alg_opt, const Options &sf_opt)
BALL::VIEW::DockProgressDialog::updateProgress_
void updateProgress_()
BALL::VIEW::DockProgressDialog::~DockProgressDialog
virtual ~DockProgressDialog()
QDialog
QWidget
dockingAlgorithm.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
options.h