From c17f37ddc8280539874890e309d50acf617d0a9d Mon Sep 17 00:00:00 2001 From: srn Date: Mon, 10 Apr 2006 07:17:04 +0000 Subject: [PATCH] BugID: IPAL12076, added a "Import med" toolbar --- resources/Visu_import_med.png | Bin 0 -> 1704 bytes src/VISUGUI/VISU_images.po | 2 ++ src/VISUGUI/VisuGUI.cxx | 10 +++++++++- 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 resources/Visu_import_med.png diff --git a/resources/Visu_import_med.png b/resources/Visu_import_med.png new file mode 100644 index 0000000000000000000000000000000000000000..73ade29655399f3d18b36a68cdee924543fda6ba GIT binary patch literal 1704 zcmcK1T})F~902fs&=1;DsZPDK-pdu8%5-2WIMAt}y~8q!Z9zbNu`z5KlHpjhk;NCy z*mTLF#s?Fl#?J?hA<>5|VJ`*)6s4t5qoQVtiPm7HfC=t9|&&_^QlPrczxwWPTISsZ?s4 zx3Y$7KLPh2!PrB%`v6AoLt+dPcVT1{M()7y2nYhi;}9Q$p&=L?gdrZrAHn#a5Fdtn z4}s?)6cKLpCvHR&U45}opU@K(x}veJ2#?EkMq;5T-`&Ue^b5cJas2qn{oPUiFHKu&OP;0aqI=#V|X);@~tkxNNF?2dz zhE}W5sMXmv4QA5VvejyhMvGXdBP5fA(P%K}^(YCnA+seBCe#}YMk66JF-#~CN)A~{ zAy(8Fm&$1+=VnYNJs`>$e5f(Y>LqzEhdGeq-iCim?ewSY-!%dq%2#WxBL@Y zk*I58YKyO&1Y-ZNrhguUdc*}%SuGH zf!>%>>s<6Zj4S=TSY%9j;ij~s-O6kg99Jqaru>Was+F{oc`7P6yaJSXx>aj8r%IZM zck1lA(e@_|gzyX~Kl_y504zLKo{?xM0GdGq}l%Kwfvo;K4FrfnliL(uKv3\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 ); -- 2.39.2