equal
deleted
inserted
replaced
2 from xml.dom import minidom |
2 from xml.dom import minidom |
3 import cPickle |
3 import cPickle |
4 |
4 |
5 from xmlclass import * |
5 from xmlclass import * |
6 |
6 |
7 from util.misc import opjimg |
|
8 from CFileEditor import CFileEditor |
7 from CFileEditor import CFileEditor |
9 from PLCControler import UndoBuffer, LOCATION_CONFNODE, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT |
8 from PLCControler import UndoBuffer, LOCATION_CONFNODE, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT |
10 |
9 |
11 CFileClasses = GenerateClassesFromXSD(os.path.join(os.path.dirname(__file__), "cext_xsd.xsd")) |
10 CFileClasses = GenerateClassesFromXSD(os.path.join(os.path.dirname(__file__), "cext_xsd.xsd")) |
12 |
11 |
42 self.CreateCFileBuffer(True) |
41 self.CreateCFileBuffer(True) |
43 else: |
42 else: |
44 self.CreateCFileBuffer(False) |
43 self.CreateCFileBuffer(False) |
45 self.OnCTNSave() |
44 self.OnCTNSave() |
46 |
45 |
47 def GetIconPath(self): |
46 def GetIconName(self): |
48 return opjimg("Cfile") |
47 return "Cfile" |
49 |
48 |
50 def CFileName(self): |
49 def CFileName(self): |
51 return os.path.join(self.CTNPath(), "cfile.xml") |
50 return os.path.join(self.CTNPath(), "cfile.xml") |
52 |
51 |
53 def GetBaseTypes(self): |
52 def GetBaseTypes(self): |