00001
00002
00003
00004
00005
00006
00007 #ifndef BALL_VIEW_DIALOGS_CHARMMCONFIGURATIONDIALOG_H
00008 #define BALL_VIEW_DIALOGS_CHARMMCONFIGURATIONDIALOG_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_charmmConfigurationDialog.h>
00016 #else
00017 # include <BALL/VIEW/UIC/charmmConfigurationDialogData.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 CharmmFF;
00028
00029 namespace VIEW
00030 {
00031 class MolecularStructure;
00032
00036 class BALL_VIEW_EXPORT CharmmConfigurationDialog
00037 : public QDialog,
00038 public Ui_CharmmConfigurationDialogData,
00039 public PreferencesEntry
00040 {
00041 friend class MolecularStructure;
00042
00043 Q_OBJECT
00044
00045 public:
00046
00048 CharmmConfigurationDialog(QWidget* parent = NULL, const char* name = "CharmmConfiguration");
00049
00051 virtual ~CharmmConfigurationDialog();
00052
00054 const String& getFilename() const;
00055
00056 public slots:
00057
00058 virtual void resetOptions();
00059
00061 void accept();
00062
00064 void reject();
00065
00067 void applyTo(CharmmFF& charmm);
00068
00070 void chooseSolventFile();
00071
00072
00073 void periodicBoundaryClicked();
00074
00075 protected slots:
00076
00077 virtual void browseParameterFiles();
00078
00079 protected:
00080
00081 void setCharmmFF(CharmmFF& charmm);
00082
00083 private:
00084
00085 String getValue_(const QCheckBox* box) const;
00086
00087 float getValue_(const QLineEdit* edit) const
00088 throw(Exception::InvalidFormat);
00089
00090 CharmmFF* charmm_;
00091 };
00092 }
00093 }
00094 #endif