00001 #ifndef BALL_VIEW_DIALOGS_FFCONFIGURATIONDIALOG_H
00002 #define BALL_VIEW_DIALOGS_FFCONFIGURATIONDIALOG_H
00003
00004 #ifndef BALL_COMMON_GLOBAL_H
00005 # include <BALL/COMMON/global.h>
00006 #endif
00007
00008 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
00009 # include <BALL/VIEW/KERNEL/preferencesEntry.h>
00010 #endif
00011
00012 #include <BALL/VIEW/UIC/ui_ffConfigurationDialog.h>
00013
00014 namespace BALL
00015 {
00016 class ForceField;
00017
00018 namespace VIEW
00019 {
00024 class BALL_VIEW_EXPORT FFConfigurationDialog
00025 : public QDialog,
00026 public PreferencesEntry
00027 {
00028 Q_OBJECT
00029
00030 public:
00032 FFConfigurationDialog(QWidget* parent, const char* name);
00033
00035 virtual ~FFConfigurationDialog();
00036
00038 const String& getFilename() const;
00039
00040 public slots:
00041
00042 virtual void resetOptions();
00043
00045 void accept();
00046
00048 void reject();
00049
00051 void applyTo(ForceField& ff);
00052
00054 void chooseSolventFile();
00055
00056
00057 void periodicBoundaryClicked();
00058
00059 protected slots:
00060 virtual void browseParameterFiles();
00061
00062 protected:
00063 void setCharmmFF(CharmmFF& charmm);
00064 Ui::FFConfigurationDialog ui;
00065
00066 private:
00067 String getValue_(const QCheckBox* box) const;
00068 float getValue_(const QLineEdit* edit) const;
00069
00070 ForceField* ff_;
00071 };
00072 }
00073 }
00074
00075 #endif //BALL_VIEW_DIALOGS_FFCONFIGURATIONDIALOG_H