From: jfa Date: Fri, 10 Jun 2005 09:44:08 +0000 (+0000) Subject: Improve english localization X-Git-Tag: T3_0_0_a3~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6aec7a3b8db058f39f819575102b9952b94024b0;p=modules%2Fvisu.git Improve english localization --- diff --git a/src/VISUGUI/VISU_msg_en.po b/src/VISUGUI/VISU_msg_en.po index d5554630..c30a2364 100644 --- a/src/VISUGUI/VISU_msg_en.po +++ b/src/VISUGUI/VISU_msg_en.po @@ -6,14 +6,14 @@ msgstr "" "Last-Translator: FULLNAME \n" "Content-Type: text/plain; charset=iso-8859-1\n" -msgid "MEN_IMPORT_FROM_FILE" -msgstr "Import from File" +msgid "BUT_OK" +msgstr "OK" -msgid "MEN_EXPLORE_MED_FILE" -msgstr "Explore MED File" +msgid "WRN_VISU" +msgstr "VISU Warning" -msgid "MEN_IMPORT_TABLE" -msgstr "Import table from File" +msgid "INF_DONE" +msgstr " done" msgid "WRN_STUDY_LOCKED" msgstr "Current Study is locked" @@ -24,208 +24,767 @@ msgstr "Failed to activate VISU engine!" msgid "ERR_CANT_FIND_MED_COMPONENT" msgstr "Failed to activate MED engine!" -msgid "ERR_CANT_BUILD_PRESENTATION" -msgstr "Cannot build presentation" -msgid "BUT_OK" -msgstr "OK" +#: VisuGUI.cxx -msgid "WRN_VISU" -msgstr "VISU Warning" +#msgid "MEN_IMPORT_FROM_FILE" +msgid "VisuGUI::MEN_IMPORT_FROM_FILE" +msgstr "Import from File" -msgid "INF_DONE" -msgstr " done" +#msgid "MEN_EXPLORE_MED_FILE" +msgid "VisuGUI::MEN_EXPLORE_MED_FILE" +msgstr "Explore MED File" + +#msgid "MEN_IMPORT_TABLE" +msgid "VisuGUI::MEN_IMPORT_TABLE" +msgstr "Import table from File" + +#msgid "ERR_CANT_BUILD_PRESENTATION" +msgid "VisuGUI::ERR_CANT_BUILD_PRESENTATION" +msgstr "Cannot build presentation" -msgid "ERR_ERROR_IN_THE_FILE" +#msgid "ERR_ERROR_IN_THE_FILE" +msgid "VisuGUI::ERR_ERROR_IN_THE_FILE" msgstr "Error in the file" -msgid "FLT_ALL_FILES" +#msgid "FLT_ALL_FILES" +msgid "VisuGUI::FLT_ALL_FILES" msgstr "All Files (*.*)" -msgid "FLT_MED_FILES" +#msgid "FLT_MED_FILES" +msgid "VisuGUI::FLT_MED_FILES" msgstr "MED Files (*.med)" -msgid "FLT_TABLE_FILES" +#msgid "FLT_TABLE_FILES" +msgid "VisuGUI::FLT_TABLE_FILES" msgstr "Tables (*.xls *.txt *.tab)" -msgid "MEN_SCALAR_MAP" +#msgid "MEN_SCALAR_MAP" +msgid "VisuGUI::MEN_SCALAR_MAP" msgstr "Scalar Map" -msgid "MEN_DEFORMED_SHAPE" +#msgid "MEN_DEFORMED_SHAPE" +msgid "VisuGUI::MEN_DEFORMED_SHAPE" msgstr "Deformed Shape" -msgid "MEN_VISUALIZATION" +#msgid "MEN_VISUALIZATION" +msgid "VisuGUI::MEN_VISUALIZATION" msgstr "Visualization" -msgid "TOOL_VISUALISATION" +#msgid "TOOL_VISUALISATION" +msgid "VisuGUI::TOOL_VISUALISATION" msgstr "Visualization Toolbar" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:795 msgid "VisuGUI::MEN_ANIMATION" msgstr "Animation..." -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:759 msgid "VisuGUI::MEN_CELL_COLOR" msgstr "Cell color" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:727 msgid "VisuGUI::MEN_CLEAR_CONTAINER" msgstr "Clear" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:763 msgid "VisuGUI::MEN_COLOR" msgstr "Color..." -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:663 msgid "VisuGUI::MEN_CREATE_CURVES" msgstr "Create Curves" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:675 msgid "VisuGUI::MEN_CREATE_MANY_PRS" msgstr "Create Presentations" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:647 msgid "VisuGUI::MEN_CREATE_PLOT2D" msgstr "Create Plot2d View" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:671 msgid "VisuGUI::MEN_CREATE_PRS" msgstr "Create Presentation" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:783 msgid "VisuGUI::MEN_CREATE_TABLE" msgstr "Create Table" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:711 msgid "VisuGUI::MEN_CURVE_PROPS" msgstr "Properties..." -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:643 msgid "VisuGUI::MEN_CUT_LINES" msgstr "Cut Lines" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:635 msgid "VisuGUI::MEN_CUT_PLANES" msgstr "Cut Planes" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:651 msgid "VisuGUI::MEN_DELETE_OBJ" msgstr "Delete" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:707 msgid "VisuGUI::MEN_DELETE_PRS" msgstr "Delete" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:695 msgid "VisuGUI::MEN_DISPLAY" msgstr "Display" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:703 msgid "VisuGUI::MEN_DISPLAY_ONLY" msgstr "Display Only" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:767 msgid "VisuGUI::MEN_EDGE_COLOR" msgstr "Edge Color" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:719 msgid "VisuGUI::MEN_EDIT_CONTAINER" msgstr "Edit..." -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:779 msgid "VisuGUI::MEN_EDIT_PRS" msgstr "Edit..." -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:699 msgid "VisuGUI::MEN_ERASE" msgstr "Erase" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:667 msgid "VisuGUI::MEN_EXPORT_TABLE" msgstr "Export Table" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:805 #msgid "VisuGUI::MEN_FILE" #msgstr "" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:743 msgid "VisuGUI::MEN_INSIDEFRAME" msgstr "Insideframe" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:631 msgid "VisuGUI::MEN_ISO_SURFACES" msgstr "Iso Surfaces" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:775 msgid "VisuGUI::MEN_LINE_WIDTH" msgstr "Line Width" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:771 msgid "VisuGUI::MEN_OPACITY" msgstr "Opacity" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:731 msgid "VisuGUI::MEN_POINTS" msgstr "Points" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:926 msgid "VisuGUI::MEN_PROPERTIES" msgstr "Properties" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:715 msgid "VisuGUI::MEN_RENAME" msgstr "Rename..." -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:723 msgid "VisuGUI::MEN_RENAME_CONTAINER" msgstr "Rename..." -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:655 msgid "VisuGUI::MEN_RENAME_TABLE" msgstr "Rename..." -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:905 msgid "VisuGUI::MEN_REPRESENTATION" msgstr "Representation" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:791 msgid "VisuGUI::MEN_SELECTION_INFO" msgstr "Selection Info..." -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:659 msgid "VisuGUI::MEN_SHOW_TABLE" msgstr "Show Table" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:751 msgid "VisuGUI::MEN_SHRINK" msgstr "Shrink" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:639 msgid "VisuGUI::MEN_STREAM_LINES" msgstr "Stream Lines" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:739 msgid "VisuGUI::MEN_SURFACE" msgstr "Surface" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:747 msgid "VisuGUI::MEN_SURFACEFRAME" msgstr "Surfaceframe" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:787 msgid "VisuGUI::MEN_SWEEP" msgstr "Sweep" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:755 msgid "VisuGUI::MEN_UNSHRINK" msgstr "Unshrink" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:627 msgid "VisuGUI::MEN_VECTORS" msgstr "Vectors" -#: VISU_SRC/src/VISUGUI/VisuGUI.cxx:735 msgid "VisuGUI::MEN_WIREFRAME" msgstr "Wireframe" +### jfa added + +#: Common + +msgid "BUT_CLOSE" +msgstr "" + +msgid "WRN_NO_AVAILABLE_DATA" +msgstr "" + + +#: VisuGUI.cxx + +msgid "ERR_CANT_BUILD_PRESENTATION" +msgstr "The object can't be built" + +msgid "VisuGUI::ERR_CANT_CREATE_ACTOR" +msgstr "Can't create actor for this presentation" + +msgid "VisuGUI::MEN_DELETE_VIEWPARAMS" +msgstr "Delete view parameters" + +msgid "VisuGUI::MEN_RESTORE_VIEWPARAMS" +msgstr "Restore view parameters" + +msgid "VisuGUI::MEN_SAVE_VIEWPARAMS" +msgstr "Save view parameters" + + +#: VisuGUI_CellsResultsDlg.cxx + +msgid "VisuGUI_CellsResultsDlg::&OK" +msgstr "" + +msgid "VisuGUI_CellsResultsDlg::IdCell" +msgstr "" + +msgid "VisuGUI_CellsResultsDlg::NbPoints" +msgstr "" + +msgid "VisuGUI_CellsResultsDlg::Number of Points :" +msgstr "" + +msgid "VisuGUI_CellsResultsDlg::Point" +msgstr "" + +msgid "VisuGUI_CellsResultsDlg::Results on Cell" +msgstr "" + +msgid "VisuGUI_CellsResultsDlg::Results on selected Cell" +msgstr "" + +msgid "VisuGUI_CellsResultsDlg::Scalar Value" +msgstr "" + +msgid "VisuGUI_CellsResultsDlg::Scalar result :" +msgstr "" + +msgid "VisuGUI_CellsResultsDlg::Vector Txt" +msgstr "" + +msgid "VisuGUI_CellsResultsDlg::Vector result :" +msgstr "" + +msgid "VisuGUI_CellsResultsDlg::X" +msgstr "" + +msgid "VisuGUI_CellsResultsDlg::Y" +msgstr "" + +msgid "VisuGUI_CellsResultsDlg::Z" +msgstr "" + + +#: VisuGUI_CursorDlg.cxx + +msgid "VisuGUI_CursorDlg::&Cancel" +msgstr "" + +msgid "VisuGUI_CursorDlg::&OK" +msgstr "" + +msgid "VisuGUI_CursorDlg::TextLabel1" +msgstr "" + +msgid "VisuGUI_CursorDlg::TextLabel2" +msgstr "" + + +#: VisuGUI_CutLinesDlg.cxx + +msgid "VisuGUI_CutLinesDlg::LBL_GENERATE_CURVES" +msgstr "Generate Curves" + +msgid "VisuGUI_CutLinesDlg::LBL_GENERATE_TABLE" +msgstr "Generate Data Table" + +msgid "VisuGUI_CutLinesDlg::LBL_LINES_CUT" +msgstr "Cut planes" +#?msgstr "Cut lines" + +msgid "VisuGUI_CutLinesDlg::LBL_LINES_PLANE" +msgstr "Plane of lines" + +msgid "VisuGUI_CutLinesDlg::LBL_NB_PLANS" +msgstr "Number of planes:" + +msgid "VisuGUI_CutLinesDlg::LBL_POS" +msgstr "Displacement (0...1):" + +msgid "VisuGUI_CutLinesDlg::LBL_ROTATION" +msgstr "Rotations" + +msgid "VisuGUI_CutLinesDlg::LBL_ROT_X" +msgstr "Rotation around X (Y to Z):" + +msgid "VisuGUI_CutLinesDlg::LBL_ROT_Y" +msgstr "Rotation around Y (Z to X):" + +msgid "VisuGUI_CutLinesDlg::LBL_ROT_Z" +msgstr "Rotation around Z (X to Y):" + +msgid "VisuGUI_CutLinesDlg::LBL_SHOW_PREVIEW" +msgstr "Show preview" + +msgid "VisuGUI_CutLinesDlg::TXT_ORIENTATION" +msgstr "Orientation" + +msgid "VisuGUI_CutLinesDlg::BUT_CANCEL" +msgstr "Cancel" + +msgid "VisuGUI_CutLinesDlg::BASE_PLANE_POS" +msgstr "Base plane position" + +msgid "VisuGUI_CutLinesDlg::SET_DEFAULT" +msgstr "Set default" + +msgid "VisuGUI_CutLinesDlg::PARALLEL_XOY" +msgstr "|| X-Y" + +msgid "VisuGUI_CutLinesDlg::PARALLEL_YOZ" +msgstr "|| Y-Z" + +msgid "VisuGUI_CutLinesDlg::PARALLEL_ZOX" +msgstr "|| Z-X" + + +#: VisuGUI_CutPlanesDlg.cxx + +msgid "VisuGUI_CutPlanesDlg::&Cancel" +msgstr "" + +msgid "VisuGUI_CutPlanesDlg::&OK" +msgstr "" + +msgid "VisuGUI_CutPlanesPane::PARALLEL_XOY" +msgstr "// X-Y" + +msgid "VisuGUI_CutPlanesPane::PARALLEL_YOZ" +msgstr "// Y-Z" + +msgid "VisuGUI_CutPlanesPane::PARALLEL_ZOX" +msgstr "// Z-X" + +msgid "VisuGUI_CutPlanesPane::LBL_POS" +msgstr "Displacement (0...1):" + +msgid "VisuGUI_CutPlanesPane::LBL_SHOW_PREVIEW" +msgstr "Show preview" + +msgid "VisuGUI_CutPlanesPane::LBL_NB_PLANS" +msgstr "Number of planes:" + +msgid "VisuGUI_CutPlanesPane::TXT_ORIENTATION" +msgstr "Orientation" + +msgid "VisuGUI_CutPlanesPane::LBL_ROT_X" +msgstr "Rotation around X (Y to Z):" + +msgid "VisuGUI_CutPlanesPane::LBL_ROT_Y" +msgstr "Rotation around Y (Z to X):" + +msgid "VisuGUI_CutPlanesPane::LBL_ROT_Z" +msgstr "Rotation around Z (X to Y):" + +msgid "VisuGUI_CutPlanesPane::LBL_ROTATION" +msgstr "Rotations" + + +#: VisuGUI_DeformedShapeDlg.cxx + +msgid "VisuGUI_DeformedShapeDlg::&Cancel" +msgstr "" + +msgid "VisuGUI_DeformedShapeDlg::&OK" +msgstr "" + +msgid "VisuGUI_DeformedShapeDlg::DLG_TITLE" +msgstr "Deformed Shape" + +msgid "VisuGUI_DeformedShapeDlg::MAGNITUDE_COLORING" +msgstr "Magnitude coloring" + +msgid "VisuGUI_DeformedShapeDlg::SCALE_FACTOR" +msgstr "Scale Factor:" + + +#: VisuGUI_EditContainerDlg.cxx + +msgid "VisuGUI_EditContainerDlg::&Cancel" +msgstr "" + +msgid "VisuGUI_EditContainerDlg::&OK" +msgstr "" + +msgid "VisuGUI_EditContainerDlg::LBL_STUDY" +msgstr "Study" + +msgid "VisuGUI_EditContainerDlg::LBL_CONTAINER" +msgstr "Container" + +msgid "VisuGUI_EditContainerDlg::TXT_TABLE" +msgstr "Table" + +msgid "VisuGUI_EditContainerDlg::TXT_CURVE" +msgstr "Curve" + + +#: VisuGUI_FileDlg.cxx + +msgid "VisuGUI_FileDlg::FULL_LOAD" +msgstr "Full loading for current file" + + +#: VisuGUI_InitMeshDlg.cxx + +msgid "VisuGUI_InitMeshDlg::Visu_ARGUMENTS" +msgstr "Arguments" + +msgid "VisuGUI_InitMeshDlg::BUT_APPLY" +msgstr "Apply" + +msgid "VisuGUI_InitMeshDlg::Visu_INIT" +msgstr "Initialise" + +msgid "VisuGUI_InitMeshDlg::Visu_INIT_MESH" +msgstr "Initialise mesh" + +msgid "VisuGUI_InitMeshDlg::Visu_NAME" +msgstr "Name" + +msgid "VisuGUI_InitMeshDlg::Visu_OBJECT_GEOM" +msgstr "Geometrical object" + + +#: VisuGUI_IsoSurfacesDlg.cxx + +msgid "VisuGUI_IsoSurfacesDlg::&OK" +msgstr "" + +msgid "VisuGUI_IsoSurfacesDlg::&Cancel" +msgstr "" + +msgid "VisuGUI_IsoSurfPane::MSG_MINMAX_VALUES" +msgstr "Min value can not be higher or equal to Max value" + +msgid "VisuGUI_IsoSurfPane::MAX_VALUE" +msgstr "Maximum value:" + +msgid "VisuGUI_IsoSurfPane::MIN_VALUE" +msgstr "Minimum value:" + +msgid "VisuGUI_IsoSurfPane::NB_SURFACES" +msgstr "Number of surfaces:" + +msgid "VisuGUI_IsoSurfacesDlg::DEFINE_ISOSURFACES" +msgstr "Iso Surfaces Definition" + + +#: VisuGUI_MagnitudeDlg.cxx + +msgid "VisuGUI_MagnitudeDlg::&OK" +msgstr "" + +msgid "VisuGUI_MagnitudeDlg::&Cancel" +msgstr "" + +msgid "VisuGUI_MagnitudeDlg::DLG_TITLE" +msgstr "Deformed Shape" + +msgid "VisuGUI_MagnitudeDlg::TXT_MAGNITUDE_COLORING" +msgstr "Magnitude coloring" + +msgid "VisuGUI_MagnitudeDlg::LBL_SCALE_FACTOR" +msgstr "Scale Factor:" + + +#: VisuGUI_NonIsometricDlg.cxx + +msgid "VisuGUI_NonIsometricDlg::O&K" +msgstr "" + +msgid "VisuGUI_NonIsometricDlg::&Apply" +msgstr "" + +msgid "VisuGUI_NonIsometricDlg::&Cancel" +msgstr "" + +msgid "VisuGUI_NonIsometricDlg::&Reset" +msgstr "" + +msgid "VisuGUI_NonIsometricDlg::DLG_TITLE" +msgstr "Scaling" + +msgid "VisuGUI_NonIsometricDlg::LBL_X" +msgstr "X :" + +msgid "VisuGUI_NonIsometricDlg::LBL_Y" +msgstr "Y :" + +msgid "VisuGUI_NonIsometricDlg::LBL_Z" +msgstr "Z :" + + +#: VisuGUI_PointsResultsDlg.cxx + +msgid "VisuGUI_PointsResultsDlg::&OK" +msgstr "" + +msgid "VisuGUI_PointsResultsDlg::DLG_TITLE" +msgstr "Results at selected point" + +msgid "VisuGUI_PointsResultsDlg::RESULTS_GRP" +msgstr "Results at Point" + +msgid "VisuGUI_PointsResultsDlg::IdPoint" +msgstr "" + +msgid "VisuGUI_PointsResultsDlg::LBL_X" +msgstr "X:" + +msgid "VisuGUI_PointsResultsDlg::LBL_Y" +msgstr "Y:" + +msgid "VisuGUI_PointsResultsDlg::LBL_Z" +msgstr "Z:" + +msgid "VisuGUI_PointsResultsDlg::LBL_SCALAR_RESULT" +msgstr "Scalar result :" + +msgid "VisuGUI_PointsResultsDlg::LBL_SCALAR_VALUE" +msgstr "Scalar Value" + +msgid "VisuGUI_PointsResultsDlg::LBL_VECTOR_RESULT" +msgstr "Vector result :" + +msgid "VisuGUI_PointsResultsDlg::LBL_VECTOR_TXT" +msgstr "Vector Txt" + + +#: VisuGUI_ScalarBarDlg.cxx + +msgid "VisuGUI_ScalarBarDlg::&OK" +msgstr "" + +msgid "VisuGUI_ScalarBarDlg::&Cancel" +msgstr "" + +msgid "VisuGUI_ScalarBarDlg::DLG_PREF_TITLE" +msgstr "Scalar Bar Preferences" + +msgid "VisuGUI_ScalarBarDlg::DLG_PROP_TITLE" +msgstr "Scalar Bar Properties" + +msgid "VisuGUI_ScalarBarPane::SCALAR_RANGE_GRP" +msgstr "Scalar range" + +msgid "VisuGUI_ScalarBarPane::LOGARITHMIC_SCALING" +msgstr "Logarithmic scaling" + +msgid "VisuGUI_ScalarBarPane::FIELD_RANGE_BTN" +msgstr "Use field range" + +msgid "VisuGUI_ScalarBarPane::IMPOSED_RANGE_BTN" +msgstr "Use imposed range" + +msgid "VisuGUI_ScalarBarPane::LBL_MIN" +msgstr "Min:" + +msgid "VisuGUI_ScalarBarPane::LBL_MAX" +msgstr "Max:" + +msgid "VisuGUI_ScalarBarPane::COLORS_LABELS_GRP" +msgstr "Colors and labels" + +msgid "VisuGUI_ScalarBarPane::LBL_NB_COLORS" +msgstr "Nb. of colors:" + +msgid "VisuGUI_ScalarBarPane::LBL_NB_LABELS" +msgstr "Nb. of labels:" + +msgid "VisuGUI_ScalarBarPane::ORIENTATION_GRP" +msgstr "Orientation" + +msgid "VisuGUI_ScalarBarPane::VERTICAL_BTN" +msgstr "Vertical" + +msgid "VisuGUI_ScalarBarPane::HORIZONTAL_BTN" +msgstr "Horizontal" + +msgid "VisuGUI_ScalarBarPane::ORIGIN_GRP" +msgstr "Origin" + +msgid "VisuGUI_ScalarBarPane::LBL_X" +msgstr "X:" + +msgid "VisuGUI_ScalarBarPane::LBL_Y" +msgstr "Y:" + +msgid "VisuGUI_ScalarBarPane::DIMENSIONS_GRP" +msgstr "Dimensions" + +msgid "VisuGUI_ScalarBarPane::LBL_WIDTH" +msgstr "Width:" + +msgid "VisuGUI_ScalarBarPane::LBL_HEIGHT" +msgstr "Height:" + +msgid "VisuGUI_ScalarBarPane::SAVE_DEFAULT_CHK" +msgstr "Save as default values" + +msgid "VisuGUI_ScalarBarPane::MSG_MINMAX_VALUES" +msgstr "Min value can not be higher or equal to Max value" + +msgid "VisuGUI_ScalarBarPane::WRN_LOGARITHMIC_RANGE" +msgstr "Logarithmic scaling: use imposed range values > 0" + +msgid "VisuGUI_ScalarBarPane::WRN_LOGARITHMIC_FIELD_RANGE" +msgstr "Logarithmic scaling: field range contains negative values, use imposed range instead" + +msgid "VisuGUI_TextPrefDlg::&OK" +msgstr "" + +msgid "VisuGUI_TextPrefDlg::&Cancel" +msgstr "" + +msgid "VisuGUI_TextPrefDlg::TIT_TEXT_PREF" +msgstr "Text property" + +msgid "VisuGUI_TextPrefDlg::LBL_TITLE" +msgstr "Title" + +msgid "VisuGUI_TextPrefDlg::LBL_BOLD" +msgstr "Bold" + +msgid "VisuGUI_TextPrefDlg::LBL_ITALIC" +msgstr "Italic" + +msgid "VisuGUI_TextPrefDlg::LBL_SHADOW" +msgstr "Shadow" + +msgid "VisuGUI_TextPrefDlg::LBL_LABELS" +msgstr "Labels" + + +#: VisuGUI_StreamLinesDlg.cxx + +msgid "VisuGUI_StreamLinesDlg::&OK" +msgstr "" + +msgid "VisuGUI_StreamLinesDlg::&Cancel" +msgstr "" + +msgid "VisuGUI_StreamLinesDlg::DLG_TITLE" +msgstr "Stream lines Preferences" + +msgid "VisuGUI_StreamLinesDlg::SOURCE_GRP" +msgstr "Source" + +msgid "VisuGUI_StreamLinesDlg::LBL_SOURCE_TYPE" +msgstr "Source type" + +msgid "VisuGUI_StreamLinesDlg::LBL_USED_POINTS" +msgstr "Used points (0..1)" + +msgid "VisuGUI_StreamLinesDlg::LBL_STEP_LENGTH" +msgstr "Step Length" + +msgid "VisuGUI_StreamLinesDlg::LBL_INTEGRATION_STEP" +msgstr "Integration Step" + +msgid "VisuGUI_StreamLinesDlg::LBL_PROPAGATION_TIME" +msgstr "Propagation Time" + +msgid "VisuGUI_StreamLinesDlg::LBL_DIRECTION" +msgstr "Direction" + +msgid "VisuGUI_StreamLinesDlg::MAGNITUDE_COLORING_CHK" +msgstr "Magnitude coloring" + +msgid "VisuGUI_StreamLinesDlg::USE_COLOR_BTN" +msgstr "Use Color" + + +#: VisuGUI_SweepPrefDlg.cxx + +msgid "VisuGUI_SweepPrefDlg::&OK" +msgstr "" + +msgid "VisuGUI_SweepPrefDlg::&Cancel" +msgstr "" + +msgid "VisuGUI_SweepPrefDlg::DLG_TITLE" +msgstr "Sweeping Preferences" + +msgid "VisuGUI_SweepPrefDlg::LBL_TIME_STEP" +msgstr "Time step (second):" + +msgid "VisuGUI_SweepPrefDlg::LBL_NB_CYCLES" +msgstr "Number of cycles:" + +msgid "VisuGUI_SweepPrefDlg::LBL_NB_STEPS" +msgstr "Number of steps:" + + +#: VisuGUI_TimeAnimation.cxx + +msgid "VisuGUI_TimeAnimationDlg::&OK" +msgstr "" + +msgid "VisuGUI_TimeAnimationDlg::ERROR" +msgstr "Error" + +msgid "VisuGUI_TimeAnimationDlg::MSG_NO_ANIMATIONDATA" +msgstr "There is no data for animation" + + +#: VisuGUI_VectorsDlg.cxx + +msgid "VisuGUI_VectorsDlg::&OK" +msgstr "" + +msgid "VisuGUI_VectorsDlg::&Cancel" +msgstr "" + +msgid "VisuGUI_VectorsDlg::DLG_TITLE" +msgstr "Vector Field Representation" + +msgid "VisuGUI_VectorsDlg::LBL_SCALE_FACTOR" +msgstr "Scale factor:" + +msgid "VisuGUI_VectorsDlg::LBL_LINE_WIDTH" +msgstr "Line width:" + +msgid "VisuGUI_VectorsDlg::MAGNITUDE_COLORING_CHK" +msgstr "Magnitude coloring" + +msgid "VisuGUI_VectorsDlg::SEL_COLOR_BTN" +msgstr "Select Color" + +msgid "VisuGUI_VectorsDlg::USE_GLYPHS_CHK" +msgstr "Use glyphs" + +msgid "VisuGUI_VectorsDlg::GLYPH_TYPE_GRP" +msgstr "Glyph type" + +msgid "VisuGUI_VectorsDlg::ARROWS_BTN" +msgstr "Arrows" + +msgid "VisuGUI_VectorsDlg::CONES2_BTN" +msgstr "Cones (2)" + +msgid "VisuGUI_VectorsDlg::CONES6_BTN" +msgstr "Cones (6)" + +msgid "VisuGUI_VectorsDlg::GLYPH_POSITION_GRP" +msgstr "Glyph position" + +msgid "VisuGUI_VectorsDlg::TAIL_BTN" +msgstr "Tail" + +msgid "VisuGUI_VectorsDlg::CENTER_BTN" +msgstr "Center" + +msgid "VisuGUI_VectorsDlg::HEAD_BTN" +msgstr "Head" diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 476ff568..ae46da4e 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -415,7 +415,7 @@ OnCreateMesh() SUIT_MessageBox::warn1 (GetDesktop(this), tr("VISU_WARNING"), tr("ERR_CANT_BUILD_PRESENTATION"), - tr("VISU_BUT_OK")); + tr("BUT_OK")); return; } @@ -438,7 +438,7 @@ OnCreateMesh() SUIT_MessageBox::warn1 (GetDesktop(this), tr("VISU_WARNING"), tr("ERR_CANT_CREATE_ACTOR") + " " + tr(exc.what()), - tr("VISU_BUT_OK")); + tr("BUT_OK")); } } } diff --git a/src/VISUGUI/VisuGUI_CursorDlg.cxx b/src/VISUGUI/VisuGUI_CursorDlg.cxx index c3c83227..a9743999 100644 --- a/src/VISUGUI/VisuGUI_CursorDlg.cxx +++ b/src/VISUGUI/VisuGUI_CursorDlg.cxx @@ -72,28 +72,29 @@ VisuGUI_CursorDlg::VisuGUI_CursorDlg( QWidget* parent, const char* name, bool m SLayout->addItem( new QSpacerItem( 5, 5, QSizePolicy::Expanding, QSizePolicy::Minimum ) ); TopGroupBoxLayout->addLayout( SLayout, 2, 0 ); - GroupButtons = new QGroupBox( this, "GroupButtons" ); - GroupButtons->setGeometry( QRect( 10, 10, 281, 48 ) ); - GroupButtons->setTitle( tr( "" ) ); - GroupButtons->setColumnLayout(0, Qt::Vertical ); - GroupButtons->layout()->setSpacing( 0 ); - GroupButtons->layout()->setMargin( 0 ); - QGridLayout* GroupButtonsLayout = new QGridLayout( GroupButtons->layout() ); - GroupButtonsLayout->setAlignment( Qt::AlignTop ); - GroupButtonsLayout->setSpacing( 6 ); - GroupButtonsLayout->setMargin( 11 ); + GroupButtons = new QGroupBox (this, "GroupButtons"); + GroupButtons->setGeometry(QRect(10, 10, 281, 48)); + GroupButtons->setColumnLayout(0, Qt::Vertical); + GroupButtons->layout()->setSpacing(0); + GroupButtons->layout()->setMargin(0); + QGridLayout* GroupButtonsLayout = new QGridLayout (GroupButtons->layout()); + GroupButtonsLayout->setAlignment(Qt::AlignTop); + GroupButtonsLayout->setSpacing(6); + GroupButtonsLayout->setMargin(11); - buttonOk = new QPushButton( tr( "&OK" ), GroupButtons, "buttonOk" ); - buttonOk->setAutoDefault( TRUE ); - buttonOk->setDefault( TRUE ); - GroupButtonsLayout->addWidget( buttonOk, 0, 0 ); - GroupButtonsLayout->addItem( new QSpacerItem( 5, 5, QSizePolicy::Expanding, QSizePolicy::Minimum ), 0, 1 ); - buttonCancel = new QPushButton( tr( "&Cancel" ) , GroupButtons, "buttonCancel" ); - buttonCancel->setAutoDefault( TRUE ); - GroupButtonsLayout->addWidget( buttonCancel, 0, 2 ); + buttonOk = new QPushButton (tr("&OK"), GroupButtons, "buttonOk"); + buttonOk->setAutoDefault(TRUE); + buttonOk->setDefault(TRUE); + GroupButtonsLayout->addWidget(buttonOk, 0, 0); + + GroupButtonsLayout->addItem(new QSpacerItem (5, 5, QSizePolicy::Expanding, QSizePolicy::Minimum), 0, 1); + + buttonCancel = new QPushButton(tr("&Cancel") , GroupButtons, "buttonCancel"); + buttonCancel->setAutoDefault(TRUE); + GroupButtonsLayout->addWidget(buttonCancel, 0, 2); - TopLayout->addWidget( TopGroupBox, 0, 0 ); - TopLayout->addWidget( GroupButtons, 1, 0 ); + TopLayout->addWidget(TopGroupBox, 0, 0); + TopLayout->addWidget(GroupButtons, 1, 0); // signals and slots connections connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); diff --git a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx index 20efa336..a94e0c0d 100644 --- a/src/VISUGUI/VisuGUI_CutLinesDlg.cxx +++ b/src/VISUGUI/VisuGUI_CutLinesDlg.cxx @@ -77,9 +77,9 @@ VisuGUI_CutLinesDlg::VisuGUI_CutLinesDlg (QWidget* parent, bool theIsCreation, b mySelPlane->setInsideSpacing( 5 ); mySelPlane->setInsideMargin( 5 ); - QRadioButton* aBxy = new QRadioButton( tr( "|| X-Y" ), mySelPlane); // 0 - QRadioButton* aByz = new QRadioButton( tr( "|| Y-Z" ), mySelPlane); // 1 - QRadioButton* aBzx = new QRadioButton( tr( "|| Z-X" ), mySelPlane); // 2 + QRadioButton* aBxy = new QRadioButton( tr( "PARALLEL_XOY" ), mySelPlane); // 0 + QRadioButton* aByz = new QRadioButton( tr( "PARALLEL_YOZ" ), mySelPlane); // 1 + QRadioButton* aBzx = new QRadioButton( tr( "PARALLEL_ZOX" ), mySelPlane); // 2 aBzx->setChecked(true); aPlaneLayout->addWidget( mySelPlane ); @@ -96,28 +96,28 @@ VisuGUI_CutLinesDlg::VisuGUI_CutLinesDlg (QWidget* parent, bool theIsCreation, b aPlaneLayout->addWidget( aRotBox ); - QHGroupBox* aBaseBox = new QHGroupBox( tr( "Base plane position" ), aPlanePane ); + QHGroupBox* aBaseBox = new QHGroupBox (tr("BASE_PLANE_POS"), aPlanePane); myBasePlanePos = new QLineEdit (aBaseBox); mydvalidator = new QDoubleValidator(this); mydvalidator->setDecimals(32); myBasePlanePos->setValidator(mydvalidator); - myCBSetDef = new QCheckBox(tr("Set default"),aBaseBox); + myCBSetDef = new QCheckBox (tr("SET_DEFAULT"),aBaseBox); - aPlaneLayout->addWidget( aBaseBox ); + aPlaneLayout->addWidget(aBaseBox); - QHBox* aPosBox = new QHBox(aPlanePane); + QHBox* aPosBox = new QHBox (aPlanePane); aPosBox->setSpacing(5); - QLabel* aPosLbl = new QLabel( tr( "LBL_POS" ), aPosBox ); - myPosSpn = new QtxDblSpinBox( 0, 1, 0.1, aPosBox ); - myPosSpn->setValue( 0.5 ); - aPlaneLayout->addWidget( aPosBox ); + QLabel* aPosLbl = new QLabel (tr("LBL_POS"), aPosBox); + myPosSpn = new QtxDblSpinBox (0, 1, 0.1, aPosBox); + myPosSpn->setValue(0.5); + aPlaneLayout->addWidget(aPosBox); - myPreviewCheck = new QCheckBox(tr("LBL_SHOW_PREVIEW"), aPlanePane); + myPreviewCheck = new QCheckBox (tr("LBL_SHOW_PREVIEW"), aPlanePane); myPreviewCheck->setChecked(false); - aPlaneLayout->addWidget( myPreviewCheck ); + aPlaneLayout->addWidget(myPreviewCheck); - myCreateTable = new QCheckBox(tr("LBL_GENERATE_TABLE"), aPlanePane); + myCreateTable = new QCheckBox (tr("LBL_GENERATE_TABLE"), aPlanePane); myCreateTable->setChecked(MYGenerateTable); aPlaneLayout->addWidget( myCreateTable ); @@ -145,9 +145,9 @@ VisuGUI_CutLinesDlg::VisuGUI_CutLinesDlg (QWidget* parent, bool theIsCreation, b mySelPlane2->setInsideSpacing( 5 ); mySelPlane2->setInsideMargin( 5 ); - QRadioButton* aBxy2 = new QRadioButton( tr( "|| X-Y" ), mySelPlane2); // 0 - QRadioButton* aByz2 = new QRadioButton( tr( "|| Y-Z" ), mySelPlane2); // 1 - QRadioButton* aBzx2 = new QRadioButton( tr( "|| Z-X" ), mySelPlane2); // 2 + QRadioButton* aBxy2 = new QRadioButton( tr( "PARALLEL_XOY" ), mySelPlane2); // 0 + QRadioButton* aByz2 = new QRadioButton( tr( "PARALLEL_YOZ" ), mySelPlane2); // 1 + QRadioButton* aBzx2 = new QRadioButton( tr( "PARALLEL_ZOX" ), mySelPlane2); // 2 aBzx2->setEnabled(false); aByz2->setChecked(true); aLinesLayout->addWidget( mySelPlane2 ); @@ -208,7 +208,7 @@ VisuGUI_CutLinesDlg::VisuGUI_CutLinesDlg (QWidget* parent, bool theIsCreation, b aBtnLayout->setSpacing( 5 ); aBtnLayout->setMargin( 11 ); - QPushButton* aOkBtn = new QPushButton(tr( "VISU_BUT_OK" ), aBtnBox); + QPushButton* aOkBtn = new QPushButton (tr("BUT_OK"), aBtnBox); aOkBtn->setAutoDefault( TRUE ); aOkBtn->setDefault( true ); aBtnLayout->addWidget(aOkBtn); diff --git a/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx b/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx index 185a6c81..731cbf69 100644 --- a/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx +++ b/src/VISUGUI/VisuGUI_CutPlanesDlg.cxx @@ -69,9 +69,9 @@ VisuGUI_CutPlanesPane::VisuGUI_CutPlanesPane (QWidget* theParent/*, SUIT_ViewMan TopLayout->setSpacing( 6 ); TopLayout->setMargin( 10 ); - QButtonGroup* SelPlane = new QButtonGroup( tr( "Orientation" ), this, "SelPlane" ); - SelPlane->setTitle( tr( "Orientation" ) ); - SelPlane->setColumnLayout(0, Qt::Vertical ); + QButtonGroup* SelPlane = new QButtonGroup (tr("TXT_ORIENTATION"), this, "SelPlane"); + //SelPlane->setTitle(tr("TXT_ORIENTATION")); + SelPlane->setColumnLayout(0, Qt::Vertical); SelPlane->layout()->setSpacing( 0 ); SelPlane->layout()->setMargin( 0 ); QGridLayout* SelPlaneLayout = new QGridLayout( SelPlane->layout() ); @@ -79,20 +79,20 @@ VisuGUI_CutPlanesPane::VisuGUI_CutPlanesPane (QWidget* theParent/*, SUIT_ViewMan SelPlaneLayout->setSpacing( 6 ); SelPlaneLayout->setMargin( 11 ); - RBxy = new QRadioButton( tr( "// X-Y" ), SelPlane, "RBxy" ); - RByz = new QRadioButton( tr( "// Y-Z" ), SelPlane, "RByz" ); - RBzx = new QRadioButton( tr( "// Z-X" ), SelPlane, "RBzx" ); + RBxy = new QRadioButton (tr("PARALLEL_XOY"), SelPlane, "RBxy"); + RByz = new QRadioButton (tr("PARALLEL_YOZ"), SelPlane, "RByz"); + RBzx = new QRadioButton (tr("PARALLEL_ZOX"), SelPlane, "RBzx"); SelPlaneLayout->addWidget( RBxy, 0, 0 ); SelPlaneLayout->addWidget( RByz, 0, 1 ); SelPlaneLayout->addWidget( RBzx, 0, 2 ); - QLabel* LabelPosi_3 = new QLabel( tr( "Number of planes:" ), this, "LabelPosi_3" ); + QLabel* LabelPosi_3 = new QLabel (tr("LBL_NB_PLANS"), this, "LabelPosi_3"); nbPlan = new QSpinBox( 1, 100, 1, this, "nbPlan" ); nbPlan->setValue( 1 ); nbPlan->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); - myPosTable = new QTable(this, "Positions of planes" ); + myPosTable = new QTable (this, "Positions of planes"); myPosTable->setMaximumHeight( 227 ); myPosTable->setMinimumWidth( 294 ); myPosTable->setNumCols(2); @@ -104,8 +104,8 @@ VisuGUI_CutPlanesPane::VisuGUI_CutPlanesPane (QWidget* theParent/*, SUIT_ViewMan th->setLabel( 1, "Set default" ); th->setStyle("QStyle::CE_PushButton"); - QGroupBox* GBrot = new QGroupBox( tr( "Rotations" ), this, "GBrot" ); - GBrot->setColumnLayout(0, Qt::Vertical ); + QGroupBox* GBrot = new QGroupBox (tr("LBL_ROTATION"), this, "GBrot"); + GBrot->setColumnLayout(0, Qt::Vertical); GBrot->layout()->setSpacing( 0 ); GBrot->layout()->setMargin( 0 ); QGridLayout* GBrotLayout = new QGridLayout( GBrot->layout() ); @@ -113,7 +113,7 @@ VisuGUI_CutPlanesPane::VisuGUI_CutPlanesPane (QWidget* theParent/*, SUIT_ViewMan GBrotLayout->setSpacing( 6 ); GBrotLayout->setMargin( 11 ); - LabelRot1 = new QLabel( tr( "Rotation around X (Y to Z):" ), GBrot, "LabelRot1" ); + LabelRot1 = new QLabel (tr("LBL_ROT_X"), GBrot, "LabelRot1"); GBrotLayout->addWidget( LabelRot1, 0, 0 ); Rot1 = new QtxDblSpinBox( -180, 180, 10, GBrot ); @@ -122,7 +122,7 @@ VisuGUI_CutPlanesPane::VisuGUI_CutPlanesPane (QWidget* theParent/*, SUIT_ViewMan connect( Rot1, SIGNAL( valueChanged( double )), this, SLOT( onRotation( double ) ) ); GBrotLayout->addWidget( Rot1, 0, 1 ); - LabelRot2 = new QLabel( tr( "Rotation around Y (Z to X):" ), GBrot, "LabelRot2" ); + LabelRot2 = new QLabel (tr("LBL_ROT_Y"), GBrot, "LabelRot2"); GBrotLayout->addWidget( LabelRot2, 1, 0 ); Rot2 = new QtxDblSpinBox( -180, 180, 10, GBrot ); @@ -236,14 +236,14 @@ int VisuGUI_CutPlanesPane::storeToPrsObject (VISU::CutPlanes_i* thePrs) void VisuGUI_CutPlanesPane::orientationChanged (int Id) { if (Id == 0) { // RBxy->isChecked() - LabelRot1->setText( tr( "Rotation around X (Y to Z):" ) ); - LabelRot2->setText( tr( "Rotation around Y (Z to X):" ) ); + LabelRot1->setText(tr("LBL_ROT_X")); + LabelRot2->setText(tr("LBL_ROT_Y")); } else if (Id == 1) { // RByz->isChecked() - LabelRot1->setText( tr( "Rotation around Y (Z to X):" ) ); - LabelRot2->setText( tr( "Rotation around Z (X to Y):" ) ); + LabelRot1->setText(tr("LBL_ROT_Y")); + LabelRot2->setText(tr("LBL_ROT_Z")); } else { - LabelRot1->setText( tr( "Rotation around Z (X to Y):" ) ); - LabelRot2->setText( tr( "Rotation around X (Y to Z):" ) ); + LabelRot1->setText(tr("LBL_ROT_Z")); + LabelRot2->setText(tr("LBL_ROT_X")); } DrawTable(); } diff --git a/src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx b/src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx index e7947f05..ef788af7 100644 --- a/src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx +++ b/src/VISUGUI/VisuGUI_DeformedShapeDlg.cxx @@ -40,7 +40,7 @@ using namespace std; VisuGUI_DeformedShapeDlg::VisuGUI_DeformedShapeDlg(QWidget* parent) : QDialog( parent, "VisuGUI_DeformedShapeDlg", true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ) { - setCaption( tr( "Deformed Shape" ) ); + setCaption(tr("DLG_TITLE")); setSizeGripEnabled( TRUE ); QVBoxLayout* TopLayout = new QVBoxLayout( this ); @@ -59,7 +59,7 @@ VisuGUI_DeformedShapeDlg::VisuGUI_DeformedShapeDlg(QWidget* parent) TopGroupLayout->setSpacing( 6 ); TopGroupLayout->setMargin( 11 ); - QLabel* ScaleLabel = new QLabel( tr( "Scale Factor:" ), TopGroup, "ScaleLabel" ); + QLabel* ScaleLabel = new QLabel (tr("SCALE_FACTOR"), TopGroup, "ScaleLabel"); TopGroupLayout->addWidget( ScaleLabel, 0, 0 ); ScalFact = new QtxDblSpinBox( 0.0, 1.0E+38, 0.1, TopGroup); @@ -67,16 +67,16 @@ VisuGUI_DeformedShapeDlg::VisuGUI_DeformedShapeDlg(QWidget* parent) ScalFact->setValue( 0.1 ); TopGroupLayout->addWidget( ScalFact, 0, 1 ); - UseMagn = new QCheckBox( tr( "Magnitude coloring" ), TopGroup, "UseMagn" ); - UseMagn->setChecked( true ); - TopGroupLayout->addMultiCellWidget( UseMagn, 1, 1, 0, 1 ); + UseMagn = new QCheckBox (tr("MAGNITUDE_COLORING"), TopGroup, "UseMagn"); + UseMagn->setChecked(true); + TopGroupLayout->addMultiCellWidget(UseMagn, 1, 1, 0, 1); //if (!enableUM) // UseMagn->hide(); - aTabBox->addTab(aBox, "Deformed Shape"); + aTabBox->addTab(aBox, "DeformedShape"); myScalarPane = new VisuGUI_ScalarBarPane(this, false); myScalarPane->setMargin( 5 ); - aTabBox->addTab(myScalarPane, "Scalar Bar"); + aTabBox->addTab(myScalarPane, "ScalarBar"); QGroupBox* GroupButtons = new QGroupBox( this, "GroupButtons" ); diff --git a/src/VISUGUI/VisuGUI_EditContainerDlg.cxx b/src/VISUGUI/VisuGUI_EditContainerDlg.cxx index b95257c2..0d0d9c2e 100644 --- a/src/VISUGUI/VisuGUI_EditContainerDlg.cxx +++ b/src/VISUGUI/VisuGUI_EditContainerDlg.cxx @@ -221,13 +221,13 @@ VisuGUI_EditContainerDlg::VisuGUI_EditContainerDlg (QWidget* parent, bool theIsM aControlLay->addColSpacing(0, 180); aControlLay->addColSpacing(2, 180); - QLabel* aSelectLbl = new QLabel (tr("Study"), aControlFrame); + QLabel* aSelectLbl = new QLabel (tr("LBL_STUDY"), aControlFrame); aControlLay->addWidget(aSelectLbl, 0, 0); myStudyLst = new QListView (aControlFrame); myStudyLst->setSelectionMode(QListView::Extended); - myStudyLst->addColumn(tr("Table"), 80); - myStudyLst->addColumn(tr("Curve"), 50); + myStudyLst->addColumn(tr("TXT_TABLE"), 80); + myStudyLst->addColumn(tr("TXT_CURVE"), 50); myStudyLst->addColumn(tr(""), 0); myStudyLst->setAllColumnsShowFocus(true); myStudyLst->setMinimumHeight(130); @@ -246,13 +246,13 @@ VisuGUI_EditContainerDlg::VisuGUI_EditContainerDlg (QWidget* parent, bool theIsM connect(myLeftBtn, SIGNAL(clicked()), this, SLOT(onLeftClicked())); aControlLay->addWidget(myLeftBtn, 3, 1); - QLabel* aForceLbl = new QLabel(tr("Container"), aControlFrame); + QLabel* aForceLbl = new QLabel (tr("LBL_CONTAINER"), aControlFrame); aControlLay->addWidget(aForceLbl, 0, 2); myContainerLst = new QListView(aControlFrame); myContainerLst->setSelectionMode(QListView::Extended); - myContainerLst->addColumn(tr("Table"), 80); - myContainerLst->addColumn(tr("Curve"), 50); + myContainerLst->addColumn(tr("TXT_TABLE"), 80); + myContainerLst->addColumn(tr("TXT_CURVE"), 50); myContainerLst->addColumn(tr(""), 0); myContainerLst->setMinimumWidth(130); connect(myContainerLst, SIGNAL(selectionChanged()), this, SLOT(onRightSelected())); diff --git a/src/VISUGUI/VisuGUI_FileDlg.cxx b/src/VISUGUI/VisuGUI_FileDlg.cxx index 8253e3c9..30ccc07e 100644 --- a/src/VISUGUI/VisuGUI_FileDlg.cxx +++ b/src/VISUGUI/VisuGUI_FileDlg.cxx @@ -27,13 +27,13 @@ bool VisuGUI_FileDlg::IsBuild = false; /*! Constructor */ -VisuGUI_FileDlg::VisuGUI_FileDlg( QWidget* parent, +VisuGUI_FileDlg::VisuGUI_FileDlg (QWidget* parent, bool open, bool showQuickDir, - bool modal ) : - SUIT_FileDlg( parent, open, showQuickDir, modal ) + bool modal) : + SUIT_FileDlg(parent, open, showQuickDir, modal) { - myCBuildAll = new QCheckBox( tr("Full loading for current file"), this ); + myCBuildAll = new QCheckBox (tr("FULL_LOAD"), this); QLabel* label = new QLabel("", this); label->setMaximumWidth(0); QPushButton* pb = new QPushButton(this); diff --git a/src/VISUGUI/VisuGUI_InitMeshDlg.cxx b/src/VISUGUI/VisuGUI_InitMeshDlg.cxx index cc5ef02e..ca011ddb 100644 --- a/src/VISUGUI/VisuGUI_InitMeshDlg.cxx +++ b/src/VISUGUI/VisuGUI_InitMeshDlg.cxx @@ -81,7 +81,7 @@ VisuGUI_InitMeshDlg::VisuGUI_InitMeshDlg( QWidget* parent, const char* name, SAL GroupConstructorsLayout->setSpacing( 6 ); GroupConstructorsLayout->setMargin( 11 ); Constructor1 = new QRadioButton( GroupConstructors, "Constructor1" ); - Constructor1->setText( tr( "" ) ); + //Constructor1->setText( tr( "" ) ); Constructor1->setPixmap( image1 ); Constructor1->setChecked( TRUE ); Constructor1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, Constructor1->sizePolicy().hasHeightForWidth() ) ); @@ -92,31 +92,35 @@ VisuGUI_InitMeshDlg::VisuGUI_InitMeshDlg( QWidget* parent, const char* name, SAL VisuGUI_InitMeshDlgLayout->addWidget( GroupConstructors, 0, 0 ); /***************************************************************/ - GroupButtons = new QGroupBox( this, "GroupButtons" ); - GroupButtons->setGeometry( QRect( 10, 10, 281, 48 ) ); - GroupButtons->setTitle( tr( "" ) ); - GroupButtons->setColumnLayout(0, Qt::Vertical ); - GroupButtons->layout()->setSpacing( 0 ); - GroupButtons->layout()->setMargin( 0 ); - GroupButtonsLayout = new QGridLayout( GroupButtons->layout() ); - GroupButtonsLayout->setAlignment( Qt::AlignTop ); - GroupButtonsLayout->setSpacing( 6 ); - GroupButtonsLayout->setMargin( 11 ); - buttonCancel = new QPushButton( GroupButtons, "buttonCancel" ); - buttonCancel->setText( tr( "Visu_BUT_CLOSE" ) ); - buttonCancel->setAutoDefault( TRUE ); - GroupButtonsLayout->addWidget( buttonCancel, 0, 3 ); - buttonApply = new QPushButton( GroupButtons, "buttonApply" ); - buttonApply->setText( tr( "Visu_BUT_APPLY" ) ); - buttonApply->setAutoDefault( TRUE ); - GroupButtonsLayout->addWidget( buttonApply, 0, 1 ); - QSpacerItem* spacer_9 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); - GroupButtonsLayout->addItem( spacer_9, 0, 2 ); - buttonOk = new QPushButton( GroupButtons, "buttonOk" ); - buttonOk->setText( tr( "Visu_BUT_OK" ) ); - buttonOk->setAutoDefault( TRUE ); - buttonOk->setDefault( TRUE ); - GroupButtonsLayout->addWidget( buttonOk, 0, 0 ); + GroupButtons = new QGroupBox (this, "GroupButtons"); + GroupButtons->setGeometry(QRect(10, 10, 281, 48)); + GroupButtons->setColumnLayout(0, Qt::Vertical); + GroupButtons->layout()->setSpacing(0); + GroupButtons->layout()->setMargin(0); + GroupButtonsLayout = new QGridLayout (GroupButtons->layout()); + GroupButtonsLayout->setAlignment(Qt::AlignTop); + GroupButtonsLayout->setSpacing(6); + GroupButtonsLayout->setMargin(11); + + buttonCancel = new QPushButton(GroupButtons, "buttonCancel"); + buttonCancel->setText(tr("BUT_CLOSE")); + buttonCancel->setAutoDefault(TRUE); + GroupButtonsLayout->addWidget(buttonCancel, 0, 3); + + buttonApply = new QPushButton (GroupButtons, "buttonApply"); + buttonApply->setText(tr("BUT_APPLY")); + buttonApply->setAutoDefault(TRUE); + GroupButtonsLayout->addWidget(buttonApply, 0, 1); + + QSpacerItem* spacer_9 = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); + GroupButtonsLayout->addItem(spacer_9, 0, 2); + + buttonOk = new QPushButton(GroupButtons, "buttonOk"); + buttonOk->setText(tr("BUT_OK")); + buttonOk->setAutoDefault(TRUE); + buttonOk->setDefault(TRUE); + GroupButtonsLayout->addWidget(buttonOk, 0, 0); + VisuGUI_InitMeshDlgLayout->addWidget( GroupButtons, 2, 0 ); /***************************************************************/ @@ -140,7 +144,7 @@ VisuGUI_InitMeshDlg::VisuGUI_InitMeshDlg( QWidget* parent, const char* name, SAL TextLabelC1A1->setFrameShadow( QLabel::Plain ); GroupC1Layout->addWidget( TextLabelC1A1, 0, 0 ); SelectButtonC1A1 = new QPushButton( GroupC1, "SelectButtonC1A1" ); - SelectButtonC1A1->setText( tr( "" ) ); + //SelectButtonC1A1->setText( tr( "" ) ); SelectButtonC1A1->setPixmap( image0 ); SelectButtonC1A1->setToggleButton( FALSE ); GroupC1Layout->addWidget( SelectButtonC1A1, 0, 1 ); @@ -156,10 +160,9 @@ VisuGUI_InitMeshDlg::VisuGUI_InitMeshDlg( QWidget* parent, const char* name, SAL VisuGUI_InitMeshDlgLayout->addWidget( GroupC1, 1, 0 ); /***************************************************************/ - Init(Sel) ; + Init(Sel); } - //================================================================================= // function : ~VisuGUI_InitMeshDlg() // purpose : Destroys the object and frees any allocated resources diff --git a/src/VISUGUI/VisuGUI_IsoSurfacesDlg.cxx b/src/VISUGUI/VisuGUI_IsoSurfacesDlg.cxx index 73ce4a53..21503938 100644 --- a/src/VISUGUI/VisuGUI_IsoSurfacesDlg.cxx +++ b/src/VISUGUI/VisuGUI_IsoSurfacesDlg.cxx @@ -56,14 +56,14 @@ VisuGUI_IsoSurfPane::VisuGUI_IsoSurfPane (QWidget* parent) TopGroupLayout->setSpacing( 6 ); TopGroupLayout->setMargin( 11 ); - QLabel* LabelNbr = new QLabel( tr( "Number of surfaces:" ), TopGroup, "LabelNbr" ); + QLabel* LabelNbr = new QLabel (tr("NB_SURFACES"), TopGroup, "LabelNbr"); TopGroupLayout->addWidget( LabelNbr, 0, 0 ); NbrIso = new QSpinBox( 1, 100, 1, TopGroup, "NbrIso" ); NbrIso->setValue( 1 ); TopGroupLayout->addWidget( NbrIso, 0, 1 ); - QLabel* LabelMin = new QLabel( tr( "Minimum value:" ), TopGroup, "LabelMin" ); - TopGroupLayout->addWidget( LabelMin, 1, 0 ); + QLabel* LabelMin = new QLabel (tr("MIN_VALUE"), TopGroup, "LabelMin"); + TopGroupLayout->addWidget(LabelMin, 1, 0); //MinIso = new QtxDblSpinBox( -DBL_MAX, DBL_MAX, 0.1, TopGroup ); MinIso = new QLineEdit( TopGroup ); MinIso->setValidator( new QDoubleValidator(TopGroup) ); @@ -72,7 +72,7 @@ VisuGUI_IsoSurfPane::VisuGUI_IsoSurfPane (QWidget* parent) LabelMin->setBuddy(MinIso); TopGroupLayout->addWidget( MinIso, 1, 1 ); - QLabel* LabelMax = new QLabel( tr( "Maximum value:" ), TopGroup, "LabelMax" ); + QLabel* LabelMax = new QLabel (tr("MAX_VALUE"), TopGroup, "LabelMax"); TopGroupLayout->addWidget( LabelMax, 2, 0 ); //MaxIso = new QtxSpinBoxDbl( -DBL_MAX, DBL_MAX, 0.1, TopGroup ); MaxIso = new QLineEdit( TopGroup ); @@ -138,16 +138,16 @@ bool VisuGUI_IsoSurfPane::check() { if (MinIso->text().toDouble() >= MaxIso->text().toDouble()) { MESSAGE(tr("MSG_MINMAX_VALUES")); - SUIT_MessageBox::warn1( this,tr("VISU_WARNING"), + SUIT_MessageBox::warn1( this,tr("WRN_VISU"), tr("MSG_MINMAX_VALUES"), - tr("VISU_BUT_OK")); + tr("BUT_OK")); return false; } // else if (/* CBUpdate->isChecked() && CBLog->isChecked() && */ // (MinIso->text().toDouble() <=0 || MaxIso->text().toDouble() <=0) ) { // SUIT_MessageBox::warn1( this, -// tr("VISU_WARNING"), +// tr("WRN_VISU"), // tr("WRN_LOGARITHMIC_RANGE_ISOSURF"), -// tr("VISU_BUT_OK")); +// tr("BUT_OK")); // return false; // } return true; @@ -164,7 +164,7 @@ VisuGUI_IsoSurfacesDlg::VisuGUI_IsoSurfacesDlg (QWidget* parent) : QDialog(parent, "VisuGUI_IsoSurfacesDlg", true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu) { - setCaption( tr( "Iso Surfaces Definition" ) ); + setCaption(tr("DEFINE_ISOSURFACES")); setSizeGripEnabled( TRUE ); QVBoxLayout* TopLayout = new QVBoxLayout(this); diff --git a/src/VISUGUI/VisuGUI_MagnitudeDlg.cxx b/src/VISUGUI/VisuGUI_MagnitudeDlg.cxx index 99c5a079..1c374760 100644 --- a/src/VISUGUI/VisuGUI_MagnitudeDlg.cxx +++ b/src/VISUGUI/VisuGUI_MagnitudeDlg.cxx @@ -45,10 +45,11 @@ using namespace std; Constructor */ VisuGUI_MagnitudeDlg::VisuGUI_MagnitudeDlg() - : QDialog( VisuGUI::application()->desktop(), "VisuGUI_MagnitudeDlg", true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ) + : QDialog(VisuGUI::application()->desktop(), "VisuGUI_MagnitudeDlg", true, + WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu) { - setCaption( tr( "Deformed Shape" ) ); - setSizeGripEnabled( TRUE ); + setCaption(tr("DLG_TITLE")); + setSizeGripEnabled(TRUE); QVBoxLayout* TopLayout = new QVBoxLayout( this ); TopLayout->setSpacing( 6 ); @@ -66,7 +67,7 @@ VisuGUI_MagnitudeDlg::VisuGUI_MagnitudeDlg() TopGroupLayout->setSpacing( 6 ); TopGroupLayout->setMargin( 11 ); - QLabel* ScaleLabel = new QLabel( tr( "Scale Factor:" ), TopGroup, "ScaleLabel" ); + QLabel* ScaleLabel = new QLabel (tr("LBL_SCALE_FACTOR"), TopGroup, "ScaleLabel"); TopGroupLayout->addWidget( ScaleLabel, 0, 0 ); ScalFact = new QtxDblSpinBox( 0, 1.0E+38, 0.1, TopGroup ); @@ -74,12 +75,12 @@ VisuGUI_MagnitudeDlg::VisuGUI_MagnitudeDlg() ScalFact->setValue( 0.1 ); TopGroupLayout->addWidget( ScalFact, 0, 1 ); - UseMagn = new QCheckBox( tr( "Magnitude coloring" ), TopGroup, "UseMagn" ); + UseMagn = new QCheckBox (tr("TXT_MAGNITUDE_COLORING"), TopGroup, "UseMagn"); UseMagn->setChecked( true ); TopGroupLayout->addMultiCellWidget( UseMagn, 1, 1, 0, 1 ); //if (!enableUM) // UseMagn->hide(); - aTabBox->addTab(aBox, "Deformed Shape"); + aTabBox->addTab(aBox, "DeformedShape"); myScalarPane = new VisuGUI_ScalarBarPane(this, false); myScalarPane->setMargin( 5 ); diff --git a/src/VISUGUI/VisuGUI_NonIsometricDlg.cxx b/src/VISUGUI/VisuGUI_NonIsometricDlg.cxx index cef4c2a6..4999cf4b 100644 --- a/src/VISUGUI/VisuGUI_NonIsometricDlg.cxx +++ b/src/VISUGUI/VisuGUI_NonIsometricDlg.cxx @@ -41,18 +41,17 @@ using namespace std; /*! Constructor */ -VisuGUI_NonIsometricDlg::VisuGUI_NonIsometricDlg( QWidget* parent, const char* name, bool modal, WFlags fl ) - : QDialog( parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ) +VisuGUI_NonIsometricDlg::VisuGUI_NonIsometricDlg (QWidget* parent, const char* name, bool modal, WFlags fl) + : QDialog(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu) { - + if (!name) + setName("NonIsometricDlg"); + setCaption(tr("DLG_TITLE")); + setSizeGripEnabled(TRUE); + SUIT_ViewWindow* sf = VisuGUI::application()->activeViewManager()->getActiveView(); VTKViewer_ViewWindow* aViewWnd = dynamic_cast(sf); - if ( !name ) - setName( "NonIsometricDlg" ); - setCaption( tr( "Scaling" ) ); - setSizeGripEnabled( TRUE ); - // Create layout for this dialog QGridLayout* layoutDlg = new QGridLayout( this ); layoutDlg->setSpacing(6); @@ -65,21 +64,21 @@ VisuGUI_NonIsometricDlg::VisuGUI_NonIsometricDlg( QWidget* parent, const char* n glGroupBox->setSpacing(6); // "X" scaling - QLabel* TextLabelX = new QLabel( "X: ", GroupBox, "TextLabelX" ); + QLabel* TextLabelX = new QLabel (tr("LBL_X"), GroupBox, "TextLabelX"); m_sbXcoeff = new QtxDblSpinBox( -DBL_MAX, DBL_MAX, 0.1, GroupBox ); //m_sbXcoeff->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed)); m_sbXcoeff->setMinimumWidth( 80 ); m_sbXcoeff->setValue( 1.0 ); // "Y" scaling - QLabel* TextLabelY = new QLabel( "Y", GroupBox, "TextLabelY" ); + QLabel* TextLabelY = new QLabel (tr("LBL_Y"), GroupBox, "TextLabelY"); m_sbYcoeff = new QtxDblSpinBox( -DBL_MAX, DBL_MAX, 0.1, GroupBox ); //m_sbYcoeff->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed)); m_sbYcoeff->setMinimumWidth( 80 ); m_sbYcoeff->setValue( 1.0 ); // "Z" scaling - QLabel* TextLabelZ = new QLabel( "Z", GroupBox, "TextLabelZ" ); + QLabel* TextLabelZ = new QLabel (tr("LBL_Z"), GroupBox, "TextLabelZ"); m_sbZcoeff = new QtxDblSpinBox( -DBL_MAX, DBL_MAX, 0.1, GroupBox ); //m_sbZcoeff->setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Fixed)); m_sbZcoeff->setMinimumWidth( 80 ); diff --git a/src/VISUGUI/VisuGUI_PointsResultsDlg.cxx b/src/VISUGUI/VisuGUI_PointsResultsDlg.cxx index 06bd3ebb..ae4e133f 100644 --- a/src/VISUGUI/VisuGUI_PointsResultsDlg.cxx +++ b/src/VISUGUI/VisuGUI_PointsResultsDlg.cxx @@ -33,20 +33,20 @@ using namespace std; /*! Constructor */ -VisuGUI_PointsResultsDlg::VisuGUI_PointsResultsDlg( QWidget* parent, const char* name, bool modal, WFlags fl ) - : QDialog( parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ) +VisuGUI_PointsResultsDlg::VisuGUI_PointsResultsDlg (QWidget* parent, const char* name, bool modal, WFlags fl) + : QDialog(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu) { - if ( !name ) - setName( "VisuGUI_PointsResultsDlg" ); - setCaption( tr( "Results at selected point" ) ); - setSizeGripEnabled( TRUE ); + if (!name) + setName("VisuGUI_PointsResultsDlg"); + setCaption(tr("DLG_TITLE")); + setSizeGripEnabled(TRUE); QGridLayout* TopLayout = new QGridLayout( this ); TopLayout->setSpacing( 6 ); TopLayout->setMargin( 11 ); - GroupLimit = new QGroupBox( this, "GroupLimit" ); - GroupLimit->setTitle( tr( "Results at Point" ) ); + GroupLimit = new QGroupBox (this, "GroupLimit"); + GroupLimit->setTitle(tr("RESULTS_GRP")); GroupLimit->setColumnLayout(0, Qt::Vertical ); GroupLimit->layout()->setSpacing( 0 ); GroupLimit->layout()->setMargin( 0 ); @@ -67,15 +67,15 @@ VisuGUI_PointsResultsDlg::VisuGUI_PointsResultsDlg( QWidget* parent, const char IdLayout->addWidget( IdPoint ); GroupLimitLayout->addMultiCellLayout( IdLayout, 0, 0, 0, 2 ); - CoordPointX = new QLabel( tr( "X:" ), GroupLimit, "CoordPointX" ); + CoordPointX = new QLabel( tr( "LBL_X" ), GroupLimit, "CoordPointX" ); CoordX = new QLineEdit( GroupLimit ); CoordX->setReadOnly( true ); - CoordPointY = new QLabel( tr( "Y:" ), GroupLimit, "CoordPointY" ); + CoordPointY = new QLabel( tr( "LBL_Y" ), GroupLimit, "CoordPointY" ); CoordY = new QLineEdit( GroupLimit ); CoordY->setReadOnly( true ); - CoordPointZ = new QLabel( tr( "Z:" ), GroupLimit, "CoordPointZ" ); + CoordPointZ = new QLabel( tr( "LBL_Z" ), GroupLimit, "CoordPointZ" ); CoordZ = new QLineEdit( GroupLimit ); CoordZ->setReadOnly( true ); @@ -90,21 +90,21 @@ VisuGUI_PointsResultsDlg::VisuGUI_PointsResultsDlg( QWidget* parent, const char GroupLimitLayout->addRowSpacing( 2, 10 ); - Scalar_Results = new QLabel( tr( "Scalar result :" ), GroupLimit, "Scalar_Results" ); + Scalar_Results = new QLabel (tr("LBL_SCALAR_RESULT"), GroupLimit, "Scalar_Results"); GroupLimitLayout->addWidget( Scalar_Results, 3, 0 ); - ScalValue = new QLabel( tr( "Scalar Value" ), GroupLimit, "ScalValue" ); + ScalValue = new QLabel (tr("LBL_SCALAR_VALUE"), GroupLimit, "ScalValue"); GroupLimitLayout->addWidget( ScalValue, 3, 1 ); GroupLimitLayout->addItem( new QSpacerItem( 5, 5, QSizePolicy::Expanding, QSizePolicy::Minimum ), 3, 2 ); - - Vector_Results = new QLabel( tr( "Vector result :" ), GroupLimit, "Vector_Results" ); + + Vector_Results = new QLabel (tr("LBL_VECTOR_RESULT"), GroupLimit, "Vector_Results"); GroupLimitLayout->addWidget( Vector_Results, 4, 0 ); - VectTxt = new QLabel( tr( "Vector Txt" ), GroupLimit, "VectTxt" ); + VectTxt = new QLabel (tr("LBL_VECTOR_TXT"), GroupLimit, "VectTxt"); GroupLimitLayout->addWidget( VectTxt, 4, 1 ); GroupLimitLayout->addItem( new QSpacerItem( 5, 5, QSizePolicy::Expanding, QSizePolicy::Minimum ), 4, 2 ); GroupButtons = new QGroupBox( this, "GroupButtons" ); GroupButtons->setGeometry( QRect( 10, 10, 281, 48 ) ); - GroupButtons->setTitle( tr( "" ) ); + //GroupButtons->setTitle( tr( "" ) ); GroupButtons->setColumnLayout(0, Qt::Vertical ); GroupButtons->layout()->setSpacing( 0 ); GroupButtons->layout()->setMargin( 0 ); diff --git a/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx b/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx index ebf2f989..ef346bf2 100644 --- a/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx +++ b/src/VISUGUI/VisuGUI_ScalarBarDlg.cxx @@ -49,7 +49,7 @@ using namespace std; -VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane(QWidget * parent, bool SetPref): +VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane (QWidget * parent, bool SetPref): QVBox(parent) { myVerX = 0.01; myVerY = 0.10; myVerW = 0.10; myVerH = 0.80; @@ -61,7 +61,7 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane(QWidget * parent, bool SetPref): //setMargin(11); // Range ============================================================ - RangeGroup = new QButtonGroup( tr( "Scalar range" ), this, "RangeGroup" ); + RangeGroup = new QButtonGroup (tr("SCALAR_RANGE_GRP"), this, "RangeGroup"); RangeGroup->setColumnLayout(0, Qt::Vertical ); RangeGroup->layout()->setSpacing( 0 ); RangeGroup->layout()->setMargin( 0 ); @@ -78,11 +78,11 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane(QWidget * parent, bool SetPref): myModeCombo->insertItem("Component 2"); myModeCombo->insertItem("Component 3"); - CBLog = new QCheckBox( tr( "Logarithmic scaling" ), RangeGroup ); + CBLog = new QCheckBox (tr("LOGARITHMIC_SCALING"), RangeGroup); CBLog->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); - RBFrange = new QRadioButton( tr( "Use field range" ), RangeGroup, "RBFrange" ); - RBIrange = new QRadioButton( tr( "Use imposed range" ), RangeGroup, "RBIrange" ); + RBFrange = new QRadioButton (tr("FIELD_RANGE_BTN"), RangeGroup, "RBFrange"); + RBIrange = new QRadioButton (tr("IMPOSED_RANGE_BTN"), RangeGroup, "RBIrange"); RBFrange->setChecked( true ); MinEdit = new QLineEdit( RangeGroup, "MinEdit" ); @@ -90,7 +90,7 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane(QWidget * parent, bool SetPref): MinEdit->setMinimumWidth( 70 ); MinEdit->setValidator( new QDoubleValidator(this) ); MinEdit->setText( "0.0" ); - QLabel* MinLabel = new QLabel( tr( "Min:" ), RangeGroup, "MinLabel" ); + QLabel* MinLabel = new QLabel (tr("LBL_MIN"), RangeGroup, "MinLabel"); MinLabel->setBuddy(MinEdit); MaxEdit = new QLineEdit( RangeGroup, "MaxEdit" ); @@ -98,7 +98,7 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane(QWidget * parent, bool SetPref): MaxEdit->setMinimumWidth( 70 ); MaxEdit->setValidator( new QDoubleValidator(this) ); MaxEdit->setText( "0.0" ); - QLabel* MaxLabel = new QLabel( tr( "Max:" ), RangeGroup, "MaxLabel" ); + QLabel* MaxLabel = new QLabel (tr("LBL_MAX"), RangeGroup, "MaxLabel"); MaxLabel->setBuddy(MaxEdit); RangeGroupLayout->addWidget( myModeLbl, 0, 0 ); @@ -114,7 +114,7 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane(QWidget * parent, bool SetPref): //TopLayout->addWidget( RangeGroup ); // Colors and Labels ======================================================== - QGroupBox* ColLabGroup = new QGroupBox( tr( "Colors and labels" ), this, "ColLabGroup" ); + QGroupBox* ColLabGroup = new QGroupBox (tr("COLORS_LABELS_GRP"), this, "ColLabGroup"); ColLabGroup->setColumnLayout(0, Qt::Vertical ); ColLabGroup->layout()->setSpacing( 0 ); ColLabGroup->layout()->setMargin( 0 ); @@ -123,13 +123,13 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane(QWidget * parent, bool SetPref): ColLabGroupLayout->setSpacing( 6 ); ColLabGroupLayout->setMargin( 11 ); - QLabel* ColorLabel = new QLabel( tr( "Nb. of colors:" ), ColLabGroup, "ColorLabel" ); + QLabel* ColorLabel = new QLabel (tr("LBL_NB_COLORS"), ColLabGroup, "ColorLabel"); ColorSpin = new QSpinBox( 2, 256, 1, ColLabGroup ); ColorSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); ColorSpin->setMinimumWidth( 70 ); ColorSpin->setValue( 64 ); - QLabel* LabelLabel = new QLabel( tr( "Nb. of labels:" ), ColLabGroup, "LabelLabel" ); + QLabel* LabelLabel = new QLabel (tr("LBL_NB_LABELS"), ColLabGroup, "LabelLabel"); LabelSpin = new QSpinBox( 2, 65, 1, ColLabGroup ); LabelSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); LabelSpin->setMinimumWidth( 70 ); @@ -143,7 +143,7 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane(QWidget * parent, bool SetPref): //TopLayout->addWidget( ColLabGroup ); // Orientation ========================================================== - QButtonGroup* OrientGroup = new QButtonGroup( tr( "Orientation" ), this, "OrientGroup" ); + QButtonGroup* OrientGroup = new QButtonGroup (tr("ORIENTATION_GRP"), this, "OrientGroup"); OrientGroup->setColumnLayout(0, Qt::Vertical ); OrientGroup->layout()->setSpacing( 0 ); OrientGroup->layout()->setMargin( 0 ); @@ -152,16 +152,16 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane(QWidget * parent, bool SetPref): OrientGroupLayout->setSpacing( 6 ); OrientGroupLayout->setMargin( 11 ); - RBvert = new QRadioButton( tr( "Vertical" ), OrientGroup, "RBvert" ); + RBvert = new QRadioButton (tr("VERTICAL_BTN"), OrientGroup, "RBvert"); RBvert->setChecked( true ); - RBhori = new QRadioButton( tr( "Horizontal" ), OrientGroup, "RBhori" ); + RBhori = new QRadioButton (tr("HORIZONTAL_BTN"), OrientGroup, "RBhori"); OrientGroupLayout->addWidget( RBvert, 0, 0 ); OrientGroupLayout->addWidget( RBhori, 0, 1 ); // TopLayout->addWidget( OrientGroup ); // Origin =============================================================== - QGroupBox* OriginGroup = new QGroupBox( tr( "Origin" ), this, "OriginGroup" ); + QGroupBox* OriginGroup = new QGroupBox (tr("ORIGIN_GRP"), this, "OriginGroup"); OriginGroup->setColumnLayout(0, Qt::Vertical ); OriginGroup->layout()->setSpacing( 0 ); OriginGroup->layout()->setMargin( 0 ); @@ -170,13 +170,13 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane(QWidget * parent, bool SetPref): OriginGroupLayout->setSpacing( 6 ); OriginGroupLayout->setMargin( 11 ); - QLabel* XLabel = new QLabel( tr( "X:" ), OriginGroup, "XLabel" ); + QLabel* XLabel = new QLabel (tr("LBL_X"), OriginGroup, "XLabel"); XSpin = new QtxDblSpinBox( 0.0, 1.0, 0.1, OriginGroup ); XSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); XSpin->setMinimumWidth( 70 ); XSpin->setValue( 0.01 ); - QLabel* YLabel = new QLabel( tr( "Y:" ), OriginGroup, "YLabel" ); + QLabel* YLabel = new QLabel (tr("LBL_Y"), OriginGroup, "YLabel"); YSpin = new QtxDblSpinBox( 0.0, 1.0, 0.1, OriginGroup ); YSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); YSpin->setMinimumWidth( 70 ); @@ -190,7 +190,7 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane(QWidget * parent, bool SetPref): //TopLayout->addWidget( OriginGroup ); // Dimensions ========================================================= - QGroupBox* DimGroup = new QGroupBox( tr( "Dimensions" ), this, "DimGroup" ); + QGroupBox* DimGroup = new QGroupBox (tr("DIMENSIONS_GRP"), this, "DimGroup"); DimGroup->setColumnLayout(0, Qt::Vertical ); DimGroup->layout()->setSpacing( 0 ); DimGroup->layout()->setMargin( 0 ); @@ -199,13 +199,13 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane(QWidget * parent, bool SetPref): DimGroupLayout->setSpacing( 6 ); DimGroupLayout->setMargin( 11 ); - QLabel* WidthLabel = new QLabel( tr( "Width:" ), DimGroup, "WidthLabel" ); + QLabel* WidthLabel = new QLabel (tr("LBL_WIDTH"), DimGroup, "WidthLabel"); WidthSpin = new QtxDblSpinBox( 0.0, 1.0, 0.1, DimGroup ); WidthSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); WidthSpin->setMinimumWidth( 70 ); WidthSpin->setValue( 0.1 ); - QLabel* HeightLabel = new QLabel( tr( "Height:" ), DimGroup, "HeightLabel" ); + QLabel* HeightLabel = new QLabel (tr("LBL_HEIGHT"), DimGroup, "HeightLabel"); HeightSpin = new QtxDblSpinBox( 0.0, 1.0, 0.1, DimGroup ); HeightSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); HeightSpin->setMinimumWidth( 70 ); @@ -220,9 +220,9 @@ VisuGUI_ScalarBarPane::VisuGUI_ScalarBarPane(QWidget * parent, bool SetPref): // Save check box =========================================================== QHBox* aSaveBox = new QHBox(this); - if ( !SetPref ) { - CBSave = new QCheckBox( tr( "Save as default values" ), aSaveBox, "CBSave" ); - //TopLayout->addWidget( CBSave ); + if (!SetPref) { + CBSave = new QCheckBox (tr("SAVE_DEFAULT_CHK"), aSaveBox, "CBSave"); + //TopLayout->addWidget(CBSave); } else { CBSave = 0; @@ -763,9 +763,9 @@ bool VisuGUI_ScalarBarPane::check() double maxVal = MaxEdit->text().toDouble(); if ( RBIrange->isChecked() ) { if (minVal >= maxVal) { - SUIT_MessageBox::warn1( this,tr("VISU_WARNING"), + SUIT_MessageBox::warn1( this,tr("WRN_VISU"), tr("MSG_MINMAX_VALUES"), - tr("VISU_BUT_OK")); + tr("BUT_OK")); return false; } } @@ -777,9 +777,9 @@ bool VisuGUI_ScalarBarPane::check() } else { SUIT_MessageBox::warn1( this, - tr("VISU_WARNING"), + tr("WRN_VISU"), tr("WRN_LOGARITHMIC_RANGE"), - tr("VISU_BUT_OK")); + tr("BUT_OK")); return false; } } @@ -789,9 +789,9 @@ bool VisuGUI_ScalarBarPane::check() } else { SUIT_MessageBox::warn1( this, - tr("VISU_WARNING"), + tr("WRN_VISU"), tr("WRN_LOGARITHMIC_FIELD_RANGE"), - tr("VISU_BUT_OK")); + tr("BUT_OK")); RBIrange->setChecked(1); changeRange(1); //MinEdit->setText( QString::number( Rmin ) ); @@ -818,13 +818,13 @@ void VisuGUI_ScalarBarPane::onTextPref() { /*! Constructor */ -VisuGUI_ScalarBarDlg::VisuGUI_ScalarBarDlg(QWidget* parent, bool SetPref) - : QDialog( parent, 0, true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ) +VisuGUI_ScalarBarDlg::VisuGUI_ScalarBarDlg (QWidget* parent, bool SetPref) + : QDialog(parent, 0, true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu) { - setName( "VisuGUI_ScalarBarDlg" ); - setCaption( SetPref ? tr( "Scalar Bar Preferences" ) : tr( "Scalar Bar Properties" ) ); - setSizeGripEnabled( TRUE ); - + setName("VisuGUI_ScalarBarDlg"); + setCaption(SetPref ? tr("DLG_PREF_TITLE") : tr("DLG_PROP_TITLE")); + setSizeGripEnabled(TRUE); + QVBoxLayout* TopLayout = new QVBoxLayout(this); TopLayout->setSpacing(6); TopLayout->setMargin(11); diff --git a/src/VISUGUI/VisuGUI_StreamLinesDlg.cxx b/src/VISUGUI/VisuGUI_StreamLinesDlg.cxx index 1fe7f083..ed9dfe63 100644 --- a/src/VISUGUI/VisuGUI_StreamLinesDlg.cxx +++ b/src/VISUGUI/VisuGUI_StreamLinesDlg.cxx @@ -46,8 +46,8 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (QWidget* parent) WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu) { myPrs = NULL; - setCaption("Stream lines Preferences"); - setSizeGripEnabled( TRUE ); + setCaption(tr("DLG_TITLE")); + setSizeGripEnabled(TRUE); QVBoxLayout* aBoxLayout = new QVBoxLayout(this); aBoxLayout->setSpacing( 6 ); @@ -63,7 +63,7 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (QWidget* parent) TopLayout->setMargin( 11 ); // Source box - QGroupBox* aSourceBox = new QGroupBox(tr("Source"), aTopBox); + QGroupBox* aSourceBox = new QGroupBox (tr("SOURCE_GRP"), aTopBox); aSourceBox->setColumnLayout(0, Qt::Vertical); QGridLayout* aSrcLayout = new QGridLayout( aSourceBox->layout() ); aSrcLayout->setSpacing( 6 ); @@ -163,7 +163,7 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (QWidget* parent) // connect(myUseSrcChk, SIGNAL(toggled(bool)), mySrcCombo, SLOT(setEnabled(bool))); aSrcLayout->addMultiCellWidget(mySrcCombo, 1, 1, 0, 1); - QLabel* aPercentLbl = new QLabel( tr( "Used points (0..1)" ), aSourceBox); + QLabel* aPercentLbl = new QLabel (tr("LBL_USED_POINTS"), aSourceBox); aSrcLayout->addWidget(aPercentLbl, 2, 0); myPntPercent = new QtxDblSpinBox( 0, 1, 0.1, aSourceBox ); @@ -171,29 +171,28 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (QWidget* parent) TopLayout->addMultiCellWidget(aSourceBox, 0, 0, 0, 1); - - QLabel* aStepLenLbl = new QLabel( tr( "Step Length" ), aTopBox); + QLabel* aStepLenLbl = new QLabel (tr("LBL_STEP_LENGTH"), aTopBox); TopLayout->addWidget(aStepLenLbl, 1, 0); myStepLen = new QtxDblSpinBox( DBL_MIN, DBL_MAX, 0.1, aTopBox ); myStepLen->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); TopLayout->addWidget(myStepLen, 1, 1); connect(myStepLen, SIGNAL(valueChanged(double)), this, SLOT(StepLengthChanged(double))); - QLabel* aIntegStepLenLbl = new QLabel( tr( "Integration Step" ), aTopBox); + QLabel* aIntegStepLenLbl = new QLabel (tr("LBL_INTEGRATION_STEP"), aTopBox); TopLayout->addWidget(aIntegStepLenLbl, 2, 0); myIntegStepLen = new QtxDblSpinBox( DBL_MIN, DBL_MAX, 0.1, aTopBox ); myIntegStepLen->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); TopLayout->addWidget(myIntegStepLen, 2, 1); connect(myIntegStepLen, SIGNAL(valueChanged(double)), this, SLOT(IntegrationStepChanged(double))); - QLabel* aPropagationLbl = new QLabel( tr( "Propagation Time" ), aTopBox); + QLabel* aPropagationLbl = new QLabel (tr("LBL_PROPAGATION_TIME"), aTopBox); TopLayout->addWidget(aPropagationLbl, 3, 0); myPropTime = new QtxDblSpinBox( DBL_MIN, DBL_MAX, 1, aTopBox ); myPropTime->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); TopLayout->addWidget(myPropTime, 3, 1); connect(myPropTime, SIGNAL(valueChanged(double)), this, SLOT(PropagationTimeChanged(double))); - QLabel* aDirLbl = new QLabel( tr( "Direction" ),aTopBox); + QLabel* aDirLbl = new QLabel (tr("LBL_DIRECTION"),aTopBox); TopLayout->addWidget(aDirLbl, 4, 0); myDirCombo = new QComboBox(aTopBox); myDirCombo->insertItem("Forward"); @@ -201,11 +200,11 @@ VisuGUI_StreamLinesDlg::VisuGUI_StreamLinesDlg (QWidget* parent) myDirCombo->insertItem("Both"); TopLayout->addWidget(myDirCombo, 4, 1); - myUseScalar = new QCheckBox( tr( "Magnitude coloring" ), aTopBox, "UseMagn" ); + myUseScalar = new QCheckBox (tr("MAGNITUDE_COLORING_CHK"), aTopBox, "UseMagn"); connect( myUseScalar, SIGNAL( clicked() ), this, SLOT( enableSetColor() ) ); TopLayout->addWidget(myUseScalar, 5, 0); - SelColor = new QPushButton( tr( "Use Color" ), aTopBox, "SelColor" ); + SelColor = new QPushButton (tr("USE_COLOR_BTN"), aTopBox, "SelColor"); connect( SelColor, SIGNAL( clicked() ), this, SLOT( setVColor() ) ); TopLayout->addWidget( SelColor, 5, 1); @@ -377,9 +376,9 @@ int VisuGUI_StreamLinesDlg::storeToPrsObject (VISU::StreamLines_i* thePrs) aDirection); } //if (!isAccepted) - // SUIT_MessageBox::warn1(VisuGUI::application()->desktop(), tr("VISU_WARNING"), + // SUIT_MessageBox::warn1(VisuGUI::application()->desktop(), tr("WRN_VISU"), // tr("ERR_CANT_BUILD_PRESENTATION"), - // tr("VISU_BUT_OK")); + // tr("BUT_OK")); return isAccepted; } @@ -525,9 +524,9 @@ VISU::Mesh_ptr VisuGUI_StreamLinesDlg::createMesh (VISU::VISUType theType, QStri VISU_Actor *anActor = pPresent->CreateActor(); vf->AddActor(anActor); }catch(...){ - SUIT_MessageBox::warn1 ( VisuGUI::application()->desktop(), tr ("VISU_WARNING"), - tr ("ERR_CANT_CREATE_ACTOR"), - tr ("VISU_BUT_OK") ); + SUIT_MessageBox::warn1 ( VisuGUI::application()->desktop(), tr("VISU_WARNING"), + tr("ERR_CANT_CREATE_ACTOR"), + tr("VISU_BUT_OK") ); } } } else { diff --git a/src/VISUGUI/VisuGUI_SweepPrefDlg.cxx b/src/VISUGUI/VisuGUI_SweepPrefDlg.cxx index f15f425c..48ec2dcf 100644 --- a/src/VISUGUI/VisuGUI_SweepPrefDlg.cxx +++ b/src/VISUGUI/VisuGUI_SweepPrefDlg.cxx @@ -36,10 +36,10 @@ using namespace std; VisuGUI_SweepPrefDlg::VisuGUI_SweepPrefDlg( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ) { - if ( !name ) - setName( "VisuGUI_SweepPrefDlg" ); - setCaption( tr( "Sweeping Preferences" ) ); - setSizeGripEnabled( TRUE ); + if (!name) + setName("VisuGUI_SweepPrefDlg"); + setCaption(tr("DLG_TITLE")); + setSizeGripEnabled(TRUE); QVBoxLayout* TopLayout = new QVBoxLayout( this ); TopLayout->setSpacing( 6 ); @@ -54,19 +54,19 @@ VisuGUI_SweepPrefDlg::VisuGUI_SweepPrefDlg( QWidget* parent, const char* name, TopGroupLayout->setSpacing( 6 ); TopGroupLayout->setMargin( 11 ); - TimeLabel = new QLabel( tr( "Time step (second):" ), TopGroup, "TimeLabel" ); + TimeLabel = new QLabel (tr("LBL_TIME_STEP"), TopGroup, "TimeLabel"); TimeSpin = new QtxDblSpinBox( 0.1, 1000.0, 0.1, TopGroup ); TimeSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); TimeSpin->setMinimumSize( 70, 0 ); TimeSpin->setValue( 0.2 ); - CyclesLabel = new QLabel( tr( "Number of cycles:" ), TopGroup, "CyclesLabel" ); + CyclesLabel = new QLabel (tr("LBL_NB_CYCLES"), TopGroup, "CyclesLabel"); CyclesSpin = new QSpinBox( 1, 100, 1, TopGroup, "CyclesSpin" ); CyclesSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); CyclesSpin->setMinimumSize( 70, 0 ); CyclesSpin->setValue( 1 ); - StepsLabel = new QLabel( tr( "Number of steps:" ), TopGroup, "StepsLabel" ); + StepsLabel = new QLabel (tr("LBL_NB_STEPS"), TopGroup, "StepsLabel"); StepsSpin = new QSpinBox( 1, 200, 1, TopGroup, "StepsSpin" ); StepsSpin->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); StepsSpin->setMinimumSize( 70, 0 ); diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index 8133f954..26631626 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -150,7 +150,7 @@ SetupDlg::SetupDlg (QWidget* theParent, VISU_TimeAnimation* theAnimator) QHBoxLayout* aBtnLayout = new QHBoxLayout(aBtnBox->layout()); aBtnLayout->addStretch(); - QPushButton* aCloseBtn = new QPushButton(tr("VISU_BUT_OK"), aBtnBox); + QPushButton* aCloseBtn = new QPushButton(tr("BUT_OK"), aBtnBox); connect(aCloseBtn, SIGNAL(clicked()), this, SLOT(close())); aMainLayout->addWidget(aBtnBox); @@ -653,7 +653,7 @@ void VisuGUI_TimeAnimationDlg::createFrames() SUIT_MessageBox::warn1(this, tr("ERROR"), tr("MSG_NO_ANIMATIONDATA"), - tr("OK")); + tr("&OK")); return; } mySlider->setMaxValue(myAnimator->getNbFrames()-1); @@ -664,7 +664,7 @@ void VisuGUI_TimeAnimationDlg::createFrames() SUIT_MessageBox::warn1(this, tr("ERROR"), myAnimator->getLastErrorMsg(), - tr("OK")); + tr("&OK")); return; } //myPlayFrame->setEnabled(true); diff --git a/src/VISUGUI/VisuGUI_Tools.cxx b/src/VISUGUI/VisuGUI_Tools.cxx index 1b80eb97..4f4fc69b 100644 --- a/src/VISUGUI/VisuGUI_Tools.cxx +++ b/src/VISUGUI/VisuGUI_Tools.cxx @@ -258,9 +258,9 @@ namespace VISU return true; } SUIT_MessageBox::warn1(GetDesktop(theModule), - QObject::tr("VISU_WARNING"), + QObject::tr("WRN_VISU"), QObject::tr("WRN_NO_AVAILABLE_DATA"), - QObject::tr("VISU_BUT_OK") ); + QObject::tr("BUT_OK") ); return false; } @@ -299,9 +299,9 @@ namespace VISU VISU::Result_i* pResult = dynamic_cast(VISU::GetServant(anObject).in()); if(pResult == NULL) SUIT_MessageBox::warn1(GetDesktop(theModule), - QObject::tr("VISU_WARNING"), + QObject::tr("WRN_VISU"), QObject::tr("WRN_NO_AVAILABLE_DATA"), - QObject::tr("VISU_BUT_OK")); + QObject::tr("BUT_OK")); return pResult; } diff --git a/src/VISUGUI/VisuGUI_VectorsDlg.cxx b/src/VISUGUI/VisuGUI_VectorsDlg.cxx index 68795cb2..1a150753 100644 --- a/src/VISUGUI/VisuGUI_VectorsDlg.cxx +++ b/src/VISUGUI/VisuGUI_VectorsDlg.cxx @@ -40,11 +40,12 @@ using namespace std; /*! Constructor */ -VisuGUI_VectorsDlg::VisuGUI_VectorsDlg( QWidget* parent ) - : QDialog( parent, "VisuGUI_VectorsDlg", true, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu ) +VisuGUI_VectorsDlg::VisuGUI_VectorsDlg (QWidget* parent) + : QDialog(parent, "VisuGUI_VectorsDlg", true, + WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu) { - setCaption( tr( "Vector Field Representation" ) ); - setSizeGripEnabled( TRUE ); + setCaption(tr("DLG_TITLE")); + setSizeGripEnabled(TRUE); QVBoxLayout* TopLayout = new QVBoxLayout( this ); TopLayout->setSpacing( 6 ); @@ -65,7 +66,7 @@ VisuGUI_VectorsDlg::VisuGUI_VectorsDlg( QWidget* parent ) TopGroupLayout->setMargin( 11 ); // Scale factor - ScaleLabel = new QLabel( tr( "Scale factor:" ), TopGroup, "ScaleLabel" ); + ScaleLabel = new QLabel (tr("LBL_SCALE_FACTOR"), TopGroup, "ScaleLabel"); ScalFact = new QtxDblSpinBox( 1e-20, 1.0E+38, 0.1, TopGroup ); ScalFact->setPrecision( 5 ); @@ -76,7 +77,7 @@ VisuGUI_VectorsDlg::VisuGUI_VectorsDlg( QWidget* parent ) TopGroupLayout->addWidget( ScalFact, 0, 1 ); // Line width - LineWidLabel = new QLabel( tr( "Line width:" ), TopGroup, "LineWidLabel" ); + LineWidLabel = new QLabel (tr("LBL_LINE_WIDTH"), TopGroup, "LineWidLabel"); LinWid = new QSpinBox( 1, 10, 1, TopGroup, "LinWid" ); LinWid->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) ); @@ -86,9 +87,9 @@ VisuGUI_VectorsDlg::VisuGUI_VectorsDlg( QWidget* parent ) TopGroupLayout->addWidget( LinWid, 1, 1 ); // Color - UseMagn = new QCheckBox( tr( "Magnitude coloring" ), TopGroup, "UseMagn" ); - UseMagn->setText( tr( "Magnitude coloring" ) ); - SelColor = new QPushButton( tr( "Select Color" ), TopGroup, "SelColor" ); + UseMagn = new QCheckBox (tr("MAGNITUDE_COLORING_CHK"), TopGroup, "UseMagn"); + //UseMagn->setText(tr("MAGNITUDE_COLORING_CHK")); + SelColor = new QPushButton (tr("SEL_COLOR_BTN"), TopGroup, "SelColor"); /* ColorLab = new QLabel( TopGroup, "ColorLab" ); ColorLab->setFixedSize( SelColor->sizeHint().height(), SelColor->sizeHint().height() ); @@ -99,9 +100,9 @@ VisuGUI_VectorsDlg::VisuGUI_VectorsDlg( QWidget* parent ) TopGroupLayout->addWidget( SelColor, 2, 1 ); // Gliphs - UseGlyph = new QCheckBox( tr( "Use glyphs" ), TopGroup, "UseGlyph" ); + UseGlyph = new QCheckBox (tr("USE_GLYPHS_CHK"), TopGroup, "UseGlyph"); - TypeGlyph = new QButtonGroup( tr( "Glyph type" ), TopGroup, "TypeGlyph" ); + TypeGlyph = new QButtonGroup (tr("GLYPH_TYPE_GRP"), TopGroup, "TypeGlyph"); TypeGlyph->setColumnLayout(0, Qt::Vertical ); TypeGlyph->layout()->setSpacing( 0 ); TypeGlyph->layout()->setMargin( 0 ); @@ -110,14 +111,14 @@ VisuGUI_VectorsDlg::VisuGUI_VectorsDlg( QWidget* parent ) TypeGlyphLayout->setSpacing( 6 ); TypeGlyphLayout->setMargin( 11 ); - RBArrows = new QRadioButton( tr( "Arrows" ), TypeGlyph, "RBArrows" ); + RBArrows = new QRadioButton (tr("ARROWS_BTN") , TypeGlyph, "RBArrows"); TypeGlyphLayout->addWidget( RBArrows, 0, 0 ); - RBCones2 = new QRadioButton( tr( "Cones (2)" ), TypeGlyph, "RBCones2" ); + RBCones2 = new QRadioButton (tr("CONES2_BTN"), TypeGlyph, "RBCones2"); TypeGlyphLayout->addWidget( RBCones2, 1, 0 ); - RBCones6 = new QRadioButton( tr( "Cones (6)" ), TypeGlyph, "RBCones6" ); + RBCones6 = new QRadioButton (tr("CONES6_BTN"), TypeGlyph, "RBCones6"); TypeGlyphLayout->addWidget( RBCones6, 2, 0 ); - PosGlyph = new QButtonGroup( tr( "Glyph position" ), TopGroup, "PosGlyph" ); + PosGlyph = new QButtonGroup (tr("GLYPH_POSITION_GRP"), TopGroup, "PosGlyph"); PosGlyph->setColumnLayout(0, Qt::Vertical ); PosGlyph->layout()->setSpacing( 0 ); PosGlyph->layout()->setMargin( 0 ); @@ -126,11 +127,11 @@ VisuGUI_VectorsDlg::VisuGUI_VectorsDlg( QWidget* parent ) PosGlyphLayout->setSpacing( 6 ); PosGlyphLayout->setMargin( 11 ); - RBTail = new QRadioButton( tr( "Tail" ), PosGlyph, "RBTail" ); + RBTail = new QRadioButton (tr("TAIL_BTN" ), PosGlyph, "RBTail"); PosGlyphLayout->addWidget( RBTail, 0, 0 ); - RBCent = new QRadioButton( tr( "Center" ), PosGlyph, "RBCent" ); + RBCent = new QRadioButton (tr("CENTER_BTN"), PosGlyph, "RBCent"); PosGlyphLayout->addWidget( RBCent, 1, 0 ); - RBHead = new QRadioButton( tr( "Head" ), PosGlyph, "RBHead" ); + RBHead = new QRadioButton (tr("HEAD_BTN" ), PosGlyph, "RBHead"); PosGlyphLayout->addWidget( RBHead, 2, 0 ); TopGroupLayout->addMultiCellWidget( UseGlyph, 3, 3, 0, 2 );