From dc73379e93a412a8033a1bdfe2a7b270298f59c5 Mon Sep 17 00:00:00 2001 From: Janne Kangas Date: Wed, 12 Jun 2019 15:55:46 +0300 Subject: When deleting a datainput, remove bindings without asking Delete bindings when exiting the datainput dialog, even if the user added a new datainput with the same name. Make datainput deletion changes undoable after dialog has been accepted. Add informative text to pop-up at datainput delete. Change-Id: Ic04f408d0495174e01eeb1a34383b539a6fbcc04 Task-id: QT3DS-2819 Reviewed-by: Mahmoud Badri Reviewed-by: Miikka Heikkinen --- src/Authoring/Client/Code/Core/Core/Dispatch.cpp | 4 ++-- src/Authoring/Client/Code/Core/Core/Dispatch.h | 8 ++++---- src/Authoring/Client/Code/Core/Core/DispatchListeners.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/Authoring/Client/Code/Core') diff --git a/src/Authoring/Client/Code/Core/Core/Dispatch.cpp b/src/Authoring/Client/Code/Core/Core/Dispatch.cpp index 4a1e0905..7ddf2d8b 100644 --- a/src/Authoring/Client/Code/Core/Core/Dispatch.cpp +++ b/src/Authoring/Client/Code/Core/Core/Dispatch.cpp @@ -621,9 +621,9 @@ void CDispatch::FireOnRefreshResourceFail(const QString &inResourceName, void CDispatch::FireOnUndefinedDatainputsFail( const QMultiMap> *map) + qt3dsdm::Qt3DSDMPropertyHandle>> *map, bool askFromUser) { - m_FailListeners.FireEvent(&CFailListener::OnUndefinedDatainputsFail, map); + m_FailListeners.FireEvent(&CFailListener::OnUndefinedDatainputsFail, map, askFromUser); } void CDispatch::AddRendererListener(CRendererListener *inListener) diff --git a/src/Authoring/Client/Code/Core/Core/Dispatch.h b/src/Authoring/Client/Code/Core/Core/Dispatch.h index e727af7f..9d1c564a 100644 --- a/src/Authoring/Client/Code/Core/Core/Dispatch.h +++ b/src/Authoring/Client/Code/Core/Core/Dispatch.h @@ -194,10 +194,10 @@ public: void FireOnErrorFail(const QString &inText); void FireOnRefreshResourceFail(const QString &inResourceName, const QString &inDescription); - void FireOnUndefinedDatainputsFail( - const QMultiMap> *map); + void FireOnUndefinedDatainputsFail(const QMultiMap> *map, + bool askFromUser); void AddRendererListener(CRendererListener *inListener); void RemoveRendererListener(CRendererListener *inListener); diff --git a/src/Authoring/Client/Code/Core/Core/DispatchListeners.h b/src/Authoring/Client/Code/Core/Core/DispatchListeners.h index 252464e3..075a0c91 100644 --- a/src/Authoring/Client/Code/Core/Core/DispatchListeners.h +++ b/src/Authoring/Client/Code/Core/Core/DispatchListeners.h @@ -277,7 +277,7 @@ public: virtual void OnUndefinedDatainputsFail( const QMultiMap> *map) = 0; + qt3dsdm::Qt3DSDMPropertyHandle>> *map, bool askFromUser) = 0; }; class IDataModelListener -- cgit v1.2.3