00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef FIELDLINESDIALOGDATA_H
00011 #define FIELDLINESDIALOGDATA_H
00012
00013 #include <QtCore/QVariant>
00014 #include <QtGui/QAction>
00015 #include <QtGui/QApplication>
00016 #include <QtGui/QButtonGroup>
00017 #include <QtGui/QDialog>
00018 #include <QtGui/QGridLayout>
00019 #include <QtGui/QGroupBox>
00020 #include <QtGui/QHBoxLayout>
00021 #include <QtGui/QLabel>
00022 #include <QtGui/QLineEdit>
00023 #include <QtGui/QPushButton>
00024 #include <QtGui/QSpacerItem>
00025 #include <QtGui/QSpinBox>
00026 #include <QtGui/QTabWidget>
00027 #include <QtGui/QWidget>
00028
00029 class Ui_FieldLinesDialogData
00030 {
00031 public:
00032 QGridLayout *gridLayout;
00033 QGroupBox *groupBox_2;
00034 QGridLayout *gridLayout1;
00035 QLabel *label_2;
00036 QLabel *label_4;
00037 QLabel *label_3;
00038 QLineEdit *max_steps;
00039 QLineEdit *tolerance;
00040 QSpinBox *interpolation_steps;
00041 QGroupBox *groupBox;
00042 QGridLayout *gridLayout2;
00043 QTabWidget *seed_mode_tab_widget;
00044 QWidget *tab;
00045 QGridLayout *gridLayout3;
00046 QSpinBox *atom_distance;
00047 QSpinBox *start_points_per_atom;
00048 QLabel *label;
00049 QLabel *label_5;
00050 QWidget *tab_2;
00051 QGridLayout *gridLayout4;
00052 QLabel *label_6;
00053 QSpinBox *monte_carlo_number_lines;
00054 QHBoxLayout *hboxLayout;
00055 QSpacerItem *spacerItem;
00056 QPushButton *ok_button;
00057 QPushButton *cancel_button;
00058
00059 void setupUi(QDialog *FieldLinesDialogData)
00060 {
00061 FieldLinesDialogData->setObjectName(QString::fromUtf8("FieldLinesDialogData"));
00062 FieldLinesDialogData->setWindowIcon(QIcon());
00063 gridLayout = new QGridLayout(FieldLinesDialogData);
00064 gridLayout->setSpacing(6);
00065 gridLayout->setMargin(5);
00066 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00067 groupBox_2 = new QGroupBox(FieldLinesDialogData);
00068 groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
00069 gridLayout1 = new QGridLayout(groupBox_2);
00070 gridLayout1->setSpacing(6);
00071 gridLayout1->setMargin(5);
00072 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00073 label_2 = new QLabel(groupBox_2);
00074 label_2->setObjectName(QString::fromUtf8("label_2"));
00075 QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00076 sizePolicy.setHorizontalStretch(0);
00077 sizePolicy.setVerticalStretch(0);
00078 sizePolicy.setHeightForWidth(label_2->sizePolicy().hasHeightForWidth());
00079 label_2->setSizePolicy(sizePolicy);
00080
00081 gridLayout1->addWidget(label_2, 0, 0, 1, 1);
00082
00083 label_4 = new QLabel(groupBox_2);
00084 label_4->setObjectName(QString::fromUtf8("label_4"));
00085 QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00086 sizePolicy1.setHorizontalStretch(0);
00087 sizePolicy1.setVerticalStretch(0);
00088 sizePolicy1.setHeightForWidth(label_4->sizePolicy().hasHeightForWidth());
00089 label_4->setSizePolicy(sizePolicy1);
00090
00091 gridLayout1->addWidget(label_4, 1, 0, 1, 1);
00092
00093 label_3 = new QLabel(groupBox_2);
00094 label_3->setObjectName(QString::fromUtf8("label_3"));
00095 QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00096 sizePolicy2.setHorizontalStretch(0);
00097 sizePolicy2.setVerticalStretch(0);
00098 sizePolicy2.setHeightForWidth(label_3->sizePolicy().hasHeightForWidth());
00099 label_3->setSizePolicy(sizePolicy2);
00100
00101 gridLayout1->addWidget(label_3, 2, 0, 1, 1);
00102
00103 max_steps = new QLineEdit(groupBox_2);
00104 max_steps->setObjectName(QString::fromUtf8("max_steps"));
00105
00106 gridLayout1->addWidget(max_steps, 0, 1, 1, 1);
00107
00108 tolerance = new QLineEdit(groupBox_2);
00109 tolerance->setObjectName(QString::fromUtf8("tolerance"));
00110
00111 gridLayout1->addWidget(tolerance, 1, 1, 1, 1);
00112
00113 interpolation_steps = new QSpinBox(groupBox_2);
00114 interpolation_steps->setObjectName(QString::fromUtf8("interpolation_steps"));
00115 interpolation_steps->setMaximum(6);
00116 interpolation_steps->setMinimum(1);
00117 interpolation_steps->setValue(2);
00118
00119 gridLayout1->addWidget(interpolation_steps, 2, 1, 1, 1);
00120
00121
00122 gridLayout->addWidget(groupBox_2, 1, 0, 1, 1);
00123
00124 groupBox = new QGroupBox(FieldLinesDialogData);
00125 groupBox->setObjectName(QString::fromUtf8("groupBox"));
00126 gridLayout2 = new QGridLayout(groupBox);
00127 gridLayout2->setSpacing(6);
00128 gridLayout2->setMargin(5);
00129 gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
00130 seed_mode_tab_widget = new QTabWidget(groupBox);
00131 seed_mode_tab_widget->setObjectName(QString::fromUtf8("seed_mode_tab_widget"));
00132 tab = new QWidget();
00133 tab->setObjectName(QString::fromUtf8("tab"));
00134 gridLayout3 = new QGridLayout(tab);
00135 gridLayout3->setSpacing(6);
00136 gridLayout3->setMargin(9);
00137 gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
00138 atom_distance = new QSpinBox(tab);
00139 atom_distance->setObjectName(QString::fromUtf8("atom_distance"));
00140 atom_distance->setMaximum(50);
00141 atom_distance->setMinimum(1);
00142 atom_distance->setValue(10);
00143
00144 gridLayout3->addWidget(atom_distance, 1, 1, 1, 1);
00145
00146 start_points_per_atom = new QSpinBox(tab);
00147 start_points_per_atom->setObjectName(QString::fromUtf8("start_points_per_atom"));
00148 start_points_per_atom->setMaximum(3);
00149 start_points_per_atom->setMinimum(0);
00150 start_points_per_atom->setValue(1);
00151
00152 gridLayout3->addWidget(start_points_per_atom, 0, 1, 1, 1);
00153
00154 label = new QLabel(tab);
00155 label->setObjectName(QString::fromUtf8("label"));
00156 QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00157 sizePolicy3.setHorizontalStretch(0);
00158 sizePolicy3.setVerticalStretch(0);
00159 sizePolicy3.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
00160 label->setSizePolicy(sizePolicy3);
00161
00162 gridLayout3->addWidget(label, 0, 0, 1, 1);
00163
00164 label_5 = new QLabel(tab);
00165 label_5->setObjectName(QString::fromUtf8("label_5"));
00166 QSizePolicy sizePolicy4(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00167 sizePolicy4.setHorizontalStretch(0);
00168 sizePolicy4.setVerticalStretch(0);
00169 sizePolicy4.setHeightForWidth(label_5->sizePolicy().hasHeightForWidth());
00170 label_5->setSizePolicy(sizePolicy4);
00171
00172 gridLayout3->addWidget(label_5, 1, 0, 1, 1);
00173
00174 seed_mode_tab_widget->addTab(tab, QApplication::translate("FieldLinesDialogData", "from Atoms", 0, QApplication::UnicodeUTF8));
00175 tab_2 = new QWidget();
00176 tab_2->setObjectName(QString::fromUtf8("tab_2"));
00177 gridLayout4 = new QGridLayout(tab_2);
00178 gridLayout4->setSpacing(6);
00179 gridLayout4->setMargin(9);
00180 gridLayout4->setObjectName(QString::fromUtf8("gridLayout4"));
00181 label_6 = new QLabel(tab_2);
00182 label_6->setObjectName(QString::fromUtf8("label_6"));
00183 QSizePolicy sizePolicy5(static_cast<QSizePolicy::Policy>(7), static_cast<QSizePolicy::Policy>(5));
00184 sizePolicy5.setHorizontalStretch(0);
00185 sizePolicy5.setVerticalStretch(0);
00186 sizePolicy5.setHeightForWidth(label_6->sizePolicy().hasHeightForWidth());
00187 label_6->setSizePolicy(sizePolicy5);
00188
00189 gridLayout4->addWidget(label_6, 0, 0, 1, 1);
00190
00191 monte_carlo_number_lines = new QSpinBox(tab_2);
00192 monte_carlo_number_lines->setObjectName(QString::fromUtf8("monte_carlo_number_lines"));
00193 monte_carlo_number_lines->setMaximum(10000);
00194 monte_carlo_number_lines->setMinimum(1);
00195 monte_carlo_number_lines->setValue(500);
00196
00197 gridLayout4->addWidget(monte_carlo_number_lines, 0, 1, 1, 1);
00198
00199 seed_mode_tab_widget->addTab(tab_2, QApplication::translate("FieldLinesDialogData", "Monte Carlo", 0, QApplication::UnicodeUTF8));
00200
00201 gridLayout2->addWidget(seed_mode_tab_widget, 0, 0, 1, 1);
00202
00203
00204 gridLayout->addWidget(groupBox, 0, 0, 1, 1);
00205
00206 hboxLayout = new QHBoxLayout();
00207 hboxLayout->setSpacing(6);
00208 hboxLayout->setMargin(0);
00209 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00210 spacerItem = new QSpacerItem(131, 31, QSizePolicy::Expanding, QSizePolicy::Minimum);
00211
00212 hboxLayout->addItem(spacerItem);
00213
00214 ok_button = new QPushButton(FieldLinesDialogData);
00215 ok_button->setObjectName(QString::fromUtf8("ok_button"));
00216
00217 hboxLayout->addWidget(ok_button);
00218
00219 cancel_button = new QPushButton(FieldLinesDialogData);
00220 cancel_button->setObjectName(QString::fromUtf8("cancel_button"));
00221
00222 hboxLayout->addWidget(cancel_button);
00223
00224
00225 gridLayout->addLayout(hboxLayout, 2, 0, 1, 1);
00226
00227 QWidget::setTabOrder(seed_mode_tab_widget, start_points_per_atom);
00228 QWidget::setTabOrder(start_points_per_atom, atom_distance);
00229 QWidget::setTabOrder(atom_distance, max_steps);
00230 QWidget::setTabOrder(max_steps, tolerance);
00231 QWidget::setTabOrder(tolerance, interpolation_steps);
00232 QWidget::setTabOrder(interpolation_steps, ok_button);
00233 QWidget::setTabOrder(ok_button, cancel_button);
00234 QWidget::setTabOrder(cancel_button, monte_carlo_number_lines);
00235
00236 retranslateUi(FieldLinesDialogData);
00237
00238 QSize size(375, 323);
00239 size = size.expandedTo(FieldLinesDialogData->minimumSizeHint());
00240 FieldLinesDialogData->resize(size);
00241
00242 QObject::connect(ok_button, SIGNAL(clicked()), FieldLinesDialogData, SLOT(accept()));
00243 QObject::connect(cancel_button, SIGNAL(clicked()), FieldLinesDialogData, SLOT(reject()));
00244
00245 seed_mode_tab_widget->setCurrentIndex(1);
00246
00247
00248 QMetaObject::connectSlotsByName(FieldLinesDialogData);
00249 }
00250
00251 void retranslateUi(QDialog *FieldLinesDialogData)
00252 {
00253 FieldLinesDialogData->setWindowTitle(QApplication::translate("FieldLinesDialogData", "Create Field Lines", 0, QApplication::UnicodeUTF8));
00254 groupBox_2->setTitle(QApplication::translate("FieldLinesDialogData", "Advanced Options", 0, QApplication::UnicodeUTF8));
00255 label_2->setText(QApplication::translate("FieldLinesDialogData", "max steps", 0, QApplication::UnicodeUTF8));
00256 label_4->setText(QApplication::translate("FieldLinesDialogData", "tolerance", 0, QApplication::UnicodeUTF8));
00257 label_3->setText(QApplication::translate("FieldLinesDialogData", "interpolation steps", 0, QApplication::UnicodeUTF8));
00258 max_steps->setText(QApplication::translate("FieldLinesDialogData", "10000", 0, QApplication::UnicodeUTF8));
00259 tolerance->setText(QApplication::translate("FieldLinesDialogData", "0.0001", 0, QApplication::UnicodeUTF8));
00260 groupBox->setTitle(QApplication::translate("FieldLinesDialogData", "Seed Mode", 0, QApplication::UnicodeUTF8));
00261 label->setText(QApplication::translate("FieldLinesDialogData", "number of start points per atom (12^X)", 0, QApplication::UnicodeUTF8));
00262 label_5->setText(QApplication::translate("FieldLinesDialogData", "distance from atoms (0.1 \303\205 * X)", 0, QApplication::UnicodeUTF8));
00263 seed_mode_tab_widget->setTabText(seed_mode_tab_widget->indexOf(tab), QApplication::translate("FieldLinesDialogData", "from Atoms", 0, QApplication::UnicodeUTF8));
00264 label_6->setText(QApplication::translate("FieldLinesDialogData", "number of lines", 0, QApplication::UnicodeUTF8));
00265 seed_mode_tab_widget->setTabText(seed_mode_tab_widget->indexOf(tab_2), QApplication::translate("FieldLinesDialogData", "Monte Carlo", 0, QApplication::UnicodeUTF8));
00266 ok_button->setText(QApplication::translate("FieldLinesDialogData", "Create", 0, QApplication::UnicodeUTF8));
00267 cancel_button->setText(QApplication::translate("FieldLinesDialogData", "Cancel", 0, QApplication::UnicodeUTF8));
00268 Q_UNUSED(FieldLinesDialogData);
00269 }
00270
00271 };
00272
00273 namespace Ui {
00274 class FieldLinesDialogData: public Ui_FieldLinesDialogData {};
00275 }
00276
00277 #endif // FIELDLINESDIALOGDATA_H