-// 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();
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();
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
// 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;
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();
SALOME_PYQT_DataObjectLight*
findObject( const QString& ) const;
+signals:
+ void selectionChanged();
+ void localSelectionChanged();
+
private:
PyModuleHelper* myHelper;
+ SALOME_PYQT_Selector* mySelector;
};
#endif // SALOME_PYQT_MODULELIGHT_H