#include "SUIT_Application.h"
#include "SUIT_Session.h"
#include "SUIT_Study.h"
+#include "SUIT_MessageBox.h"
#include "SALOMEDSClient_AttributeString.hxx"
#include "SALOMEDSClient_AttributeName.hxx"
//------------------------------------------------------------------------
SALOMEDS::SObject_ptr VISU_TimeAnimation::publishInStudy()
{
- if (myStudy->GetProperties()->IsLocked())
+ if (myStudy->GetProperties()->IsLocked()) {
+ SUIT_MessageBox::warning(0,
+ QObject::tr("WRN_VISU_WARNING"),
+ QObject::tr("WRN_STUDY_LOCKED"),
+ QObject::tr("BUT_OK"));
return SALOMEDS::SObject::_nil();
+ }
_PTR(StudyBuilder) aStudyBuilder = myStudy->NewBuilder();
aStudyBuilder->NewCommand(); // There is a transaction