00001
00002
00003
00004
00005 #ifndef BALL_VIEW_DIALOGS_MINIMIZATIONDIALOG_H
00006 #define BALL_VIEW_DIALOGS_MINIMIZATIONDIALOG_H
00007
00008 #ifndef BALL_COMMON_GLOBAL_H
00009 # include <BALL/COMMON/global.h>
00010 #endif
00011
00012 #ifdef BALL_COMPILER_MSVC
00013 # include <BALL/VIEW/UIC/ui_minimizationDialog.h>
00014 #else
00015 # include <BALL/VIEW/UIC/minimizationDialogData.h>
00016 #endif
00017
00018
00019 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
00020 # include <BALL/VIEW/KERNEL/preferencesEntry.h>
00021 #endif
00022
00023 namespace BALL
00024 {
00025 namespace VIEW
00026 {
00027 class AmberConfigurationDialog;
00028 class CharmmConfigurationDialog;
00029 class MMFF94ConfigurationDialog;
00030
00034 class BALL_VIEW_EXPORT MinimizationDialog
00035 : public QDialog,
00036 public Ui_MinimizationDialogData,
00037 public PreferencesEntry
00038 {
00039 Q_OBJECT
00040
00041 public:
00042
00044 MinimizationDialog(QWidget* parent = NULL, const char* name = "MinimizationDialog");
00045
00047 virtual ~MinimizationDialog();
00048
00050 Size getMaxIterations() const;
00051
00053 void setMaxIterations(Size n);
00054
00056 Size getRefresh() const;
00057
00059 void setRefresh(Size n);
00060
00062 double getMaxGradient() const;
00063
00065 void setMaxGradient(double max_gradient);
00066
00068 double getEnergyDifference() const;
00069
00071 void setEnergyDifference(double energy_difference);
00072
00074 bool getUseStrangLBFGS() const;
00075
00077 void setUseStrangLBFGS(bool use_LBFGS);
00078
00080 bool getUseShiftedLVMM() const;
00081
00083 void setUseShiftedLVMM(bool use_shifted);
00084
00086 bool getUseConjugateGradient() const;
00087
00089 void setUseConjugateGradient(bool use_CG);
00090
00094 void setAmberDialog(AmberConfigurationDialog* amber_dialog);
00095
00099 void setCharmmDialog(CharmmConfigurationDialog* charmm_dialog);
00100
00102 void setMMFF94Dialog(MMFF94ConfigurationDialog* dialog);
00103
00105 void selectForceField(Position nr);
00106
00108 Position selectedForceField() const;
00109
00110 public slots:
00111
00113 virtual void accept();
00114
00116 void advancedOptions();
00117
00118 private:
00119 AmberConfigurationDialog* amber_dialog_;
00120 CharmmConfigurationDialog* charmm_dialog_;
00121 MMFF94ConfigurationDialog* mmff_dialog_;
00122 };
00123
00124 }
00125 }
00126
00127 #endif