equal
deleted
inserted
replaced
26 manager = NodeManager() |
26 manager = NodeManager() |
27 NodeList.__init__(self, manager) |
27 NodeList.__init__(self, manager) |
28 self.LoadProject(self.PlugPath()) |
28 self.LoadProject(self.PlugPath()) |
29 |
29 |
30 _View = None |
30 _View = None |
31 def _OpenView(self): |
31 def _OpenView(self, logger): |
32 if not self._View: |
32 if not self._View: |
33 def _onclose(): |
33 def _onclose(): |
34 self.View = None |
34 self.View = None |
35 self._View = _NetworkEdit() |
35 self._View = _NetworkEdit() |
36 self._View._onclose = _onclose |
36 self._View._onclose = _onclose |
46 |
46 |
47 def OnPlugSave(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, logger): |
52 """ |
52 """ |
53 Generate C code |
53 Generate C code |
54 @param current_location: Tupple containing plugin IEC location : %I0.0.4.5 => (0,0,4,5) |
54 @param current_location: Tupple containing plugin IEC location : %I0.0.4.5 => (0,0,4,5) |
55 @param locations: List of complete variables locations \ |
55 @param locations: List of complete variables locations \ |
56 [(IEC_loc, IEC_Direction IEC_Type, Name)]\ |
56 [(IEC_loc, IEC_Direction IEC_Type, Name)]\ |