1 // Copyright (C) 2006-2013 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef _GUIEDITOR_HXX_
21 #define _GUIEDITOR_HXX_
39 class SubjectElementaryNode;
40 class SubjectComposedNode;
41 class SubjectDataPort;
50 void CreateNodeFromCatalog(const ItemMimeData* myData,
51 SubjectComposedNode *cnode,
52 bool createNewComponentInstance);
53 void AddTypeFromCatalog(const ItemMimeData* myData);
54 SubjectNode* CreateNode(std::string typeNode);
57 void CreateForEachLoop(std::string type );
58 void CreateWhileLoop();
60 void CreateOptimizerLoop();
61 void CreateContainer();
62 void CreateComponentInstance();
64 SubjectDataPort* CreateInputPort(SubjectElementaryNode* seNode,
66 YACS::ENGINE::Catalog *catalog,
67 std::string type = "double",
68 SubjectDataPort* before = 0);
70 SubjectDataPort* CreateOutputPort(SubjectElementaryNode* seNode,
72 YACS::ENGINE::Catalog *catalog,
73 std::string type = "double",
74 SubjectDataPort* before = 0);
76 void DeleteSubject(Subject* parent,
82 void PutSubjectInBloc();
83 std::string PutGraphInBloc();
84 void PutGraphInNode(std::string typeNode);
87 void arrangeNodes(bool isRecursive);
89 void showUndo(QWidget *parent = 0);
90 void showRedo(QWidget *parent = 0);
91 QString asciiFilter(const QString & name);
94 SubjectNode* _createNode(YACS::ENGINE::Catalog* catalog,
95 SubjectComposedNode *cnode,
97 std::string compoName,
98 bool createNewComponentInstance);