Salome HOME
Moved some functionality to VTKViewer_Utilities.h
[modules/kernel.git] / src / SALOMEGUI / QAD_Study.h
index 2d650058df1716fbe4b6fe429a55fc3d14d7d232..409b2aba4dc47e731a21504c2d5127d61a756244 100644 (file)
 #include <qstring.h>
 
 class QAD_Application;
+
+class QMutex;
 class QAD_PyInterp;
+class TInitStudyThread;
+class QAD_ViewFrame;
 
 class QAD_EXPORT QAD_Study : public QObject
 {
@@ -54,6 +58,7 @@ public:
   QAD_Study(QAD_Application* app,
            SALOMEDS::Study_var aStudy,
            const QString& title);
+  virtual void Init(); 
   ~QAD_Study();
 
   /* Event filter */
@@ -79,6 +84,7 @@ public:
   bool            isModified() const;
   bool            isReadOnly() const;
   void            setReadOnly(bool state);
+  bool             isLocked();
   const QString&   getTitle() const;
   int              getStudyId();
   const QString&   getPath() const;
@@ -140,7 +146,7 @@ public:
 
   /* selection */
   void           Selection( QString aSelection );
-  QString        getSelection();
+  QString        getSelection() const;
 
   /* python interpreter */
   QAD_PyInterp*          get_PyInterp(void);
@@ -154,6 +160,8 @@ public:
 signals:
   void           docClosing( QAD_Study* );
   void           docOperationTerminated( bool );
+  void            closed();
+  void            supervStudyFrameClosing( QAD_ViewFrame* );
 
 public slots:
   void           onStudyFrameActivated( QAD_StudyFrame* );
@@ -188,7 +196,10 @@ private:
   bool                     myIsModified;
   bool                     myIsReadOnly;
   bool                     myResult;
-  QAD_PyInterp*                    _interp;
+
+  QMutex*                   myMutex;
+  QAD_PyInterp*                    myInterp;
+  TInitStudyThread*         myInitStudyThread;
 };
 
 #endif