00001
00002
00003
00004
00005
00006 #ifndef BALL_VIEW_DIALOGS_ASSIGNBONDORDERCONFIGURATIONDIALOG_H
00007 #define BALL_VIEW_DIALOGS_ASSIGNBONDORDERCONFIGURATIONDIALOG_H
00008
00009 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
00010 # include <BALL/VIEW/KERNEL/preferencesEntry.h>
00011 #endif
00012
00013 #ifndef BALL_STRUCTURE_ASSIGNBONDORDERPROCESSOR_H
00014 # include <BALL/STRUCTURE/assignBondOrderProcessor.h>
00015 #endif
00016
00017 #ifndef BALL_VIEW_KERNEL_MAINCONTROL_H
00018 # include <BALL/VIEW/KERNEL/mainControl.h>
00019 #endif
00020
00021 #ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
00022 # include <BALL/VIEW/KERNEL/modularWidget.h>
00023 #endif
00024
00025 #ifdef BALL_COMPILER_MSVC
00026 # include <BALL/VIEW/UIC/ui_assignBondOrderConfigurationDialog.h>
00027 #else
00028 # include <BALL/VIEW/UIC/assignBondOrderConfigurationDialogData.h>
00029 #endif
00030
00031
00032 namespace BALL
00033 {
00034 class MMFF94;
00035
00036 namespace VIEW
00037 {
00038 class MolecularStructure;
00039
00043 class BALL_VIEW_EXPORT AssignBondOrderConfigurationDialog
00044 : public QDialog,
00045 public Ui_AssignBondOrderConfigurationDialogData,
00046 public ModularWidget,
00047 public PreferencesEntry
00048 {
00049 friend class MolecularStructure;
00050
00051 Q_OBJECT
00052
00053 public:
00054
00055 BALL_EMBEDDABLE(AssignBondOrderConfigurationDialog,ModularWidget)
00056
00057
00058 AssignBondOrderConfigurationDialog(QWidget* parent = NULL, const char* name = "AssignBondOrderConfigurationDialog");
00059
00061 virtual ~AssignBondOrderConfigurationDialog();
00062
00064 virtual void initializeWidget(MainControl& main_control);
00065
00066 public slots:
00067
00069 virtual void resetOptions();
00070
00072 void accept();
00073
00075 void reject();
00076
00077 protected slots:
00078
00079 virtual void browseParameterFiles_();
00080 virtual void balanceParameterChanged_();
00081
00082 virtual void validateBOBoxes_();
00083
00084 protected:
00085
00086 private:
00087
00088 String getValue_(const QCheckBox* box) const;
00089
00090 float getValue_(const QLineEdit* edit) const
00091 throw(Exception::InvalidFormat);
00092 };
00093 }
00094 }
00095 #endif