From 20dbf771282f839a1bf3d69676f5b5b609c905f9 Mon Sep 17 00:00:00 2001 From: asv Date: Thu, 23 Jun 2005 11:20:20 +0000 Subject: [PATCH] createApplication() made with 2 parameters. --- src/CAF/CAF_Application.cxx | 2 +- src/CAM/CAM_Application.cxx | 2 +- src/STD/STD_Application.cxx | 2 +- src/SalomeApp/SalomeApp_Application.cxx | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/CAF/CAF_Application.cxx b/src/CAF/CAF_Application.cxx index 3a069fdcb..61bf70952 100755 --- a/src/CAF/CAF_Application.cxx +++ b/src/CAF/CAF_Application.cxx @@ -17,7 +17,7 @@ #include #include -extern "C" CAF_EXPORT SUIT_Application* createApplication() +extern "C" CAF_EXPORT SUIT_Application* createApplication( int, char** ) { return new CAF_Application(); } diff --git a/src/CAM/CAM_Application.cxx b/src/CAM/CAM_Application.cxx index f8ca14f3b..2be468b03 100755 --- a/src/CAM/CAM_Application.cxx +++ b/src/CAM/CAM_Application.cxx @@ -19,7 +19,7 @@ #include #endif -extern "C" CAM_EXPORT SUIT_Application* createApplication() +extern "C" CAM_EXPORT SUIT_Application* createApplication( int, char** ) { return new CAM_Application(); } diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index 072ef0738..1f5cb1331 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -22,7 +22,7 @@ #include #include -extern "C" STD_EXPORT SUIT_Application* createApplication() +extern "C" STD_EXPORT SUIT_Application* createApplication( int, char** ) { return new STD_Application(); } diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 1432fffd6..2ca8b4ceb 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -107,7 +107,7 @@ static const char* imageEmptyIcon[] = { "....................", "...................."}; -extern "C" SALOMEAPP_EXPORT SUIT_Application* createApplication() +extern "C" SALOMEAPP_EXPORT SUIT_Application* createApplication( int, char** ) { return new SalomeApp_Application(); } @@ -920,7 +920,7 @@ SUIT_ViewManager* SalomeApp_Application::createViewManager( const QString& vmTyp vm->isos( u, v ); u = resMgr->integerValue( "OCCViewer", "iso_number_u", u ); v = resMgr->integerValue( "OCCViewer", "iso_number_v", v ); - // vm->setIsos( u, v ); + vm->setIsos( u, v ); viewMgr->setViewModel( vm );// custom view model, which extends SALOME_View interface new SalomeApp_OCCSelector( (OCCViewer_Viewer*)viewMgr->getViewModel(), mySelMgr ); } @@ -1325,7 +1325,7 @@ void SalomeApp_Application::preferencesChanged( const QString& sec, const QStrin vtkVM->Repaint(); } } - /* + if ( sec == QString( "OCCViewer" ) && ( param == QString( "iso_number_u" ) || param == QString( "iso_number_v" ) ) ) { QPtrList lst; @@ -1335,7 +1335,7 @@ void SalomeApp_Application::preferencesChanged( const QString& sec, const QStrin for ( QPtrListIterator it( lst ); it.current(); ++it ) ((OCCViewer_Viewer*)it.current())->setIsos( u, v ); } - */ + } void SalomeApp_Application::afterCloseDoc() -- 2.39.2