BALL
1.4.1
|
00001 // -*- Mode: C++; tab-width: 2; -*- 00002 // vi: set ts=2: 00003 // 00004 00005 #ifndef BALL_VIEW_DIALOGS_AMBERCONFIGURATIONDIALOG_H 00006 #define BALL_VIEW_DIALOGS_AMBERCONFIGURATIONDIALOG_H 00007 00008 #ifndef BALL_COMMON_GLOBAL_H 00009 # include <BALL/COMMON/global.h> 00010 #endif 00011 00012 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY 00013 # include <BALL/VIEW/KERNEL/preferencesEntry.h> 00014 #endif 00015 00016 #include <BALL/VIEW/UIC/ui_amberConfigurationDialog.h> 00017 00018 namespace BALL 00019 { 00020 class AmberFF; 00021 00022 namespace VIEW 00023 { 00024 class MolecularStructure; 00025 00029 class BALL_VIEW_EXPORT AmberConfigurationDialog 00030 : public QDialog, 00031 public Ui_AmberConfigurationDialogData, 00032 public PreferencesEntry 00033 { 00034 friend class MolecularStructure; 00035 00036 Q_OBJECT 00037 00038 public: 00039 00041 AmberConfigurationDialog(QWidget* parent = NULL, const char* name = "AmberConfiguration"); 00042 00044 virtual ~AmberConfigurationDialog(); 00045 00046 public slots: 00047 00049 void accept(); 00050 00052 void reject(); 00053 00055 virtual void resetOptions(); 00056 00058 void applyTo(AmberFF& amber); 00059 00060 //_ 00061 void periodicBoundaryClicked(); 00062 00063 protected slots: 00064 00065 virtual void browseParameterFiles(); 00066 00067 protected: 00068 00069 void setAmberFF(AmberFF& amber); 00070 00071 void chooseSolventFile(); 00072 00073 private: 00074 00075 String getValue_(const QCheckBox* box) const; 00076 00077 float getValue_(const QLineEdit* edit) const 00078 throw(Exception::InvalidFormat); 00079 00080 AmberFF* amber_; 00081 }; 00082 } 00083 } 00084 #endif