-// 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
-//
+// Copyright (C) 2014-2015 EDF-R&D
// 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
if ( !myIsApplyAndClose && inputPanel() )
start();
}
- else
+ else if( !anErrorMsg.isEmpty() )
{
// Abort document opeartion only if requested
if ( isToAbortOnApply() )
}
}
-Handle_HYDROData_Document HYDROGUI_Operation::doc() const
+Handle(HYDROData_Document) HYDROGUI_Operation::doc() const
{
return HYDROData_Document::Document( myModule->getStudyId() );
}
QString HYDROGUI_Operation::getHelpFile() const
{
- QString aFileName = ((myName.isEmpty())? operationName() : myName);
- return aFileName.replace(QRegExp("\\s"), "_").append(".html");
+ QString aFileName = ((myName.isEmpty())? operationName() : myName);
+ aFileName = aFileName.toLower();
+ aFileName = aFileName.replace(QRegExp("\\s"), "_").append(".html");
+ aFileName.remove( "create_" );
+ aFileName.remove( "edit_" );
+ return aFileName;
}
QString HYDROGUI_Operation::getHelpContext() const