Loading...
Searching...
No Matches
dockResultDialog.h
Go to the documentation of this file.
//
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_DIALOGS_DOCKRESULTDIALOG_H
#define BALL_VIEW_DIALOGS_DOCKRESULTDIALOG_H
#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif
#ifndef BALL_WIDGETS_DOCKINGCONTROLLER_H
# include <BALL/VIEW/WIDGETS/dockingController.h>
#endif
#include <BALL/VIEW/UIC/ui_dockResultDialog.h>
namespace BALL
{
class DockResult;
namespace VIEW
{
class BALL_VIEW_EXPORT DockResultDialog :
public QDialog,
public Ui_DockResultDialogData
{
Q_OBJECT
public:
DockResultDialog(QWidget* parent = 0, const char* name = "DockResultDialog");
virtual ~DockResultDialog();
const DockResultDialog& operator =(const DockResultDialog& res_dialog);
void setDockResult(DockResult* dock_res);
void setDockedSystem(System* system);
void addScoringFunction(const QString& name, DockingController::ScoringFunction score_func, QDialog* dialog=0);
public Q_SLOTS:
void show();
void showSnapshot();
void sortTable(int column);
void showDockingOptions();
void upwardClicked();
void downwardClicked();
void scoringFuncChosen();
void advancedClicked();
void scoringClicked();
void closeClicked();
protected Q_SLOTS:
void selectionChanged_();
void deleteColumn_();
void showScoringOptions_();
void redock_();
protected:
class Compare_
{
public:
Compare_();
Compare_(Position index);
~Compare_();
bool operator() (const vector<float>& a, const vector<float>& b) const;
Position index_;
};
private:
DockResultDialog(const DockResultDialog& dock_res_dialog);
DockResult* dock_res_;
System* docked_system_;
System* redock_partner1_, * redock_partner2_;
HashMap<int, QDialog*> scoring_dialogs_;
};
} } // Namespaces
#endif
global.h
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::DockResult
Definition dockResult.h:30
BALL::HashMap
HashMap class based on the STL map (containing serveral convenience functions).
Definition hashMap.h:74
BALL::System
Definition KERNEL/system.h:40
BALL::VIEW::DockResultDialog::Compare_::index_
Position index_
Definition dockResultDialog.h:191
BALL::VIEW::DockResultDialog::Compare_::Compare_
Compare_()
BALL::VIEW::DockResultDialog::Compare_::Compare_
Compare_(Position index)
BALL::VIEW::DockResultDialog::Compare_::~Compare_
~Compare_()
BALL::VIEW::DockResultDialog::upwardClicked
void upwardClicked()
BALL::VIEW::DockResultDialog::redock_
void redock_()
BALL::VIEW::DockResultDialog::addScoringFunction
void addScoringFunction(const QString &name, DockingController::ScoringFunction score_func, QDialog *dialog=0)
BALL::VIEW::DockResultDialog::setDockedSystem
void setDockedSystem(System *system)
BALL::VIEW::DockResultDialog::downwardClicked
void downwardClicked()
BALL::VIEW::DockResultDialog::closeClicked
void closeClicked()
BALL::VIEW::DockResultDialog::showDockingOptions
void showDockingOptions()
BALL::VIEW::DockResultDialog::showSnapshot
void showSnapshot()
BALL::VIEW::DockResultDialog::advancedClicked
void advancedClicked()
BALL::VIEW::DockResultDialog::showScoringOptions_
void showScoringOptions_()
BALL::VIEW::DockResultDialog::DockResultDialog
DockResultDialog(QWidget *parent=0, const char *name="DockResultDialog")
BALL::VIEW::DockResultDialog::show
void show()
BALL::VIEW::DockResultDialog::scoringClicked
void scoringClicked()
BALL::VIEW::DockResultDialog::deleteColumn_
void deleteColumn_()
BALL::VIEW::DockResultDialog::sortTable
void sortTable(int column)
BALL::VIEW::DockResultDialog::~DockResultDialog
virtual ~DockResultDialog()
BALL::VIEW::DockResultDialog::setDockResult
void setDockResult(DockResult *dock_res)
BALL::VIEW::DockResultDialog::scoringFuncChosen
void scoringFuncChosen()
BALL::VIEW::DockResultDialog::selectionChanged_
void selectionChanged_()
BALL::VIEW::DockingController::ScoringFunction
ScoringFunction
Definition dockingController.h:70
QDialog
QWidget
dockingController.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Position
BALL_SIZE_TYPE Position
Definition COMMON/global.h:140