BALL 1.5.0
Loading...
Searching...
No Matches
dockResultDialog.h
Go to the documentation of this file.
1//
2// -*- Mode: C++; tab-width: 2; -*-
3// vi: set ts=2:
4//
5
6#ifndef BALL_VIEW_DIALOGS_DOCKRESULTDIALOG_H
7#define BALL_VIEW_DIALOGS_DOCKRESULTDIALOG_H
8
9#ifndef BALL_COMMON_GLOBAL_H
10# include <BALL/COMMON/global.h>
11#endif
12
13#ifndef BALL_WIDGETS_DOCKINGCONTROLLER_H
15#endif
16
17#include <BALL/VIEW/UIC/ui_dockResultDialog.h>
18
19namespace BALL
20{
21 class DockResult;
22
23 namespace VIEW
24 {
29 public QDialog,
30 public Ui_DockResultDialogData
31 {
32 Q_OBJECT
33
34 public:
35
39
46 DockResultDialog(QWidget* parent = 0, const char* name = "DockResultDialog");
47
52
56
59 const DockResultDialog& operator =(const DockResultDialog& res_dialog);
61
65
69 void setDockResult(DockResult* dock_res);
70
74 void setDockedSystem(System* system);
75
81 void addScoringFunction(const QString& name, DockingController::ScoringFunction score_func, QDialog* dialog=0);
83
84 public Q_SLOTS:
85
89 void show();
90
95
100 void sortTable(int column);
101
106
111
116
122
127
133
138
139
140 protected Q_SLOTS:
141
143
148
154
159 void redock_();
160
161
162 protected:
163
170 {
171 public:
172
176
180
184
187 bool operator() (const vector<float>& a, const vector<float>& b) const;
188
192 };
193
194 private:
195
200 DockResultDialog(const DockResultDialog& dock_res_dialog);
201
205 DockResult* dock_res_;
206
209 System* docked_system_;
210
213 System* redock_partner1_, * redock_partner2_;
214
217 HashMap<int, QDialog*> scoring_dialogs_;
218 };
219
220} } // Namespaces
221#endif
HashMap class based on the STL map (containing serveral convenience functions)
Definition hashMap.h:74
void addScoringFunction(const QString &name, DockingController::ScoringFunction score_func, QDialog *dialog=0)
void setDockedSystem(System *system)
DockResultDialog(QWidget *parent=0, const char *name="DockResultDialog")
void sortTable(int column)
void setDockResult(DockResult *dock_res)
#define BALL_VIEW_EXPORT