X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fgenericgui%2FGuiEditor.cxx;h=da2237e89ceccaa4ae3984c7be246b0743c26a04;hb=5e3d4c34b008ce0726db84073c523ef58441a3c5;hp=c50a41dda7e654fa9519e829a813650acd5e2086;hpb=cf2bfdce248a8a62ad2dca2f14e05e91baf9d7e2;p=modules%2Fyacs.git diff --git a/src/genericgui/GuiEditor.cxx b/src/genericgui/GuiEditor.cxx index c50a41dda..da2237e89 100644 --- a/src/genericgui/GuiEditor.cxx +++ b/src/genericgui/GuiEditor.cxx @@ -269,7 +269,7 @@ void GuiEditor::CreateContainer() DEBTRACE("GuiEditor::CreateContainer"); SubjectProc *sproc = QtGuiContext::getQtCurrent()->getSubjectProc(); YASSERT(sproc); - SubjectContainer *scont = 0; + SubjectContainerBase *scont = 0; while (!scont) { std::stringstream name; @@ -281,6 +281,23 @@ void GuiEditor::CreateContainer() } } +void GuiEditor::CreateHPContainer() +{ + DEBTRACE("GuiEditor::CreateHPContainer"); + SubjectProc *sproc = QtGuiContext::getQtCurrent()->getSubjectProc(); + YASSERT(sproc); + SubjectContainerBase *scont = 0; + while (!scont) + { + std::stringstream name; + long newid = GuiContext::getCurrent()->getNewId(); + if (newid > 100000) break; + name.str(""); + name << "container" << newid; + scont = sproc->addHPContainer(name.str()); + } +} + void GuiEditor::CreateComponentInstance() { DEBTRACE("GuiEditor::CreateComponentInstance");