00001 /************************************************************************************ 00002 ** 00003 ** This file is part of the QtOPENCASCADE Toolkit. 00004 ** 00005 ** Copyright (C) 2006, 2007, 2008 QtOCC Team Members 00006 ** Peter Dolbey, Marc Britten, Stephane Routelous 00007 ** Stefan Boeykens, Pawel Dobrolowski, Walter Steffe 00008 ** Álvaro Castro Castilla, Dirk Burski, Fotis Sioutis 00009 ** 00010 ** This library is free software; you can redistribute it and/or 00011 ** modify it under the terms of the GNU Lesser General Public 00012 ** License as published by the Free Software Foundation; either 00013 ** version 2.1 of the License, or (at your option) any later version. 00014 ** 00015 ** This library is distributed in the hope that it will be useful, 00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 ** Lesser General Public License for more details. 00019 ** 00020 ** You should have received a copy of the GNU Lesser General Public 00021 ** License along with this library; if not, write to the Free Software 00022 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00023 ** 00024 ***********************************************************************************/ 00025 /*! 00026 \file main.cpp 00027 \brief Top leve application 00028 */ 00029 00030 #include <iostream> 00031 #include <fstream> 00032 using namespace std; 00033 #include <QtGui/QtGui> 00034 #include <QtGui/QPlastiqueStyle> 00035 00036 #include "qoccapplication.h" 00037 #include "qoccmainwindow.h" 00038 00039 #if defined(Q_WS_WIN) 00040 #include "qtdotnetstyle.h" 00041 #endif 00042 00043 int main(int argc, char *argv[]) 00044 { 00045 00046 QoccApplication app( argc, argv ); 00047 #if defined(Q_WS_WIN) 00048 QtDotNetStyle* style = new QtDotNetStyle(); 00049 app.setStyle(style); 00050 #endif 00051 QoccMainWindow *window = new QoccMainWindow(); 00052 00053 window->showMaximized(); 00054 00055 int retval = app.exec(); 00056 return retval; 00057 }