equal
deleted
inserted
replaced
175 if self.ieclib_c_path is None: |
175 if self.ieclib_c_path is None: |
176 self.ieclib_c_path = self.findLibCPath() |
176 self.ieclib_c_path = self.findLibCPath() |
177 return self.ieclib_c_path |
177 return self.ieclib_c_path |
178 |
178 |
179 |
179 |
180 class ProjectController(ConfigTreeNode, PLCControler): |
180 def GetProjectControllerXSD(): |
181 """ |
|
182 This class define Root object of the confnode tree. |
|
183 It is responsible of : |
|
184 - Managing project directory |
|
185 - Building project |
|
186 - Handling PLCOpenEditor controler and view |
|
187 - Loading user confnodes and instanciante them as children |
|
188 - ... |
|
189 |
|
190 """ |
|
191 |
|
192 # For root object, available Children Types are modules of the confnode packages. |
|
193 CTNChildrenTypes = ExtractChildrenTypesFromCatalog(features.catalog) |
|
194 |
|
195 XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?> |
181 XSD = """<?xml version="1.0" encoding="ISO-8859-1" ?> |
196 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
182 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> |
197 <xsd:element name="BeremizRoot"> |
183 <xsd:element name="BeremizRoot"> |
198 <xsd:complexType> |
184 <xsd:complexType> |
199 <xsd:sequence> |
185 <xsd:sequence> |
217 <xsd:attribute name="Disable_Extensions" type="xsd:boolean" use="optional" default="false"/> |
203 <xsd:attribute name="Disable_Extensions" type="xsd:boolean" use="optional" default="false"/> |
218 </xsd:complexType> |
204 </xsd:complexType> |
219 </xsd:element> |
205 </xsd:element> |
220 </xsd:schema> |
206 </xsd:schema> |
221 """ |
207 """ |
|
208 return XSD |
|
209 |
|
210 |
|
211 class ProjectController(ConfigTreeNode, PLCControler): |
|
212 """ |
|
213 This class define Root object of the confnode tree. |
|
214 It is responsible of : |
|
215 - Managing project directory |
|
216 - Building project |
|
217 - Handling PLCOpenEditor controler and view |
|
218 - Loading user confnodes and instanciante them as children |
|
219 - ... |
|
220 |
|
221 """ |
|
222 # For root object, available Children Types are modules of the confnode packages. |
|
223 CTNChildrenTypes = ExtractChildrenTypesFromCatalog(features.catalog) |
|
224 XSD = GetProjectControllerXSD() |
222 EditorType = ProjectNodeEditor |
225 EditorType = ProjectNodeEditor |
223 iec2c_cfg = None |
226 iec2c_cfg = None |
224 |
227 |
225 def __init__(self, frame, logger): |
228 def __init__(self, frame, logger): |
226 PLCControler.__init__(self) |
229 PLCControler.__init__(self) |