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_MODULARWIDGET_H
00018 # include <BALL/VIEW/KERNEL/modularWidget.h>
00019 #endif
00020
00021 #include <BALL/VIEW/UIC/ui_assignBondOrderConfigurationDialog.h>
00022
00023 namespace BALL
00024 {
00025 class MMFF94;
00026
00027 namespace VIEW
00028 {
00029 class MolecularStructure;
00030 class MainControl;
00031
00035 class BALL_VIEW_EXPORT AssignBondOrderConfigurationDialog
00036 : public QDialog,
00037 public Ui_AssignBondOrderConfigurationDialogData,
00038 public ModularWidget,
00039 public PreferencesEntry
00040 {
00041 friend class MolecularStructure;
00042
00043 Q_OBJECT
00044
00045 public:
00046
00047 BALL_EMBEDDABLE(AssignBondOrderConfigurationDialog,ModularWidget)
00048
00049
00050 AssignBondOrderConfigurationDialog(QWidget* parent = NULL, const char* name = "AssignBondOrderConfigurationDialog");
00051
00053 virtual ~AssignBondOrderConfigurationDialog();
00054
00056 virtual void initializeWidget(MainControl& main_control);
00057
00058 public slots:
00059
00061 virtual void resetOptions();
00062
00064 void accept();
00065
00067 void reject();
00068
00069 protected slots:
00070
00071 virtual void browseParameterFiles_();
00072 virtual void balanceParameterChanged_();
00073
00074 virtual void validateBOBoxes_();
00075
00076 virtual void dialogButtonClicked_(QAbstractButton* button);
00077
00078 protected:
00079
00080 private:
00081
00082 String getValue_(const QCheckBox* box) const;
00083
00084 float getValue_(const QLineEdit* edit) const
00085 throw(Exception::InvalidFormat);
00086 };
00087 }
00088 }
00089 #endif