X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshersGUI%2FStdMeshersGUI_ObjectReferenceParamWdg.h;h=e2ff97b43cda8b568a32238df05ee4eb9856bb01;hp=26448cf22df51c49fd48c7133ff0ecb2c6b43663;hb=6bac08c1a81f34d3f21c550bd92f83654b2546a5;hpb=bd4e115a78b52e3fbc016e5e30bb0e19b2a9e7d6 diff --git a/src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.h b/src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.h index 26448cf22..e2ff97b43 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.h +++ b/src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.h @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -6,7 +6,7 @@ // 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 @@ -35,7 +35,7 @@ #include // CORBA includes -#include +#include #include #include CORBA_SERVER_HEADER(SMESH_Mesh) @@ -58,7 +58,7 @@ public: QWidget* parent, bool multiSelection=false, bool stretch=true); - StdMeshersGUI_ObjectReferenceParamWdg( MeshObjectType objType, + StdMeshersGUI_ObjectReferenceParamWdg( SMESH::MeshObjectType objType, QWidget* parent, bool multiSelection=false); ~StdMeshersGUI_ObjectReferenceParamWdg(); @@ -80,6 +80,15 @@ public: bool IsObjectSelected(unsigned i=0) const { return i < myObjects.size() && !CORBA::is_nil(myObjects[i]); } + /*! + * \brief Get the selection status + * + * Useful to know which Object Reference param widget is activated + * to be able to activate the next one when the content of this + * one has been modified + */ + bool IsSelectionActivated() const { return mySelectionActivated; } + void AvoidSimultaneousSelection( StdMeshersGUI_ObjectReferenceParamWdg* other); void SetDefaultText(QString defaultText="", QString styleSheet="");