equal
deleted
inserted
replaced
20 </xsd:complexType> |
20 </xsd:complexType> |
21 </xsd:element> |
21 </xsd:element> |
22 </xsd:schema> |
22 </xsd:schema> |
23 """ |
23 """ |
24 |
24 |
25 def __init__(self, buspath): |
25 def __init__(self): |
26 manager = NodeManager() |
26 manager = NodeManager() |
27 NodeList.__init__(self, manager) |
27 NodeList.__init__(self, manager) |
28 self.LoadProject(buspath) |
28 self.LoadProject(self.PlugPath()) |
29 |
29 |
30 _View = None |
30 _View = None |
31 def _OpenView(self): |
31 def _OpenView(self): |
32 if not self._View: |
32 if not self._View: |
33 def _onclose(): |
33 def _onclose(): |
42 self._View.Close() |
42 self._View.Close() |
43 |
43 |
44 def PlugTestModified(self): |
44 def PlugTestModified(self): |
45 return self.HasChanged() |
45 return self.HasChanged() |
46 |
46 |
47 def PlugRequestSave(self): |
47 def OnPlugSave(self): |
48 self.SaveProject() |
48 self.SaveProject() |
49 return True |
49 return True |
50 |
50 |
51 def PlugGenerate_C(self, buildpath, current_location, locations): |
51 def PlugGenerate_C(self, buildpath, current_location, locations): |
52 """ |
52 """ |
75 </xsd:element> |
75 </xsd:element> |
76 </xsd:schema> |
76 </xsd:schema> |
77 """ |
77 """ |
78 |
78 |
79 PlugChildsTypes = [("CanOpenNode",_NodeListPlug)] |
79 PlugChildsTypes = [("CanOpenNode",_NodeListPlug)] |
80 |
80 |
81 def PlugGenerate_C(self, buildpath, current_location, locations): |
81 def PlugGenerate_C(self, buildpath, current_location, locations): |
82 """ |
82 """ |
83 Generate C code |
83 Generate C code |
84 @param current_location: Tupple containing plugin IEC location : %I0.0.4.5 => (0,0,4,5) |
84 @param current_location: Tupple containing plugin IEC location : %I0.0.4.5 => (0,0,4,5) |
85 @param locations: List of complete variables locations \ |
85 @param locations: List of complete variables locations \ |