1 // Copyright (C) 2006-2012 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_
38 class SubjectElementaryNode;
39 class SubjectComposedNode;
40 class SubjectDataPort;
49 void CreateNodeFromCatalog(const ItemMimeData* myData,
50 SubjectComposedNode *cnode,
51 bool createNewComponentInstance);
52 void AddTypeFromCatalog(const ItemMimeData* myData);
53 void CreateNode(std::string typeNode);
56 void CreateForEachLoop(std::string type );
57 void CreateWhileLoop();
59 void CreateOptimizerLoop();
60 void CreateContainer();
61 void CreateComponentInstance();
63 SubjectDataPort* CreateInputPort(SubjectElementaryNode* seNode,
65 YACS::ENGINE::Catalog *catalog,
66 std::string type = "double",
67 SubjectDataPort* before = 0);
69 SubjectDataPort* CreateOutputPort(SubjectElementaryNode* seNode,
71 YACS::ENGINE::Catalog *catalog,
72 std::string type = "double",
73 SubjectDataPort* before = 0);
75 void DeleteSubject(Subject* parent,
81 void PutSubjectInBloc();
82 std::string PutGraphInBloc();
83 void PutGraphInForeachLoop(std::string typeNode);
84 void PutGraphInOptimizerLoop();
87 void arrangeNodes(bool isRecursive);
89 void showUndo(QWidget *parent = 0);
90 void showRedo(QWidget *parent = 0);
91 QString asciiFilter(const QString & name);
94 void _createNode(YACS::ENGINE::Catalog* catalog,
95 SubjectComposedNode *cnode,
97 std::string compoName,
98 bool createNewComponentInstance);