00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_PLANNERDLG_H
00011 #define UI_PLANNERDLG_H
00012
00013 #include <Qt3Support/Q3GroupBox>
00014 #include <Qt3Support/Q3MimeSourceFactory>
00015 #include <QtCore/QVariant>
00016 #include <QtGui/QAction>
00017 #include <QtGui/QApplication>
00018 #include <QtGui/QButtonGroup>
00019 #include <QtGui/QCheckBox>
00020 #include <QtGui/QComboBox>
00021 #include <QtGui/QDialog>
00022 #include <QtGui/QGridLayout>
00023 #include <QtGui/QHBoxLayout>
00024 #include <QtGui/QHeaderView>
00025 #include <QtGui/QLabel>
00026 #include <QtGui/QLineEdit>
00027 #include <QtGui/QPushButton>
00028 #include <QtGui/QSpacerItem>
00029 #include <QtGui/QVBoxLayout>
00030 #include <Qt3Support/Q3TSFUNC>
00031 #include <QtCore/QFile>
00032
00033 QT_BEGIN_NAMESPACE
00034
00035 class Ui_PlannerDlgUI
00036 {
00037 public:
00038 QVBoxLayout *vboxLayout;
00039 QHBoxLayout *hboxLayout;
00040 Q3GroupBox *plannerBox;
00041 QVBoxLayout *vboxLayout1;
00042 QCheckBox *automaticCheckBox;
00043 Q3GroupBox *automaticBox;
00044 QGridLayout *gridLayout;
00045 QLabel *TextLabel1;
00046 QLineEdit *densityFactorLine;
00047 Q3GroupBox *manualBox;
00048 QGridLayout *gridLayout1;
00049 QLineEdit *num360stepsLine;
00050 QHBoxLayout *hboxLayout1;
00051 QLineEdit *filenameLineEdit;
00052 QPushButton *BrowseButton;
00053 QLineEdit *numGraspRotsLine;
00054 QLineEdit *num180graspsLine;
00055 QLineEdit *numParPlanesLine;
00056 QLabel *TextLabel2;
00057 QLabel *TextLabel3;
00058 QLabel *TextLabel4;
00059 QLabel *TextLabel5;
00060 QLabel *TextLabel1_2;
00061 Q3GroupBox *testerBox;
00062 QGridLayout *gridLayout2;
00063 QLabel *TextLabel6;
00064 QLineEdit *backstepSizeLine;
00065 QCheckBox *visualizeBox;
00066 QLabel *TextLabel9;
00067 QLineEdit *maxNumStepsLine;
00068 QComboBox *qmComboBox;
00069 QLabel *TextLabel7;
00070 QHBoxLayout *hboxLayout2;
00071 QLineEdit *savefileLineEdit;
00072 QPushButton *BrowseSaveButton6;
00073 QSpacerItem *spacerItem;
00074 QLabel *textLabel1;
00075 QPushButton *newQMButton;
00076 QHBoxLayout *hboxLayout3;
00077 QSpacerItem *spacerItem1;
00078 QPushButton *GenerateButton;
00079 QPushButton *TestButton;
00080 QPushButton *ShowButton;
00081 QPushButton *CloseButton;
00082
00083 void setupUi(QDialog *PlannerDlgUI)
00084 {
00085 if (PlannerDlgUI->objectName().isEmpty())
00086 PlannerDlgUI->setObjectName(QString::fromUtf8("PlannerDlgUI"));
00087 PlannerDlgUI->resize(535, 460);
00088 vboxLayout = new QVBoxLayout(PlannerDlgUI);
00089 vboxLayout->setSpacing(6);
00090 vboxLayout->setContentsMargins(11, 11, 11, 11);
00091 vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
00092 hboxLayout = new QHBoxLayout();
00093 hboxLayout->setSpacing(6);
00094 hboxLayout->setContentsMargins(0, 0, 0, 0);
00095 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00096 plannerBox = new Q3GroupBox(PlannerDlgUI);
00097 plannerBox->setObjectName(QString::fromUtf8("plannerBox"));
00098 plannerBox->setOrientation(Qt::Vertical);
00099 plannerBox->setColumnLayout(0, Qt::Vertical);
00100 plannerBox->layout()->setSpacing(6);
00101 plannerBox->layout()->setContentsMargins(11, 11, 11, 11);
00102 vboxLayout1 = new QVBoxLayout();
00103 QBoxLayout *boxlayout = qobject_cast<QBoxLayout *>(plannerBox->layout());
00104 if (boxlayout)
00105 boxlayout->addLayout(vboxLayout1);
00106 vboxLayout1->setAlignment(Qt::AlignTop);
00107 vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
00108 automaticCheckBox = new QCheckBox(plannerBox);
00109 automaticCheckBox->setObjectName(QString::fromUtf8("automaticCheckBox"));
00110 automaticCheckBox->setChecked(true);
00111
00112 vboxLayout1->addWidget(automaticCheckBox);
00113
00114 automaticBox = new Q3GroupBox(plannerBox);
00115 automaticBox->setObjectName(QString::fromUtf8("automaticBox"));
00116 automaticBox->setOrientation(Qt::Vertical);
00117 automaticBox->setColumnLayout(0, Qt::Vertical);
00118 automaticBox->layout()->setSpacing(6);
00119 automaticBox->layout()->setContentsMargins(11, 11, 11, 11);
00120 gridLayout = new QGridLayout();
00121 QBoxLayout *boxlayout1 = qobject_cast<QBoxLayout *>(automaticBox->layout());
00122 if (boxlayout1)
00123 boxlayout1->addLayout(gridLayout);
00124 gridLayout->setAlignment(Qt::AlignTop);
00125 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00126 TextLabel1 = new QLabel(automaticBox);
00127 TextLabel1->setObjectName(QString::fromUtf8("TextLabel1"));
00128 TextLabel1->setWordWrap(false);
00129
00130 gridLayout->addWidget(TextLabel1, 0, 0, 1, 1);
00131
00132 densityFactorLine = new QLineEdit(automaticBox);
00133 densityFactorLine->setObjectName(QString::fromUtf8("densityFactorLine"));
00134 densityFactorLine->setMaximumSize(QSize(30, 27));
00135
00136 gridLayout->addWidget(densityFactorLine, 0, 1, 1, 1);
00137
00138
00139 vboxLayout1->addWidget(automaticBox);
00140
00141 manualBox = new Q3GroupBox(plannerBox);
00142 manualBox->setObjectName(QString::fromUtf8("manualBox"));
00143 manualBox->setEnabled(false);
00144 manualBox->setOrientation(Qt::Vertical);
00145 manualBox->setColumnLayout(0, Qt::Vertical);
00146 manualBox->layout()->setSpacing(6);
00147 manualBox->layout()->setContentsMargins(11, 11, 11, 11);
00148 gridLayout1 = new QGridLayout();
00149 QBoxLayout *boxlayout2 = qobject_cast<QBoxLayout *>(manualBox->layout());
00150 if (boxlayout2)
00151 boxlayout2->addLayout(gridLayout1);
00152 gridLayout1->setAlignment(Qt::AlignTop);
00153 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00154 num360stepsLine = new QLineEdit(manualBox);
00155 num360stepsLine->setObjectName(QString::fromUtf8("num360stepsLine"));
00156 QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00157 sizePolicy.setHorizontalStretch(0);
00158 sizePolicy.setVerticalStretch(0);
00159 sizePolicy.setHeightForWidth(num360stepsLine->sizePolicy().hasHeightForWidth());
00160 num360stepsLine->setSizePolicy(sizePolicy);
00161 num360stepsLine->setMaximumSize(QSize(30, 27));
00162
00163 gridLayout1->addWidget(num360stepsLine, 0, 1, 1, 1);
00164
00165 hboxLayout1 = new QHBoxLayout();
00166 hboxLayout1->setSpacing(6);
00167 hboxLayout1->setContentsMargins(0, 0, 0, 0);
00168 hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00169 filenameLineEdit = new QLineEdit(manualBox);
00170 filenameLineEdit->setObjectName(QString::fromUtf8("filenameLineEdit"));
00171
00172 hboxLayout1->addWidget(filenameLineEdit);
00173
00174 BrowseButton = new QPushButton(manualBox);
00175 BrowseButton->setObjectName(QString::fromUtf8("BrowseButton"));
00176
00177 hboxLayout1->addWidget(BrowseButton);
00178
00179
00180 gridLayout1->addLayout(hboxLayout1, 5, 0, 1, 2);
00181
00182 numGraspRotsLine = new QLineEdit(manualBox);
00183 numGraspRotsLine->setObjectName(QString::fromUtf8("numGraspRotsLine"));
00184 sizePolicy.setHeightForWidth(numGraspRotsLine->sizePolicy().hasHeightForWidth());
00185 numGraspRotsLine->setSizePolicy(sizePolicy);
00186 numGraspRotsLine->setMaximumSize(QSize(30, 27));
00187
00188 gridLayout1->addWidget(numGraspRotsLine, 3, 1, 1, 1);
00189
00190 num180graspsLine = new QLineEdit(manualBox);
00191 num180graspsLine->setObjectName(QString::fromUtf8("num180graspsLine"));
00192 sizePolicy.setHeightForWidth(num180graspsLine->sizePolicy().hasHeightForWidth());
00193 num180graspsLine->setSizePolicy(sizePolicy);
00194 num180graspsLine->setMaximumSize(QSize(30, 27));
00195
00196 gridLayout1->addWidget(num180graspsLine, 2, 1, 1, 1);
00197
00198 numParPlanesLine = new QLineEdit(manualBox);
00199 numParPlanesLine->setObjectName(QString::fromUtf8("numParPlanesLine"));
00200 sizePolicy.setHeightForWidth(numParPlanesLine->sizePolicy().hasHeightForWidth());
00201 numParPlanesLine->setSizePolicy(sizePolicy);
00202 numParPlanesLine->setMaximumSize(QSize(30, 27));
00203
00204 gridLayout1->addWidget(numParPlanesLine, 1, 1, 1, 1);
00205
00206 TextLabel2 = new QLabel(manualBox);
00207 TextLabel2->setObjectName(QString::fromUtf8("TextLabel2"));
00208 TextLabel2->setWordWrap(false);
00209
00210 gridLayout1->addWidget(TextLabel2, 0, 0, 1, 1);
00211
00212 TextLabel3 = new QLabel(manualBox);
00213 TextLabel3->setObjectName(QString::fromUtf8("TextLabel3"));
00214 TextLabel3->setWordWrap(false);
00215
00216 gridLayout1->addWidget(TextLabel3, 1, 0, 1, 1);
00217
00218 TextLabel4 = new QLabel(manualBox);
00219 TextLabel4->setObjectName(QString::fromUtf8("TextLabel4"));
00220 TextLabel4->setWordWrap(false);
00221
00222 gridLayout1->addWidget(TextLabel4, 2, 0, 1, 1);
00223
00224 TextLabel5 = new QLabel(manualBox);
00225 TextLabel5->setObjectName(QString::fromUtf8("TextLabel5"));
00226 TextLabel5->setWordWrap(false);
00227
00228 gridLayout1->addWidget(TextLabel5, 3, 0, 1, 1);
00229
00230 TextLabel1_2 = new QLabel(manualBox);
00231 TextLabel1_2->setObjectName(QString::fromUtf8("TextLabel1_2"));
00232 TextLabel1_2->setAlignment(Qt::AlignCenter);
00233 TextLabel1_2->setWordWrap(false);
00234
00235 gridLayout1->addWidget(TextLabel1_2, 4, 0, 1, 2);
00236
00237
00238 vboxLayout1->addWidget(manualBox);
00239
00240
00241 hboxLayout->addWidget(plannerBox);
00242
00243 testerBox = new Q3GroupBox(PlannerDlgUI);
00244 testerBox->setObjectName(QString::fromUtf8("testerBox"));
00245 testerBox->setOrientation(Qt::Vertical);
00246 testerBox->setColumnLayout(0, Qt::Vertical);
00247 testerBox->layout()->setSpacing(6);
00248 testerBox->layout()->setContentsMargins(11, 11, 11, 11);
00249 gridLayout2 = new QGridLayout();
00250 QBoxLayout *boxlayout3 = qobject_cast<QBoxLayout *>(testerBox->layout());
00251 if (boxlayout3)
00252 boxlayout3->addLayout(gridLayout2);
00253 gridLayout2->setAlignment(Qt::AlignTop);
00254 gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
00255 TextLabel6 = new QLabel(testerBox);
00256 TextLabel6->setObjectName(QString::fromUtf8("TextLabel6"));
00257 TextLabel6->setWordWrap(false);
00258
00259 gridLayout2->addWidget(TextLabel6, 0, 0, 1, 2);
00260
00261 backstepSizeLine = new QLineEdit(testerBox);
00262 backstepSizeLine->setObjectName(QString::fromUtf8("backstepSizeLine"));
00263 backstepSizeLine->setMaximumSize(QSize(30, 27));
00264
00265 gridLayout2->addWidget(backstepSizeLine, 1, 2, 1, 1);
00266
00267 visualizeBox = new QCheckBox(testerBox);
00268 visualizeBox->setObjectName(QString::fromUtf8("visualizeBox"));
00269
00270 gridLayout2->addWidget(visualizeBox, 4, 0, 1, 2);
00271
00272 TextLabel9 = new QLabel(testerBox);
00273 TextLabel9->setObjectName(QString::fromUtf8("TextLabel9"));
00274 TextLabel9->setWordWrap(false);
00275
00276 gridLayout2->addWidget(TextLabel9, 2, 0, 1, 1);
00277
00278 maxNumStepsLine = new QLineEdit(testerBox);
00279 maxNumStepsLine->setObjectName(QString::fromUtf8("maxNumStepsLine"));
00280 maxNumStepsLine->setMaximumSize(QSize(30, 27));
00281
00282 gridLayout2->addWidget(maxNumStepsLine, 0, 2, 1, 1);
00283
00284 qmComboBox = new QComboBox(testerBox);
00285 qmComboBox->setObjectName(QString::fromUtf8("qmComboBox"));
00286
00287 gridLayout2->addWidget(qmComboBox, 3, 0, 1, 1);
00288
00289 TextLabel7 = new QLabel(testerBox);
00290 TextLabel7->setObjectName(QString::fromUtf8("TextLabel7"));
00291 TextLabel7->setWordWrap(false);
00292
00293 gridLayout2->addWidget(TextLabel7, 1, 0, 1, 2);
00294
00295 hboxLayout2 = new QHBoxLayout();
00296 hboxLayout2->setSpacing(6);
00297 hboxLayout2->setContentsMargins(11, 11, 11, 11);
00298 hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
00299 savefileLineEdit = new QLineEdit(testerBox);
00300 savefileLineEdit->setObjectName(QString::fromUtf8("savefileLineEdit"));
00301
00302 hboxLayout2->addWidget(savefileLineEdit);
00303
00304 BrowseSaveButton6 = new QPushButton(testerBox);
00305 BrowseSaveButton6->setObjectName(QString::fromUtf8("BrowseSaveButton6"));
00306 BrowseSaveButton6->setAutoDefault(false);
00307
00308 hboxLayout2->addWidget(BrowseSaveButton6);
00309
00310
00311 gridLayout2->addLayout(hboxLayout2, 7, 0, 1, 3);
00312
00313 spacerItem = new QSpacerItem(20, 120, QSizePolicy::Minimum, QSizePolicy::Expanding);
00314
00315 gridLayout2->addItem(spacerItem, 5, 0, 1, 1);
00316
00317 textLabel1 = new QLabel(testerBox);
00318 textLabel1->setObjectName(QString::fromUtf8("textLabel1"));
00319 textLabel1->setWordWrap(false);
00320
00321 gridLayout2->addWidget(textLabel1, 6, 0, 1, 3);
00322
00323 newQMButton = new QPushButton(testerBox);
00324 newQMButton->setObjectName(QString::fromUtf8("newQMButton"));
00325 newQMButton->setAutoDefault(false);
00326
00327 gridLayout2->addWidget(newQMButton, 3, 1, 1, 2);
00328
00329
00330 hboxLayout->addWidget(testerBox);
00331
00332
00333 vboxLayout->addLayout(hboxLayout);
00334
00335 hboxLayout3 = new QHBoxLayout();
00336 hboxLayout3->setSpacing(6);
00337 hboxLayout3->setContentsMargins(11, 11, 11, 11);
00338 hboxLayout3->setObjectName(QString::fromUtf8("hboxLayout3"));
00339 spacerItem1 = new QSpacerItem(170, 16, QSizePolicy::Expanding, QSizePolicy::Minimum);
00340
00341 hboxLayout3->addItem(spacerItem1);
00342
00343 GenerateButton = new QPushButton(PlannerDlgUI);
00344 GenerateButton->setObjectName(QString::fromUtf8("GenerateButton"));
00345
00346 hboxLayout3->addWidget(GenerateButton);
00347
00348 TestButton = new QPushButton(PlannerDlgUI);
00349 TestButton->setObjectName(QString::fromUtf8("TestButton"));
00350 TestButton->setEnabled(false);
00351 TestButton->setAutoDefault(false);
00352
00353 hboxLayout3->addWidget(TestButton);
00354
00355 ShowButton = new QPushButton(PlannerDlgUI);
00356 ShowButton->setObjectName(QString::fromUtf8("ShowButton"));
00357 ShowButton->setEnabled(false);
00358
00359 hboxLayout3->addWidget(ShowButton);
00360
00361 CloseButton = new QPushButton(PlannerDlgUI);
00362 CloseButton->setObjectName(QString::fromUtf8("CloseButton"));
00363
00364 hboxLayout3->addWidget(CloseButton);
00365
00366
00367 vboxLayout->addLayout(hboxLayout3);
00368
00369 QWidget::setTabOrder(automaticCheckBox, densityFactorLine);
00370 QWidget::setTabOrder(densityFactorLine, num360stepsLine);
00371 QWidget::setTabOrder(num360stepsLine, numParPlanesLine);
00372 QWidget::setTabOrder(numParPlanesLine, num180graspsLine);
00373 QWidget::setTabOrder(num180graspsLine, numGraspRotsLine);
00374 QWidget::setTabOrder(numGraspRotsLine, maxNumStepsLine);
00375 QWidget::setTabOrder(maxNumStepsLine, backstepSizeLine);
00376 QWidget::setTabOrder(backstepSizeLine, qmComboBox);
00377 QWidget::setTabOrder(qmComboBox, newQMButton);
00378 QWidget::setTabOrder(newQMButton, visualizeBox);
00379 QWidget::setTabOrder(visualizeBox, GenerateButton);
00380 QWidget::setTabOrder(GenerateButton, ShowButton);
00381 QWidget::setTabOrder(ShowButton, CloseButton);
00382
00383 retranslateUi(PlannerDlgUI);
00384 QObject::connect(CloseButton, SIGNAL(clicked()), PlannerDlgUI, SLOT(close()));
00385 QObject::connect(GenerateButton, SIGNAL(clicked()), PlannerDlgUI, SLOT(generateGrasps()));
00386 QObject::connect(ShowButton, SIGNAL(clicked()), PlannerDlgUI, SLOT(showGrasp()));
00387 QObject::connect(newQMButton, SIGNAL(clicked()), PlannerDlgUI, SLOT(newQM()));
00388 QObject::connect(automaticCheckBox, SIGNAL(toggled(bool)), manualBox, SLOT(setDisabled(bool)));
00389 QObject::connect(automaticCheckBox, SIGNAL(toggled(bool)), automaticBox, SLOT(setEnabled(bool)));
00390 QObject::connect(BrowseButton, SIGNAL(clicked()), PlannerDlgUI, SLOT(chooseFile()));
00391 QObject::connect(BrowseSaveButton6, SIGNAL(clicked()), PlannerDlgUI, SLOT(chooseSaveFile()));
00392 QObject::connect(TestButton, SIGNAL(clicked()), PlannerDlgUI, SLOT(testGrasps()));
00393
00394 QMetaObject::connectSlotsByName(PlannerDlgUI);
00395 }
00396
00397 void retranslateUi(QDialog *PlannerDlgUI)
00398 {
00399 PlannerDlgUI->setWindowTitle(QApplication::translate("PlannerDlgUI", "Grasp Planner", 0, QApplication::UnicodeUTF8));
00400 plannerBox->setTitle(QApplication::translate("PlannerDlgUI", "Generator", 0, QApplication::UnicodeUTF8));
00401 automaticCheckBox->setText(QApplication::translate("PlannerDlgUI", "Automatic Sampling", 0, QApplication::UnicodeUTF8));
00402 automaticBox->setTitle(QApplication::translate("PlannerDlgUI", "Automatic", 0, QApplication::UnicodeUTF8));
00403 TextLabel1->setText(QApplication::translate("PlannerDlgUI", "Sampling density factor", 0, QApplication::UnicodeUTF8));
00404 manualBox->setTitle(QApplication::translate("PlannerDlgUI", "Manual", 0, QApplication::UnicodeUTF8));
00405 BrowseButton->setText(QApplication::translate("PlannerDlgUI", "Browse...", 0, QApplication::UnicodeUTF8));
00406 TextLabel2->setText(QApplication::translate("PlannerDlgUI", "360 Deg steps (Even)", 0, QApplication::UnicodeUTF8));
00407 TextLabel3->setText(QApplication::translate("PlannerDlgUI", "Parallel planes", 0, QApplication::UnicodeUTF8));
00408 TextLabel4->setText(QApplication::translate("PlannerDlgUI", "180 Deg grasps", 0, QApplication::UnicodeUTF8));
00409 TextLabel5->setText(QApplication::translate("PlannerDlgUI", "Grasp rotations", 0, QApplication::UnicodeUTF8));
00410 TextLabel1_2->setText(QApplication::translate("PlannerDlgUI", "or use a file", 0, QApplication::UnicodeUTF8));
00411 testerBox->setTitle(QApplication::translate("PlannerDlgUI", "Tester", 0, QApplication::UnicodeUTF8));
00412 TextLabel6->setText(QApplication::translate("PlannerDlgUI", "Max # of backsteps", 0, QApplication::UnicodeUTF8));
00413 visualizeBox->setText(QApplication::translate("PlannerDlgUI", "Visualize process", 0, QApplication::UnicodeUTF8));
00414 TextLabel9->setText(QApplication::translate("PlannerDlgUI", "Quality Measure", 0, QApplication::UnicodeUTF8));
00415 qmComboBox->clear();
00416 qmComboBox->insertItems(0, QStringList()
00417 << QApplication::translate("PlannerDlgUI", "None", 0, QApplication::UnicodeUTF8)
00418 );
00419 TextLabel7->setText(QApplication::translate("PlannerDlgUI", "Backstep size (mm)", 0, QApplication::UnicodeUTF8));
00420 BrowseSaveButton6->setText(QApplication::translate("PlannerDlgUI", "Browse...", 0, QApplication::UnicodeUTF8));
00421 textLabel1->setText(QApplication::translate("PlannerDlgUI", "Optional: save results to file:", 0, QApplication::UnicodeUTF8));
00422 newQMButton->setText(QApplication::translate("PlannerDlgUI", "New...", 0, QApplication::UnicodeUTF8));
00423 GenerateButton->setText(QApplication::translate("PlannerDlgUI", "Generate", 0, QApplication::UnicodeUTF8));
00424 TestButton->setText(QApplication::translate("PlannerDlgUI", "Test", 0, QApplication::UnicodeUTF8));
00425 ShowButton->setText(QApplication::translate("PlannerDlgUI", "Show", 0, QApplication::UnicodeUTF8));
00426 CloseButton->setText(QApplication::translate("PlannerDlgUI", "Close", 0, QApplication::UnicodeUTF8));
00427 }
00428
00429 };
00430
00431 namespace Ui {
00432 class PlannerDlgUI: public Ui_PlannerDlgUI {};
00433 }
00434
00435 QT_END_NAMESPACE
00436
00437 #endif // UI_PLANNERDLG_H