util/MiniTextControler.py
changeset 806 abf1afc1f04d
parent 725 31dade089db5
child 1347 533741e5075c
equal deleted inserted replaced
805:c0f60c2a5a24 806:abf1afc1f04d
     4 
     4 
     5 import os
     5 import os
     6 
     6 
     7 class MiniTextControler:
     7 class MiniTextControler:
     8     
     8     
     9     def __init__(self, filepath):
     9     def __init__(self, filepath, controller):
    10         self.FilePath = filepath
    10         self.FilePath = filepath
       
    11         self.BaseController = controller
       
    12     
       
    13     def __del__(self):
       
    14         self.BaseController = None
    11     
    15     
    12     def CTNFullName(self):
    16     def CTNFullName(self):
    13         return ""
    17         return ""
    14     
    18     
    15     def SetEditedElementText(self, tagname, text):
    19     def SetEditedElementText(self, tagname, text):
    29         return []
    33         return []
    30     
    34     
    31     def GetEditedElementType(self, tagname, debug = False):
    35     def GetEditedElementType(self, tagname, debug = False):
    32         return "program"
    36         return "program"
    33     
    37     
       
    38     def GetBlockType(self, type, inputs = None, debug = False):
       
    39         return self.BaseController.GetBlockType(type, inputs, debug)
       
    40     
    34     def GetBlockTypes(self, tagname = "", debug = False):
    41     def GetBlockTypes(self, tagname = "", debug = False):
    35         return []
    42         return self.BaseController.GetBlockTypes(tagname, debug)
    36     
    43     
    37     def GetDataTypes(self, tagname = "", basetypes = True, only_locatables = False, debug = False):
    44     def GetDataTypes(self, tagname = "", basetypes = True, only_locatables = False, debug = False):
    38         return []
    45         return self.BaseController.GetDataTypes(tagname, basetypes, only_locatables, debug)
    39     
    46     
    40     def GetEnumeratedDataValues(self, debug = False):
    47     def GetEnumeratedDataValues(self, debug = False):
    41         return []
    48         return self.BaseController.GetEnumeratedDataValues(debug)
    42     
    49     
    43     def StartBuffering(self):
    50     def StartBuffering(self):
    44         pass
    51         pass
    45 
    52 
    46     def EndBuffering(self):
    53     def EndBuffering(self):