1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +03:00

Integration of OCCT 6.5.0 from SVN

This commit is contained in:
bugmaster
2011-03-16 07:30:28 +00:00
committed by bugmaster
parent 4903637061
commit 7fd59977df
16375 changed files with 3882564 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
#include "Application.h"
#include <QApplication>
#include <QTranslator>
#include <QPixmap>
#include <QLocale>
int main ( int argc, char* argv[] )
{
QApplication a( argc, argv );
QString resDir = ApplicationCommonWindow::getResourceDir();
QString resIEDir = ApplicationWindow::getIEResourceDir();
QTranslator strTrans( 0 );
Standard_Boolean isOK = strTrans.load( "Common-string", resDir );
if( isOK )
a.installTranslator( &strTrans );
QTranslator iconTrans( 0 );
isOK = iconTrans.load( "Common-icon", resDir );
if( isOK )
a.installTranslator( &iconTrans );
QTranslator strIETrans( 0 );
isOK = strIETrans.load( "Interface-string", resIEDir );
if( isOK )
a.installTranslator( &strIETrans );
QObject::connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
ApplicationWindow* mw = new ApplicationWindow();
mw->setWindowTitle( QObject::tr( "TIT_SAMPLE" ) );
mw->setWindowIcon( QPixmap( resDir + QString( "/" ) + QObject::tr( "ICON_SAMPLE" ) ) );
mw->show();
return a.exec();
}