BALL  1.5.0
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 
18 namespace 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
BALL::VIEW::AmberConfigurationDialog::~AmberConfigurationDialog
virtual ~AmberConfigurationDialog()
Destructor.
global.h
BALL::VIEW::AmberConfigurationDialog::resetOptions
virtual void resetOptions()
BALL::VIEW::AmberConfigurationDialog::chooseSolventFile
void chooseSolventFile()
QDialog
BALL::VIEW::AmberConfigurationDialog
Definition: amberConfigurationDialog.h:33
BALL::VIEW::AmberConfigurationDialog::AmberConfigurationDialog
AmberConfigurationDialog(QWidget *parent=NULL, const char *name="AmberConfiguration")
Constructor.
BALL::VIEW::AmberConfigurationDialog::periodicBoundaryClicked
void periodicBoundaryClicked()
BALL::String
Definition: string.h:57
BALL::VIEW::PreferencesEntry
Definition: preferencesEntry.h:69
BALL
Definition: constants.h:13
QWidget
BALL::VIEW::AmberConfigurationDialog::accept
void accept()
BALL::VIEW::AmberConfigurationDialog::setAmberFF
void setAmberFF(AmberFF &amber)
BALL::VIEW::MolecularStructure
Definition: molecularStructure.h:93
BALL::VIEW::AmberConfigurationDialog::applyTo
void applyTo(AmberFF &amber)
apply the settings to a given AMBER force field
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52
BALL::VIEW::AmberConfigurationDialog::reject
void reject()
BALL::AmberFF
Definition: amber.h:33
preferencesEntry.h
BALL::VIEW::AmberConfigurationDialog::browseParameterFiles
virtual void browseParameterFiles()
QLineEdit