]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
BugID: IPAL12076, added a "Import med" toolbar
authorsrn <srn@opencascade.com>
Mon, 10 Apr 2006 07:17:04 +0000 (07:17 +0000)
committersrn <srn@opencascade.com>
Mon, 10 Apr 2006 07:17:04 +0000 (07:17 +0000)
resources/Visu_import_med.png [new file with mode: 0644]
src/VISUGUI/VISU_images.po
src/VISUGUI/VisuGUI.cxx

diff --git a/resources/Visu_import_med.png b/resources/Visu_import_med.png
new file mode 100644 (file)
index 0000000..73ade29
Binary files /dev/null and b/resources/Visu_import_med.png differ
index ccc10cccd11fe28cd7dae1712f61fd5d4f765454..de2ca71f2db06141d36d6f22807ce6493f91411b 100644 (file)
@@ -32,6 +32,8 @@ msgstr ""
 "Last-Translator: FULLNAME <EMAIL@ADDRESS>\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"
index 57ecfe7a477d08486bf4e4260c62bf7a57d97859..366d4cb1412ff106cc6bae7dd751613c268f5223 100644 (file)
@@ -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 );