Salome HOME
updated copyright message
[modules/gui.git] / src / SALOME_PYQT / SALOME_PYQT_GUILight / SALOME_PYQT_ModuleLight.h
index 6807e07050016c3c39daadd23d2f0e741dfa776b..3805eef44609808ca26eb7a85a5654f44f08b2cd 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 //
 // 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.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 
 class QMenu;
 class PyModuleHelper;
+class SALOME_PYQT_Selector;
 class SALOME_PYQT_DataObjectLight;
 
 class SALOME_PYQT_LIGHT_EXPORT SALOME_PYQT_ModuleLight: public LightApp_Module
 {
-  Q_OBJECT;
+  Q_OBJECT
 
 public:
   SALOME_PYQT_ModuleLight();
@@ -49,6 +50,7 @@ public:
   void            initialize( CAM_Application* );
   bool            activateModule( SUIT_Study* );
   bool            deactivateModule( SUIT_Study* );
+  void            onModelClosed();
   void            windows( QMap<int, int>& ) const;
   void            viewManagers( QStringList& ) const;
   void            studyActivated();
@@ -57,8 +59,8 @@ public:
   void            preferencesChanged( const QString&, const QString& );
 
   // persistence & dump python
-  void            save( QStringList& );
-  bool            load( const QStringList& );
+  void            save( QStringList&, const QString& );
+  bool            load( const QStringList&, const QString& );
   void            dumpPython( QStringList& );
 
   // drag-n-drop support
@@ -70,9 +72,9 @@ public:
   // data model management
   QString         createObject( const QString& );
   QString         createObject( const QString&, 
-                               const QString&,
-                               const QString&,
-                               const QString& );
+                                const QString&,
+                                const QString&,
+                                const QString& );
 
   void            setName( const QString&, const QString& );
   QString         getName( const QString& ) const;
@@ -91,8 +93,19 @@ public:
   void            removeObject( const QString& );
   void            removeChildren( const QString& );
 
+  void            setObjectPosition( const QString&, int );
+  int             getObjectPosition( const QString& );
+
   QStringList     getChildren( const QString&, const bool = false ) const;
 
+  void             enableSelector();
+  void             disableSelector();
+  void             setLocalSelected(const QStringList &);
+  void             getSelected( DataObjectList& ) const;
+//  unsigned long    getModifiedTime() const;
+//  SUIT_DataObject* root() const;
+  void             setSelected( const QStringList&, const bool = false );
+
 protected:
   CAM_DataModel*  createDataModel();
 
@@ -100,8 +113,13 @@ private:
   SALOME_PYQT_DataObjectLight* 
                   findObject( const QString& ) const;
 
+signals:
+  void            selectionChanged();
+  void            localSelectionChanged();
+
 private:
   PyModuleHelper* myHelper;
+  SALOME_PYQT_Selector* mySelector;
 };
 
 #endif // SALOME_PYQT_MODULELIGHT_H