BALL 1.5.0
Loading...
Searching...
No Matches
amberConfigurationDialog.h
Go to the documentation of this file.
1// -*- Mode: C++; tab-width: 2; -*-
2// vi: set ts=2:
3//
4
5#ifndef BALL_VIEW_DIALOGS_AMBERCONFIGURATIONDIALOG_H
6#define BALL_VIEW_DIALOGS_AMBERCONFIGURATIONDIALOG_H
7
8#ifndef BALL_COMMON_GLOBAL_H
9# include <BALL/COMMON/global.h>
10#endif
11
12#ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
14#endif
15
16#include <BALL/VIEW/UIC/ui_amberConfigurationDialog.h>
17
18namespace BALL
19{
20 class AmberFF;
21
22 namespace VIEW
23 {
24 class MolecularStructure;
25
30 : public QDialog,
31 public Ui_AmberConfigurationDialogData,
32 public PreferencesEntry
33 {
34 friend class MolecularStructure;
35
36 Q_OBJECT
37
38 public:
39
41 AmberConfigurationDialog(QWidget* parent = NULL, const char* name = "AmberConfiguration");
42
45
46 public Q_SLOTS:
47
49 void accept();
50
52 void reject();
53
55 virtual void resetOptions();
56
58 void applyTo(AmberFF& amber);
59
60 //_
62
63 protected Q_SLOTS:
64
65 virtual void browseParameterFiles();
66
67 protected:
68
69 void setAmberFF(AmberFF& amber);
70
72
73 private:
74
75 String getValue_(const QCheckBox* box) const;
76
78 float getValue_(const QLineEdit* edit) const;
79
80 AmberFF* amber_;
81 };
82 }
83}
84#endif
virtual ~AmberConfigurationDialog()
Destructor.
void applyTo(AmberFF &amber)
apply the settings to a given AMBER force field
AmberConfigurationDialog(QWidget *parent=NULL, const char *name="AmberConfiguration")
Constructor.
#define BALL_VIEW_EXPORT