X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStdMeshersGUI%2FStdMeshersGUI_SubShapeSelectorWdg.h;h=f487c411ca0e98d8256c24671837bbbb8b7034f7;hb=a274ade365bd0f0e19d56c577acc4a13aa1972a7;hp=a3e986a88e7ce67ecb1ed1fef1c4773b68bdbf92;hpb=f65b9b8b24acedada2383fe274f330c8d8630468;p=modules%2Fsmesh.git diff --git a/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h b/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h index a3e986a88..f487c411c 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h +++ b/src/StdMeshersGUI/StdMeshersGUI_SubShapeSelectorWdg.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -53,7 +53,8 @@ public: StdMeshersGUI_SubShapeSelectorWdg( QWidget* parent = 0, TopAbs_ShapeEnum subShType = TopAbs_EDGE, const bool toShowList = true, - const bool toShowSelectBtn = false); + const bool toShowSelectBtn = false, + const int minListWidth=300); ~StdMeshersGUI_SubShapeSelectorWdg(); SMESH::long_array_var GetListOfIDs(); @@ -82,12 +83,23 @@ public: SMESH_PreviewActorsCollection* GetActorCollection() { return myPreviewActor; } void ClearSelected(); + void AvoidSimultaneousSelection( StdMeshersGUI_SubShapeSelectorWdg* other); + public slots: + void ActivateSelection( bool ); + void deactivateSelection() { ActivateSelection( false ); } signals: void selectionChanged(); // in the list void shapeSelected(); // globally + /*! + * \brief Emitted when selection is activated + * + * Useful to deactivate one Object Reference param widget when an other + * one is activated + */ + void selectionActivated(); private: void updateState();