-// Copyright (C) 2006-2013 CEA/DEN, EDF R&D
+// Copyright (C) 2006-2016 CEA/DEN, 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
-// 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
_category = "Component";
_type = "Salome Component";
}
- else if (SubjectContainer * sub = dynamic_cast<SubjectContainer*>(_subject))
+ else if (SubjectContainerBase * sub = dynamic_cast<SubjectContainerBase*>(_subject))
{
_category = "Container";
- _type = "Salome Container";
+ _type = sub->getLabelForHuman();
}
}
son->getName().c_str());
break;
case YACS::HMI::CONTAINER:
- item = new EditionContainer(son,
- QtGuiContext::getQtCurrent()->getStackedWidget(),
- son->getName().c_str());
+ item = new EditionContainer(son,QtGuiContext::getQtCurrent()->getStackedWidget(),son->getName().c_str());
break;
case YACS::HMI::COMPONENT:
item = new EditionComponent(son,