00001
00002
00003
00004
00005
00006
00007 #ifndef BALL_VIEW_DIALOGS_AMBERCONFIGURATIONDIALOG_H
00008 #define BALL_VIEW_DIALOGS_AMBERCONFIGURATIONDIALOG_H
00009
00010 #ifndef BALL_COMMON_GLOBAL_H
00011 # include <BALL/COMMON/global.h>
00012 #endif
00013
00014 #ifdef BALL_COMPILER_MSVC
00015 # include <BALL/VIEW/UIC/ui_amberConfigurationDialog.h>
00016 #else
00017 # include <BALL/VIEW/UIC/amberConfigurationDialogData.h>
00018 #endif
00019
00020
00021 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
00022 # include <BALL/VIEW/KERNEL/preferencesEntry.h>
00023 #endif
00024
00025 namespace BALL
00026 {
00027 class AmberFF;
00028
00029 namespace VIEW
00030 {
00031 class MolecularStructure;
00032
00036 class BALL_VIEW_EXPORT AmberConfigurationDialog
00037 : public QDialog,
00038 public Ui_AmberConfigurationDialogData,
00039 public PreferencesEntry
00040 {
00041 friend class MolecularStructure;
00042
00043 Q_OBJECT
00044
00045 public:
00046
00048 AmberConfigurationDialog(QWidget* parent = NULL, const char* name = "AmberConfiguration");
00049
00051 virtual ~AmberConfigurationDialog();
00052
00053 public slots:
00054
00056 void accept();
00057
00059 void reject();
00060
00062 virtual void resetOptions();
00063
00065 void applyTo(AmberFF& amber);
00066
00067
00068 void periodicBoundaryClicked();
00069
00070 protected slots:
00071
00072 virtual void browseParameterFiles();
00073
00074 protected:
00075
00076 void setAmberFF(AmberFF& amber);
00077
00078 void chooseSolventFile();
00079
00080 private:
00081
00082 String getValue_(const QCheckBox* box) const;
00083
00084 float getValue_(const QLineEdit* edit) const
00085 throw(Exception::InvalidFormat);
00086
00087 AmberFF* amber_;
00088 };
00089 }
00090 }
00091 #endif