Salome HOME
Revert "Synchronize adm files"
[modules/yacs.git] / src / genericgui / EditionSalomeNode.hxx
1 // Copyright (C) 2006-2014  CEA/DEN, EDF R&D
2 //
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, or (at your option) any later version.
7 //
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.
12 //
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
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef _EDITIONSALOMENODE_HXX_
21 #define _EDITIONSALOMENODE_HXX_
22
23 #include "EditionElementaryNode.hxx"
24 #include <QHBoxLayout>
25 #include <QLabel>
26 #include <QLineEdit>
27
28 class FormComponent;
29 class FormContainer;
30
31 namespace YACS
32 {
33   namespace ENGINE
34   {
35     class ServiceNode;
36   }
37
38   namespace HMI
39   {
40     class PropertyEditor;
41       // ports en cablage plus initialisation seulement
42       // choix de l'instance de composant
43       // panneau depliable instance de composant
44       // panneau depliable container
45
46     class EditionSalomeNode: public EditionElementaryNode
47     {
48       Q_OBJECT
49
50     public:
51       EditionSalomeNode(Subject* subject,
52                   QWidget* parent = 0,
53                   const char* name = 0);
54       virtual ~EditionSalomeNode();
55       virtual void update(GuiEvent event, int type, Subject* son);
56       virtual void synchronize();
57
58     public slots:
59       virtual void fillComponentPanel();
60       virtual void fillContainerPanel();
61       virtual void changeInstance(int index);
62       virtual void changeContainer(int index);
63       virtual void changeHost(int index);
64       virtual void onApply();
65       virtual void onCancel();
66
67     protected:
68       PropertyEditor* _propeditor;
69       FormComponent *_wComponent;
70       FormContainer *_wContainer;
71       QHBoxLayout *_hbl_method;
72       QLabel *_la_method;
73       QLineEdit *_le_method;
74       YACS::ENGINE::ServiceNode* _servNode;
75     };
76   }
77 }
78 #endif