Version: 8.3.0
EditionSalomeNode.hxx
Go to the documentation of this file.
1 // Copyright (C) 2006-2016 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 
25 #include <QHBoxLayout>
26 #include <QLabel>
27 #include <QLineEdit>
28 
29 class FormComponent;
30 class FormContainer;
31 
32 namespace YACS
33 {
34  namespace ENGINE
35  {
36  class ServiceNode;
37  }
38 
39  namespace HMI
40  {
41  class PropertyEditor;
42  // ports en cablage plus initialisation seulement
43  // choix de l'instance de composant
44  // panneau depliable instance de composant
45  // panneau depliable container
46 
48  {
49  Q_OBJECT
50 
51  public:
52  EditionSalomeNode(Subject* subject,
53  QWidget* parent = 0,
54  const char* name = 0);
55  virtual ~EditionSalomeNode();
56  virtual void update(GuiEvent event, int type, Subject* son);
57  virtual void synchronize();
58 
59  public slots:
60  virtual void fillComponentPanel();
61  virtual void fillContainerPanel();
62  virtual void changeInstance(int index);
63  virtual void changeContainer(int index);
64  virtual void changeHost(int index);
65  virtual void onApply();
66  virtual void onCancel();
67 
68  protected:
72  QHBoxLayout *_hbl_method;
73  QLabel *_la_method;
76  };
77  }
78 }
79 #endif