Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::DockProgressDialog Class Reference
[QT Dialogs]

Dialog for showing the progress during a docking calculation. More...

#include <dockProgressDialog.h>

List of all members.

Public Slots

void show ()
 Starts timer and shows dialog to user.
void pauseClicked ()
 Is called when pause button / continue button is pressed.
void abortClicked ()
 Is called when abort button is pressed.

Public Member Functions

Constructors and Destructors
 DockProgressDialog (QWidget *parent=0, const char *name="DockProgressDialog") throw ()
 Constructor.
virtual ~DockProgressDialog () throw ()
 Destructor.
Accessors: inspectors and mutators
void setDockingAlgorithm (DockingAlgorithm *alg) throw ()
 Sets docking algorithm.
const DockingAlgorithmgetDockingAlgorithm () const throw ()
 Get docking algorithm.
void fillDialog (const QString &p1, const QString &p2, const QString &alg, const QString &sf, const Options &alg_opt, const Options &sf_opt) throw ()
 Fills ProgressDialog with information about the chosen docking partners, algorithm, scoring function and options.

Protected Slots

void updateProgress_ ()
 Is called when timer elapses.


Detailed Description

Dialog for showing the progress during a docking calculation.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
parent the parent widget of the DockProgressDialog
name the name of the DockProgressDialog
modal the modal flag
fl the widget flags


Member Function Documentation

void VIEW::DockProgressDialog::abortClicked  )  [slot]
 

Is called when abort button is pressed.

Aborts docking calculations. Closes and deletes the dialog.

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

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

Parameters:
p1 first docking partner
p2 second docking partner
alg docking algorithm
sf scoring function
alg_opt algorithm options
sf_opt scoring function options

const DockingAlgorithm* VIEW::DockProgressDialog::getDockingAlgorithm  )  const throw ()
 

Get docking algorithm.

void VIEW::DockProgressDialog::pauseClicked  )  [slot]
 

Is called when pause button / continue button is pressed.

Pauses / continues docking calculations.

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

Sets docking algorithm.

Parameters:
alg docking algorithm

void VIEW::DockProgressDialog::show  )  [slot]
 

Starts timer and shows dialog to user.

void VIEW::DockProgressDialog::updateProgress_  )  [protected, slot]
 

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.