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