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 // Author(s): Andrew T. Miller 00021 // 00022 // $Id: graspitApp.h,v 1.4 2010/01/13 23:08:10 cmatei Exp $ 00023 // 00024 //###################################################################### 00025 00030 #ifndef _GRASPITAPP_H_ 00031 #include <qapplication.h> 00032 //Added by qt3to4: 00033 #include <QLabel> 00034 00035 class QLabel; 00036 00038 00044 class GraspItApp : public QApplication 00045 { 00046 private: 00047 bool splash_enabled_; 00048 public: 00050 GraspItApp(int &argc, char **argv) : QApplication(argc,argv), splash_enabled_(true) 00051 { 00052 //for db_dispatch jobs, splash is disabled 00053 if (argc > 1 && !strcmp(argv[1],"db_dispatch")) { 00054 splash_enabled_ = false; 00055 } 00056 } 00057 00059 const char *className() const { return "GraspItApp"; } 00060 00062 bool splashEnabled() const {return splash_enabled_;} 00063 00064 static void showSplash(); 00065 static void closeSplash(); 00066 00067 }; 00068 #define _GRASPITAPP_H_ 00069 #endif