equal
deleted
inserted
replaced
26 from __future__ import absolute_import |
26 from __future__ import absolute_import |
27 import wx |
27 import wx |
28 |
28 |
29 from controls import ProjectPropertiesPanel, VariablePanel |
29 from controls import ProjectPropertiesPanel, VariablePanel |
30 from editors.ConfTreeNodeEditor import ConfTreeNodeEditor |
30 from editors.ConfTreeNodeEditor import ConfTreeNodeEditor |
|
31 from plcopen.types_enums import ComputeConfigurationName |
31 |
32 |
32 |
33 |
33 class ProjectNodeEditor(ConfTreeNodeEditor): |
34 class ProjectNodeEditor(ConfTreeNodeEditor): |
34 |
35 |
35 SHOW_BASE_PARAMS = False |
36 SHOW_BASE_PARAMS = False |
48 self.ProjectProperties = ProjectPropertiesPanel(prnt, self.Controler, self.ParentWindow, self.ENABLE_REQUIRED) |
49 self.ProjectProperties = ProjectPropertiesPanel(prnt, self.Controler, self.ParentWindow, self.ENABLE_REQUIRED) |
49 |
50 |
50 return self.ProjectProperties |
51 return self.ProjectProperties |
51 |
52 |
52 def __init__(self, parent, controler, window): |
53 def __init__(self, parent, controler, window): |
53 configuration = controler.GetProjectMainConfigurationName() |
54 configuration = GetProjectMainConfigurationName() |
54 if configuration is not None: |
55 if configuration is not None: |
55 tagname = controler.ComputeConfigurationName(configuration) |
56 tagname = ComputeConfigurationName(configuration) |
56 else: |
57 else: |
57 tagname = "" |
58 tagname = "" |
58 |
59 |
59 ConfTreeNodeEditor.__init__(self, parent, controler, window, tagname) |
60 ConfTreeNodeEditor.__init__(self, parent, controler, window, tagname) |
60 |
61 |