From: smh Date: Fri, 30 Apr 2004 14:18:51 +0000 (+0000) Subject: Latest corrections (from Event_Server branch) X-Git-Tag: Ecole_Ete_a2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a19588deb7a0074923f543d2dafa94fcd564820d;p=modules%2Fkernel.git Latest corrections (from Event_Server branch) --- diff --git a/src/SALOMEGUI/PyInterp_base.cxx b/src/SALOMEGUI/PyInterp_base.cxx index d460ee541..032be6aeb 100644 --- a/src/SALOMEGUI/PyInterp_base.cxx +++ b/src/SALOMEGUI/PyInterp_base.cxx @@ -26,8 +26,10 @@ using namespace std; #ifdef _DEBUG_ static int MYDEBUG = 0; +static int MYPYDEBUG = 0; #else static int MYDEBUG = 0; +static int MYPYDEBUG = 0; #endif @@ -38,32 +40,14 @@ PyLockWrapper::PyLockWrapper(PyThreadState* theThreadState): myThreadState(theThreadState), mySaveThreadState(PyInterp_base::_gtstate) { - //if(MYDEBUG) MESSAGE(" PyLockWrapper(...) - myThreadState = "<>> "; setText(_currentPrompt); break; diff --git a/src/SALOMEGUI/QAD_PyEditor.h b/src/SALOMEGUI/QAD_PyEditor.h index 94c92c3af..fd7ff4955 100644 --- a/src/SALOMEGUI/QAD_PyEditor.h +++ b/src/SALOMEGUI/QAD_PyEditor.h @@ -40,7 +40,10 @@ class TExecCommandThread; class QAD_PyEditor : public QTextEdit { - Q_OBJECT + Q_OBJECT; + + friend class TInitEditorThread; + friend class TExecCommandThread; public: enum { PYTHON_OK = QEvent::User + 5000, PYTHON_ERROR, PYTHON_INCOMPLETE, @@ -77,6 +80,10 @@ private: QMutex* myExecCommandMutex; TInitEditorThread* myInitEditorThread; TExecCommandThread* myExecCommandThread; + + QString myBanner; + QString myOutput; + QString myError; }; #endif diff --git a/src/SALOMEGUI/QAD_Study.cxx b/src/SALOMEGUI/QAD_Study.cxx index fbd95d9e4..f43c8714f 100644 --- a/src/SALOMEGUI/QAD_Study.cxx +++ b/src/SALOMEGUI/QAD_Study.cxx @@ -171,6 +171,7 @@ QAD_Study::~QAD_Study () delete myInitStudyThread; } delete myMutex; + delete myInterp; } }