2003-10-15 21:32:36 +00:00
|
|
|
/***************************************************************************
|
|
|
|
main.cpp - description
|
|
|
|
-------------------
|
|
|
|
begin : Thu Aug 28 18:17:41 CEST 2003
|
|
|
|
copyright : (C) 2003 by Michael Margraf
|
|
|
|
email : margraf@mwt.ee.tu-berlin.de
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
/***************************************************************************
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#include <qapplication.h>
|
|
|
|
#include <qfont.h>
|
|
|
|
#include <qstring.h>
|
|
|
|
#include <qtextcodec.h>
|
|
|
|
#include <qtranslator.h>
|
|
|
|
|
|
|
|
#include "qucs.h"
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication a(argc, argv);
|
|
|
|
a.setFont(QFont("helvetica", 12));
|
|
|
|
QTranslator tor( 0 );
|
|
|
|
// set the location where your .qm files are in load() below as the last parameter instead of "."
|
|
|
|
// for development, use "/" to use the english original as
|
|
|
|
// .qm files are stored in the base project directory.
|
|
|
|
tor.load( QString("qucs.") + QTextCodec::locale(), "." );
|
|
|
|
a.installTranslator( &tor );
|
|
|
|
/* uncomment the following line, if you want a Windows 95 look*/
|
|
|
|
// a.setStyle(WindowsStyle);
|
|
|
|
|
|
|
|
QucsApp *qucs=new QucsApp();
|
|
|
|
a.setMainWidget(qucs);
|
|
|
|
|
|
|
|
qucs->show();
|
2003-10-28 11:44:24 +00:00
|
|
|
// a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
|
2003-10-15 21:32:36 +00:00
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
}
|
|
|
|
|
|
|
|
|