From 30bb71dac9f1c7b880f976cad510ef7ee122047b Mon Sep 17 00:00:00 2001 From: bourcier Date: Wed, 28 Aug 2013 09:38:03 +0000 Subject: [PATCH] Adding the public member IsSelectionActivated() to access the selection status of the widget from dialog boxes implementation. --- .../StdMeshersGUI_ObjectReferenceParamWdg.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.h b/src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.h index d36efd929..6651ff198 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.h +++ b/src/StdMeshersGUI/StdMeshersGUI_ObjectReferenceParamWdg.h @@ -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=""); -- 2.39.2