00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef COMPOSITEPROPERTIESDATA_H
00011 #define COMPOSITEPROPERTIESDATA_H
00012
00013 #include <BALL/COMMON/global.h>
00014 #include <QtCore/QVariant>
00015 #include <QtGui/QAction>
00016 #include <QtGui/QApplication>
00017 #include <QtGui/QButtonGroup>
00018 #include <QtGui/QComboBox>
00019 #include <QtGui/QDialog>
00020 #include <QtGui/QGridLayout>
00021 #include <QtGui/QGroupBox>
00022 #include <QtGui/QHBoxLayout>
00023 #include <QtGui/QLabel>
00024 #include <QtGui/QLineEdit>
00025 #include <QtGui/QPushButton>
00026 #include <QtGui/QSpacerItem>
00027
00028 class Ui_CompositePropertiesData
00029 {
00030 public:
00031 QGridLayout *gridLayout;
00032 QHBoxLayout *hboxLayout;
00033 QPushButton *ok_button;
00034 QPushButton *cancel_button;
00035 QGroupBox *atoms_box;
00036 QGridLayout *gridLayout1;
00037 QLabel *TextLabel7;
00038 QLineEdit *formal_charge_edit;
00039 QLabel *TextLabel4_2;
00040 QLineEdit *charge_edit;
00041 QLabel *TextLabel4;
00042 QLineEdit *force_edit;
00043 QLabel *TextLabel6;
00044 QLabel *TextLabel5;
00045 QLineEdit *position_edit;
00046 QLineEdit *velocity_edit;
00047 QLineEdit *type_name_edit;
00048 QLineEdit *radius_edit;
00049 QLabel *TextLabel8;
00050 QLineEdit *type_edit;
00051 QLabel *TextLabel3;
00052 QComboBox *element_box;
00053 QLabel *TextLabel2_2;
00054 QLabel *TextLabel2;
00055 QSpacerItem *spacerItem;
00056 QGroupBox *residues_box;
00057 QLabel *textLabel1_2;
00058 QLineEdit *id_edit;
00059 QSpacerItem *spacerItem1;
00060 QHBoxLayout *hboxLayout1;
00061 QLabel *textLabel1;
00062 QLineEdit *name_edit;
00063
00064 void setupUi(QDialog *CompositePropertiesData)
00065 {
00066 CompositePropertiesData->setObjectName(QString::fromUtf8("CompositePropertiesData"));
00067 QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00068 sizePolicy.setHorizontalStretch(0);
00069 sizePolicy.setVerticalStretch(0);
00070 sizePolicy.setHeightForWidth(CompositePropertiesData->sizePolicy().hasHeightForWidth());
00071 CompositePropertiesData->setSizePolicy(sizePolicy);
00072 CompositePropertiesData->setMinimumSize(QSize(400, 517));
00073 CompositePropertiesData->setMaximumSize(QSize(400, 517));
00074 gridLayout = new QGridLayout(CompositePropertiesData);
00075 gridLayout->setSpacing(6);
00076 gridLayout->setMargin(9);
00077 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00078 hboxLayout = new QHBoxLayout();
00079 hboxLayout->setSpacing(6);
00080 hboxLayout->setMargin(0);
00081 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00082 ok_button = new QPushButton(CompositePropertiesData);
00083 ok_button->setObjectName(QString::fromUtf8("ok_button"));
00084 ok_button->setMinimumSize(QSize(186, 30));
00085 ok_button->setMaximumSize(QSize(32767, 30));
00086 ok_button->setDefault(true);
00087
00088 hboxLayout->addWidget(ok_button);
00089
00090 cancel_button = new QPushButton(CompositePropertiesData);
00091 cancel_button->setObjectName(QString::fromUtf8("cancel_button"));
00092 cancel_button->setMinimumSize(QSize(186, 30));
00093 cancel_button->setMaximumSize(QSize(32767, 30));
00094
00095 hboxLayout->addWidget(cancel_button);
00096
00097
00098 gridLayout->addLayout(hboxLayout, 5, 0, 1, 2);
00099
00100 atoms_box = new QGroupBox(CompositePropertiesData);
00101 atoms_box->setObjectName(QString::fromUtf8("atoms_box"));
00102 gridLayout1 = new QGridLayout(atoms_box);
00103 gridLayout1->setSpacing(6);
00104 gridLayout1->setMargin(9);
00105 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00106 TextLabel7 = new QLabel(atoms_box);
00107 TextLabel7->setObjectName(QString::fromUtf8("TextLabel7"));
00108 QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(5));
00109 sizePolicy1.setHorizontalStretch(0);
00110 sizePolicy1.setVerticalStretch(0);
00111 sizePolicy1.setHeightForWidth(TextLabel7->sizePolicy().hasHeightForWidth());
00112 TextLabel7->setSizePolicy(sizePolicy1);
00113 TextLabel7->setMinimumSize(QSize(90, 0));
00114 TextLabel7->setMaximumSize(QSize(100, 32767));
00115 TextLabel7->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
00116
00117 gridLayout1->addWidget(TextLabel7, 6, 0, 1, 1);
00118
00119 formal_charge_edit = new QLineEdit(atoms_box);
00120 formal_charge_edit->setObjectName(QString::fromUtf8("formal_charge_edit"));
00121
00122 gridLayout1->addWidget(formal_charge_edit, 5, 1, 1, 1);
00123
00124 TextLabel4_2 = new QLabel(atoms_box);
00125 TextLabel4_2->setObjectName(QString::fromUtf8("TextLabel4_2"));
00126 QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(5));
00127 sizePolicy2.setHorizontalStretch(0);
00128 sizePolicy2.setVerticalStretch(0);
00129 sizePolicy2.setHeightForWidth(TextLabel4_2->sizePolicy().hasHeightForWidth());
00130 TextLabel4_2->setSizePolicy(sizePolicy2);
00131 TextLabel4_2->setMinimumSize(QSize(90, 0));
00132 TextLabel4_2->setMaximumSize(QSize(100, 32767));
00133 TextLabel4_2->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
00134
00135 gridLayout1->addWidget(TextLabel4_2, 5, 0, 1, 1);
00136
00137 charge_edit = new QLineEdit(atoms_box);
00138 charge_edit->setObjectName(QString::fromUtf8("charge_edit"));
00139
00140 gridLayout1->addWidget(charge_edit, 4, 1, 1, 1);
00141
00142 TextLabel4 = new QLabel(atoms_box);
00143 TextLabel4->setObjectName(QString::fromUtf8("TextLabel4"));
00144 QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(5));
00145 sizePolicy3.setHorizontalStretch(0);
00146 sizePolicy3.setVerticalStretch(0);
00147 sizePolicy3.setHeightForWidth(TextLabel4->sizePolicy().hasHeightForWidth());
00148 TextLabel4->setSizePolicy(sizePolicy3);
00149 TextLabel4->setMinimumSize(QSize(90, 0));
00150 TextLabel4->setMaximumSize(QSize(100, 32767));
00151 TextLabel4->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
00152
00153 gridLayout1->addWidget(TextLabel4, 4, 0, 1, 1);
00154
00155 force_edit = new QLineEdit(atoms_box);
00156 force_edit->setObjectName(QString::fromUtf8("force_edit"));
00157
00158 gridLayout1->addWidget(force_edit, 8, 1, 1, 1);
00159
00160 TextLabel6 = new QLabel(atoms_box);
00161 TextLabel6->setObjectName(QString::fromUtf8("TextLabel6"));
00162 QSizePolicy sizePolicy4(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(5));
00163 sizePolicy4.setHorizontalStretch(0);
00164 sizePolicy4.setVerticalStretch(0);
00165 sizePolicy4.setHeightForWidth(TextLabel6->sizePolicy().hasHeightForWidth());
00166 TextLabel6->setSizePolicy(sizePolicy4);
00167 TextLabel6->setMinimumSize(QSize(90, 0));
00168 TextLabel6->setMaximumSize(QSize(100, 32767));
00169 TextLabel6->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
00170
00171 gridLayout1->addWidget(TextLabel6, 8, 0, 1, 1);
00172
00173 TextLabel5 = new QLabel(atoms_box);
00174 TextLabel5->setObjectName(QString::fromUtf8("TextLabel5"));
00175 QSizePolicy sizePolicy5(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(5));
00176 sizePolicy5.setHorizontalStretch(0);
00177 sizePolicy5.setVerticalStretch(0);
00178 sizePolicy5.setHeightForWidth(TextLabel5->sizePolicy().hasHeightForWidth());
00179 TextLabel5->setSizePolicy(sizePolicy5);
00180 TextLabel5->setMinimumSize(QSize(90, 0));
00181 TextLabel5->setMaximumSize(QSize(100, 32767));
00182 TextLabel5->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
00183
00184 gridLayout1->addWidget(TextLabel5, 7, 0, 1, 1);
00185
00186 position_edit = new QLineEdit(atoms_box);
00187 position_edit->setObjectName(QString::fromUtf8("position_edit"));
00188
00189 gridLayout1->addWidget(position_edit, 6, 1, 1, 1);
00190
00191 velocity_edit = new QLineEdit(atoms_box);
00192 velocity_edit->setObjectName(QString::fromUtf8("velocity_edit"));
00193
00194 gridLayout1->addWidget(velocity_edit, 7, 1, 1, 1);
00195
00196 type_name_edit = new QLineEdit(atoms_box);
00197 type_name_edit->setObjectName(QString::fromUtf8("type_name_edit"));
00198
00199 gridLayout1->addWidget(type_name_edit, 0, 1, 1, 1);
00200
00201 radius_edit = new QLineEdit(atoms_box);
00202 radius_edit->setObjectName(QString::fromUtf8("radius_edit"));
00203
00204 gridLayout1->addWidget(radius_edit, 3, 1, 1, 1);
00205
00206 TextLabel8 = new QLabel(atoms_box);
00207 TextLabel8->setObjectName(QString::fromUtf8("TextLabel8"));
00208 QSizePolicy sizePolicy6(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(5));
00209 sizePolicy6.setHorizontalStretch(0);
00210 sizePolicy6.setVerticalStretch(0);
00211 sizePolicy6.setHeightForWidth(TextLabel8->sizePolicy().hasHeightForWidth());
00212 TextLabel8->setSizePolicy(sizePolicy6);
00213 TextLabel8->setMinimumSize(QSize(90, 0));
00214 TextLabel8->setMaximumSize(QSize(100, 32767));
00215 TextLabel8->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
00216
00217 gridLayout1->addWidget(TextLabel8, 3, 0, 1, 1);
00218
00219 type_edit = new QLineEdit(atoms_box);
00220 type_edit->setObjectName(QString::fromUtf8("type_edit"));
00221
00222 gridLayout1->addWidget(type_edit, 1, 1, 1, 1);
00223
00224 TextLabel3 = new QLabel(atoms_box);
00225 TextLabel3->setObjectName(QString::fromUtf8("TextLabel3"));
00226 QSizePolicy sizePolicy7(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(5));
00227 sizePolicy7.setHorizontalStretch(0);
00228 sizePolicy7.setVerticalStretch(0);
00229 sizePolicy7.setHeightForWidth(TextLabel3->sizePolicy().hasHeightForWidth());
00230 TextLabel3->setSizePolicy(sizePolicy7);
00231 TextLabel3->setMinimumSize(QSize(90, 0));
00232 TextLabel3->setMaximumSize(QSize(100, 32767));
00233 TextLabel3->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
00234
00235 gridLayout1->addWidget(TextLabel3, 2, 0, 1, 1);
00236
00237 element_box = new QComboBox(atoms_box);
00238 element_box->setObjectName(QString::fromUtf8("element_box"));
00239
00240 gridLayout1->addWidget(element_box, 2, 1, 1, 1);
00241
00242 TextLabel2_2 = new QLabel(atoms_box);
00243 TextLabel2_2->setObjectName(QString::fromUtf8("TextLabel2_2"));
00244 QSizePolicy sizePolicy8(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(5));
00245 sizePolicy8.setHorizontalStretch(0);
00246 sizePolicy8.setVerticalStretch(0);
00247 sizePolicy8.setHeightForWidth(TextLabel2_2->sizePolicy().hasHeightForWidth());
00248 TextLabel2_2->setSizePolicy(sizePolicy8);
00249 TextLabel2_2->setMinimumSize(QSize(90, 0));
00250 TextLabel2_2->setMaximumSize(QSize(100, 32767));
00251 TextLabel2_2->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
00252
00253 gridLayout1->addWidget(TextLabel2_2, 1, 0, 1, 1);
00254
00255 TextLabel2 = new QLabel(atoms_box);
00256 TextLabel2->setObjectName(QString::fromUtf8("TextLabel2"));
00257 QSizePolicy sizePolicy9(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(5));
00258 sizePolicy9.setHorizontalStretch(0);
00259 sizePolicy9.setVerticalStretch(0);
00260 sizePolicy9.setHeightForWidth(TextLabel2->sizePolicy().hasHeightForWidth());
00261 TextLabel2->setSizePolicy(sizePolicy9);
00262 TextLabel2->setMinimumSize(QSize(90, 0));
00263 TextLabel2->setMaximumSize(QSize(100, 32767));
00264 TextLabel2->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
00265
00266 gridLayout1->addWidget(TextLabel2, 0, 0, 1, 1);
00267
00268
00269 gridLayout->addWidget(atoms_box, 4, 0, 1, 2);
00270
00271 spacerItem = new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Expanding);
00272
00273 gridLayout->addItem(spacerItem, 3, 0, 1, 1);
00274
00275 residues_box = new QGroupBox(CompositePropertiesData);
00276 residues_box->setObjectName(QString::fromUtf8("residues_box"));
00277 residues_box->setMinimumSize(QSize(16, 50));
00278 textLabel1_2 = new QLabel(residues_box);
00279 textLabel1_2->setObjectName(QString::fromUtf8("textLabel1_2"));
00280 textLabel1_2->setGeometry(QRect(10, 20, 110, 24));
00281 QSizePolicy sizePolicy10(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(5));
00282 sizePolicy10.setHorizontalStretch(0);
00283 sizePolicy10.setVerticalStretch(0);
00284 sizePolicy10.setHeightForWidth(textLabel1_2->sizePolicy().hasHeightForWidth());
00285 textLabel1_2->setSizePolicy(sizePolicy10);
00286 textLabel1_2->setMinimumSize(QSize(110, 0));
00287 textLabel1_2->setMaximumSize(QSize(110, 32767));
00288 textLabel1_2->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
00289 id_edit = new QLineEdit(residues_box);
00290 id_edit->setObjectName(QString::fromUtf8("id_edit"));
00291 id_edit->setGeometry(QRect(120, 20, 250, 24));
00292 QSizePolicy sizePolicy11(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00293 sizePolicy11.setHorizontalStretch(0);
00294 sizePolicy11.setVerticalStretch(0);
00295 sizePolicy11.setHeightForWidth(id_edit->sizePolicy().hasHeightForWidth());
00296 id_edit->setSizePolicy(sizePolicy11);
00297 id_edit->setMinimumSize(QSize(0, 20));
00298
00299 gridLayout->addWidget(residues_box, 2, 0, 1, 2);
00300
00301 spacerItem1 = new QSpacerItem(20, 10, QSizePolicy::Minimum, QSizePolicy::Expanding);
00302
00303 gridLayout->addItem(spacerItem1, 1, 1, 1, 1);
00304
00305 hboxLayout1 = new QHBoxLayout();
00306 hboxLayout1->setSpacing(6);
00307 hboxLayout1->setMargin(0);
00308 hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00309 textLabel1 = new QLabel(CompositePropertiesData);
00310 textLabel1->setObjectName(QString::fromUtf8("textLabel1"));
00311 QSizePolicy sizePolicy12(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(1));
00312 sizePolicy12.setHorizontalStretch(0);
00313 sizePolicy12.setVerticalStretch(0);
00314 sizePolicy12.setHeightForWidth(textLabel1->sizePolicy().hasHeightForWidth());
00315 textLabel1->setSizePolicy(sizePolicy12);
00316 textLabel1->setMinimumSize(QSize(100, 0));
00317 textLabel1->setMaximumSize(QSize(100, 32767));
00318 textLabel1->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
00319
00320 hboxLayout1->addWidget(textLabel1);
00321
00322 name_edit = new QLineEdit(CompositePropertiesData);
00323 name_edit->setObjectName(QString::fromUtf8("name_edit"));
00324 QSizePolicy sizePolicy13(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(1));
00325 sizePolicy13.setHorizontalStretch(0);
00326 sizePolicy13.setVerticalStretch(0);
00327 sizePolicy13.setHeightForWidth(name_edit->sizePolicy().hasHeightForWidth());
00328 name_edit->setSizePolicy(sizePolicy13);
00329
00330 hboxLayout1->addWidget(name_edit);
00331
00332
00333 gridLayout->addLayout(hboxLayout1, 0, 0, 1, 2);
00334
00335 QWidget::setTabOrder(name_edit, id_edit);
00336 QWidget::setTabOrder(id_edit, type_name_edit);
00337 QWidget::setTabOrder(type_name_edit, type_edit);
00338 QWidget::setTabOrder(type_edit, element_box);
00339 QWidget::setTabOrder(element_box, radius_edit);
00340 QWidget::setTabOrder(radius_edit, charge_edit);
00341 QWidget::setTabOrder(charge_edit, formal_charge_edit);
00342 QWidget::setTabOrder(formal_charge_edit, position_edit);
00343 QWidget::setTabOrder(position_edit, velocity_edit);
00344 QWidget::setTabOrder(velocity_edit, force_edit);
00345 QWidget::setTabOrder(force_edit, ok_button);
00346 QWidget::setTabOrder(ok_button, cancel_button);
00347
00348 retranslateUi(CompositePropertiesData);
00349
00350 QSize size(400, 517);
00351 size = size.expandedTo(CompositePropertiesData->minimumSizeHint());
00352 CompositePropertiesData->resize(size);
00353
00354
00355 QMetaObject::connectSlotsByName(CompositePropertiesData);
00356 }
00357
00358 void retranslateUi(QDialog *CompositePropertiesData)
00359 {
00360 CompositePropertiesData->setWindowTitle(QApplication::translate("CompositePropertiesData", "Properties", 0, QApplication::UnicodeUTF8));
00361 ok_button->setText(QApplication::translate("CompositePropertiesData", "OK", 0, QApplication::UnicodeUTF8));
00362 cancel_button->setText(QApplication::translate("CompositePropertiesData", "Cancel", 0, QApplication::UnicodeUTF8));
00363 atoms_box->setTitle(QApplication::translate("CompositePropertiesData", "Atoms", 0, QApplication::UnicodeUTF8));
00364 TextLabel7->setText(QApplication::translate("CompositePropertiesData", "Position (\303\205)", 0, QApplication::UnicodeUTF8));
00365 TextLabel4_2->setText(QApplication::translate("CompositePropertiesData", "Formal charge", 0, QApplication::UnicodeUTF8));
00366 TextLabel4->setText(QApplication::translate("CompositePropertiesData", "Charge (e)", 0, QApplication::UnicodeUTF8));
00367 TextLabel6->setText(QApplication::translate("CompositePropertiesData", "Force (pN)", 0, QApplication::UnicodeUTF8));
00368 TextLabel5->setText(QApplication::translate("CompositePropertiesData", "Velocity (\303\205/ps)", 0, QApplication::UnicodeUTF8));
00369 position_edit->setText(QString());
00370 TextLabel8->setText(QApplication::translate("CompositePropertiesData", "Radius (\303\205)", 0, QApplication::UnicodeUTF8));
00371 TextLabel3->setText(QApplication::translate("CompositePropertiesData", "Element", 0, QApplication::UnicodeUTF8));
00372 TextLabel2_2->setText(QApplication::translate("CompositePropertiesData", "Type", 0, QApplication::UnicodeUTF8));
00373 TextLabel2->setText(QApplication::translate("CompositePropertiesData", "Type name", 0, QApplication::UnicodeUTF8));
00374 residues_box->setTitle(QApplication::translate("CompositePropertiesData", "Residues", 0, QApplication::UnicodeUTF8));
00375 textLabel1_2->setText(QApplication::translate("CompositePropertiesData", "ID", 0, QApplication::UnicodeUTF8));
00376 textLabel1->setText(QApplication::translate("CompositePropertiesData", "Name", 0, QApplication::UnicodeUTF8));
00377 Q_UNUSED(CompositePropertiesData);
00378 }
00379
00380 };
00381
00382 namespace Ui {
00383 class CompositePropertiesData: public Ui_CompositePropertiesData {};
00384 }
00385
00386 #endif // COMPOSITEPROPERTIESDATA_H