X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshersGUI%2FStdMeshersGUI_SubShapeSelectorWdg.h;h=adf62f1d6cdb5fd43c521a1ec05810afeb062c7d;hp=d8974fd2379156929e2fe77068d9f92e8bac2684;hb=20d9e162bd67182cbfa841bbfc9319919f4703e3;hpb=189e207e8943efaec894dbd9a338f77a13df44bd diff --git a/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h b/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h index d8974fd23..adf62f1d6 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h +++ b/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h @@ -50,26 +50,22 @@ class STDMESHERSGUI_EXPORT StdMeshersGUI_SubShapeSelectorWdg : public QWidget Q_OBJECT public: - StdMeshersGUI_SubShapeSelectorWdg( QWidget* parent = 0, - TopAbs_ShapeEnum aSubShType = TopAbs_EDGE ); + StdMeshersGUI_SubShapeSelectorWdg( QWidget* parent = 0, + TopAbs_ShapeEnum subShType = TopAbs_EDGE, + const bool toShowList = true); ~StdMeshersGUI_SubShapeSelectorWdg(); SMESH::long_array_var GetListOfIDs(); bool SetListOfIDs( SMESH::long_array_var ); + const QList& GetSelectedIDs() const { return mySelectedIDs; } void SetGeomShapeEntry( const QString& theEntry, const QString& theMainShapeEntry); - //QString GetGeomShapeEntry() { return myEntry; } - - // void SetMainShapeEntry( const QString& theEntry ); const char* GetMainShapeEntry(); TopoDS_Shape GetGeomShape() { return myGeomShape; } TopoDS_Shape GetMainShape() { return myMainShape; } - // QList GetCorrectedListOfIDs( bool fromSubshapeToMainshape, - // bool* isOK=0); - static GEOM::GEOM_Object_var GetGeomObjectByEntry( const QString& ); static TopoDS_Shape GetTopoDSByEntry( const QString& ); @@ -84,9 +80,11 @@ public: vtkRenderer* GetRenderer() { return myRenderer; } SMESH_PreviewActorsCollection* GetActorCollection() { return myPreviewActor; } void ClearSelected(); + void ActivateSelection( bool ); signals: - void selectionChanged(); + void selectionChanged(); // in the list + void shapeSelected(); // globally private: void updateState(); @@ -126,7 +124,6 @@ private: QString myParamValue; bool myIsShown; - bool myIsNotCorrected; // for manage possible size of myListOfIDs int myMaxSize;