-// File : QAD_StudyFrame.h
-// Created : Wed Mar 20 11:10:03 2002
-// Author : Nicolas REJNERI
-// Project : SALOME
-// Module : SALOMEGUI
-// Copyright : Open CASCADE 2002
+// SALOME SALOMEGUI : implementation of desktop and GUI kernel
+//
+// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+//
+// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+//
+//
+//
+// File : QAD_StudyFrame.h
+// Author : Nicolas REJNERI
+// Module : SALOME
// $Header$
#ifndef QAD_StudyFrame_H
#define QAD_StudyFrame_H
#include "QAD.h"
-#include "QAD_Splitter.h"
-#include "QAD_PyInterp.h"
// QT Includes
#include <qwidget.h>
#include <qmainwindow.h>
+class QMutex;
+
class QAD_RightFrame;
class QAD_LeftFrame;
class QAD_Splitter;
class QAD_Study;
+class QAD_PyInterp;
enum ViewType {
VIEW_OCC,
Q_OBJECT
public:
- QAD_StudyFrame(QAD_Study* study,
- QWidget* parent, const QString& title,
- QAD_PyInterp* interp, ViewType typeView);
- QAD_StudyFrame(QAD_Study*,
- QWidget* parent = 0);
+ QAD_StudyFrame(QAD_Study* theStudy, QWidget* theParent,
+ const QString& theTitle, ViewType theTypeView,
+ QAD_PyInterp*& theInterp, QMutex* theMutex);
virtual ~QAD_StudyFrame();
QAD_Study* getStudy() { return myStudy; }
const QString& entry() const;
void setVisible( bool isVisible = true );
- void closeEvent(QCloseEvent* e);
void compressLeft();
void compressRight();
void unCompressLeft();
void unCompressRight();
+ bool isCompressedLeft() const;
+ bool isCompressedRight() const;
+
signals:
void sfStudyFrameActivated( QAD_StudyFrame* );
void sfStudyFrameClosing( QAD_StudyFrame*);
- void sfBeforeStudyFrameClosing( QAD_StudyFrame*);
public slots:
void onStudyFrameActivated ( QWidget* );
+
+ protected:
+ virtual void closeEvent ( QCloseEvent* );
private:
ViewType myTypeView;
QAD_LeftFrame* myLeftFrm;
QAD_RightFrame* myRightFrm;
- QAD_Splitter* s1;
- QAD_PyInterp* _interp;
+ QAD_Splitter* mySplitter;
QAD_Study* myStudy;
+ QAD_PyInterp*& myInterp;
};
#endif