--- a/ProjectController.py Mon Aug 14 22:30:41 2017 +0300
+++ b/ProjectController.py Mon Aug 14 23:27:15 2017 +0300
@@ -67,6 +67,7 @@
ITEM_CONFNODE = 25
+
def ExtractChildrenTypesFromCatalog(catalog):
children_types = []
for n,d,h,c in catalog:
@@ -76,6 +77,7 @@
children_types.append((n, GetClassImporter(c), d))
return children_types
+
def ExtractMenuItemsFromCatalog(catalog):
menu_items = []
for n,d,h,c in catalog:
@@ -86,9 +88,11 @@
menu_items.append((n, d, h, children))
return menu_items
+
def GetAddMenuItems():
return ExtractMenuItemsFromCatalog(features.catalog)
+
class Iec2CSettings():
def __init__(self):
self.iec2c = None
@@ -170,6 +174,7 @@
iec2c_cfg = Iec2CSettings()
+
class ProjectController(ConfigTreeNode, PLCControler):
"""
This class define Root object of the confnode tree.