-// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022 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
StdMeshersGUI_SubShapeSelectorWdg( QWidget* parent = 0,
TopAbs_ShapeEnum subShType = TopAbs_EDGE,
const bool toShowList = true,
- const bool toShowActivateBtn = false);
+ const bool toShowSelectBtn = false,
+ const int minListWidth=300);
~StdMeshersGUI_SubShapeSelectorWdg();
SMESH::long_array_var GetListOfIDs();
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();