From 16c913d3b2f0335bdd9f5ecee9472d5825213735 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 24 Jun 2005 13:38:35 +0000 Subject: [PATCH] *** empty log message *** --- src/GLViewer/resources/GLViewer_msg_en.po | 13 +++++-------- src/OBJECT/SALOME_GLOwner.h | 3 ++- src/SalomeApp/SalomeApp_GLSelector.cxx | 17 +++++++---------- 3 files changed, 14 insertions(+), 19 deletions(-) diff --git a/src/GLViewer/resources/GLViewer_msg_en.po b/src/GLViewer/resources/GLViewer_msg_en.po index 3b9e942be..32d5f88cb 100644 --- a/src/GLViewer/resources/GLViewer_msg_en.po +++ b/src/GLViewer/resources/GLViewer_msg_en.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: example-Qt-message-extraction\n" "POT-Creation-Date: 1999-02-23 15:38+0200\n" -"PO-Revision-Date: 2005-05-05 10:19+0400\n" +"PO-Revision-Date: 1999-02-23 15:38+0200\n" "Last-Translator: \n" "Content-Type: text/plain; charset=iso-8859-1\n" @@ -60,7 +60,7 @@ msgid "DSC_DUMP_VIEW" msgstr "Saves the active view in the image file" msgid "MNU_DUMP_VIEW" -msgstr "Dump view..." +msgstr "Dump" msgid "GL_IMAGE_FILES" msgstr "Images Files (*.bmp *.png)" @@ -77,17 +77,14 @@ msgstr "Error" msgid "BUT_OK" msgstr "Ok" -msgid "GLViewer_Viewer2d::CHANGE_BGCOLOR" +msgid "CHANGE_BGCOLOR" msgstr "Change background..." msgid "GLViewer_ViewFrame::DUMP_VIEW_SAVE_FILE_DLG_CAPTION" -msgstr "Dump View" +msgstr "Save Dump View in file" msgid "GLViewer_ViewFrame::DUMP_VIEW_ERROR_DLG_CAPTION" msgstr "Error" msgid "GLViewer_ViewFrame::DUMP_VIEW_ERROR_DLG_TEXT" -msgstr "Dump view operation failed." - -msgid "GLViewer_ViewFrame::DUMP_VIEW_ERROR_UNSUPPORTED_FORMAT" -msgstr "Can't dump view. Unsupported image format: %1." +msgstr "Can't save Dump View in file" diff --git a/src/OBJECT/SALOME_GLOwner.h b/src/OBJECT/SALOME_GLOwner.h index 824140c6d..e541f23f0 100644 --- a/src/OBJECT/SALOME_GLOwner.h +++ b/src/OBJECT/SALOME_GLOwner.h @@ -2,9 +2,10 @@ #define SALOME_GLOWNER_H #include +//#include #include -class Standard_EXPORT SALOME_GLOwner : public GLViewer_Owner +class GLVIEWER_API SALOME_GLOwner : public GLViewer_Owner { public: SALOME_GLOwner( const char* ); diff --git a/src/SalomeApp/SalomeApp_GLSelector.cxx b/src/SalomeApp/SalomeApp_GLSelector.cxx index 4b1351e18..33a2e3ba9 100644 --- a/src/SalomeApp/SalomeApp_GLSelector.cxx +++ b/src/SalomeApp/SalomeApp_GLSelector.cxx @@ -59,18 +59,15 @@ void SalomeApp_GLSelector::setSelection( const SUIT_DataOwnerPtrList& aList ) return; QMap aDisplayed; - const ObjectMap& displayed = cont->getObjects(); - for ( ObjectMap::const_iterator it = displayed.begin(); it != displayed.end(); ++it ) + const ObjList& displayed = cont->getObjects(); + for ( ObjList::const_iterator it = displayed.begin(); it != displayed.end(); ++it ) { - if ( it.key()->getVisible() ) + GLViewer_Object* obj = *it; + if ( obj && obj->getVisible() ) { - GLViewer_Object* obj = it.key(); - if ( obj ) - { - SALOME_GLOwner* owner = dynamic_cast< SALOME_GLOwner* >( obj->owner() ); - if ( owner ) - aDisplayed.insert( owner->entry(), obj ); - } + SALOME_GLOwner* owner = dynamic_cast< SALOME_GLOwner* >( obj->owner() ); + if ( owner ) + aDisplayed.insert( owner->entry(), obj ); } } -- 2.39.2