From fb850732ff2d8bfa6c71de9cd9505fe73e7b6c32 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 3 Nov 2005 07:55:27 +0000 Subject: [PATCH] Remove dependency from KERNEL package --- src/Plot2d/Makefile.in | 4 +-- src/Plot2d/Plot2d_ViewFrame.cxx | 12 --------- src/Prs/Makefile.in | 2 +- src/PyInterp/Makefile.in | 2 +- src/PyInterp/PyInterp_base.cxx | 44 +++++++++------------------------ src/PyInterp/PyInterp_base.h | 5 +++- 6 files changed, 20 insertions(+), 49 deletions(-) diff --git a/src/Plot2d/Makefile.in b/src/Plot2d/Makefile.in index 65ccacd41..ef3d4742b 100755 --- a/src/Plot2d/Makefile.in +++ b/src/Plot2d/Makefile.in @@ -66,9 +66,9 @@ plot2d_settings.png \ plot2d_splines.png \ plot2d_zoom.png -CPPFLAGS+=$(QT_INCLUDES) $(PYTHON_INCLUDES) $(QWT_INCLUDES) -I$(KERNEL_ROOT_DIR)/include/salome +CPPFLAGS+=$(QT_INCLUDES) $(PYTHON_INCLUDES) $(QWT_INCLUDES) -LDFLAGS+=$(QWT_LIBS) $(QT_MT_LIBS) -L$(KERNEL_ROOT_DIR)/lib/salome -lsuit +LDFLAGS+=$(QWT_LIBS) $(QT_MT_LIBS) -lsuit @CONCLUDE@ diff --git a/src/Plot2d/Plot2d_ViewFrame.cxx b/src/Plot2d/Plot2d_ViewFrame.cxx index 4875b6a62..82d172176 100755 --- a/src/Plot2d/Plot2d_ViewFrame.cxx +++ b/src/Plot2d/Plot2d_ViewFrame.cxx @@ -12,8 +12,6 @@ #include "SUIT_ResourceMgr.h" #include "SUIT_Application.h" -//#include "utilities.h" - #include "qapplication.h" #include #include @@ -30,8 +28,6 @@ #include -//#include "utilities.h" - #define DEFAULT_LINE_WIDTH 0 // (default) line width #define DEFAULT_MARKER_SIZE 9 // default marker size #define MIN_RECT_SIZE 11 // min sensibility area size @@ -383,7 +379,6 @@ QString Plot2d_ViewFrame::getInfo( const QPoint& pnt ) if ( xmark-2 == pnt.x() ) { xCoord = majXmark; xFound = true; -// MESSAGE("Plot2d_ViewFrame::getInfo : close maj X mark("< color.blue() ) cols[ "blue-min" ] = color.blue(); } - for (IList::Iterator it = mars.begin(); it != mars.end(); ++it) - MESSAGE("markers( " << it.key() << ") = " << it.data() ); - for (IList::Iterator it = lins.begin(); it != lins.end(); ++it) - MESSAGE("lines( " << it.key() << ") = " << it.data() ); - for (SList::Iterator it = cols.begin(); it != cols.end(); ++it) - MESSAGE("colors( " << it.key() << ") = " << it.data() ); #endif Plot2d_SetupViewDlg* dlg = new Plot2d_SetupViewDlg( this, true, mySecondY ); diff --git a/src/Prs/Makefile.in b/src/Prs/Makefile.in index 2ca3c38c5..73133a3e6 100755 --- a/src/Prs/Makefile.in +++ b/src/Prs/Makefile.in @@ -20,7 +20,7 @@ LIB_CLIENT_IDL = BIN = BIN_SRC = -CPPFLAGS+= -I${KERNEL_ROOT_DIR}/include/salome +CPPFLAGS+= LDFLAGS+= diff --git a/src/PyInterp/Makefile.in b/src/PyInterp/Makefile.in index 15e6ba005..1672f5ada 100755 --- a/src/PyInterp/Makefile.in +++ b/src/PyInterp/Makefile.in @@ -44,7 +44,7 @@ LIB_SRC= PyInterp_base.cxx \ LIB_MOC = PyInterp_Watcher.h -CPPFLAGS+= $(PYTHON_INCLUDES) $(QT_INCLUDES) -I$(KERNEL_ROOT_DIR)/include/salome +CPPFLAGS+= $(PYTHON_INCLUDES) $(QT_INCLUDES) LDFLAGS+= $(PYTHON_LIBS) $(QT_MT_LIBS) diff --git a/src/PyInterp/PyInterp_base.cxx b/src/PyInterp/PyInterp_base.cxx index 4c427d7ef..e9fdcb259 100644 --- a/src/PyInterp/PyInterp_base.cxx +++ b/src/PyInterp/PyInterp_base.cxx @@ -14,46 +14,29 @@ #include #include "PyInterp_base.h" // this include must be first (see PyInterp_base.h)! -#include #include -#include - - using namespace std; - -//#ifdef _DEBUG_ -//static int MYDEBUG = 1; -//static int MYPYDEBUG = 1; -//#else -//static int MYDEBUG = 0; -//static int MYPYDEBUG = 0; -//#endif - - PyLockWrapper::PyLockWrapper(PyThreadState* theThreadState): myThreadState(theThreadState), - mySaveThreadState(KERNEL_PYTHON::_gtstate) + mySaveThreadState(0) { PyEval_AcquireLock(); mySaveThreadState = PyThreadState_Swap(myThreadState); // store previous current in save, // set local in current -// if(MYDEBUG) MESSAGE(" PyLockWrapper "<