--- /dev/null
+# Check availability of Qt's msg2qm tool binary distribution
+#
+# Author : Jerome Roy (CEA, 2003)
+#
+
+AC_DEFUN([CHECK_MSG2QM],[
+AC_CHECKING(for msg2qm)
+
+msg2qm_ok=no
+
+AC_ARG_WITH(msg2qm,
+ [ --with-msg2qm=root_directory_path_of_MSG2QM_installation],
+ MSG2QM_DIR="$withval",MSG2QM_DIR="")
+
+if test "x$MSG2QM_DIR" == "x" ; then
+ # no --with-MSG2QM-dir option used
+ if test "x$MSG2QM_ROOT" != "x" ; then
+ # MSG2QM_ROOT environment variable defined
+ MSG2QM_DIR=$MSG2QM_ROOT
+ else
+ # search MSG2QM binaries in PATH variable
+ AC_PATH_PROG(TEMP, msg2qm)
+ if test "x$TEMP" != "x" ; then
+ MSG2QM_DIR=`dirname $TEMP`
+ fi
+ fi
+fi
+
+# look for msg2qm in ${MSG2QM_DIR} directory
+if test -f ${MSG2QM_DIR}/msg2qm ; then
+ msg2qm_ok=yes
+ MSG2QM="${MSG2QM_DIR}/msg2qm"
+ AC_MSG_RESULT(Using MSG2QM executable in ${MSG2QM_DIR})
+else
+ # if not found, look for msg2qm in ${MSG2QM_DIR}/bin directory
+ if test -f ${MSG2QM_DIR}/bin/msg2qm ; then
+ msg2qm_ok=yes
+ MSG2QM="${MSG2QM_DIR}/bin/msg2qm"
+ AC_MSG_RESULT(Using MSG2QM executable in ${MSG2QM_DIR}/bin)
+ fi
+fi
+
+if test "$msg2qm_ok" == "no"; then
+ # At last, let's have a look in SALOME (until V2.2.X)
+ SALOME_MSG2QM=${KERNEL_ROOT_DIR}/bin/salome/msg2qm
+ if test -f $SALOME_MSG2QM ; then
+ msg2qm_ok=yes
+ MSG2QM=${SALOME_MSG2QM}
+ AC_MSG_RESULT(Using MSG2QM executable provided with SALOME KERNEL)
+ else
+ AC_MSG_WARN("Cannot find MSG2QM executable in SALOME")
+ fi
+fi
+
+AC_SUBST(MSG2QM)
+AC_MSG_RESULT(for MSG2QM: $msg2qm_ok)
+
+])dnl
+
MOC = @MOC@
UIC = @UIC@
+# msg2qm
+MSG2QM = @MSG2QM@
#QWT
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
CHECK_KERNEL
+echo
+echo ---------------------------------------------
+echo testing msg2qm
+echo ---------------------------------------------
+echo
+
+CHECK_MSG2QM
+
echo
echo ---------------------------------------------
echo Testing Visu
echo
echo Configure
-variables="cc_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok med2_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok"
+variables="cc_ok lex_yacc_ok python_ok swig_ok threads_ok OpenGL_ok qt_ok vtk_ok hdf5_ok omniORB_ok occ_ok doxygen_ok graphviz_ok Kernel_ok msg2qm_ok"
for var in $variables
do
WORKSPACE=None
currentStudyId=None
+desktop=None
# -----------------------------------------------------------------------------
import salome
-sg=salome.SalomeGUI()
+sg=salome.sg
sgPyQt=SalomePyQt.SalomePyQt()
import salomedsgui
aGuiDS=salomedsgui.guiDS()
WORKSPACE=workSpace
print "WORKSPACE: ",WORKSPACE
# le desktop
- d=sgPyQt.getDesktop()
+ desktop=sgPyQt.getDesktop()
# creation d'une message box
#qt.QMessageBox.information(d,"titre","message")
Cette méthode permet les initialisations. On définit en particulier
l'identifiant de l'étude courante.
"""
+ # le desktop
+ desktop=sgPyQt.getDesktop()
global currentStudyId
currentStudyId = sgPyQt.getStudyId()
print "setSettings: currentStudyId = " + str(currentStudyId)
# -----------------------------------------------------------------------------
def activeStudyChanged(ID):
+ # le desktop
+ desktop=sgPyQt.getDesktop()
global currentStudyId
# ne marche pas car sg est supposé résider dans une etude
# studyId=sg.getActiveStudyId()
946:runEficaspourHomard,
4041:runEficas,
4046:runEficaspourHomard,
- 9042:runEficasFichier,
+ 9042:runEficasFichier,
}