Salome HOME
Preparation of 3.1.0a2: merge with BR_3_0_0_OCC ForTest_3_1_0a2
authorsmh <smh@opencascade.com>
Tue, 18 Oct 2005 15:33:27 +0000 (15:33 +0000)
committersmh <smh@opencascade.com>
Tue, 18 Oct 2005 15:33:27 +0000 (15:33 +0000)
16 files changed:
Makefile.in
adm_local/unix/config_files/check_GUI.m4 [new file with mode: 0755]
adm_local/unix/make_commence.in
bin/VERSION
configure.in.base
resources/HELLOCatalog.xml
resources/HELLO_en.ps [deleted file]
resources/HELLO_en.xml [deleted file]
resources/HELLO_fr.xml [deleted file]
resources/config [deleted file]
src/HELLOGUI/HELLOGUI.cxx
src/HELLOGUI/HELLOGUI.h
src/HELLOGUI/HELLO_icons.po
src/HELLOGUI/HELLO_msg_en.po
src/HELLOGUI/HELLO_msg_fr.po
src/HELLOGUI/Makefile.in

index 3681f073710caa105bfceb99f7e8145fc7418516..27d362f6591d7cada40371d6dea4b8107d0abb2c 100644 (file)
@@ -15,8 +15,7 @@ VPATH=.:@srcdir@:@top_srcdir@/bin:@top_srcdir@/resources:./bin:@top_srcdir@/idl
 
 SUBDIRS = idl src
 
-RESOURCES_FILES = HELLOCatalog.xml HELLO.png HELLO_en.xml \
-                  ExecHELLO.png config
+RESOURCES_FILES = HELLOCatalog.xml HELLO.png ExecHELLO.png
 
 BIN_SCRIPT= VERSION runAppli runSalome.py
 
diff --git a/adm_local/unix/config_files/check_GUI.m4 b/adm_local/unix/config_files/check_GUI.m4
new file mode 100755 (executable)
index 0000000..73a026e
--- /dev/null
@@ -0,0 +1,65 @@
+#  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 
+#
+#------------------------------------------------------------
+#  Check availability of Salome binary distribution
+#
+#  Author : Marc Tajchman (CEA, 2002)
+#------------------------------------------------------------
+
+AC_DEFUN([CHECK_SALOME_GUI],[
+
+AC_CHECKING(for Salome GUI)
+
+SalomeGUI_ok=no
+
+AC_ARG_WITH(gui,
+           --with-salome_gui=DIR root directory path of SALOME GUI installation,
+           SALOME_GUI_DIR="$withval",SALOME_GUI_DIR="")
+
+if test "x$SALOME_GUI_DIR" = "x" ; then
+  if test "x$GUI_ROOT_DIR" != "x" ; then
+    SALOME_GUI_DIR=$GUI_ROOT_DIR
+  else
+    # search Salome binaries in PATH variable
+    AC_PATH_PROG(TEMP, SUITApp)
+    if test "x$TEMP" != "x" ; then
+      SALOME_GUI_BIN_DIR=`dirname $TEMP`
+      SALOME_GUI_DIR=`dirname $SALOME_GUI_BIN_DIR`
+    fi
+  fi
+fi
+
+if test "x$SALOME_GUI_DIR" != "x" ; then
+  if test -f ${SALOME_GUI_DIR}/bin/salome/SUITApp  ; then
+    SalomeGUI_ok=yes
+    AC_MSG_RESULT(Using SALOME GUI distribution in ${SALOME_GUI_DIR})
+    GUI_ROOT_DIR=${SALOME_GUI_DIR}
+  fi
+fi
+if test "x$SalomeGUI_ok" == "xno" ; then
+  AC_MSG_WARN("Cannot find compiled SALOME GUI distribution")
+fi
+  
+AC_SUBST(GUI_ROOT_DIR)
+
+AC_MSG_RESULT(for SALOME GUI: $SalomeGUI_ok)
+])dnl
index ee4c6fc551b41a1c6b4148182eed4cd72b3da7bd..db9953c3f852ca75e33468e69c8e632845521c60 100644 (file)
@@ -34,6 +34,10 @@ CXX = @CXX@
 CXXFLAGS = @CXXFLAGS@ 
 CXX_DEPEND_FLAG = @CXX_DEPEND_FLAG@
 
+# BOOST Library
+
+BOOST_CPPFLAGS = @BOOST_CPPFLAGS@
+
 # JAVA
 
 JAVA_INCLUDES = @JAVA_INCLUDES@
@@ -61,6 +65,9 @@ QT_MT_LIBS = @QT_MT_LIBS@
 MOC = @MOC@
 UIC = @UIC@
 
+# msg2qm
+
+MSG2QM = @MSG2QM@
 
 #QWT
 
@@ -242,8 +249,7 @@ ac_cxx_mutable.m4                 check_mico.m4      libtool.m4             \
 ac_cxx_namespaces.m4              check_omniorb.m4   pyembed.m4                \
 ac_cxx_partial_specialization.m4  check_opengl.m4    python.m4         \
 ac_cxx_typename.m4                check_pthreads.m4  check_cas.m4      \
-ac_cc_warnings.m4                 check_qt.m4        check_med2.m4      \
-check_swig.m4 
+ac_cc_warnings.m4                 check_qt.m4        check_swig.m4 
 
 $(top_srcdir)/aclocal.m4: $(ACLOCAL_SRC:%=@KERNEL_ROOT_DIR@/salome_adm/unix/config_files/%)
        cd $(top_srcdir) ; aclocal --acdir=adm_local/unix/config_files -I @KERNEL_ROOT_DIR@/salome_adm/unix/config_files
index 388c664d6ca9271088b14e9b603300287170c73f..7f7fa2b440944ee78ea7381e74fce688e1066e30 100755 (executable)
@@ -1,2 +1,2 @@
-SALOME 2 EXEMPLE MODULE C++ : HELLO : 2.2.4
-This module works with KERNEL 2.2.4
+SALOME 2 EXEMPLE MODULE C++ : HELLO : 3.1.0a2
+This module works with KERNEL 3.1.0a2, SALOMEGUI 3.1.0a2
index 80563ef8a3dc49798dec161c5ffae9f947a74ff6..eccb49c492e88fc6e3a29ab86bdff6ee0dcbc0c7 100644 (file)
@@ -130,6 +130,14 @@ echo
 
 ENABLE_PTHREADS
 
+echo
+echo ---------------------------------------------
+echo BOOST Library
+echo ---------------------------------------------
+echo
+
+CHECK_BOOST
+
 echo
 echo ---------------------------------------------
 echo testing python
@@ -146,6 +154,14 @@ echo
 
 CHECK_QT
 
+echo
+echo ---------------------------------------------
+echo testing msg2qm
+echo ---------------------------------------------
+echo
+
+CHECK_MSG2QM
+
 echo
 echo ---------------------------------------------
 echo Testing OpenCascade
@@ -185,12 +201,20 @@ CHECK_KERNEL
 
 echo
 echo ---------------------------------------------
+echo Testing GUI
+echo ---------------------------------------------
+echo
+
+CHECK_SALOME_GUI
+
+echo
+echo -------H--------------------------------------
 echo Summary
 echo ---------------------------------------------
 echo
 
 echo Configure
-variables="cc_ok threads_ok python_ok omniORB_ok Kernel_ok qt_ok"
+variables="cc_ok threads_ok boost_ok python_ok omniORB_ok qt_ok msg2qm_ok Kernel_ok SalomeGUI_ok"
 
 for var in $variables
 do
index f7a52eac6c0cd8a4bc8e396cd552f3b56873b634..84debcc4f5990c47f42eade62a514088ea9df93e 100644 (file)
@@ -16,7 +16,7 @@
                <component-username>HELLO GUI</component-username>
                 <component-type>Data</component-type>
                 <component-author>C. Caremoli</component-author>
-                <component-version>2.2.4</component-version>
+                <component-version>3.0.0</component-version>
                 <component-comment>EDF - RD</component-comment>
                 <component-multistudy>1</component-multistudy>
                 <component-icone>HELLO.png</component-icone>
