00001 //###################################################################### 00002 // 00003 // GraspIt! 00004 // Copyright (C) 2002-2009 Columbia University in the City of New York. 00005 // All rights reserved. 00006 // 00007 // GraspIt! is free software: you can redistribute it and/or modify 00008 // it under the terms of the GNU General Public License as published by 00009 // the Free Software Foundation, either version 3 of the License, or 00010 // (at your option) any later version. 00011 // 00012 // GraspIt! is distributed in the hope that it will be useful, 00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 // GNU General Public License for more details. 00016 // 00017 // You should have received a copy of the GNU General Public License 00018 // along with GraspIt!. If not, see <http://www.gnu.org/licenses/>. 00019 // 00020 // Authors: Steffen Knoop 00021 // Andrew T. Miller 00022 // 00023 // $Id: 00024 // 00025 //###################################################################### 00026 00031 //Added by qt3to4: 00032 #include <QTextStream> 00033 #include <QDialog> 00034 #include <QFile> 00035 #include "ui_plannerdlg.h" 00036 00037 class grasp_manager; 00038 00069 class PlannerDlg : public QDialog, public Ui::PlannerDlgUI 00070 { 00071 Q_OBJECT 00072 private: 00073 QTextStream stream; 00074 QFile masterFile; 00075 grasp_manager *myGraspManager; 00076 00077 void init(); 00078 void destroy() ; 00079 public: 00080 PlannerDlg(QWidget *parent = 0) : QDialog(parent) { 00081 setupUi(this); 00082 init(); 00083 } 00084 ~PlannerDlg(){destroy();} 00085 public slots: 00086 void generateGrasps(); 00087 void showGrasp(); 00088 void newQM(); 00089 void chooseFile(); 00090 void chooseSaveFile(); 00091 void testGrasps(); 00092 void enableShowButton(); 00093 };