BALL  1.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Classes | Public Slots | Protected Slots | Private Member Functions | Private Attributes
BALL::VIEW::DockResultDialog Class Reference

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

Inheritance diagram for BALL::VIEW::DockResultDialog:
QDialog

List of all members.

Classes

class  Compare_

Public Slots

void show ()
void showSnapshot ()
void sortTable (int column)
void showDockingOptions ()
void upwardClicked ()
void downwardClicked ()
void scoringFuncChosen ()
void advancedClicked ()
void scoringClicked ()
void closeClicked ()

Public Member Functions

Constructors and Destructors
 DockResultDialog (QWidget *parent=0, const char *name="DockResultDialog")
virtual ~DockResultDialog ()
Assignment
const DockResultDialogoperator= (const DockResultDialog &res_dialog)
Accessors: mutators
void setDockResult (DockResult *dock_res)
void setDockedSystem (System *system)
void addScoringFunction (const QString &name, DockingController::ScoringFunction score_func, QDialog *dialog=0)

Protected Slots

void selectionChanged_ ()
void deleteColumn_ ()
void showScoringOptions_ ()
void redock_ ()

Private Member Functions

 DockResultDialog (const DockResultDialog &dock_res_dialog)

Private Attributes

DockResultdock_res_
Systemdocked_system_
Systemredock_partner1_
Systemredock_partner2_
HashMap< int, QDialog * > scoring_dialogs_

Detailed Description

Dialog for showing the docking results.

Definition at line 28 of file dockResultDialog.h.


Constructor & Destructor Documentation

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

Constructor

Parameters:
parentthe parent widget of the DockResultDialog
namethe name of the DockResultDialog
modalthe modal flag
flthe widget flags

Destructor

BALL::VIEW::DockResultDialog::DockResultDialog ( const DockResultDialog dock_res_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::DockResultDialog::addScoringFunction ( const QString &  name,
DockingController::ScoringFunction  score_func,
QDialog dialog = 0 
)

Adds scoring function to combobox and its advanced option dialog to hashmap, if it has such a dialog.

Parameters:
namethe name of the scoring function
score_functhe value of enum DockingController::ScoringFunction
dialogadvanced option dialog

Is called when advanced button for scoring function options is pressed. Shows corresponding options dialog, if it exits.

Is called when close button is pressed. Closes and deletes the dialog.

void BALL::VIEW::DockResultDialog::deleteColumn_ ( ) [protected, slot]

Is called when context menu entry Delete Score Column is pressed. Deletes a score column.

Is called when downward button is pressed. Selects the row below the current selected row and shows its snapshot.

const DockResultDialog& BALL::VIEW::DockResultDialog::operator= ( const DockResultDialog res_dialog)

Assignment operator

void BALL::VIEW::DockResultDialog::redock_ ( ) [protected, slot]

Is called when context menu entry Redock is pressed. Calls DockingController::runDocking for redocking.

Parameters:
rownumber of the row for which redocking should be started

Is called when new scoring button is pressed. Calculates new scores with the chosen scoring function and adds a new score column. Calls sortTable to sort the table by this new column.

Is called when a scoring function is chosen in the combobox. Sets the advanced button enabled if the selected scoring function has options otherwise the button is disabled.

Sets the docked system.

Parameters:
systemdocked system

Sets the dock result.

Parameters:
dock_resdock result

Shows and raises result dialog. Fills the result table in the dialog with the values stored in dock_res_ .

Is called when docking options button is pressed. Shows docking options in a small dialog.

Is called when context menu entry Scoring Options is pressed. Shows options of the scoring function in a small dialog.

Parameters:
columnnumber of the column for which the scoring function options should be shown

Is called when show snapshot button is pressed or when a row of the table is double-clicked. Shows snapshot of selected row.

void BALL::VIEW::DockResultDialog::sortTable ( int  column) [slot]

Is called when header of a column in the result table is pressed. Sorts the result table by a clicked column. Uses nested class Compare_ for sorting.

Is called when upward button is pressed. Selects the row above the current selected row and shows its snapshot.


Member Data Documentation

DockResult contains all information of the performed docking.

See also:
DockResult

Definition at line 205 of file dockResultDialog.h.

System which contains the two docked partners.

Definition at line 209 of file dockResultDialog.h.

The two redocking partners.

Definition at line 213 of file dockResultDialog.h.

Definition at line 213 of file dockResultDialog.h.

key: DockingController::ScoringFunction, value: advanced options dialog

Definition at line 217 of file dockResultDialog.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines