From: srn Date: Mon, 10 Apr 2006 07:17:04 +0000 (+0000) Subject: BugID: IPAL12076, added a "Import med" toolbar X-Git-Tag: T3_2_0b1_pre1~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c17f37ddc8280539874890e309d50acf617d0a9d;p=modules%2Fvisu.git BugID: IPAL12076, added a "Import med" toolbar --- diff --git a/resources/Visu_import_med.png b/resources/Visu_import_med.png new file mode 100644 index 00000000..73ade296 Binary files /dev/null and b/resources/Visu_import_med.png differ diff --git a/src/VISUGUI/VISU_images.po b/src/VISUGUI/VISU_images.po index ccc10ccc..de2ca71f 100644 --- a/src/VISUGUI/VISU_images.po +++ b/src/VISUGUI/VISU_images.po @@ -32,6 +32,8 @@ msgstr "" "Last-Translator: FULLNAME \n" "Content-Type: text/plain; charset=iso-8859-1\n" +msgid "ICON_IMPORT_MED" +msgstr "Visu_import_med.png" msgid "ICON_OBJBROWSER_Visu" msgstr "Visu_tree_visu.png" diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 57ecfe7a..366d4cb1 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -1984,6 +1984,11 @@ createActions() tr("MEN_IMPORT_FROM_FILE"), "", (CTRL + Key_I), aParent, false, this, SLOT(OnImportFromFile())); + aPixmap = aResourceMgr->loadPixmap("VISU",tr("ICON_IMPORT_MED")); + createAction( VISU_IMPORT_FROM_FILE, "", QIconSet(aPixmap), + tr("MEN_IMPORT_FROM_FILE"), "", (CTRL + Key_I), aParent, false, + this, SLOT(OnImportFromFile())); + createAction( VISU_IMPORT_TABLE, "", QIconSet(), tr("MEN_IMPORT_TABLE"), "", 0, aParent, false, this, SLOT(OnImportTableFromFile())); @@ -2317,7 +2322,10 @@ void VisuGUI:: createToolBars() { - int aToolId = createTool(tr("TOOL_VISUALISATION")); + int aToolId = createTool( "TOOL_IMPORT" ); + createTool( VISU_IMPORT_FROM_FILE, aToolId ); + + aToolId = createTool(tr("TOOL_VISUALISATION")); createTool( VISU_SCALAR_MAP, aToolId ); createTool( VISU_DEFORMED_SHAPE, aToolId ); createTool( VISU_VECTORS, aToolId );