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

VIEW::DockResultDialog Class Reference
[QT Dialogs]

Dialog for showing the docking results. More...

#include <dockResultDialog.h>

List of all members.

Public Slots

void show ()
 Shows and raises result dialog.
void showSnapshot ()
 Is called when show snapshot button is pressed or when a row of the table is double-clicked.
void sortTable (int column)
 Is called when header of a column in the result table is pressed.
void showDockingOptions ()
 Is called when docking options button is pressed.
void upwardClicked ()
 Is called when upward button is pressed.
void downwardClicked ()
 Is called when downward button is pressed.
void scoringFuncChosen ()
 Is called when a scoring function is chosen in the combobox.
void advancedClicked ()
 Is called when advanced button for scoring function options is pressed.
void scoringClicked ()
 Is called when new scoring button is pressed.
void closeClicked ()
 Is called when close button is pressed.

Public Member Functions

Constructors and Destructors
 DockResultDialog (QWidget *parent=0, const char *name="DockResultDialog") throw ()
 Constructor.
virtual ~DockResultDialog () throw ()
 Destructor.
Assignment
const DockResultDialogoperator= (const DockResultDialog &res_dialog) throw ()
 Assignment operator.
Accessors: mutators
void setDockResult (DockResult *dock_res) throw ()
 Sets the dock result.
void setDockedSystem (System *system) throw ()
 Sets the docked system.
void addScoringFunction (const QString &name, DockingController::ScoringFunction score_func, QDialog *dialog=0) throw ()
 Adds scoring function to combobox and its advanced option dialog to hashmap, if it has such a dialog.

Protected Slots

void selectionChanged_ ()
void deleteColumn_ ()
 Is called when context menu entry Delete Score Column is pressed.
void showScoringOptions_ ()
 Is called when context menu entry Scoring Options is pressed.
void redock_ ()
 Is called when context menu entry Redock is pressed.


Detailed Description

Dialog for showing the docking results.


Constructor & Destructor Documentation

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

Constructor.

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


Member Function Documentation

void VIEW::DockResultDialog::addScoringFunction const QString &  name,
DockingController::ScoringFunction  score_func,
QDialog *  dialog = 0
throw ()
 

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

Parameters:
name the name of the scoring function
score_func the value of enum DockingController::ScoringFunction
dialog advanced option dialog

void VIEW::DockResultDialog::advancedClicked  )  [slot]
 

Is called when advanced button for scoring function options is pressed.

Shows corresponding options dialog, if it exits.

void VIEW::DockResultDialog::closeClicked  )  [slot]
 

Is called when close button is pressed.

Closes and deletes the dialog.

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

Is called when context menu entry Delete Score Column is pressed.

Deletes a score column.

void VIEW::DockResultDialog::downwardClicked  )  [slot]
 

Is called when downward button is pressed.

Selects the row below the current selected row and shows its snapshot.

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

Is called when context menu entry Redock is pressed.

Calls DockingController::runDocking for redocking.

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

void VIEW::DockResultDialog::scoringClicked  )  [slot]
 

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.

void VIEW::DockResultDialog::scoringFuncChosen  )  [slot]
 

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.

void VIEW::DockResultDialog::setDockedSystem System system  )  throw ()
 

Sets the docked system.

Parameters:
system docked system

void VIEW::DockResultDialog::setDockResult DockResult dock_res  )  throw ()
 

Sets the dock result.

Parameters:
dock_res dock result

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

Shows and raises result dialog.

Fills the result table in the dialog with the values stored in dock_res_ .

void VIEW::DockResultDialog::showDockingOptions  )  [slot]
 

Is called when docking options button is pressed.

Shows docking options in a small dialog.

void VIEW::DockResultDialog::showScoringOptions_  )  [protected, slot]
 

Is called when context menu entry Scoring Options is pressed.

Shows options of the scoring function in a small dialog.

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

void VIEW::DockResultDialog::showSnapshot  )  [slot]
 

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

Shows snapshot of selected row.

void 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.

void VIEW::DockResultDialog::upwardClicked  )  [slot]
 

Is called when upward button is pressed.

Selects the row above the current selected row and shows its snapshot.