BALL
1.5.0
include
BALL
VIEW
DIALOGS
dockProgressDialog.h
Go to the documentation of this file.
1
//
2
// -*- Mode: C++; tab-width: 2; -*-
3
// vi: set ts=2:
4
//
5
6
#ifndef BALL_VIEW_DIALOGS_DOCKPROGRESSDIALOG_H
7
#define BALL_VIEW_DIALOGS_DOCKPROGRESSDIALOG_H
8
9
#ifndef BALL_COMMON_GLOBAL_H
10
# include <
BALL/COMMON/global.h
>
11
#endif
12
13
#ifndef BALL_DATATYPE_OPTIONS_H
14
# include <
BALL/DATATYPE/options.h
>
15
#endif
16
17
#ifndef BALL_DOCKING_COMMON_DOCKINGALGORITHM_H
18
# include <
BALL/DOCKING/COMMON/dockingAlgorithm.h
>
19
#endif
20
21
#include <QtCore/QTimer>
22
#include <QtCore/QDateTime>
23
24
#include <BALL/VIEW/UIC/ui_dockProgressDialog.h>
25
26
namespace
BALL
27
{
28
namespace
VIEW
29
{
33
class
BALL_VIEW_EXPORT
DockProgressDialog
:
34
public
QDialog
,
35
public
Ui_DockProgressDialogData
36
{
37
Q_OBJECT
38
39
public
:
40
44
51
DockProgressDialog
(
QWidget
* parent = 0,
const
char
* name =
"DockProgressDialog"
);
52
55
virtual
~DockProgressDialog
();
57
61
65
void
setDockingAlgorithm
(
DockingAlgorithm
* alg);
66
69
const
DockingAlgorithm
*
getDockingAlgorithm
()
const
;
70
80
void
fillDialog
(
const
QString& p1,
const
QString& p2,
const
QString& alg,
const
QString& sf,
const
Options
& alg_opt,
const
Options
& sf_opt);
82
83
public
Q_SLOTS:
84
87
void
show
();
88
89
// TODO: pause algorithm!!!
93
void
pauseClicked
();
94
99
void
abortClicked
();
100
101
102
protected
Q_SLOTS:
103
109
void
updateProgress_
();
110
111
112
private
:
113
118
DockProgressDialog
(
const
DockProgressDialog
& dock_prog_dialog);
119
125
128
const
DockProgressDialog
& operator =(
const
DockProgressDialog
& dock_prog_dialog);
130
133
DockingAlgorithm
* alg_;
134
137
QTimer timer_;
138
141
QDateTime start_time_;
142
};
143
144
} }
// Namespaces
145
#endif
dockingAlgorithm.h
options.h
BALL
Definition:
constants.h:13
BALL::Options
Definition:
options.h:48
BALL::DockingAlgorithm
Definition:
dockingAlgorithm.h:46
BALL::VIEW::DockProgressDialog
Definition:
dockProgressDialog.h:36
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
global.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition:
COMMON/global.h:52
Generated by
1.9.4