00001
00002
00003
00004
00005
00006
00007 #ifndef BALL_VIEW_DIALOGS_MMFF94CONFIGURATIONDIALOG_H
00008 #define BALL_VIEW_DIALOGS_MMFF94CONFIGURATIONDIALOG_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_MMFF94ConfigurationDialog.h>
00016 #else
00017 # include <BALL/VIEW/UIC/MMFF94ConfigurationDialogData.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 MMFF94;
00028
00029 namespace VIEW
00030 {
00031 class MolecularStructure;
00032
00036 class BALL_VIEW_EXPORT MMFF94ConfigurationDialog
00037 : public QDialog,
00038 public Ui_MMFF94ConfigurationDialogData,
00039 public PreferencesEntry
00040 {
00041 friend class MolecularStructure;
00042
00043 Q_OBJECT
00044
00045 public:
00046
00048 MMFF94ConfigurationDialog(QWidget* parent = NULL, const char* name = "MMFF94ConfigurationDialog");
00049
00051 virtual ~MMFF94ConfigurationDialog();
00052
00053 public slots:
00054
00056 virtual void resetOptions();
00057
00059 void accept();
00060
00062 void reject();
00063
00065 void applyTo(MMFF94& mmff);
00066
00067 protected slots:
00068
00069 virtual void browseParameterFiles();
00070
00071 protected:
00072
00073 void setMMFF94(MMFF94& mmff);
00074
00075 void chooseSolventFile();
00076
00077 private:
00078 String getValue_(const QCheckBox* box) const;
00079 float getValue_(const QLineEdit* edit) const
00080 throw(Exception::InvalidFormat);
00081
00082 MMFF94* mmff_;
00083 };
00084 }
00085 }
00086 #endif