// Module : SALOME
// $Header$
-#include "QAD_PyEditor.h" // this include must be first (see PyInterp_base.h)!
+// mpv 28.02.2005: if Python 2.4 python includes must be first: it uses "slots" field, redefined in qt
+#include "QAD_PyInterp.h"
+
#include "QAD_RightFrame.h"
#include "QAD_Application.h"
#include "QAD_Desktop.h"
#include "QAD_StudyFrame.h"
#include "QAD_Tools.h"
-#include "QAD_PyInterp.h"
+#include "QAD_PyEditor.h"
#include <qvaluelist.h>
myViewType(theTypeView),
myInterp(theInterp)
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
this->setCompressEnabled( true );
+#endif
QAD_Desktop* Desktop = QAD_Application::getDesktop();
int DesktopHeight = Desktop->getMainFrame()->width();
myViewFrame->setMinimumSize( 1, 1 );
mySplitter = new QAD_Splitter( Qt::Horizontal, this );
mySplitter->setMinimumSize( 1, 1 );
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
mySplitter->setCompressEnabled( true );
+#endif
myPyEditor = new QAD_PyEditor(myInterp, theMutex, mySplitter ,"Python Interpreter");
myPyEditor->setMinimumSize( 1, 1 );
*/
void QAD_RightFrame::compressUp()
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
QSplitterPHandle* h = getHandleAfter(myViewFrame);
if (h)
h->compressBefore();
+
+#endif
}
/*!
*/
void QAD_RightFrame::unCompressUp()
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
QSplitterPHandle* h = getHandleAfter(myViewFrame);
if (h)
h->unCompressBefore();
+
+#endif
}
/*!
*/
void QAD_RightFrame::compressBottom()
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
QSplitterPHandle* h = getHandleAfter(myViewFrame);
if (h)
h->compressAfter();
+
+#endif
}
/*!
*/
void QAD_RightFrame::unCompressBottom()
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
QSplitterPHandle* h = getHandleAfter(myViewFrame);
if (h)
h->unCompressAfter();
+
+#endif
}
void QAD_RightFrame::compressLeft()
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
QSplitterPHandle* h = mySplitter->getHandleAfter( getPyEditor() );
if( h )
h->compressBefore();
+
+#endif
}
void QAD_RightFrame::compressRight()
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
QSplitterPHandle* h = mySplitter->getHandleAfter( getPyEditor() );
if( h )
h->compressAfter();
+
+#endif
}
void QAD_RightFrame::unCompressLeft()
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
QSplitterPHandle* h = mySplitter->getHandleAfter( getPyEditor() );
if( h )
h->unCompressBefore();
+
+#endif
}
void QAD_RightFrame::unCompressRight()
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
QSplitterPHandle* h = mySplitter->getHandleAfter( getPyEditor() );
if( h )
h->unCompressAfter();
+
+#endif
}
bool QAD_RightFrame::isCompressedViewFrame() const
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
return isCompressed( myViewFrame );
+#else
+ return false;
+#endif
}
bool QAD_RightFrame::isCompressedPython() const
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
return mySplitter->isCompressed( getPyEditor() );
+
+#else
+ return false;
+#endif
}
bool QAD_RightFrame::isCompressedMessage() const
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
return mySplitter->isCompressed( getMessage() );
-}
+#else
+ return false;
+#endif
+}
\brief Frame window which contains QAD_LeftFrame and QAD_RightFrame.
*/
-#include "QAD_PyInterp.h" // this include must be first (see PyInterp_base.h)!
+// mpv 28.02.2005: if Python 2.4 python includes must be first: it uses "slots" field, redefined in qt
+#include "QAD_PyInterp.h"
+
#include "QAD_StudyFrame.h"
#include "QAD_StudyFrame.h"
#include "QAD_RightFrame.h"
setPalette(QAD_Application::getPalette());
mySplitter = new QAD_Splitter( Qt::Horizontal, this);
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
mySplitter->setCompressEnabled( true );
+#endif
setCentralWidget(mySplitter);
myLeftFrm = new QAD_LeftFrame(myStudy->getStudyDocument(), mySplitter, theTitle );
*/
void QAD_StudyFrame::compressLeft()
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
QSplitterPHandle* h = mySplitter->getHandleAfter(myLeftFrm);
if( h )
h->compressBefore();
+
+#endif
}
void QAD_StudyFrame::compressRight()
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
QSplitterPHandle* h = mySplitter->getHandleAfter(myLeftFrm);
if( h )
h->compressAfter();
+
+#endif
}
void QAD_StudyFrame::unCompressLeft()
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
QSplitterPHandle* h = mySplitter->getHandleAfter(myLeftFrm);
if( h )
h->unCompressBefore();
+
+#endif
}
void QAD_StudyFrame::unCompressRight()
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
QSplitterPHandle* h = mySplitter->getHandleAfter(myLeftFrm);
if( h )
h->unCompressAfter();
+
+#endif
}
bool QAD_StudyFrame::isCompressedLeft() const
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
return mySplitter->isCompressed(myLeftFrm);
+
+#else
+ return false;
+#endif
}
bool QAD_StudyFrame::isCompressedRight() const
{
+#if (QT_VERSION < 0x030303)
+// mpv: do not use patchqt for qt version >= 3.3.3
+
return mySplitter->isCompressed(myRightFrm);
+
+#else
+ return false;
+#endif
}
/*!