diff --git a/resources/HELLO_en.ps b/resources/HELLO_en.ps
deleted file mode 100644 (file)
index 4d6e36d..0000000
+++ /dev/null
@@ -1,789 +0,0 @@
-%!PS-Adobe-3.0
-%%Title: PYHELLO_en.xml
-%%For: Nicolas CROUZET - SFME/LGLS
-%%Creator: a2ps version 4.13
-%%CreationDate: Tue Nov  4 17:58:50 2003
-%%BoundingBox: 24 24 588 768
-%%DocumentData: Clean7Bit
-%%Orientation: Landscape
-%%Pages: 1
-%%PageOrder: Ascend
-%%DocumentMedia: Letter 612 792 0 () ()
-%%DocumentNeededResources: font Courier
-%%+ font Courier-Bold
-%%+ font Courier-BoldOblique
-%%+ font Courier-Oblique
-%%+ font Helvetica
-%%+ font Helvetica-Bold
-%%+ font Symbol
-%%+ font Times-Bold
-%%+ font Times-Roman
-%%DocumentProcessColors: Black 
-%%DocumentSuppliedResources: procset a2ps-a2ps-hdr
-%%+ procset a2ps-black+white-Prolog
-%%+ encoding ISO-8859-1Encoding
-%%EndComments
-/a2psdict 200 dict def
-a2psdict begin
-%%BeginProlog
-%%Copyright: (c) 1988, 89, 90, 91, 92, 93 Miguel Santana
-%%Copyright: (c) 1995, 96, 97, 98 Akim Demaille, Miguel Santana
-% Check PostScript language level.
-/languagelevel where {
-  pop /gs_languagelevel languagelevel def
-} {
-  /gs_languagelevel 1 def
-} ifelse
-
-% EPSF import as in the Red Book
-/BeginInclude {
-  /b4_Inc_state save def               % Save state for cleanup
-  /dict_count countdictstack def       % Count objects on dict stack
-  /op_count count 1 sub def            % Count objects on operand stack 
-  userdict begin
-    0 setgray 0 setlinecap
-    1 setlinewidth 0 setlinejoin
-    10 setmiterlimit [ ] 0 setdash newpath
-    gs_languagelevel 1 ne {
-      false setstrokeadjust false setoverprint 
-    } if
-} bind def
-
-/EndInclude {
-  count op_count sub { pos } repeat    % Clean up stacks
-  countdictstack dict_count sub { end } repeat
-  b4_Inc_state restore
-} bind def
-
-/BeginEPSF {
-  BeginInclude
-  /showpage { } def
-} bind def
-
-/EndEPSF {
-  EndInclude
-} bind def
-
-% Page prefeed
-/page_prefeed {         % bool -> -
-  statusdict /prefeed known {
-    statusdict exch /prefeed exch put
-  } {
-    pop
-  } ifelse
-} bind def
-
-/deffont {
-  findfont exch scalefont def
-} bind def
-
-/reencode_font {
-  findfont reencode 2 copy definefont pop def
-} bind def
-
-% Function c-show (str => -)
-% centers text only according to x axis.
-/c-show { 
-  dup stringwidth pop
-  2 div neg 0 rmoveto
-  show
-} bind def
-
-% Function l-show (str => -)
-% prints texts so that it ends at currentpoint
-/l-show {
-  dup stringwidth pop neg 
-  0 
-  rmoveto show
-} bind def
-
-% center-fit show (str w => -)
-% show centered, and scale currentfont so that the width is less than w
-/cfshow {
-  exch dup stringwidth pop
-  % If the title is too big, try to make it smaller
-  3 2 roll 2 copy
-  gt
-  { % if, i.e. too big
-    exch div
-    currentfont exch scalefont setfont
-  } { % ifelse
-    pop pop 
-  }
-  ifelse
-  c-show                       % center title
-} bind def
-
-% Return the y size of the current font
-% - => fontsize
-/currentfontsize {
-  currentfont /FontType get 0 eq {
-    currentfont /FontMatrix get 3 get
-  }{
-    currentfont /FontMatrix get 3 get 1000 mul
-  } ifelse
-} bind def
-
-% reencode the font
-% <encoding-vector> <fontdict> -> <newfontdict>
-/reencode { %def
-  dup length 5 add dict begin
-    { %forall
-      1 index /FID ne 
-      { def }{ pop pop } ifelse
-    } forall
-    /Encoding exch def
-
-    % Use the font's bounding box to determine the ascent, descent,
-    % and overall height; don't forget that these values have to be
-    % transformed using the font's matrix.
-    % We use `load' because sometimes BBox is executable, sometimes not.
-    % Since we need 4 numbers an not an array avoid BBox from being executed
-    /FontBBox load aload pop
-    FontMatrix transform /Ascent exch def pop
-    FontMatrix transform /Descent exch def pop
-    /FontHeight Ascent Descent sub def
-
-    % Define these in case they're not in the FontInfo (also, here
-    % they're easier to get to.
-    /UnderlinePosition 1 def
-    /UnderlineThickness 1 def
-    
-    % Get the underline position and thickness if they're defined.
-    currentdict /FontInfo known {
-      FontInfo
-      
-      dup /UnderlinePosition known {
-       dup /UnderlinePosition get
-       0 exch FontMatrix transform exch pop
-       /UnderlinePosition exch def
-      } if
-      
-      dup /UnderlineThickness known {
-       /UnderlineThickness get
-       0 exch FontMatrix transform exch pop
-       /UnderlineThickness exch def
-      } if
-      
-    } if
-    currentdict 
-  end 
-} bind def
-
-% composite fonts for ASCII-EUC mixed string
-% Version 1.2 1/31/1990
-% Orignal Ken'ichi HANDA (handa@etl.go.jp)
-% Modified Norio Katayama (katayama@rd.nacsis.ac.jp),1998
-% Extend & Fix Koji Nakamaru (maru@on.cs.keio.ac.jp), 1999
-% Anyone can freely copy, modify, distribute this program.
-
-/copyfont {    % font-dic extra-entry-count  copyfont  font-dic
-       1 index maxlength add dict begin
-       {       1 index /FID ne 2 index /UniqueID ne and
-               {def} {pop pop} ifelse
-       } forall
-       currentdict
-       end
-} bind def
-
-/compositefont { % ASCIIFontName EUCFontName RomanScale RomanOffset Rot(T/F) compositefont font
-    /RomanRotation exch def
-    /RomanOffset exch def
-    /RomanScale exch def
-    userdict /fixeucfont_dict known not {
-       userdict begin
-           /fixeucfont_dict 2 dict begin
-               /UpperByteEncoding [
-                   16#00 1 16#20 { pop 0 } for
-                   16#21 1 16#28 { 16#20 sub } for
-                   16#29 1 16#2F { pop 0 } for
-                   16#30 1 16#74 { 16#27 sub } for
-                   16#75 1 16#FF { pop 0 } for
-               ] def
-               /LowerByteEncoding [
-                   16#00 1 16#A0 { pop /.notdef } for
-                   16#A1 1 16#FE { 16#80 sub 16 2 string cvrs
-                                   (cXX) dup 1 4 -1 roll
-                                   putinterval cvn } for
-                   /.notdef
-               ] def
-               currentdict
-           end def
-       end
-    } if
-    findfont dup /FontType get 0 eq {
-       14 dict begin
-           %
-           % 7+8 bit EUC font
-           %
-           12 dict begin
-               /EUCFont exch def
-               /FontInfo (7+8 bit EUC font) readonly def
-               /PaintType 0 def
-               /FontType 0 def
-               /FontMatrix matrix def
-               % /FontName
-               /Encoding fixeucfont_dict /UpperByteEncoding get def
-               /FMapType 2 def
-               EUCFont /WMode known
-               { EUCFont /WMode get /WMode exch def }
-               { /WMode 0 def } ifelse
-               /FDepVector [
-                   EUCFont /FDepVector get 0 get
-                   [ 16#21 1 16#28 {} for 16#30 1 16#74 {} for ]
-                   {
-                       13 dict begin
-                           /EUCFont EUCFont def
-                           /UpperByte exch 16#80 add def       
-                           % /FontName
-                           /FontInfo (EUC lower byte font) readonly def
-                           /PaintType 0 def
-                           /FontType 3 def
-                           /FontMatrix matrix def
-                           /FontBBox {0 0 0 0} def
-                           /Encoding
-                               fixeucfont_dict /LowerByteEncoding get def
-                           % /UniqueID
-                           % /WMode
-                           /BuildChar {
-                               gsave
-                               exch dup /EUCFont get setfont
-                               /UpperByte get
-                               2 string
-                               dup 0 4 -1 roll put
-                               dup 1 4 -1 roll put
-                               dup stringwidth setcharwidth
-                               0 0 moveto show
-                               grestore
-                           } bind def
-                           currentdict
-                       end
-                       /lowerbytefont exch definefont
-                   } forall
-               ] def
-               currentdict
-           end
-           /eucfont exch definefont
-           exch
-           findfont 1 copyfont dup begin
-               RomanRotation {
-                       /FontMatrix FontMatrix
-                       [ 0 RomanScale neg RomanScale 0 RomanOffset neg 0 ]
-                       matrix concatmatrix def
-               }{
-                       /FontMatrix FontMatrix
-                       [ RomanScale 0 0 RomanScale 0 RomanOffset ] matrix concatmatrix
-                       def
-                       /CDevProc
-                           {pop pop pop pop 0 exch -1000 exch 2 div 880} def
-               } ifelse
-           end
-           /asciifont exch definefont
-           exch
-           /FDepVector [ 4 2 roll ] def
-           /FontType 0 def
-           /WMode 0 def
-           /FMapType 4 def
-           /FontMatrix matrix def
-           /Encoding [0 1] def
-           /FontBBox {0 0 0 0} def
-%          /FontHeight 1.0 def % XXXX
-           /FontHeight RomanScale 1.0 ge { RomanScale }{ 1.0 } ifelse def
-           /Descent -0.3 def   % XXXX
-           currentdict
-       end
-       /tmpfont exch definefont
-       pop
-       /tmpfont findfont
-    }{
-       pop findfont 0 copyfont
-    } ifelse
-} def  
-
-/slantfont {   % FontName slant-degree  slantfont  font'
-    exch findfont 1 copyfont begin
-    [ 1 0 4 -1 roll 1 0 0 ] FontMatrix exch matrix concatmatrix
-    /FontMatrix exch def
-    currentdict
-    end
-} def
-
-% Function print line number (<string> # -)
-/# {
-  gsave
-    sx cw mul neg 2 div 0 rmoveto
-    f# setfont
-    c-show
-  grestore
-} bind def
-
-% -------- Some routines to enlight plain b/w printings ---------
-
-% Underline
-% width --
-/dounderline {
-  currentpoint
-  gsave
-    moveto
-    0 currentfont /Descent get currentfontsize mul rmoveto
-    0 rlineto
-    stroke
-  grestore
-} bind def
-
-% Underline a string
-% string --
-/dounderlinestring {
-  stringwidth pop
-  dounderline
-} bind def
-
-/UL {
-  /ul exch store
-} bind def
-
-% Draw a box of WIDTH wrt current font
-% width --
-/dobox {
-  currentpoint
-  gsave
-    newpath
-    moveto
-    0 currentfont /Descent get currentfontsize mul rmoveto
-    dup 0 rlineto
-    0 currentfont /FontHeight get currentfontsize mul rlineto
-    neg 0 rlineto
-    closepath
-    stroke
-  grestore
-} bind def
-
-/BX {
-  /bx exch store
-} bind def
-
-% Box a string
-% string --
-/doboxstring {
-  stringwidth pop
-  dobox
-} bind def
-
-%
-% ------------- Color routines ---------------
-%
-/FG /setrgbcolor load def
-
-% Draw the background
-% width --
-/dobackground {
-  currentpoint
-  gsave
-    newpath
-    moveto
-    0 currentfont /Descent get currentfontsize mul rmoveto
-    dup 0 rlineto
-    0 currentfont /FontHeight get currentfontsize mul rlineto
-    neg 0 rlineto
-    closepath
-    bgcolor aload pop setrgbcolor
-    fill
-  grestore
-} bind def
-
-% Draw bg for a string
-% string --
-/dobackgroundstring {
-  stringwidth pop
-  dobackground
-} bind def
-
-
-/BG {
-  dup /bg exch store
-  { mark 4 1 roll ] /bgcolor exch store } if
-} bind def
-
-
-/Show {
-  bg { dup dobackgroundstring } if
-  ul { dup dounderlinestring } if
-  bx { dup doboxstring } if
-  show
-} bind def
-
-% Function T(ab), jumps to the n-th tabulation in the current line
-/T {
-  cw mul x0 add
-  bg { dup currentpoint pop sub dobackground } if
-  ul { dup currentpoint pop sub dounderline } if
-  bx { dup currentpoint pop sub dobox } if
-  y0 moveto
-} bind def
-
-% Function n: move to the next line
-/n {
-  /y0 y0 bfs sub store
-  x0 y0 moveto
-} bind def
-
-% Function N: show and move to the next line
-/N {
-  Show
-  /y0 y0 bfs sub store
-  x0 y0 moveto
-} bind def
-
-/S {
-  Show
-} bind def
-
-%%BeginResource: procset a2ps-a2ps-hdr 2.0 2
-%%Copyright: (c) 1988, 89, 90, 91, 92, 93 Miguel Santana
-%%Copyright: (c) 1995, 96, 97, 98 Akim Demaille, Miguel Santana
-% Function title: prints page header.
-% <ct> <rt> <lt> are passed as argument
-/title { 
-  % 1. Draw the background
-  x v get y v get moveto
-  gsave
-    0 th 2 div neg rmoveto 
-    th setlinewidth
-    0.95 setgray
-    pw 0 rlineto stroke
-  grestore
-  % 2. Border it
-  gsave
-    0.7 setlinewidth
-    pw 0 rlineto
-    0 th neg rlineto
-    pw neg 0 rlineto
-    closepath stroke
-  grestore
-  % stk: ct rt lt
-  x v get y v get th sub 1 add moveto
-%%IncludeResource: font Helvetica
-  fHelvetica fnfs 0.8 mul scalefont setfont
-  % 3. The left title
-  gsave
-    dup stringwidth pop fnfs 0.8 mul add exch % leave space took on stack
-    fnfs 0.8 mul hm rmoveto
-    show                       % left title
-  grestore
-  exch
-  % stk: ct ltw rt
-  % 4. the right title
-  gsave
-    dup stringwidth pop fnfs 0.8 mul add exch % leave space took on stack
-    dup
-    pw exch stringwidth pop fnfs 0.8 mul add sub
-    hm
-    rmoveto
-    show                       % right title
-  grestore
-  % stk: ct ltw rtw
-  % 5. the center title
-  gsave
-    pw 3 1 roll
-    % stk: ct pw ltw rtw
-    3 copy 
-    % Move to the center of the left room
-    sub add 2 div hm rmoveto
-    % What is the available space in here?
-    add sub fnfs 0.8 mul sub fnfs 0.8 mul sub
-    % stk: ct space_left
-%%IncludeResource: font Helvetica-Bold
-  fHelvetica-Bold fnfs scalefont setfont
-    cfshow
-  grestore
-} bind def
-
-% Function border: prints virtual page border
-/border { %def
-  gsave                                % print four sides
-    0 setgray
-    x v get y v get moveto
-    0.7 setlinewidth           % of the square
-    pw 0 rlineto
-    0 ph neg rlineto
-    pw neg 0 rlineto
-    closepath stroke
-  grestore
-} bind def
-
-% Function water: prints a water mark in background
-/water { %def
-  gsave
-    scx scy moveto rotate
-%%IncludeResource: font Times-Bold
-  fTimes-Bold 100 scalefont setfont
-    .97 setgray
-    dup stringwidth pop 2 div neg -50 rmoveto
-    show
-  grestore
-} bind def
-
-% Function rhead: prints the right header
-/rhead {  %def
-  lx ly moveto
-  fHelvetica fnfs 0.8 mul scalefont setfont
-  l-show
-} bind def
-
-% Function footer (cf rf lf -> -)
-/footer {
-  fHelvetica fnfs 0.8 mul scalefont setfont
-  dx dy moveto
-  show
-
-  snx sny moveto
-  l-show
-  
-  fnx fny moveto
-  c-show
-} bind def
-%%EndResource
-%%BeginResource: procset a2ps-black+white-Prolog 2.0 1
-
-% Function T(ab), jumps to the n-th tabulation in the current line
-/T { 
-  cw mul x0 add y0 moveto
-} bind def
-
-% Function n: move to the next line
-/n { %def
-  /y0 y0 bfs sub store
-  x0 y0 moveto
-} bind def
-
-% Function N: show and move to the next line
-/N {
-  Show
-  /y0 y0 bfs sub store
-  x0 y0 moveto
-}  bind def
-
-/S {
-  Show
-} bind def
-
-/p {
-  false UL
-  false BX
-  fCourier bfs scalefont setfont
-  Show
-} bind def
-
-/sy {
-  false UL
-  false BX
-  fSymbol bfs scalefont setfont
-  Show
-} bind def
-
-/k {
-  false UL
-  false BX
-  fCourier-Oblique bfs scalefont setfont
-  Show
-} bind def
-
-/K {
-  false UL
-  false BX
-  fCourier-Bold bfs scalefont setfont
-  Show
-} bind def
-
-/c {
-  false UL
-  false BX
-  fCourier-Oblique bfs scalefont setfont
-  Show
-} bind def
-
-/C {
-  false UL
-  false BX
-  fCourier-BoldOblique bfs scalefont setfont
-  Show 
-} bind def
-
-/l {
-  false UL
-  false BX
-  fHelvetica bfs scalefont setfont
-  Show
-} bind def
-
-/L {
-  false UL
-  false BX
-  fHelvetica-Bold bfs scalefont setfont
-  Show 
-} bind def
-
-/str{
-  false UL
-  false BX
-  fTimes-Roman bfs scalefont setfont
-  Show
-} bind def
-
-/e{
-  false UL
-  true BX
-  fHelvetica-Bold bfs scalefont setfont
-  Show
-} bind def
-
-%%EndResource
-%%EndProlog
-%%BeginSetup
-%%IncludeResource: font Courier
-%%IncludeResource: font Courier-Oblique
-%%IncludeResource: font Courier-Bold
-%%IncludeResource: font Times-Roman
-%%IncludeResource: font Symbol
-%%IncludeResource: font Courier-BoldOblique
-%%BeginResource: encoding ISO-8859-1Encoding
-/ISO-8859-1Encoding [
-/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 
-/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 
-/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 
-/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 
-/space /exclam /quotedbl /numbersign /dollar /percent /ampersand /quoteright 
-/parenleft /parenright /asterisk /plus /comma /minus /period /slash 
-/zero /one /two /three /four /five /six /seven 
-/eight /nine /colon /semicolon /less /equal /greater /question 
-/at /A /B /C /D /E /F /G 
-/H /I /J /K /L /M /N /O 
-/P /Q /R /S /T /U /V /W 
-/X /Y /Z /bracketleft /backslash /bracketright /asciicircum /underscore 
-/quoteleft /a /b /c /d /e /f /g 
-/h /i /j /k /l /m /n /o 
-/p /q /r /s /t /u /v /w 
-/x /y /z /braceleft /bar /braceright /asciitilde /.notdef 
-/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 
-/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 
-/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 
-/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef 
-/space /exclamdown /cent /sterling /currency /yen /brokenbar /section 
-/dieresis /copyright /ordfeminine /guillemotleft /logicalnot /hyphen /registered /macron 
-/degree /plusminus /twosuperior /threesuperior /acute /mu /paragraph /bullet 
-/cedilla /onesuperior /ordmasculine /guillemotright /onequarter /onehalf /threequarters /questiondown 
-/Agrave /Aacute /Acircumflex /Atilde /Adieresis /Aring /AE /Ccedilla 
-/Egrave /Eacute /Ecircumflex /Edieresis /Igrave /Iacute /Icircumflex /Idieresis 
-/Eth /Ntilde /Ograve /Oacute /Ocircumflex /Otilde /Odieresis /multiply 
-/Oslash /Ugrave /Uacute /Ucircumflex /Udieresis /Yacute /Thorn /germandbls 
-/agrave /aacute /acircumflex /atilde /adieresis /aring /ae /ccedilla 
-/egrave /eacute /ecircumflex /edieresis /igrave /iacute /icircumflex /idieresis 
-/eth /ntilde /ograve /oacute /ocircumflex /otilde /odieresis /divide 
-/oslash /ugrave /uacute /ucircumflex /udieresis /yacute /thorn /ydieresis 
-] def
-%%EndResource
-% Initialize page description variables.
-/sh 612 def
-/sw 792 def
-/llx 24 def
-/urx 768 def
-/ury 588 def
-/lly 24 def
-/#copies 1 def
-/th 20.000000 def
-/fnfs 15 def
-/bfs 8.000000 def
-/cw 4.800000 def
-
-% Dictionary for ISO-8859-1 support
-/iso1dict 8 dict begin
-  /fCourier ISO-8859-1Encoding /Courier reencode_font
-  /fCourier-Bold ISO-8859-1Encoding /Courier-Bold reencode_font
-  /fCourier-BoldOblique ISO-8859-1Encoding /Courier-BoldOblique reencode_font
-  /fCourier-Oblique ISO-8859-1Encoding /Courier-Oblique reencode_font
-  /fHelvetica ISO-8859-1Encoding /Helvetica reencode_font
-  /fHelvetica-Bold ISO-8859-1Encoding /Helvetica-Bold reencode_font
-  /fTimes-Bold ISO-8859-1Encoding /Times-Bold reencode_font
-  /fTimes-Roman ISO-8859-1Encoding /Times-Roman reencode_font
-currentdict end def
-/bgcolor [ 0 0 0 ] def
-/bg false def
-/ul false def
-/bx false def
-% The font for line numbering
-/f# /Helvetica findfont bfs .6 mul scalefont def
-/fSymbol /Symbol findfont def
-/hm fnfs 0.25 mul def
-/pw
-   cw 154.400000 mul
-def
-/ph
-   517.600000 th add
-def
-/pmw 0 def
-/pmh 0 def
-/v 0 def
-/x [
-  0
-] def
-/y [
-  pmh ph add 0 mul ph add
-] def
-/scx sw 2 div def
-/scy sh 2 div def
-/snx urx def
-/sny lly 2 add def
-/dx llx def
-/dy sny def
-/fnx scx def
-/fny dy def
-/lx snx def
-/ly ury fnfs 0.8 mul sub def
-/sx 0 def
-/tab 8 def
-/x0 0 def
-/y0 0 def
-%%EndSetup
-
-%%Page: (1) 1
-%%BeginPageSetup
-/pagesave save def
-sh 0 translate 90 rotate
-%%EndPageSetup
-iso1dict begin
-gsave
-llx lly 12 add translate
-/v 0 store
-/x0 x v get 3.360000 add sx cw mul add store
-/y0 y v get bfs th add sub store
-x0 y0 moveto
-(<?xml version='1.0' encoding='us-ascii'?>) p n
-(<!DOCTYPE application PUBLIC "" "desktop.dtd">) N
-(<application title="PYHELLO component" date="9/12/2001" author="C Caremoli" appId="PYHELLO" >) N
-(<desktop>) N
-(<!-- ### MENUBAR ###  -->) N
-(<menubar>) N
-( <menu-item label-id="PYHELLO" item-id="90" pos-id="3">) N
-(  <popup-item item-id="941" label-id="Lancer IHM" icon-id="" tooltip-id="Lancer IHM PYHELLO" accel-id="" toggle-id="" execute-action=""/>) N
-( </menu-item>) N
-(</menubar>) N
-(<!-- ### TOOLBAR ###  -->) N
-(<toolbar label-id="PYHELLO">) N
-( <toolbutton-item item-id="941" label-id="Lancer IHM" icon-id="ExecPYHELLO.png" tooltip-id="Lancer IHM PYHELLO" accel-id="" toggle-id="" execute-action=") N
-("/>) N
-(</toolbar>) N
-(</desktop>) N
-(</application>) N
-() N
-(PYHELLO_en.xml) (Page 1/1) (Oct 14, 03 10:41) title
-border
-grestore
-(Printed by Nicolas CROUZET - SFME/LGLS) rhead
-(PYHELLO_en.xml) (1/1) (Tuesday November 04, 2003) footer
-end % of iso1dict
-pagesave restore
-showpage
-
-%%Trailer
-end
-%%EOF
diff --git a/resources/HELLO_en.xml b/resources/HELLO_en.xml
deleted file mode 100644 (file)
index 1fa0193..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version='1.0' encoding='us-ascii'?>
-<!DOCTYPE application PUBLIC "" "desktop.dtd">
-<application title="HELLO component" date="9/12/2001" author="C Caremoli" appId="HELLO" >
-<desktop>
-<!-- ### MENUBAR ###  -->
-<menubar>
-
- <menu-item label-id="File" item-id="1" pos-id="">
-  <submenu label-id="Hello" item-id="19" pos-id="9">
-   <popup-item item-id="190" pos-id="" label-id="MyNewItem" icon-id="" tooltip-id="" accel-id="" toggle-id="" execute-action=""/>
-  </submenu>
-  <endsubmenu />
- </menu-item>
-
- <menu-item label-id="HELLO" item-id="90" pos-id="3">
-  <popup-item item-id="901" label-id="Get banner" icon-id="" tooltip-id="Get HELLO banner" accel-id="" toggle-id="" execute-action=""/>
-
- </menu-item>
-</menubar>
-<!-- ### TOOLBAR ###  -->
-<toolbar label-id="HELLO">
- <toolbutton-item item-id="901" label-id="Get banner" icon-id="ExecHELLO.png" tooltip-id="Get HELLO banner" accel-id="" toggle-id="" execute-action=""/>
-</toolbar>
-</desktop>
-</application>
-
diff --git a/resources/HELLO_fr.xml b/resources/HELLO_fr.xml
deleted file mode 100644 (file)
index 10d19eb..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version='1.0' encoding='us-ascii'?>
-<!DOCTYPE application PUBLIC "" "desktop.dtd">
-<application title="HELLO component" date="9/12/2001" author="C Caremoli" appId="HELLO" >
-<desktop>
-<!-- ### MENUBAR ###  -->
-<menubar>
- <menu-item label-id="File" item-id="1" pos-id="">
-  <submenu label-id="Hello" item-id="19" pos-id="9">
-   <popup-item item-id="190" pos-id="" label-id="MyNewItem" icon-id="" tooltip-id="" accel-id="" toggle-id="" execute-action=""/>
-  </submenu>
-  <endsubmenu />
- </menu-item>
- <menu-item label-id="HELLO" item-id="90" pos-id="3">
-  <popup-item item-id="941" label-id="Lancer IHM" icon-id="" tooltip-id="Lancer IHM HELLO" accel-id="" toggle-id="" execute-action=""/>
- </menu-item>
-</menubar>
-<!-- ### TOOLBAR ###  -->
-<toolbar label-id="HELLO">
- <toolbutton-item item-id="941" label-id="Lancer IHM" icon-id="ExecHELLO.png" tooltip-id="Lancer IHM HELLO" accel-id="" toggle-id="" execute-action=""/>
-</toolbar>
-</desktop>
-</application>
-
diff --git a/resources/config b/resources/config
deleted file mode 100644 (file)
index e347112..0000000
+++ /dev/null
@@ -1 +0,0 @@
-language=en
index 83ea5ba7c28a17cd13c7e0cd8603291e4ace8bb4..4e6add18b9cc7ccf48b4235931402b4da875f14f 100644 (file)
-using namespace std;
 #include "HELLOGUI.h"
 
-// SALOME Includes
-#include "Utils_ORB_INIT.hxx"
-#include "Utils_SINGLETON.hxx"
-#include "utilities.h"
-
-#include "SALOME_Selection.h"
-#include "SALOME_InteractiveObject.hxx"
-#include "SALOMEGUI_QtCatchCorbaException.hxx"
-
-#include "QAD_MessageBox.h"
-//#include "QAD_Tools.h"
-//#include "QAD_FileDlg.h"
+#include <SUIT_MessageBox.h>
+#include <SUIT_ResourceMgr.h>
+#include <SalomeApp_Application.h>
 
-//#include "SMESH_TypeFilter.hxx"
+#include <SALOME_LifeCycleCORBA.hxx>
 
 // QT Includes
 #include <qinputdialog.h>
-#include <qmessagebox.h>
-
-HELLOGUI::HELLOGUI( const QString& theName, QObject* theParent ) :
-  SALOMEGUI( theName, theParent )
-{}
 
+using namespace std;
 
-// launch HELLO component and return a handle
-HELLO_ORB::HELLO_Gen_ptr HELLOGUI::InitHELLOGen(QAD_Desktop* parent)
+// Constructor
+HELLOGUI::HELLOGUI() :
+  SalomeApp_Module( "HELLO" ) // default name
 {
-    Engines::Component_var comp =
-       parent->getEngine("FactoryServer", "HELLO");
-    HELLO_ORB::HELLO_Gen_ptr clr = HELLO_ORB::HELLO_Gen::_narrow(comp);
-    ASSERT(!CORBA::is_nil(clr));
-    return clr;
-    //return clr._retn();
 }
 
-
-bool HELLOGUI::OnGUIEvent (int theCommandID, QAD_Desktop* parent)
+// Gets an reference to the module's engine
+HELLO_ORB::HELLO_Gen_ptr HELLOGUI::InitHELLOGen( SalomeApp_Application* app )
 {
-  MESSAGE("HELLOGUI::OnGUIEvent");
-  
-  QAD_Study* myActiveStudy   = parent->getActiveStudy();
-
-  QString file;
-
-  switch (theCommandID)
-    {
-    case 901: // call getBanner service
-      {
-       MESSAGE("command " << theCommandID << " activated");
-
-       QString myStudyName = myActiveStudy->getTitle();
-       int myStudyId = myActiveStudy->getStudyId();
-       
-       bool ok=FALSE;
-
-       // Dialog to get the Name
-       QString myName;
-       myName = QInputDialog::getText( tr("QUE_HELLO_LABEL"), tr("QUE_HELLO_NAME"), 
-               QLineEdit::Normal,
-               QString::null, &ok);
-
-       if ( ! myName.isEmpty()) // if we got a name, get a HELLO component and ask for makeBanner
-       {
-           HELLO_ORB::HELLO_Gen_ptr hellogen = HELLOGUI::InitHELLOGen(parent);
-           QString banner = hellogen->makeBanner(myName);
-           QAD_MessageBox::info1( parent, tr("INF_HELLO_BANNER"), banner, tr("BUT_OK"));
-       }
-       else
-       {
-           MESSAGE("CANCEL");
-       }
-
-      }
-      break;
-    case 190: // just a test in File Menu
-      {
-           QAD_MessageBox::warn1 (parent,tr("INF_HELLO_BANNER"),tr("INF_HELLO_MENU"),tr("BUT_OK"));
-      }
-    }
-  return true;
+  Engines::Component_var comp = app->lcc()->FindOrLoad_Component( "FactoryServer","HELLO" );
+  HELLO_ORB::HELLO_Gen_ptr clr = HELLO_ORB::HELLO_Gen::_narrow(comp);
+  ASSERT(!CORBA::is_nil(clr));
+  return clr;
 }
 
-
-bool HELLOGUI::SetSettings (QAD_Desktop* parent)
+// Module's initialization
+void HELLOGUI::initialize( CAM_Application* app )
 {
-  MESSAGE("HELLOGUI::SetSettings");
-  return true;
+
+  SalomeApp_Module::initialize( app );
+
+  InitHELLOGen( dynamic_cast<SalomeApp_Application*>( app ) );
+
+  QWidget* aParent = app->desktop();
+  SUIT_ResourceMgr* aResourceMgr = app->resourceMgr();
+
+  // create actions
+  createAction( 190, tr( "TLT_MY_NEW_ITEM" ), QIconSet(), tr( "MEN_MY_NEW_ITEM" ), tr( "STS_MY_NEW_ITEM" ), 0, aParent, false,
+               this, SLOT( OnMyNewItem() ) );
+  QPixmap aPixmap = aResourceMgr->loadPixmap( "HELLO",tr( "ICON_GET_BANNER" ) );
+  createAction( 901, tr( "TLT_GET_BANNER" ), QIconSet( aPixmap ), tr( "MEN_GET_BANNER" ), tr( "STS_GET_BANNER" ), 0, aParent, false,
+               this, SLOT( OnGetBanner() ) );
+
+  // create menus
+  int aMenuId;
+  aMenuId = createMenu( tr( "MEN_FILE" ), -1, -1 );
+  createMenu( separator(), aMenuId, -1, 10 );
+  aMenuId = createMenu( tr( "MEN_FILE_HELLO" ), aMenuId, -1, 10 );
+  createMenu( 190, aMenuId );
+
+  aMenuId = createMenu( tr( "MEN_HELLO" ), -1, -1, 30 );
+  createMenu( 901, aMenuId, 10 );
+
+  // create toolbars
+  int aToolId = createTool ( tr( "TOOL_HELLO" ) );
+  createTool( 901, aToolId );
 }
 
+// Module's engine IOR
+QString HELLOGUI::engineIOR() const
+{
+  CORBA::String_var anIOR = getApp()->orb()->object_to_string( InitHELLOGen( getApp() ) );
+  return QString( anIOR.in() );
+}
 
-bool HELLOGUI::CustomPopup ( QAD_Desktop* parent,
-                          QPopupMenu* popup,
-                          const QString & theContext,
-                          const QString & theParent,
-                          const QString & theObject )
+// Module's activation
+bool HELLOGUI::activateModule( SUIT_Study* theStudy )
 {
-  MESSAGE("HELLOGUI::CustomPopup");
-  return true;
+  bool bOk = SalomeApp_Module::activateModule( theStudy );
+
+  setMenuShown( true );
+  setToolShown( true );
+
+  return bOk;
 }
 
-bool HELLOGUI::ActiveStudyChanged( QAD_Desktop* parent )
+// Module's deactivation
+bool HELLOGUI::deactivateModule( SUIT_Study* theStudy )
 {
-  MESSAGE("HELLOGUI::ActiveStudyChanged");
-  return true;
+  setMenuShown( false );
+  setToolShown( false );
+
+  return SalomeApp_Module::deactivateModule( theStudy );
 }
 
-void HELLOGUI::DefinePopup( QString & theContext, QString & theParent, QString & theObject )
+// Default windows
+void HELLOGUI::windows( QMap<int, int>& theMap ) const
 {
-  MESSAGE("HELLOGUI::DefinePopup");
-  //theObject = "";
-  //theContext = "";
+  theMap.clear();
+  theMap.insert( SalomeApp_Application::WT_ObjectBrowser, Qt::DockLeft );
+  theMap.insert( SalomeApp_Application::WT_PyConsole,     Qt::DockBottom );
 }
 
+// Action slot
+void HELLOGUI::OnMyNewItem()
+{
+  SUIT_MessageBox::warn1( getApp()->desktop(),tr( "INF_HELLO_BANNER" ), tr( "INF_HELLO_MENU" ), tr( "BUT_OK" ) );
+}
 
-static HELLOGUI aGUI("");
-extern "C"
+// Action slot
+void HELLOGUI::OnGetBanner()
 {
-  Standard_EXPORT SALOMEGUI* GetComponentGUI() {
-    return &aGUI;
+  // Dialog to get the Name
+  bool ok = FALSE;
+  QString myName = QInputDialog::getText( tr( "QUE_HELLO_LABEL" ), tr( "QUE_HELLO_NAME" ),
+                                         QLineEdit::Normal, QString::null, &ok );
+
+  if ( ok && !myName.isEmpty()) // if we got a name, get a HELLO component and ask for makeBanner
+  {
+    HELLO_ORB::HELLO_Gen_ptr hellogen = HELLOGUI::InitHELLOGen( getApp() );
+    QString banner = hellogen->makeBanner( myName );
+    SUIT_MessageBox::info1( getApp()->desktop(), tr( "INF_HELLO_BANNER" ), banner, tr( "BUT_OK" ) );
+  }
+}
+
+// Export the module
+extern "C" {
+  CAM_Module* createModule()
+  {
+    return new HELLOGUI();
   }
 }
index 2559c9dfc57b5ac37d32a2e117e21d16a1b7928d..692c1bab6060b8e875d121d789245d94411fa3f5 100644 (file)
@@ -4,41 +4,32 @@
 #ifndef _HELLOGUI_H_
 #define _HELLOGUI_H_
 
-#include "SALOMEGUI.h"
-#include "QAD_Desktop.h"
+#include <SalomeApp_Module.h>
 
 #include <SALOMEconfig.h>
 #include CORBA_CLIENT_HEADER(HELLO_Gen)
 
-
-
-class HELLOGUI: public SALOMEGUI
+class SalomeApp_Application;
+class HELLOGUI: public SalomeApp_Module
 {
   Q_OBJECT
 
 public:
-  HELLOGUI( const QString& name = "", QObject* parent = 0 );
-
-  virtual bool OnGUIEvent (int theCommandID, QAD_Desktop* parent);
-
-  virtual bool SetSettings (QAD_Desktop* parent);
-
-  virtual bool CustomPopup ( QAD_Desktop* parent,
-                           QPopupMenu* popup,
-                           const QString & theContext,
-                           const QString & theParent,
-                           const QString & theObject);
-
-  virtual void DefinePopup(QString & theContext, QString & theParent, QString & theObject);
-
-  virtual bool ActiveStudyChanged ( QAD_Desktop* parent );
+  HELLOGUI();
 
-  static HELLO_ORB::HELLO_Gen_ptr InitHELLOGen(QAD_Desktop* parent);
+  void    initialize( CAM_Application* );
+  QString engineIOR() const;
+  void    windows( QMap<int, int>& ) const;
 
-protected:
+  static HELLO_ORB::HELLO_Gen_ptr InitHELLOGen( SalomeApp_Application* );
 
-private:
+public slots:
+  bool    deactivateModule( SUIT_Study* );
+  bool    activateModule( SUIT_Study* );
 
+protected slots:
+  void            OnMyNewItem();
+  void            OnGetBanner();
 };
 
 #endif
index b386757ac53d6333472512568ee1dd51b605f34c..8c64ad6b1aa54ea557d81bf840d4483e09be4a8e 100644 (file)
@@ -9,3 +9,6 @@ msgstr ""
 "Last-Translator: FULLNAME <EMAIL@ADDRESS>\n"
 "Content-Type: text/plain; charset=iso-8859-1\n"
 
+msgid "ICON_GET_BANNER"
+msgstr "ExecHELLO.png"
+
index 7a235b130a8779046e53b463f317518c8bbfa68a..b2c70b549493f32a673d9f00f64562242371f97c 100644 (file)
@@ -29,3 +29,34 @@ msgstr "Name Import"
 #: HELLOGUI.cxx:57
 msgid "HELLOGUI::QUE_HELLO_NAME"
 msgstr "Please, Enter your name"
+
+msgid "TLT_MY_NEW_ITEM"
+msgstr "My menu item"
+
+msgid "MEN_MY_NEW_ITEM"
+msgstr "My menu item"
+
+msgid "STS_MY_NEW_ITEM"
+msgstr "Call my menu item"
+
+msgid "TLT_GET_BANNER"
+msgstr "Get HELLO banner"
+
+msgid "MEN_GET_BANNER"
+msgstr "Get banner"
+
+msgid "STS_GET_BANNER"
+msgstr "Get HELLO banner"
+
+msgid "MEN_FILE"
+msgstr "&File"
+
+msgid "MEN_FILE_HELLO"
+msgstr "Hello"
+
+msgid "MEN_HELLO"
+msgstr "HELLO"
+
+msgid "TOOL_HELLO"
+msgstr "HELLO"
+
index 401bfacd1527a619b473a392ac2331d663a6f4ab..cce461b32cf9c2b3bea589d78fe0d2aafa4a7674 100644 (file)
@@ -29,3 +29,34 @@ msgstr "Import Pr
 #: HELLOGUI.cxx:57
 msgid "HELLOGUI::QUE_HELLO_NAME"
 msgstr "Entrez votre prĂ©nom, s'il vous plait"
+
+msgid "TLT_MY_NEW_ITEM"
+msgstr "My menu item"
+
+msgid "MEN_MY_NEW_ITEM"
+msgstr "My menu item"
+
+msgid "STS_MY_NEW_ITEM"
+msgstr "Call my menu item"
+
+msgid "TLT_GET_BANNER"
+msgstr "Get HELLO banner"
+
+msgid "MEN_GET_BANNER"
+msgstr "Get banner"
+
+msgid "STS_GET_BANNER"
+msgstr "Get HELLO banner"
+
+msgid "MEN_FILE"
+msgstr "&File"
+
+msgid "MEN_FILE_HELLO"
+msgstr "Hello"
+
+msgid "MEN_HELLO"
+msgstr "HELLO"
+
+msgid "TOOL_HELLO"
+msgstr "HELLO"
+
index f100be4f474976e37aeea6a1fe3c3457889e2e16..b0f9ce420a4a343680d94a16520bbc5b17699be7 100644 (file)
@@ -13,20 +13,20 @@ EXPORT_HEADERS=
 PO_FILES =  HELLO_msg_en.po HELLO_msg_fr.po HELLO_icons.po
 
 # Libraries targets
-LIB = libHELLOGUI.la
+LIB = libHELLO.la
 LIB_SRC = HELLOGUI.cxx
 LIB_MOC = HELLOGUI.h
 
 
-LIB_CLIENT_IDL = SALOMEDS.idl SALOME_Exception.idl SALOME_ModuleCatalog.idl SALOMEDS_Attributes.idl SALOME_Component.idl HELLO_Gen.idl Logger.idl
+LIB_CLIENT_IDL = SALOMEDS.idl SALOME_Exception.idl SALOME_ModuleCatalog.idl SALOMEDS_Attributes.idl SALOME_Component.idl SALOME_GenericObj.idl HELLO_Gen.idl Logger.idl
 
 LIB_SERVER_IDL =
 
 # additionnal information to compil and link file
 
-CPPFLAGS += $(QT_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) -I${KERNEL_ROOT_DIR}/include/salome
-CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome
-LDFLAGS += -lSalomeGUI -lHELLOEngine -L${KERNEL_ROOT_DIR}/lib/salome
+CPPFLAGS += $(QT_INCLUDES) $(OCC_INCLUDES) $(PYTHON_INCLUDES) $(BOOST_CPPFLAGS) -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+CXXFLAGS += -I${KERNEL_ROOT_DIR}/include/salome -I${GUI_ROOT_DIR}/include/salome
+LDFLAGS += -lSalomeApp -lHELLOEngine -L${KERNEL_ROOT_DIR}/lib/salome -L${GUI_ROOT_DIR}/lib/salome