Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

main.cpp

Go to the documentation of this file.
00001 /*
00002  Modular Psi - A graph tracker of the Parapsychologcal scientific development
00003  Copyright (C) 2005 Leonardo Stern
00004 
00005  This program is free software; you can redistribute it and/or modify it under
00006  the terms of the Common Public License Version 1.0 or (at your option) any later version.
00007 
00008  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
00009  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00010  See the Common Public License for more details.
00011 
00012  You should have received a copy of the Common Public License along with this program;
00013 */
00014 
00015 #include <qapplication.h>
00016 #include <qscrollview.h>
00017 #include <qtextcodec.h>
00018 #include <qtranslator.h>
00019 #include "gui\principal.h"
00020 
00021 int main( int argc, char ** argv )
00022 {
00023     QApplication a( argc, argv );
00024     Principal p;
00025     // set language
00026     p.settings.setPath( "Inter Psi", "Modular Psi" );
00027     p.setLanguage(p.settings.readEntry( "language", QTextCodec::locale()));
00028     QTranslator translator( 0 );
00029     translator.load( QString("modularpsi_") + p.language() +  "." );
00030     a.installTranslator( &translator );
00031 
00032     
00033     p.show();
00034     a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
00035     return a.exec();
00036 }
Untitled Document Pesquisa Psi SourceForge.net Logo