BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Slots | Protected Slots | Private Member Functions | Private Attributes | List of all members
BALL::VIEW::DockProgressDialog Class Reference

#include <BALL/VIEW/DIALOGS/dockProgressDialog.h>

Inheritance diagram for BALL::VIEW::DockProgressDialog:
QDialog

Public Slots

void show ()
 
void pauseClicked ()
 
void abortClicked ()
 

Public Member Functions

Constructors and Destructors
 DockProgressDialog (QWidget *parent=0, const char *name="DockProgressDialog")
 
virtual ~DockProgressDialog ()
 
Accessors: inspectors and mutators
void setDockingAlgorithm (DockingAlgorithm *alg)
 
const DockingAlgorithmgetDockingAlgorithm () const
 
void fillDialog (const QString &p1, const QString &p2, const QString &alg, const QString &sf, const Options &alg_opt, const Options &sf_opt)
 

Protected Slots

void updateProgress_ ()
 

Private Member Functions

 DockProgressDialog (const DockProgressDialog &dock_prog_dialog)
 
Assignment

Remark: Operator is private because it is not completed. The assignment operator of the QT widgets is private and cannot be called.

const DockProgressDialogoperator= (const DockProgressDialog &dock_prog_dialog)
 

Private Attributes

DockingAlgorithmalg_
 
QTimer timer_
 
QDateTime start_time_
 

Detailed Description

Dialog for showing the progress during a docking calculation.

Definition at line 33 of file dockProgressDialog.h.

Constructor & Destructor Documentation

BALL::VIEW::DockProgressDialog::DockProgressDialog ( QWidget parent = 0,
const char *  name = "DockProgressDialog" 
)

Constructor

Parameters
parentthe parent widget of the DockProgressDialog
namethe name of the DockProgressDialog
modalthe modal flag
flthe widget flags
virtual BALL::VIEW::DockProgressDialog::~DockProgressDialog ( )
virtual

Destructor

BALL::VIEW::DockProgressDialog::DockProgressDialog ( const DockProgressDialog dock_prog_dialog)
private

Copy constructor Remark: Copy contructor is private because it is not completed. The copy constuctor of the QT widgets is private and cannot be called.

Member Function Documentation

void BALL::VIEW::DockProgressDialog::abortClicked ( )
slot

Is called when abort button is pressed. Aborts docking calculations. Closes and deletes the dialog.

void BALL::VIEW::DockProgressDialog::fillDialog ( const QString &  p1,
const QString &  p2,
const QString &  alg,
const QString &  sf,
const Options alg_opt,
const Options sf_opt 
)

Fills ProgressDialog with information about the chosen docking partners, algorithm, scoring function and options.

Parameters
p1first docking partner
p2second docking partner
algdocking algorithm
sfscoring function
alg_optalgorithm options
sf_optscoring function options
const DockingAlgorithm* BALL::VIEW::DockProgressDialog::getDockingAlgorithm ( ) const

Get docking algorithm.

const DockProgressDialog& BALL::VIEW::DockProgressDialog::operator= ( const DockProgressDialog dock_prog_dialog)
private

Assignment operator

void BALL::VIEW::DockProgressDialog::pauseClicked ( )
slot

Is called when pause button / continue button is pressed. Pauses / continues docking calculations.

void BALL::VIEW::DockProgressDialog::setDockingAlgorithm ( DockingAlgorithm alg)

Sets docking algorithm.

Parameters
algdocking algorithm
void BALL::VIEW::DockProgressDialog::show ( )
slot

Starts timer and shows dialog to user.

void BALL::VIEW::DockProgressDialog::updateProgress_ ( )
protectedslot

Is called when timer elapses. Gets current progress of docking algorithm. Sets progress bar to current progress and calculates remaining time. Closes and deletes the dialog when calculations have finished.

Member Data Documentation

DockingAlgorithm* BALL::VIEW::DockProgressDialog::alg_
private

Pointer to docking algorithm.

Definition at line 133 of file dockProgressDialog.h.

QDateTime BALL::VIEW::DockProgressDialog::start_time_
private

Start time of docking calculations.

Definition at line 141 of file dockProgressDialog.h.

QTimer BALL::VIEW::DockProgressDialog::timer_
private

Timer to call updateProgress_ regularly while calculation is running.

Definition at line 137 of file dockProgressDialog.h.