X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgenericgui%2FGuiEditor.hxx;h=627993b8165654a90e38244f9c0fa1de2b55a1cc;hb=c0fcc541861db7c8009c9e4f0b73cfff568c5934;hp=0c92b8ae6aeba3683339c42fec821a18ffe50f5c;hpb=c81be9b5e74b26e207bd6efd0ccf68418ac536a3;p=modules%2Fyacs.git diff --git a/src/genericgui/GuiEditor.hxx b/src/genericgui/GuiEditor.hxx index 0c92b8ae6..627993b81 100644 --- a/src/genericgui/GuiEditor.hxx +++ b/src/genericgui/GuiEditor.hxx @@ -1,9 +1,9 @@ -// Copyright (C) 2006-2012 CEA/DEN, EDF R&D +// Copyright (C) 2006-2014 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 @@ -35,6 +35,7 @@ namespace YACS namespace HMI { class Subject; + class SubjectNode; class SubjectElementaryNode; class SubjectComposedNode; class SubjectDataPort; @@ -50,7 +51,7 @@ namespace YACS SubjectComposedNode *cnode, bool createNewComponentInstance); void AddTypeFromCatalog(const ItemMimeData* myData); - void CreateNode(std::string typeNode); + SubjectNode* CreateNode(std::string typeNode); void CreateBloc(); void CreateForLoop(); void CreateForEachLoop(std::string type ); @@ -79,6 +80,8 @@ namespace YACS void CopySubject(); void PasteSubject(); void PutSubjectInBloc(); + std::string PutGraphInBloc(); + void PutGraphInNode(std::string typeNode); void shrinkExpand(); void rebuildLinks(); void arrangeNodes(bool isRecursive); @@ -88,7 +91,7 @@ namespace YACS QString asciiFilter(const QString & name); protected: - void _createNode(YACS::ENGINE::Catalog* catalog, + SubjectNode* _createNode(YACS::ENGINE::Catalog* catalog, SubjectComposedNode *cnode, std::string service, std::string compoName,