and to make Salome able to use PyQt 3.11 (+sip 3.10.1) as a prerequisite.
Modification to check_boost is not mandatory
Modification to QAD_FileDlg.h is already in the main trunk.
AC_CHECKING(for boost/shared_ptr.hpp header file)
dnl BOOST headers
CPPFLAGS_old="${CPPFLAGS}"
- BOOST_CPPFLAGS="-I${BOOSTDIR}"
+ BOOST_CPPFLAGS="-I${BOOSTDIR}/include"
CPPFLAGS="${CPPFLAGS} ${BOOST_CPPFLAGS}"
AC_CHECK_HEADER(boost/shared_ptr.hpp,boost_ok=yes,boost_ok=no)
version=`sip -V`
case "$version" in
3.2*)
- sip_vers=old ;;
+ SIP_VERS=old ;;
3.3*)
- sip_vers=old ;;
+ SIP_VERS=old ;;
3.4*)
- sip_vers=new ;;
+ SIP_VERS=new ;;
3.5*)
- sip_vers=new ;;
+ SIP_VERS=new ;;
3.6*)
- sip_vers=new ;;
+ SIP_VERS=new ;;
3.7*)
- sip_vers=new ;;
+ SIP_VERS=new ;;
3.8*)
- sip_vers=new ;;
+ SIP_VERS=new ;;
3.9*)
- sip_vers=new ;;
- *)
- sip_vers=no ;;
+ SIP_VERS=new ;;
+ 3.10*)
+ SIP_VERS=new2 ;;
+ *)
+ AC_MSG_RESULT(sip version $version not supported)
+ SIP_VERS=no ;;
esac
sip_ok=no
- if test "x$sip_vers" = "xold"
+ if test "x$SIP_VERS" = "xold"
then
+ dnl old install : includes and libs are in python install or in SIPDIR
+ AC_MSG_RESULT(old install detected)
sip_ok=yes
SIP_ROOT="$SIPDIR"
SIP_INCLUDES="${PYTHON_INCLUDES} -I${SIPDIR}"
SIP_LIBS="-L${PYTHON_PREFIX}/lib/python${PYTHON_VERSION}/site-packages -L${SIPDIR} -lsip"
fi
- if test "x$sip_vers" = "xnew"
+ if test "x$SIP_VERS" = "xnew"
then
sip_ok=yes
if test -d ${SIPDIR}/include/python${PYTHON_VERSION} ; then
+ AC_MSG_RESULT(new install with include dir detected)
+ dnl new install with include dir : includes and libs are in python install or in SIPDIR/include
SIP_ROOT="$SIPDIR"
SIP_INCLUDES="${PYTHON_INCLUDES} -I${SIPDIR}/include/python${PYTHON_VERSION}"
SIP_LIBS="-L${SIPDIR}/lib/python${PYTHON_VERSION}/site-packages -lsip"
else
+ dnl new install without include dir : includes and libs are in SIPDIR
+ AC_MSG_RESULT(new install without include dir detected)
sip_ok=yes
SIP_ROOT="$SIPDIR"
SIP_INCLUDES="-I${SIPDIR}"
fi
fi
+ if test "x$SIP_VERS" = "xnew2"
+ then
+ dnl new2 install : includes and libs are in python install
+ AC_MSG_RESULT(new2 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/libsip.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)
AC_SUBST(SIP_INCLUDES)
AC_SUBST(SIP_LIBS)
+AC_SUBST(SIP_VERS)
AC_MSG_RESULT(for sip: $sip_ok)
SIP = @SIP@
SIP_INCLUDES = @SIP_INCLUDES@
SIP_LIBS = @SIP_LIBS@
+SIP_VERS = @SIP_VERS@
# PYQT
PYQT_SIPS = @PYQT_SIPS@
#if !defined(AFX_LOGGER_H__96F2A3AB_F6F8_11D6_BFA6_000476A0958C__INCLUDED_)
#define AFX_LOGGER_H__96F2A3AB_F6F8_11D6_BFA6_000476A0958C__INCLUDED_
-#include <strstream.h>
+// CCAR : g++ 3.3 #include <strstream.h>
+#include <strstream>
#include "Logger.hh"
//these declarations for files don't using OCC includes (for example HDF)
TAttrID2FunMap::const_iterator anEnd = __AttrID2FunMap__.end();
for(; anIter != anEnd; anIter++){
const TAttrID2FunMap::key_type& aKey = anIter->first;
- const TAttrID2FunMap::data_type& aValue = anIter->second;
+ const TAttrID2FunMap::mapped_type& aValue = anIter->second;
+ //const TAttrID2FunMap::data_type& aValue = anIter->second;
__GUID2AttrIDMap__[aValue.myGetGUID()] = aKey;
};
{
TAttrID2FunMap::const_iterator anIter = __AttrID2FunMap__.find(theType);
if(anIter != __AttrID2FunMap__.end()){
- const TAttrID2FunMap::data_type& aValue = anIter->second;
+ const TAttrID2FunMap::mapped_type& aValue = anIter->second;
+ //const TAttrID2FunMap::data_type& aValue = anIter->second;
return aValue.myGetGUID();
}
// create tree node GUID by name
TAttrID2FunMap::const_iterator anIter = __AttrID2FunMap__.find(theType);
if(anIter != __AttrID2FunMap__.end()){
- const TAttrID2FunMap::data_type& aValue = anIter->second;
+ const TAttrID2FunMap::mapped_type& aValue = anIter->second;
+ //const TAttrID2FunMap::data_type& aValue = anIter->second;
if(aValue.myIsCheckLockedStudy())
_study->CheckLocked();
Handle(TDF_Attribute) anAttr;
TAttrID2FunMap::const_iterator anIter = __AttrID2FunMap__.find(theType);
if(anIter != __AttrID2FunMap__.end()){
- const TAttrID2FunMap::data_type& aValue = anIter->second;
+ const TAttrID2FunMap::mapped_type& aValue = anIter->second;
+ //const TAttrID2FunMap::data_type& aValue = anIter->second;
if(aValue.myIsCheckLockedStudy())
_study->CheckLocked();
#include <qcombobox.h>
+// VSR (18/01/2005): use patched QFileDialog only for the official 3.0.5 version of Qt
+#if QT_VERSION == 0x030005
#include <qfiledialogP.h>
+#else
+#include <qfiledialog.h>
+#define QFileDialogP QFileDialog
+#endif
+
#include "QAD.h"
#include "QAD_FileValidator.h"
$(CURDIR)/sipSalomePyQtSalomePyQt.cc \
$(CURDIR)/sipSalomePyQtSALOME_Selection.cc
+ifeq ($(SIP_VERS),new2)
+MOC_SRC = SalomePyQtcmodule_moc.cxx
+MOC_H = SalomePyQtcmodule.h
+else
+MOC_SRC = sipSalomePyQtProxySalomePyQt_moc.cxx
+MOC_H = sipSalomePyQtProxySalomePyQt.h
+endif
+
# Libraries targets
LIB = libSalomePyQtcmodule.la
-MOC_SRC = sipSalomePyQtProxySalomePyQt_moc.cxx
-
LIB_SRC += SalomePyQt.cxx SALOME_PYQT_GUI.cxx $(SIP_SRC) $(MOC_SRC)
LIB_MOC = SALOME_PYQT_GUI.h
$(SIP_SRC): $(SIP_FILES)
$(SIP) $(SIP_FLAGS) $<
-$(MOC_SRC): sipSalomePyQtProxySalomePyQt.h
+$(MOC_SRC): $(MOC_H)
$(MOC) $< -o $@
@CONCLUDE@