From d3bdacbd2c4d43231cc413fa2eb8ce913da724a5 Mon Sep 17 00:00:00 2001 From: asl Date: Wed, 5 Oct 2005 06:23:50 +0000 Subject: [PATCH] SVTK package uses own resources --- src/SVTK/Makefile.in | 4 +- src/SVTK/SVTK_ViewManager.cxx | 4 +- src/SVTK/SVTK_ViewModel.cxx | 6 +- src/SVTK/SVTK_ViewModel.h | 2 +- src/SVTK/resources/SVTK_msg_en.po | 153 ++++++++++++++++++++++++++++++ 5 files changed, 161 insertions(+), 8 deletions(-) create mode 100755 src/SVTK/resources/SVTK_msg_en.po diff --git a/src/SVTK/Makefile.in b/src/SVTK/Makefile.in index e41cfb610..a39b7cb8d 100755 --- a/src/SVTK/Makefile.in +++ b/src/SVTK/Makefile.in @@ -6,7 +6,7 @@ top_srcdir=@top_srcdir@ top_builddir=../.. srcdir=@srcdir@ -VPATH=.:@srcdir@ +VPATH=.:@srcdir@:@srcdir@/resources @COMMENCE@ @@ -26,6 +26,8 @@ EXPORT_HEADERS= SVTK.h \ SVTK_Selector.h \ SVTK_Selection.h +PO_FILES = SVTK_msg_en.po + # Libraries targets LIB = libSVTK.la diff --git a/src/SVTK/SVTK_ViewManager.cxx b/src/SVTK/SVTK_ViewManager.cxx index 25fcbdfd6..e1fcd4823 100644 --- a/src/SVTK/SVTK_ViewManager.cxx +++ b/src/SVTK/SVTK_ViewManager.cxx @@ -1,8 +1,6 @@ #include "SVTK_ViewManager.h" #include "SVTK_ViewModel.h" -#include - int SVTK_ViewManager::_SVTKViewMgr_Id = 0; //*************************************************************** @@ -23,5 +21,5 @@ SVTK_ViewManager::~SVTK_ViewManager() void SVTK_ViewManager::setViewName(SUIT_ViewWindow* theView) { int aPos = myViews.find(theView); - theView->setCaption( VTKViewer_ViewManager::tr( "VTK_VIEW_TITLE" ).arg( myId ).arg( aPos + 1 ) ); + theView->setCaption( tr( "VTK_VIEW_TITLE" ).arg( myId ).arg( aPos + 1 ) ); } diff --git a/src/SVTK/SVTK_ViewModel.cxx b/src/SVTK/SVTK_ViewModel.cxx index b87a14746..624db780d 100644 --- a/src/SVTK/SVTK_ViewModel.cxx +++ b/src/SVTK/SVTK_ViewModel.cxx @@ -125,14 +125,14 @@ void SVTK_Viewer::setViewManager(SUIT_ViewManager* theViewManager) //========================================================== void SVTK_Viewer::contextMenuPopup( QPopupMenu* thePopup ) { - thePopup->insertItem( VTKViewer_Viewer::tr( "MEN_DUMP_VIEW" ), this, SLOT( onDumpView() ) ); - thePopup->insertItem( VTKViewer_Viewer::tr( "MEN_CHANGE_BACKGROUD" ), this, SLOT( onChangeBgColor() ) ); + thePopup->insertItem( tr( "MEN_DUMP_VIEW" ), this, SLOT( onDumpView() ) ); + thePopup->insertItem( tr( "MEN_CHANGE_BACKGROUD" ), this, SLOT( onChangeBgColor() ) ); thePopup->insertSeparator(); SVTK_ViewWindow* aView = (SVTK_ViewWindow*)(myViewManager->getActiveView()); if ( aView && !aView->getToolBar()->isVisible() ) - thePopup->insertItem( VTKViewer_Viewer::tr( "MEN_SHOW_TOOLBAR" ), this, SLOT( onShowToolbar() ) ); + thePopup->insertItem( tr( "MEN_SHOW_TOOLBAR" ), this, SLOT( onShowToolbar() ) ); } //========================================================== diff --git a/src/SVTK/SVTK_ViewModel.h b/src/SVTK/SVTK_ViewModel.h index 912e31f3d..088cf6f74 100644 --- a/src/SVTK/SVTK_ViewModel.h +++ b/src/SVTK/SVTK_ViewModel.h @@ -2,7 +2,7 @@ #define SVTK_VIEWMODEL_H #include "SVTK.h" -#include "VTKViewer_ViewModel.h" +#include "SUIT_ViewModel.h" #include "SALOME_Prs.h" #include "SALOME_InteractiveObject.hxx" diff --git a/src/SVTK/resources/SVTK_msg_en.po b/src/SVTK/resources/SVTK_msg_en.po new file mode 100755 index 000000000..eb7db7c20 --- /dev/null +++ b/src/SVTK/resources/SVTK_msg_en.po @@ -0,0 +1,153 @@ +# SALOME SALOMEGUI : implementation of desktop and GUI kernel +# +# Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +# +# +# +# File : SALOMEGUI_msg_en.po +# Module : SALOME + +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-31 13:25+0400\n" +"Last-Translator: \n" +"Content-Type: text/plain; charset=iso-8859-1\n" + +msgid "LBL_TOOLBAR_LABEL" +msgstr "View Operations" + +msgid "DSC_FRONT_VIEW" +msgstr "Front View" + +msgid "MNU_FRONT_VIEW" +msgstr "Front" + +msgid "DSC_BACK_VIEW" +msgstr "Back View" + +msgid "MNU_BACK_VIEW" +msgstr "Back" + +msgid "DSC_TOP_VIEW" +msgstr "Top View" + +msgid "MNU_TOP_VIEW" +msgstr "Top" + +msgid "DSC_BOTTOM_VIEW" +msgstr "Bottom View" + +msgid "MNU_BOTTOM_VIEW" +msgstr "Bottom" + +msgid "DSC_LEFT_VIEW" +msgstr "Left View" + +msgid "MNU_LEFT_VIEW" +msgstr "Left" + +msgid "DSC_RIGHT_VIEW" +msgstr "Right View" + +msgid "MNU_RIGHT_VIEW" +msgstr "Right" + +msgid "DSC_RESET_VIEW" +msgstr "Reset View Point" + +msgid "MNU_RESET_VIEW" +msgstr "Reset" + +msgid "DSC_FITALL" +msgstr "Fit all objects inside the view frame" + +msgid "MNU_FITALL" +msgstr "Fit All" + +msgid "DSC_FITRECT" +msgstr "Fit area within the view frame" + +msgid "MNU_FITRECT" +msgstr "Fit Area" + +msgid "DSC_ZOOM_VIEW" +msgstr "Zoom the view" + +msgid "MNU_ZOOM_VIEW" +msgstr "Zoom" + +msgid "DSC_PAN_VIEW" +msgstr "Panning the view" + +msgid "MNU_PAN_VIEW" +msgstr "Panning" + +msgid "DSC_GLOBALPAN_VIEW" +msgstr "Selection of a new center of the view" + +msgid "MNU_GLOBALPAN_VIEW" +msgstr "Global Panning" + +msgid "DSC_ROTATE_VIEW" +msgstr "Rotation of the point of view around the scene center" + +msgid "MNU_ROTATE_VIEW" +msgstr "Rotation" + +msgid "DSC_DUMP_VIEW" +msgstr "Saves the active view in the image file" + +msgid "MNU_DUMP_VIEW" +msgstr "Dump view..." + +msgid "VTK_IMAGE_FILES" +msgstr "Images Files (*.bmp *.png *.jpg *.jpeg)" + +msgid "INF_APP_DUMP_VIEW" +msgstr "Dump view" + +msgid "ERR_DOC_CANT_SAVE_FILE" +msgstr "Cannot save file" + +msgid "ERROR" +msgstr "Error" + +msgid "BUT_OK" +msgstr "Ok" + +msgid "SVTK_Viewer::MEN_DUMP_VIEW" +msgstr "Dump view..." + +msgid "SVTK_Viewer::MEN_SHOW_TOOLBAR" +msgstr "Show toolbar" + +msgid "SVTK_Viewer::MEN_CHANGE_BACKGROUD" +msgstr "Change background..." + +msgid "SVTK_ViewManager::VTK_VIEW_TITLE" +msgstr "VTK scene:%1 - viewer:%2" + +msgid "MNU_SHOW_TRIHEDRON" +msgstr "Show/Hide trihedron" + +msgid "DSC_SHOW_TRIHEDRON" +msgstr "Show/Hide trihedron in the current view" -- 2.39.2