00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef GEOMETRICFITDIALOGDATA_H
00011 #define GEOMETRICFITDIALOGDATA_H
00012
00013 #include <QtCore/QVariant>
00014 #include <QtGui/QAction>
00015 #include <QtGui/QApplication>
00016 #include <QtGui/QButtonGroup>
00017 #include <QtGui/QComboBox>
00018 #include <QtGui/QDialog>
00019 #include <QtGui/QGridLayout>
00020 #include <QtGui/QGroupBox>
00021 #include <QtGui/QLabel>
00022 #include <QtGui/QLineEdit>
00023 #include <QtGui/QPushButton>
00024
00025 class Ui_GeometricFitDialogData
00026 {
00027 public:
00028 QGridLayout *gridLayout;
00029 QGroupBox *buttonGroup15;
00030 QGridLayout *gridLayout1;
00031 QLabel *near_radius_label;
00032 QLabel *inside_value_1_label_2;
00033 QLineEdit *surface_thickness;
00034 QLabel *sur_thick_label;
00035 QLabel *deg_interval_label;
00036 QLabel *peak_num_label;
00037 QComboBox *surface_type;
00038 QLabel *surface_type_label;
00039 QLabel *inside_value_1_label;
00040 QLineEdit *penalty_static;
00041 QLineEdit *penalty_mobile;
00042 QLineEdit *grid_spacing;
00043 QLineEdit *near_radius;
00044 QLineEdit *deg_interval;
00045 QLineEdit *peak_num;
00046 QLabel *grid_spacing_label;
00047 QPushButton *reset_button;
00048 QPushButton *ok_button;
00049 QPushButton *cancel_button;
00050
00051 void setupUi(QDialog *GeometricFitDialogData)
00052 {
00053 GeometricFitDialogData->setObjectName(QString::fromUtf8("GeometricFitDialogData"));
00054 QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00055 sizePolicy.setHorizontalStretch(0);
00056 sizePolicy.setVerticalStretch(0);
00057 sizePolicy.setHeightForWidth(GeometricFitDialogData->sizePolicy().hasHeightForWidth());
00058 GeometricFitDialogData->setSizePolicy(sizePolicy);
00059 GeometricFitDialogData->setMaximumSize(QSize(450, 350));
00060 gridLayout = new QGridLayout(GeometricFitDialogData);
00061 gridLayout->setSpacing(6);
00062 gridLayout->setMargin(9);
00063 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00064 buttonGroup15 = new QGroupBox(GeometricFitDialogData);
00065 buttonGroup15->setObjectName(QString::fromUtf8("buttonGroup15"));
00066 gridLayout1 = new QGridLayout(buttonGroup15);
00067 gridLayout1->setSpacing(6);
00068 gridLayout1->setMargin(11);
00069 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00070 near_radius_label = new QLabel(buttonGroup15);
00071 near_radius_label->setObjectName(QString::fromUtf8("near_radius_label"));
00072 QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00073 sizePolicy1.setHorizontalStretch(0);
00074 sizePolicy1.setVerticalStretch(0);
00075 sizePolicy1.setHeightForWidth(near_radius_label->sizePolicy().hasHeightForWidth());
00076 near_radius_label->setSizePolicy(sizePolicy1);
00077
00078 gridLayout1->addWidget(near_radius_label, 4, 0, 1, 1);
00079
00080 inside_value_1_label_2 = new QLabel(buttonGroup15);
00081 inside_value_1_label_2->setObjectName(QString::fromUtf8("inside_value_1_label_2"));
00082 QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00083 sizePolicy2.setHorizontalStretch(0);
00084 sizePolicy2.setVerticalStretch(0);
00085 sizePolicy2.setHeightForWidth(inside_value_1_label_2->sizePolicy().hasHeightForWidth());
00086 inside_value_1_label_2->setSizePolicy(sizePolicy2);
00087
00088 gridLayout1->addWidget(inside_value_1_label_2, 3, 0, 1, 1);
00089
00090 surface_thickness = new QLineEdit(buttonGroup15);
00091 surface_thickness->setObjectName(QString::fromUtf8("surface_thickness"));
00092 surface_thickness->setMinimumSize(QSize(135, 23));
00093 surface_thickness->setMaximumSize(QSize(130, 23));
00094 surface_thickness->setAlignment(Qt::AlignRight);
00095
00096 gridLayout1->addWidget(surface_thickness, 0, 1, 1, 1);
00097
00098 sur_thick_label = new QLabel(buttonGroup15);
00099 sur_thick_label->setObjectName(QString::fromUtf8("sur_thick_label"));
00100 QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00101 sizePolicy3.setHorizontalStretch(0);
00102 sizePolicy3.setVerticalStretch(0);
00103 sizePolicy3.setHeightForWidth(sur_thick_label->sizePolicy().hasHeightForWidth());
00104 sur_thick_label->setSizePolicy(sizePolicy3);
00105
00106 gridLayout1->addWidget(sur_thick_label, 0, 0, 1, 1);
00107
00108 deg_interval_label = new QLabel(buttonGroup15);
00109 deg_interval_label->setObjectName(QString::fromUtf8("deg_interval_label"));
00110 QSizePolicy sizePolicy4(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00111 sizePolicy4.setHorizontalStretch(0);
00112 sizePolicy4.setVerticalStretch(0);
00113 sizePolicy4.setHeightForWidth(deg_interval_label->sizePolicy().hasHeightForWidth());
00114 deg_interval_label->setSizePolicy(sizePolicy4);
00115
00116 gridLayout1->addWidget(deg_interval_label, 5, 0, 1, 1);
00117
00118 peak_num_label = new QLabel(buttonGroup15);
00119 peak_num_label->setObjectName(QString::fromUtf8("peak_num_label"));
00120 QSizePolicy sizePolicy5(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00121 sizePolicy5.setHorizontalStretch(0);
00122 sizePolicy5.setVerticalStretch(0);
00123 sizePolicy5.setHeightForWidth(peak_num_label->sizePolicy().hasHeightForWidth());
00124 peak_num_label->setSizePolicy(sizePolicy5);
00125
00126 gridLayout1->addWidget(peak_num_label, 6, 0, 1, 1);
00127
00128 surface_type = new QComboBox(buttonGroup15);
00129 surface_type->setObjectName(QString::fromUtf8("surface_type"));
00130 QSizePolicy sizePolicy6(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
00131 sizePolicy6.setHorizontalStretch(0);
00132 sizePolicy6.setVerticalStretch(0);
00133 sizePolicy6.setHeightForWidth(surface_type->sizePolicy().hasHeightForWidth());
00134 surface_type->setSizePolicy(sizePolicy6);
00135 surface_type->setMinimumSize(QSize(135, 23));
00136 surface_type->setMaximumSize(QSize(130, 23));
00137 surface_type->setAcceptDrops(false);
00138 surface_type->setInsertPolicy(QComboBox::InsertAtTop);
00139
00140 gridLayout1->addWidget(surface_type, 7, 1, 1, 1);
00141
00142 surface_type_label = new QLabel(buttonGroup15);
00143 surface_type_label->setObjectName(QString::fromUtf8("surface_type_label"));
00144 QSizePolicy sizePolicy7(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00145 sizePolicy7.setHorizontalStretch(0);
00146 sizePolicy7.setVerticalStretch(0);
00147 sizePolicy7.setHeightForWidth(surface_type_label->sizePolicy().hasHeightForWidth());
00148 surface_type_label->setSizePolicy(sizePolicy7);
00149 surface_type_label->setMaximumSize(QSize(200, 32767));
00150
00151 gridLayout1->addWidget(surface_type_label, 7, 0, 1, 1);
00152
00153 inside_value_1_label = new QLabel(buttonGroup15);
00154 inside_value_1_label->setObjectName(QString::fromUtf8("inside_value_1_label"));
00155 QSizePolicy sizePolicy8(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00156 sizePolicy8.setHorizontalStretch(0);
00157 sizePolicy8.setVerticalStretch(0);
00158 sizePolicy8.setHeightForWidth(inside_value_1_label->sizePolicy().hasHeightForWidth());
00159 inside_value_1_label->setSizePolicy(sizePolicy8);
00160
00161 gridLayout1->addWidget(inside_value_1_label, 2, 0, 1, 1);
00162
00163 penalty_static = new QLineEdit(buttonGroup15);
00164 penalty_static->setObjectName(QString::fromUtf8("penalty_static"));
00165 penalty_static->setMinimumSize(QSize(135, 23));
00166 penalty_static->setMaximumSize(QSize(130, 23));
00167 penalty_static->setAlignment(Qt::AlignRight);
00168
00169 gridLayout1->addWidget(penalty_static, 2, 1, 1, 1);
00170
00171 penalty_mobile = new QLineEdit(buttonGroup15);
00172 penalty_mobile->setObjectName(QString::fromUtf8("penalty_mobile"));
00173 penalty_mobile->setMinimumSize(QSize(135, 23));
00174 penalty_mobile->setMaximumSize(QSize(80, 23));
00175 penalty_mobile->setAlignment(Qt::AlignRight);
00176
00177 gridLayout1->addWidget(penalty_mobile, 3, 1, 1, 1);
00178
00179 grid_spacing = new QLineEdit(buttonGroup15);
00180 grid_spacing->setObjectName(QString::fromUtf8("grid_spacing"));
00181 grid_spacing->setMinimumSize(QSize(135, 23));
00182 grid_spacing->setMaximumSize(QSize(130, 23));
00183 grid_spacing->setAlignment(Qt::AlignRight);
00184
00185 gridLayout1->addWidget(grid_spacing, 1, 1, 1, 1);
00186
00187 near_radius = new QLineEdit(buttonGroup15);
00188 near_radius->setObjectName(QString::fromUtf8("near_radius"));
00189 near_radius->setMinimumSize(QSize(135, 23));
00190 near_radius->setMaximumSize(QSize(80, 23));
00191 near_radius->setAlignment(Qt::AlignRight);
00192
00193 gridLayout1->addWidget(near_radius, 4, 1, 1, 1);
00194
00195 deg_interval = new QLineEdit(buttonGroup15);
00196 deg_interval->setObjectName(QString::fromUtf8("deg_interval"));
00197 deg_interval->setMinimumSize(QSize(135, 23));
00198 deg_interval->setMaximumSize(QSize(80, 23));
00199 deg_interval->setAlignment(Qt::AlignRight);
00200
00201 gridLayout1->addWidget(deg_interval, 5, 1, 1, 1);
00202
00203 peak_num = new QLineEdit(buttonGroup15);
00204 peak_num->setObjectName(QString::fromUtf8("peak_num"));
00205 peak_num->setMinimumSize(QSize(135, 23));
00206 peak_num->setMaximumSize(QSize(80, 23));
00207 peak_num->setAlignment(Qt::AlignRight);
00208
00209 gridLayout1->addWidget(peak_num, 6, 1, 1, 1);
00210
00211 grid_spacing_label = new QLabel(buttonGroup15);
00212 grid_spacing_label->setObjectName(QString::fromUtf8("grid_spacing_label"));
00213 QSizePolicy sizePolicy9(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00214 sizePolicy9.setHorizontalStretch(0);
00215 sizePolicy9.setVerticalStretch(0);
00216 sizePolicy9.setHeightForWidth(grid_spacing_label->sizePolicy().hasHeightForWidth());
00217 grid_spacing_label->setSizePolicy(sizePolicy9);
00218
00219 gridLayout1->addWidget(grid_spacing_label, 1, 0, 1, 1);
00220
00221
00222 gridLayout->addWidget(buttonGroup15, 0, 0, 1, 3);
00223
00224 reset_button = new QPushButton(GeometricFitDialogData);
00225 reset_button->setObjectName(QString::fromUtf8("reset_button"));
00226 QSizePolicy sizePolicy10(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
00227 sizePolicy10.setHorizontalStretch(0);
00228 sizePolicy10.setVerticalStretch(0);
00229 sizePolicy10.setHeightForWidth(reset_button->sizePolicy().hasHeightForWidth());
00230 reset_button->setSizePolicy(sizePolicy10);
00231 reset_button->setMinimumSize(QSize(90, 0));
00232
00233 gridLayout->addWidget(reset_button, 1, 2, 1, 1);
00234
00235 ok_button = new QPushButton(GeometricFitDialogData);
00236 ok_button->setObjectName(QString::fromUtf8("ok_button"));
00237 QSizePolicy sizePolicy11(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
00238 sizePolicy11.setHorizontalStretch(0);
00239 sizePolicy11.setVerticalStretch(0);
00240 sizePolicy11.setHeightForWidth(ok_button->sizePolicy().hasHeightForWidth());
00241 ok_button->setSizePolicy(sizePolicy11);
00242 ok_button->setMinimumSize(QSize(90, 0));
00243 ok_button->setDefault(true);
00244
00245 gridLayout->addWidget(ok_button, 1, 0, 1, 1);
00246
00247 cancel_button = new QPushButton(GeometricFitDialogData);
00248 cancel_button->setObjectName(QString::fromUtf8("cancel_button"));
00249 QSizePolicy sizePolicy12(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(0));
00250 sizePolicy12.setHorizontalStretch(0);
00251 sizePolicy12.setVerticalStretch(0);
00252 sizePolicy12.setHeightForWidth(cancel_button->sizePolicy().hasHeightForWidth());
00253 cancel_button->setSizePolicy(sizePolicy12);
00254 cancel_button->setMinimumSize(QSize(90, 0));
00255
00256 gridLayout->addWidget(cancel_button, 1, 1, 1, 1);
00257
00258 QWidget::setTabOrder(surface_thickness, grid_spacing);
00259 QWidget::setTabOrder(grid_spacing, penalty_static);
00260 QWidget::setTabOrder(penalty_static, penalty_mobile);
00261 QWidget::setTabOrder(penalty_mobile, near_radius);
00262 QWidget::setTabOrder(near_radius, deg_interval);
00263 QWidget::setTabOrder(deg_interval, peak_num);
00264 QWidget::setTabOrder(peak_num, surface_type);
00265 QWidget::setTabOrder(surface_type, ok_button);
00266 QWidget::setTabOrder(ok_button, cancel_button);
00267 QWidget::setTabOrder(cancel_button, reset_button);
00268
00269 retranslateUi(GeometricFitDialogData);
00270
00271 QSize size(438, 313);
00272 size = size.expandedTo(GeometricFitDialogData->minimumSizeHint());
00273 GeometricFitDialogData->resize(size);
00274
00275 QObject::connect(cancel_button, SIGNAL(clicked()), GeometricFitDialogData, SLOT(reject()));
00276 QObject::connect(ok_button, SIGNAL(clicked()), GeometricFitDialogData, SLOT(accept()));
00277
00278 surface_type->setCurrentIndex(0);
00279
00280
00281 QMetaObject::connectSlotsByName(GeometricFitDialogData);
00282 }
00283
00284 void retranslateUi(QDialog *GeometricFitDialogData)
00285 {
00286 GeometricFitDialogData->setWindowTitle(QApplication::translate("GeometricFitDialogData", "Geometric Fit Options", 0, QApplication::UnicodeUTF8));
00287 near_radius_label->setText(QApplication::translate("GeometricFitDialogData", "near radius", 0, QApplication::UnicodeUTF8));
00288 inside_value_1_label_2->setText(QApplication::translate("GeometricFitDialogData", "penalty value for mobile partner", 0, QApplication::UnicodeUTF8));
00289 surface_thickness->setText(QApplication::translate("GeometricFitDialogData", "1.0", 0, QApplication::UnicodeUTF8));
00290 sur_thick_label->setText(QApplication::translate("GeometricFitDialogData", "surface thickness", 0, QApplication::UnicodeUTF8));
00291 deg_interval_label->setText(QApplication::translate("GeometricFitDialogData", "degree interval for rotation", 0, QApplication::UnicodeUTF8));
00292 peak_num_label->setText(QApplication::translate("GeometricFitDialogData", "number of peaks for each rotation", 0, QApplication::UnicodeUTF8));
00293 surface_type->clear();
00294 surface_type->addItem(QApplication::translate("GeometricFitDialogData", "Connolly", 0, QApplication::UnicodeUTF8));
00295 surface_type->addItem(QApplication::translate("GeometricFitDialogData", "van der Waals", 0, QApplication::UnicodeUTF8));
00296 surface_type->addItem(QApplication::translate("GeometricFitDialogData", "FTDock", 0, QApplication::UnicodeUTF8));
00297 surface_type_label->setText(QApplication::translate("GeometricFitDialogData", "surface type", 0, QApplication::UnicodeUTF8));
00298 inside_value_1_label->setText(QApplication::translate("GeometricFitDialogData", "penalty value for static partner", 0, QApplication::UnicodeUTF8));
00299 penalty_static->setText(QApplication::translate("GeometricFitDialogData", "-15", 0, QApplication::UnicodeUTF8));
00300 penalty_mobile->setText(QApplication::translate("GeometricFitDialogData", "1", 0, QApplication::UnicodeUTF8));
00301 grid_spacing->setText(QApplication::translate("GeometricFitDialogData", "1.0", 0, QApplication::UnicodeUTF8));
00302 near_radius->setText(QApplication::translate("GeometricFitDialogData", "1.8", 0, QApplication::UnicodeUTF8));
00303 deg_interval->setText(QApplication::translate("GeometricFitDialogData", "20", 0, QApplication::UnicodeUTF8));
00304 peak_num->setText(QApplication::translate("GeometricFitDialogData", "3", 0, QApplication::UnicodeUTF8));
00305 grid_spacing_label->setText(QApplication::translate("GeometricFitDialogData", "grid spacing", 0, QApplication::UnicodeUTF8));
00306 reset_button->setText(QApplication::translate("GeometricFitDialogData", "Reset", 0, QApplication::UnicodeUTF8));
00307 ok_button->setText(QApplication::translate("GeometricFitDialogData", "OK", 0, QApplication::UnicodeUTF8));
00308 cancel_button->setText(QApplication::translate("GeometricFitDialogData", "Cancel", 0, QApplication::UnicodeUTF8));
00309 Q_UNUSED(GeometricFitDialogData);
00310 }
00311
00312 };
00313
00314 namespace Ui {
00315 class GeometricFitDialogData: public Ui_GeometricFitDialogData {};
00316 }
00317
00318 #endif // GEOMETRICFITDIALOGDATA_H