try:
self.rootContext = obj._narrow(CosNaming.NamingContext)
return
- except CORBA.COMM_FAILURE:
+ except (CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE):
self.rootContext = None
print "Lancement du Naming Service",
obj = self.orb.resolve_initial_references("NameService")
self.rootContext = obj._narrow(CosNaming.NamingContext)
break
- except (CORBA.COMM_FAILURE,CORBA.OBJECT_NOT_EXIST):
+ except (CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE):
self.rootContext = None
sys.stdout.write('+')
sys.stdout.flush()
obj = None
except CosNaming.NamingContext.CannotProceed, ex:
obj = None
- except CORBA.COMM_FAILURE, ex:
+ except (CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE):
obj = None
return obj
obj = None
except CosNaming.NamingContext.CannotProceed, ex:
obj = None
- except CORBA.COMM_FAILURE, ex:
+ except (CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE):
obj = None
return obj
# -----------------------------------------------------------------------------
#
-# Définition des classes d'objets pour le lancement des Server CORBA
+# Definition des classes d'objets pour le lancement des Server CORBA
#
class Server:
#
# Lancement Registry Server,
- # attente de la disponibilité du Registry dans le Naming Service
+ # attente de la disponibilite du Registry dans le Naming Service
#
if 'registry' not in args['embedded']:
#
# Lancement Catalog Server,
- # attente de la disponibilité du Catalog Server dans le Naming Service
+ # attente de la disponibilite du Catalog Server dans le Naming Service
#
#
# Lancement SalomeDS Server,
- # attente de la disponibilité du SalomeDS dans le Naming Service
+ # attente de la disponibilite du SalomeDS dans le Naming Service
#
os.environ["CSF_PluginDefaults"] \
#macomm2=['ddd']
#pid = os.spawnvp(os.P_NOWAIT, macomm2[0], macomm2)
#
- # Attente de la disponibilité du Session Server dans le Naming Service
+ # Attente de la disponibilite du Session Server dans le Naming Service
#
import SALOME
- session=clt.waitNS("/Kernel/Session",SALOME.Session)
+ #session=clt.waitNS("/Kernel/Session",SALOME.Session)
from Utils_Identity import getShortHostName
#
# Lancement Container C++ local,
- # attente de la disponibilité du Container C++ local dans le Naming Service
+ # attente de la disponibilite du Container C++ local dans le Naming Service
#
if 'cppContainer' in args['standalone']:
#
# Lancement Container Python local,
- # attente de la disponibilité du Container Python local
+ # attente de la disponibilite du Container Python local
# dans le Naming Service
#
#
# Lancement Container Supervision local,
- # attente de la disponibilité du Container Supervision local
+ # attente de la disponibilite du Container Supervision local
# dans le Naming Service
#
try:
self.rootContext = obj._narrow(CosNaming.NamingContext)
return
- except CORBA.COMM_FAILURE:
+ except (CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE):
print "It's not a valid naming service"
self.rootContext = None
raise
AC_CHECK_FILE("$PYUIC",pyqt_ok=yes,pyqt_ok=no)
-if test "x$pyqt_ok" = xyes ; then
- AC_CHECK_FILES("$PYQTLIB/qt.py",pyqt_ok=yes,pyqt_ok=no)
-fi
+#if test "x$pyqt_ok" = xyes ; then
+# AC_CHECK_FILES("$PYQTLIB/qt.py",pyqt_ok=yes,pyqt_ok=no)
+#fi
-if test "x$pyqt_ok" = xno ; then
- AC_CHECK_FILES("$PYQTLIB/qt/qt.py",pyqt_ok=yes,pyqt_ok=no)
-fi
+#if test "x$pyqt_ok" = xno ; then
+# AC_CHECK_FILES("$PYQTLIB/qt/qt.py",pyqt_ok=yes,pyqt_ok=no)
+#fi
-if test "x$pyqt_ok" = xyes ; then
- AC_CHECK_FILE("$PYQTLIB/libqtcmodule.so",pyqt_ok=yes,pyqt_ok=no)
-fi
+#if test "x$pyqt_ok" = xyes ; then
+# AC_CHECK_FILE("$PYQTLIB/libqtcmodule.so",pyqt_ok=yes,pyqt_ok=no)
+#fi
if test "x$pyqt_ok" = xyes ; then
AC_CHECK_FILES("$PYQT_SIPS/qtmod.sip",pyqt_ok=yes,pyqt_ok=no)
AC_MSG_CHECKING(include of qt headers)
- if test "x$qt_ok" = "xno"
+ if test "x$qt_ok" = "xyes"
then
- AC_MSG_RESULT(qt headers not found, or too old qt version, in $QTDIR/include)
- AC_MSG_RESULT(QTDIR environment variable may be wrong)
- else
AC_MSG_RESULT(yes)
QT_INCLUDES="-I${QT_ROOT}/include -DQT_THREAD_SUPPORT"
QT_MT_INCLUDES="-I${QT_ROOT}/include -DQT_THREAD_SUPPORT"
+ else
+ CPPFLAGS_old=$CPPFLAGS
+ CPPFLAGS="$CPPFLAGS -I$QTDIR/include/qt3"
+
+ AC_LANG_CPLUSPLUS
+ AC_CHECK_HEADER(qapp.h,qt_ok=yes ,qt_ok=no)
+
+ CPPFLAGS=$CPPFLAGS_old
+
+ AC_MSG_CHECKING(include of qt headers)
+
+ if test "x$qt_ok" = "xno"
+ then
+ AC_MSG_RESULT(qt headers not found, or too old qt version, in $QTDIR/include)
+ AC_MSG_RESULT(QTDIR environment variable may be wrong)
+ else
+ AC_MSG_RESULT(yes)
+ QT_INCLUDES="-I${QT_ROOT}/include/qt3 -DQT_THREAD_SUPPORT"
+ QT_MT_INCLUDES="-I${QT_ROOT}/include/qt3 -DQT_THREAD_SUPPORT"
+ fi
fi
fi
LIBS="$LIBS -L$QTDIR/lib -lqt-mt $OGL_LIBS"
CXXFLAGS_old=$CXXFLAGS
- CXXFLAGS="$CXXFLAGS -I$QTDIR/include"
+ CXXFLAGS="$CXXFLAGS $QT_MT_INCLUDES"
AC_CACHE_VAL(salome_cv_lib_qt,[
AC_TRY_LINK(
])
if test -z $QWTHOME; then
+ AC_MSG_RESULT(QWTHOME not defined)
exits_ok=no
AC_CHECK_FILE("/usr/local/lib/libqwt.so",exits_ok=yes,exits_ok=no)
if test "x$exits_ok" = "xyes"; then
QWTHOME="/usr/local/lib"
+ AC_MSG_RESULT(libqwt.so detected in /usr/local/lib)
if test -z $QWT_INCLUDES; then
QWT_INCLUDES="/usr/local/include/qwt"
fi
else
- QWTHOME="/usr/lib"
- if test -z $QWT_INCLUDES; then
- QWT_INCLUDES="/usr/include/qwt"
- fi
+ AC_CHECK_FILE("/usr/lib/libqwt.so",exits_ok=yes,exits_ok=no)
+ if test "x$exits_ok" = "xyes"; then
+ QWTHOME="/usr/lib"
+ AC_MSG_RESULT(libqwt.so detected in /usr/lib)
+ if test -z $QWT_INCLUDES; then
+ QWT_INCLUDES="/usr/include/qwt"
+ fi
+ fi
fi
else
if test -z $QWT_INCLUDES; then
AC_LANG_CPLUSPLUS
CPPFLAGS_old=$CPPFLAGS
CPPFLAGS="$CPPFLAGS -I$QWT_INCLUDES"
- CPPFLAGS="$CPPFLAGS -I$QTDIR/include"
+ CPPFLAGS="$CPPFLAGS $QT_INCLUDES"
+# CPPFLAGS="$CPPFLAGS -I$QTDIR/include"
AC_CHECK_HEADER(qwt.h,qwt_ok=yes,qwt_ok=no)
LIBS="$LIBS -L$QTDIR/lib -lqt-mt -L$QWTHOME/lib -lqwt"
CXXFLAGS_old=$CXXFLAGS
- CXXFLAGS="$CXXFLAGS -I$QTDIR/include -I$QWT_INCLUDES"
+ CXXFLAGS="$CXXFLAGS $QT_INCLUDES -I$QWT_INCLUDES"
+# CXXFLAGS="$CXXFLAGS -I$QTDIR/include -I$QWT_INCLUDES"
AC_CACHE_VAL(salome_cv_lib_qwt,[
AC_TRY_LINK(
SIP_VERS=new ;;
3.10*)
SIP_VERS=new2 ;;
+ 4.1*)
+ SIP_VERS=new3 ;;
*)
AC_MSG_RESULT(sip version $version not supported)
SIP_VERS=no ;;
AC_CHECK_FILE($PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages/libsip.so,sip_ok=$sip_ok,sip_ok=no)
SIP_LIBS="-L${PYTHON_PREFIX}/lib/python${PYTHON_VERSION}/site-packages -lsip"
fi
+
+ if test "x$SIP_VERS" = "xnew3"
+ then
+ dnl new3 install : includes and libs are in python install
+ AC_MSG_RESULT(new3 install detected)
+ sip_ok=yes
+ AC_CHECK_FILE($PYTHON_PREFIX/include/python$PYTHON_VERSION/sip.h,sip_ok=$sip_ok,sip_ok=no)
+ SIP_INCLUDES="${PYTHON_INCLUDES}"
+ AC_CHECK_FILE($PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages/sip.so,sip_ok=$sip_ok,sip_ok=no)
+ SIP_LIBS="-L${PYTHON_PREFIX}/lib/python${PYTHON_VERSION}/site-packages -lsip"
+ fi
fi
AC_SUBST(SIP)
theObj = orb->resolve_initial_references("NameService");
if (!CORBA::is_nil(theObj))
inc = CosNaming::NamingContext::_narrow(theObj);
- }catch(CORBA::COMM_FAILURE&){
- MESSAGE( "Container: CORBA::COMM_FAILURE: Unable to contact the Naming Service" );
+ }catch(CORBA::SystemException&){
+ MESSAGE( "Container: CORBA::SystemException: Unable to contact the Naming Service" );
}
if(!CORBA::is_nil(inc)){
MESSAGE( "Container: Naming Service was found" );
theObj = orb->resolve_initial_references("NameService");
if (!CORBA::is_nil(theObj))
inc = CosNaming::NamingContext::_narrow(theObj);}
- catch( CORBA::COMM_FAILURE& )
+ catch( CORBA::SystemException& )
{
- MESSAGE( "Data Type Catalog: CORBA::COMM_FAILURE: Unable to contact the Naming Service" );
+ MESSAGE( "Data Type Catalog: CORBA::SystemException: Unable to contact the Naming Service" );
}
if(!CORBA::is_nil(inc))
{
cout << m4->instanceName() << endl;
}
- catch(CORBA::COMM_FAILURE& ex)
+ catch(CORBA::SystemException& ex)
{
INFOS("Caught system exception COMM_FAILURE -- unable to contact the object.");
}
IsPassed = true;
break;
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
- MESSAGE("CORBA::COMM_FAILURE: unable to contact the naming service");
+ MESSAGE("CORBA::SystemException: unable to contact the naming service");
}
catch(...)
{
break;
case 4:
{
- CORBA::Object_var obj = NS.Resolve("Kernel/ModulCatalog");
+ CORBA::Object_var obj = NS.Resolve("/Kernel/ModulCatalog");
SALOME_ModuleCatalog::ModuleCatalog_var catalog = SALOME_ModuleCatalog::ModuleCatalog::_narrow(obj) ;
if (!CORBA::is_nil(catalog))
{
break;
case 5:
{
- CORBA::Object_var obj = NS.Resolve("Kernel/Session");
+ CORBA::Object_var obj = NS.Resolve("/Kernel/Session");
SALOME::Session_var session = SALOME::Session::_narrow(obj) ;
if (!CORBA::is_nil(session))
{
if (!CORBA::is_nil(theObj))
inc = CosNaming::NamingContext::_narrow(theObj);
if (!CORBA::is_nil(inc)) break;
- } catch( CORBA::COMM_FAILURE& ) {
+ } catch( CORBA::SystemException& ) {
} catch (...) {
}
}
except CosNaming.NamingContext.NotFound, e :
if steps == 1: print "Caught exception: Naming Service can't found Logger"
- except CORBA.COMM_FAILURE, e:
+ except (CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE):
if steps == 1: print "Caught CORBA::SystemException CommFailure"
except CORBA.SystemException, e:
if steps == 1: print "Caught CORBA::SystemException."
{
string instanceName = compo->instanceName();
}
- catch (CORBA::COMM_FAILURE&)
+ catch (CORBA::SystemException&)
{
INFOS("Caught CORBA::SystemException CommFailure. Engine "
<< path << "does not respond" );
if(!CORBA::is_nil(orb))
theObj = orb->resolve_initial_references("NameService");
}
- catch( CORBA::COMM_FAILURE& )
+ catch( CORBA::SystemException& )
{
- INFOS( "Module Catalog Server: CORBA::COMM_FAILURE: Unable to contact the Naming Service" );
+ INFOS( "Module Catalog Server: CORBA::SystemException: Unable to contact the Naming Service" );
}
if (!CORBA::is_nil(theObj))
{
{
if (serverName.length() == 0)
{
- string curdir = NS->Current_Directory(); // to wait for naming service
+ //string curdir = NS->Current_Directory(); // to wait for naming service
+ string dummyadr = NS->getIORaddr(); // to wait for naming service
found = 1;
break; // naming service found
}
{
INFOS("!!!Register() : CosNaming::NamingContext::CannotProceed");
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
- INFOS("!!!Register() : CORBA::COMM_FAILURE : unable to contact"
+ INFOS("!!!Register() : CORBA::SystemException : unable to contact"
<< " the naming service");
throw ServiceUnreachable();
}
{
INFOS("!!!Register() : CosNaming::NamingContext::InvalidName");
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
- INFOS("!!!Register() :CORBA::COMM_FAILURE : unable to contact"
+ INFOS("!!!Register() :CORBA::SystemException : unable to contact"
<< " the naming service");
throw ServiceUnreachable();
}
INFOS("!!!Register() : CosNaming::NamingContext::AlreadyBound, object will be rebind");
_current_context->rebind(_context_name, ObjRef);
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
- INFOS("!!!Register() :CORBA::COMM_FAILURE : unable to contact"
+ INFOS("!!!Register() :CORBA::SystemException : unable to contact"
<< " the naming service");
throw ServiceUnreachable();
}
{
INFOS("!!!Resolve() : CosNaming::NamingContext::InvalidName");
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
- INFOS("!!!Resolve() :CORBA::COMM_FAILURE : unable to contact"
+ INFOS("!!!Resolve() :CORBA::SystemException : unable to contact"
<< "the naming service");
throw ServiceUnreachable();
}
{
_Find(name,occurence_number);
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
- INFOS("!!!Find() : CORBA::COMM_FAILURE : unable to contact"
+ INFOS("!!!Find() : CORBA::SystemException : unable to contact"
<< " the naming service");
throw ServiceUnreachable();
}
_return_code = false;
INFOS("!!!Create_Directory():CosNaming::NamingContext::InvalidName");
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
_return_code = false;
- INFOS("!!!Register() :CORBA::COMM_FAILURE : unable to contact"
+ INFOS("!!!Register() :CORBA::SystemException : unable to contact"
<< " the naming service");
throw ServiceUnreachable();
}
_return_code = false;
INFOS( "!!!Change_Directory() : CosNaming::NamingContext::InvalidName" )
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
_return_code = false;
- INFOS( "!!!Change_Directory() :CORBA::COMM_FAILURE : unable to contact"
+ INFOS( "!!!Change_Directory() :CORBA::SystemException : unable to contact"
<< "the naming service")
throw ServiceUnreachable();
}
{
_current_directory(result_path,i,_ref_context,_continue );
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
- INFOS("!!!Current_Directory(): CORBA::COMM_FAILURE : unable to contact"
+ INFOS("!!!Current_Directory(): CORBA::SystemException : unable to contact"
<< " the naming service" )
throw ServiceUnreachable();
}
{
INFOS( "!!!Destroy_Name(): CosNaming::NamingContext::CannotProceed" )
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
- INFOS( "!!!Destroy_Name() : CORBA::COMM_FAILURE : unable to contact"
+ INFOS( "!!!Destroy_Name() : CORBA::SystemException : unable to contact"
<< " the naming service")
throw ServiceUnreachable();
}
{
INFOS( "!!!Destroy_Name() : CosNaming::NamingContext::InvalidName")
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
- INFOS( "!!!Destroy_Name() :CORBA::COMM_FAILURE : unable to contact"
+ INFOS( "!!!Destroy_Name() :CORBA::SystemException : unable to contact"
<< " the naming service")
throw ServiceUnreachable();
}
{
INFOS("!!!Destroy_Directory(): CosNaming::NamingContext::CannotProceed" )
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
- INFOS( "!!!Destroy_Directory() : CORBA::COMM_FAILURE : unable to contact"
+ INFOS( "!!!Destroy_Directory() : CORBA::SystemException : unable to contact"
<< " the naming service" )
throw ServiceUnreachable();
}
{
INFOS( "!!!Destroy_Directory(): CosNaming::NamingContext::CannotProceed" )
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
- INFOS( "!!!Destroy_Directory() : CORBA::COMM_FAILURE : unable to contact"
+ INFOS( "!!!Destroy_Directory() : CORBA::SystemException : unable to contact"
<< " the naming service" )
throw ServiceUnreachable();
}
INFOS( "!!!Destroy_Directory() : CosNaming::NamingContext::NoEmpty "
<< Path << " is not empty" )
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
- INFOS( "!!!Destroy_Directory() :CORBA::COMM_FAILURE : "
+ INFOS( "!!!Destroy_Directory() :CORBA::SystemException : "
<< "unable to contact the naming service")
throw ServiceUnreachable();
}
{
INFOS( "!!!Destroy_Directory() : CosNaming::NamingContext::InvalidName")
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
- INFOS( "!!!Destroy_Directory() :CORBA::COMM_FAILURE : unable to contact"
+ INFOS( "!!!Destroy_Directory() :CORBA::SystemException : unable to contact"
<< " the naming service")
throw ServiceUnreachable();
}
ASSERT(!CORBA::is_nil(_root_context));
}
- catch(CORBA::COMM_FAILURE&)
+ catch(CORBA::SystemException&)
{
- INFOS("CORBA::COMM_FAILURE: unable to contact the naming service");
+ INFOS("CORBA::SystemException: unable to contact the naming service");
throw ServiceUnreachable();
}
catch(...)
MESSAGE(" Name service not found")
else:
ok = 1
- except CORBA.COMM_FAILURE, ex:
+ except (CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE):
MESSAGE(" Name service not found")
time.sleep(0.25)
steps = steps - 1
MESSAGE ( "Register : CosNaming.NamingContext.InvalidName" )
except CosNaming.NamingContext.CannotProceed, ex:
MESSAGE ( "Register : CosNaming.NamingContext.CannotProceed" )
- except CORBA.COMM_FAILURE, ex:
- MESSAGE ( "Register : CORBA.COMM_FAILURE" )
+ except (CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE):
+ MESSAGE ( "Register : CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE" )
if _not_exist:
# at least one context of the complete path is not created, we had
except CosNaming.NamingContext.AlreadyBound, ex:
MESSAGE ( "Register : CosNaming.NamingContext.AlreadyBound, object will be rebind" )
self._current_context.rebind(_context_name,ObjRef)
- except CORBA.COMM_FAILURE, ex:
- MESSAGE ( "Register : CORBA.COMM_FAILURE" )
+ except (CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE):
+ MESSAGE ( "Register : CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE" )
#-------------------------------------------------------------------------
except CosNaming.NamingContext.CannotProceed, ex:
MESSAGE ( "Resolve : CosNaming.NamingContext.CannotProceed" )
self._obj = None
- except CORBA.COMM_FAILURE, ex:
- MESSAGE ( "Resolve : CORBA.COMM_FAILURE" )
+ except (CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE):
+ MESSAGE ( "Resolve : CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE" )
self._obj = None
return self._obj
MESSAGE ( "Create_Directory : CosNaming.NamingContext.InvalidName" )
except CosNaming.NamingContext.CannotProceed, ex:
MESSAGE ( "Create_Directory : CosNaming.NamingContext.CannotProceed" )
- except CORBA.COMM_FAILURE, ex:
- MESSAGE ( "Create_Directory : CORBA.COMM_FAILURE" )
+ except (CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE):
+ MESSAGE ( "Create_Directory : CORBA.TRANSIENT,CORBA.OBJECT_NOT_EXIST,CORBA.COMM_FAILURE" )
} catch(CORBA::ORB::InvalidName& ex) {
MESSAGE("NOTIFICATION Error : service required is invalid [does not exist]");
return(channel);
- } catch (CORBA::COMM_FAILURE& ex) {
+ } catch (CORBA::SystemException& ex) {
MESSAGE("NOTIFICATION Error : caught system exception COMM_FAILURE");
return(channel);
} catch (...) {
};
} catch(CORBA::ORB::InvalidName& ex) {
MESSAGE("NOTIFICATION Error : invalid name");
- } catch (CORBA::COMM_FAILURE& ex) {
+ } catch (CORBA::SystemException& ex) {
MESSAGE("NOTIFICATION Error : caught system exception COMM_FAILURE while resolving event channel name");
} catch (...) {
MESSAGE("NOTIFICATION Error : caught exception while resolving event channel name");
EXPORT_HEADERS = \
qsplitterP.h \
- qworkspaceP.h \
- qactionP.h \
- qfiledialogP.h
+ qactionP.h
+
+# qfiledialogP.h \
+# qworkspaceP.h \
# Libraries targets
LIB = libqsplitterP.la
-LIB_SRC = qsplitterP.cxx qsplitterP_moc.cxx qworkspaceP.cxx qworkspaceP_moc.cxx qactionP.cxx qactionP_moc.cxx qfiledialogP.cxx qfiledialogP_moc.cxx
+#LIB_SRC = qsplitterP.cxx qsplitterP_moc.cxx qworkspaceP.cxx qworkspaceP_moc.cxx qactionP.cxx qactionP_moc.cxx qfiledialogP.cxx qfiledialogP_moc.cxx
+LIB_SRC = qsplitterP.cxx qsplitterP_moc.cxx qactionP.cxx qactionP_moc.cxx
+
qsplitterP_moc.cxx: $(inc_builddir)/qsplitterP.h
$(MOC) $(inc_builddir)/qsplitterP.h -o qsplitterP_moc.cxx
-qworkspaceP_moc.cxx: $(inc_builddir)/qworkspaceP.h
- $(MOC) $(inc_builddir)/qworkspaceP.h -o qworkspaceP_moc.cxx
+#qworkspaceP_moc.cxx: $(inc_builddir)/qworkspaceP.h
+# $(MOC) $(inc_builddir)/qworkspaceP.h -o qworkspaceP_moc.cxx
qactionP_moc.cxx: $(inc_builddir)/qactionP.h
$(MOC) $(inc_builddir)/qactionP.h -o qactionP_moc.cxx
-qfiledialogP_moc.cxx: $(inc_builddir)/qfiledialogP.h
- $(MOC) $(inc_builddir)/qfiledialogP.h -o qfiledialogP_moc.cxx
+#qfiledialogP_moc.cxx: $(inc_builddir)/qfiledialogP.h
+# $(MOC) $(inc_builddir)/qfiledialogP.h -o qfiledialogP_moc.cxx
CPPFLAGS+=$(QT_INCLUDES) -I${QTDIR}/src/kernel -I$(QTDIR)/mkspecs/linux-g++
CXXFLAGS+=
#include <qpainter.h>
#include <qdrawutil.h>
#include <qbitmap.h>
+#include <qlayout.h>
#include <private/qlayoutengine_p.h>
#if QT_VERSION < 300
#include <qlist.h>
if (!CORBA::is_nil(theObj))
inc = CosNaming::NamingContext::_narrow(theObj);
}
- catch( CORBA::COMM_FAILURE& )
+ catch( CORBA::SystemException& )
{
- MESSAGE( "Registry Server: CORBA::COMM_FAILURE: Unable to contact the Naming Service" );
+ MESSAGE( "Registry Server: CORBA::SystemException: Unable to contact the Naming Service" );
}
if(!CORBA::is_nil(inc))
{
if (!CORBA::is_nil(theObj))
inc = CosNaming::NamingContext::_narrow(theObj);
}
- catch( CORBA::COMM_FAILURE& )
+ catch( CORBA::SystemException& )
{
- INFOS( "Ressources Catalog: CORBA::COMM_FAILURE: Unable to contact the Naming Service" );
+ INFOS( "Ressources Catalog: CORBA::SystemException: Unable to contact the Naming Service" );
}
if(!CORBA::is_nil(inc))
{
try
{
// Initialise the ORB.
+#if OMNIORB_VERSION >= 4
+ const char* options[][2] = { { "giopMaxMsgSize", "104857600" }, { 0, 0 } };
+ CORBA::ORB_var orb = CORBA::ORB_init( argc , argv , "omniORB4", options) ;
+#else
CORBA::ORB_var orb = CORBA::ORB_init(argc, argv, "omniORB3");
omniORB::MaxMessageSize(100 * 1024 * 1024);
- // Obtain a reference to the root POA.
+#endif // Obtain a reference to the root POA.
//
long TIMESleep = 500000000;
int NumberOfTries = 40;
}
// Create cStringIO to capture stdout and stderr
- //PycString_IMPORT;
- PycStringIO = (PycStringIO_CAPI *)xxxPyCObject_Import("cStringIO", "cStringIO_CAPI");
+ PycString_IMPORT;
+ //PycStringIO = (PycStringIO_CAPI *)xxxPyCObject_Import("cStringIO", "cStringIO_CAPI");
_vout = PycStringIO->NewOutput(128);
_verr = PycStringIO->NewOutput(128);
#include "QAD.h"
+#include "QAD_PyEditor.h"
#include "QAD_Help.h"
#include "QAD_Tools.h"
#include "QAD_Desktop.h"
#include "QAD_LeftFrame.h"
#include "QAD_RightFrame.h"
-#include "QAD_PyEditor.h"
#include "QAD_Operation.h"
#include "QAD_XmlHandler.h"
#include "QAD_MessageBox.h"
#include <qcombobox.h>
#include <qstatusbar.h>
#include <qpopupmenu.h>
+#if QT_VERSION == 0x030005
#include "qworkspaceP.h"
+#else
+#include <qworkspace.h>
+#define QWorkspaceP QWorkspace
+#endif
#include <qmainwindow.h>
#include <qfiledialog.h>
#include <qtoolbutton.h>
#ifndef QAD_PyEditor_H
#define QAD_PyEditor_H
+#include "QAD_PyInterp.h"
#include <qtextedit.h>
#include <qevent.h>
// Module : SALOME
// $Header$
+#include "QAD_PyEditor.h"
#include "QAD_RightFrame.h"
#include "QAD_Application.h"
#include "QAD_Desktop.h"
#include "QAD_StudyFrame.h"
#include "QAD_Tools.h"
-#include "QAD_PyEditor.h"
#include "QAD_PyInterp.h"
#include <qvaluelist.h>
\brief Study for QAD-based application.
*/
+#include "QAD_PyInterp.h"
#include "QAD.h"
#include "QAD_Tools.h"
#include "QAD_Desktop.h"
#include "QAD_ObjectBrowser.h"
#include "QAD_PyInterp.h"
#include "QAD_Config.h"
-#include "QAD_PyInterp.h"
#include "utilities.h"
\brief Frame window which contains QAD_LeftFrame and QAD_RightFrame.
*/
+#include "QAD_PyInterp.h"
#include "QAD_StudyFrame.h"
#include "QAD_StudyFrame.h"
#include "QAD_RightFrame.h"
#include "QAD_Desktop.h"
#include "QAD_Study.h"
#include "QAD_ObjectBrowser.h"
-#include "QAD_PyInterp.h"
#include <qvaluelist.h>
if (!CORBA::is_nil(theObj))
inc = CosNaming::NamingContext::_narrow(theObj);
}
- catch( CORBA::COMM_FAILURE& )
+ catch( CORBA::SystemException& )
{
cout << "TraceCollector_WaitForServerReadiness: "
- << "CORBA::COMM_FAILURE: "
+ << "CORBA::SystemException: "
<< "Unable to contact the Naming Service" << endl;
}
catch(...)
# SIP C++ Python
# SIP defined in make_commence.in
-SIP_FLAGS = -t WS_X11 -t Qt_3_0_5 -s ".cc" -c $(CURDIR) -I $(PYQT_SIPS)
+#SIP_FLAGS = -t WS_X11 -t Qt_3_0_5 -s ".cc" -c $(CURDIR) -I $(PYQT_SIPS)
+SIP_FLAGS = -t WS_X11 -t Qt_3_3_0 -s ".cc" -c $(CURDIR) -I $(PYQT_SIPS)
# SIP input file(s)
# SIP-generated C++ source files (corresponding line should be added for each wrapped class
# contained by SalomePyQt module)
-SIP_SRC=$(CURDIR)/SalomePyQtcmodule.cc \
+SIP_SRC=$(CURDIR)/sipSalomePyQtcmodule.cc \
$(CURDIR)/sipSalomePyQtSalomePyQt.cc \
$(CURDIR)/sipSalomePyQtSALOME_Selection.cc
-ifeq ($(SIP_VERS),new2)
-MOC_SRC = SalomePyQtcmodule_moc.cxx
-MOC_H = SalomePyQtcmodule.h
+ifeq ($(SIP_VERS),new3)
+MOC_SRC = sipSalomePyQtcmodule_moc.cxx
+MOC_H = sipSalomePyQtcmodule.h
else
MOC_SRC = sipSalomePyQtProxySalomePyQt_moc.cxx
MOC_H = sipSalomePyQtProxySalomePyQt.h
#LIB_MOC += sipSalomePyQtProxySalomePyQt.h
-EXPORT_SHAREDPYSCRIPTS = SalomePyQt.py
+#EXPORT_SHAREDPYSCRIPTS = SalomePyQt.py
LIB_CLIENT_IDL = SALOME_Exception.idl SALOME_ContainerManager.idl
CPPFLAGS+=$(QT_INCLUDES) $(PYTHON_INCLUDES) $(SIP_INCLUDES) $(OCC_INCLUDES) $(VTK_INCLUDES) $(OGL_INCLUDES)
-LIBS+= $(PYTHON_LIBS) $(SIP_LIBS) $(PYQT_LIBS) $(VTK_LIBS) $(OGL_LIBS)
-LDFLAGS+= -lSalomeGUI -lqtcmodule
+LIBS+= $(PYTHON_LIBS) $(VTK_LIBS) $(OGL_LIBS)
+# $(SIP_LIBS) $(PYQT_LIBS)
+LDFLAGS+= -lSalomeGUI
+# -lqtcmodule
# Custom build step: generate C++ wrapping according to $(SIP_FILES)
#include "SALOMEGUI_QtCatchCorbaException.hxx"
#include "utilities.h"
-#include <sipSalomePyQtDeclSalomePyQt.h>
+//#include <sipSalomePyQtDeclSalomePyQt.h>
+#include <sipAPISalomePyQt.h>
#include <sipqtQWorkspace.h>
#include <sipqtQPopupMenu.h>
#ifndef _SALOME_PYQT_GUI_HXX_
#define _SALOME_PYQT_GUI_HXX_
+#include "PyInterp_base.h"
#include "QAD_Desktop.h"
#include "PyInterp_PyQt.h"
#include "SALOMEGUI.h"
class SALOME_Selection : QObject
{
-%HeaderCode
+%TypeHeaderCode
#include <SALOME_Selection.h>
%End
class SalomePyQt
{
-%HeaderCode
+%TypeHeaderCode
#include <SalomePyQt.hxx>
%End
void Session_ServerLauncher::run()
{
- //MESSAGE("Session_ServerLauncher::run");
+ MESSAGE("Session_ServerLauncher::run");
_GUIMutex->lock(); // lock released by calling thread when ready: wait(mutex)
- //MESSAGE("Server Launcher thread free to go...");
+ MESSAGE("Server Launcher thread free to go...");
_GUIMutex->unlock();
CheckArgs();
PortableServer::POA_ptr poa,
QMutex *GUIMutex)
{
- //MESSAGE("Session_ServerThread Constructor " << argv[0]);
+ MESSAGE("Session_ServerThread Constructor " << argv[0]);
_argc = argc;
_argv = argv;
_orb = CORBA::ORB::_duplicate(orb);
Session_ServerThread::~Session_ServerThread()
{
- //MESSAGE("~Session_ServerThread "<< _argv[0]);
+ MESSAGE("~Session_ServerThread "<< _argv[0]);
}
//=============================================================================
if (!CORBA::is_nil(theObj))
inc = CosNaming::NamingContext::_narrow(theObj);
}
- catch( CORBA::COMM_FAILURE& )
+ catch( CORBA::SystemException& )
{
- INFOS( "Test Container: CORBA::COMM_FAILURE: Unable to contact the Naming Service" )
+ INFOS( "Test Container: CORBA::SystemException: Unable to contact the Naming Service" )
}
if(!CORBA::is_nil(inc))
{