mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0023459: Update QT samples
Removing Qt3Support layer of Qt 4 Changed all files for Qt4 and added file VoxelDemo.pro Removed 'static' before the declaration of handling FSD_File.
This commit is contained in:
@@ -28,61 +28,61 @@ void ApplicationWindow::createTranslatePopups()
|
||||
QAction* a;
|
||||
a = new QAction( QObject::tr("MNU_IMPORT_BREP"), this );
|
||||
a->setStatusTip( QObject::tr("TBR_IMPORT_BREP") );
|
||||
connect( a, SIGNAL( activated() ), this, SLOT( onImport() ) );
|
||||
connect( a, SIGNAL( triggered() ), this, SLOT( onImport() ) );
|
||||
myCasCadeTranslateActions.insert( FileImportBREPId, a );
|
||||
myImportPopup->addAction( a );
|
||||
|
||||
a = new QAction( QObject::tr("MNU_EXPORT_BREP"), this );
|
||||
a->setStatusTip( QObject::tr("TBR_EXPORT_BREP") );
|
||||
connect( a, SIGNAL( activated() ), this, SLOT( onExport() ) );
|
||||
connect( a, SIGNAL( triggered() ), this, SLOT( onExport() ) );
|
||||
myCasCadeTranslateActions.insert( FileExportBREPId, a );
|
||||
myExportPopup->addAction( a );
|
||||
|
||||
a = new QAction( QObject::tr("MNU_IMPORT_CSFDB"), this );
|
||||
a->setStatusTip( QObject::tr("TBR_IMPORT_CSFDB") );
|
||||
connect( a, SIGNAL( activated() ), this, SLOT( onImport() ) );
|
||||
connect( a, SIGNAL( triggered() ), this, SLOT( onImport() ) );
|
||||
myCasCadeTranslateActions.insert( FileImportCSFDBId, a );
|
||||
myImportPopup->addAction( a );
|
||||
|
||||
a = new QAction( QObject::tr("MNU_EXPORT_CSFDB"), this );
|
||||
a->setStatusTip( QObject::tr("TBR_EXPORT_CSFDB") );
|
||||
connect( a, SIGNAL( activated() ), this, SLOT( onExport() ) );
|
||||
connect( a, SIGNAL( triggered() ), this, SLOT( onExport() ) );
|
||||
myCasCadeTranslateActions.insert( FileExportCSFDBId, a );
|
||||
myExportPopup->addAction( a );
|
||||
|
||||
a = new QAction( QObject::tr("MNU_IMPORT_IGES"), this );
|
||||
a->setStatusTip( QObject::tr("TBR_IMPORT_IGES") );
|
||||
connect( a, SIGNAL( activated() ), this, SLOT( onImport() ) );
|
||||
connect( a, SIGNAL( triggered() ), this, SLOT( onImport() ) );
|
||||
myCasCadeTranslateActions.insert( FileImportIGESId, a );
|
||||
myImportPopup->addAction( a );
|
||||
|
||||
a = new QAction( QObject::tr("MNU_EXPORT_IGES"), this );
|
||||
a->setStatusTip( QObject::tr("TBR_EXPORT_IGES") );
|
||||
connect( a, SIGNAL( activated() ), this, SLOT( onExport() ) );
|
||||
connect( a, SIGNAL( triggered() ), this, SLOT( onExport() ) );
|
||||
myCasCadeTranslateActions.insert( FileExportIGESId, a );
|
||||
myExportPopup->addAction( a );
|
||||
|
||||
a = new QAction( QObject::tr("MNU_IMPORT_STEP"), this );
|
||||
a->setStatusTip( QObject::tr("TBR_IMPORT_STEP") );
|
||||
connect( a, SIGNAL( activated() ), this, SLOT( onImport() ) );
|
||||
connect( a, SIGNAL( triggered() ), this, SLOT( onImport() ) );
|
||||
myCasCadeTranslateActions.insert( FileImportSTEPId, a );
|
||||
myImportPopup->addAction( a );
|
||||
|
||||
a = new QAction( QObject::tr("MNU_EXPORT_STEP"), this );
|
||||
a->setStatusTip( QObject::tr("TBR_EXPORT_STEP") );
|
||||
connect( a, SIGNAL( activated() ), this, SLOT( onExport() ) );
|
||||
connect( a, SIGNAL( triggered() ), this, SLOT( onExport() ) );
|
||||
myCasCadeTranslateActions.insert( FileExportSTEPId, a );
|
||||
myExportPopup->addAction( a );
|
||||
|
||||
a = new QAction( QObject::tr("MNU_EXPORT_STL"), this );
|
||||
a->setStatusTip( QObject::tr("TBR_EXPORT_STL") );
|
||||
connect( a, SIGNAL( activated() ), this, SLOT( onExport() ) );
|
||||
connect( a, SIGNAL( triggered() ), this, SLOT( onExport() ) );
|
||||
myCasCadeTranslateActions.insert( FileExportSTLId, a );
|
||||
myExportPopup->addAction( a );
|
||||
|
||||
a = new QAction( QObject::tr("MNU_EXPORT_VRML"), this );
|
||||
a->setStatusTip( QObject::tr("TBR_EXPORT_VRML") );
|
||||
connect( a, SIGNAL( activated() ), this, SLOT( onExport() ) );
|
||||
connect( a, SIGNAL( triggered() ), this, SLOT( onExport() ) );
|
||||
myCasCadeTranslateActions.insert( FileExportVRMLId, a );
|
||||
myExportPopup->addAction( a );
|
||||
|
||||
@@ -90,7 +90,7 @@ void ApplicationWindow::createTranslatePopups()
|
||||
|
||||
a = new QAction( QObject::tr("MNU_EXPORT_IMAGE"), this );
|
||||
a->setStatusTip( QObject::tr("TBR_EXPORT_IMAGE") );
|
||||
connect( a, SIGNAL( activated() ), this, SLOT( onExportImage() ) );
|
||||
connect( a, SIGNAL( triggered() ), this, SLOT( onExportImage() ) );
|
||||
myExportPopup->addAction( a );
|
||||
}
|
||||
|
||||
|
@@ -481,7 +481,7 @@ Handle(TopTools_HSequenceOfShape) Translate::importCSFDB( const QString& file )
|
||||
if ( FSD_File::IsGoodFileType( (Standard_CString)file.toLatin1().constData() ) != Storage_VSOk )
|
||||
return aSequence;
|
||||
|
||||
static FSD_File fileDriver;
|
||||
FSD_File fileDriver;
|
||||
TCollection_AsciiString aName( (Standard_CString)file.toLatin1().constData() );
|
||||
if ( fileDriver.Open( aName, Storage_VSRead ) != Storage_VSOk )
|
||||
return aSequence;
|
||||
@@ -591,7 +591,7 @@ bool Translate::exportCSFDB( const QString& file, const Handle(TopTools_HSequenc
|
||||
if ( type < 0 )
|
||||
return false;
|
||||
|
||||
static FSD_File fileDriver;
|
||||
FSD_File fileDriver;
|
||||
|
||||
Handle(ShapeSchema) schema = new ShapeSchema();
|
||||
Handle(Storage_Data) data = new Storage_Data();
|
||||
|
Reference in New Issue
Block a user