BALL
1.4.2
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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_STRUCTURE_DOCKING_DOCKINGALGORITHM_H
18
# include <
BALL/STRUCTURE/DOCKING/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
slots:
84
87
void
show();
88
89
// TODO: pause algorithm!!!
93
void
pauseClicked();
94
99
void
abortClicked();
100
101
102
protected
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
Generated by
1.8.3.1