@@ -17,6 +17,8 @@ local buffModeDropList = {
1717}
1818
1919--- @class CalcsTab : UndoHandler , ControlHost , Control
20+ --- @field powerStat PowerStat ?
21+ --- @field nodePowerMaxDepth integer ? Maximum distance for power report
2022local CalcsTabClass = newClass (" CalcsTab" , " UndoHandler" , " ControlHost" , " Control" )
2123
2224--- @param build Build
@@ -163,7 +165,7 @@ function CalcsTabClass:Load(xml, dbFileName)
163165 if type (node ) == " table" then
164166 if node .elem == " Input" then
165167 if not node .attrib .name then
166- launch :ShowErrMsg (" ^1Error parsing '%s': 'Input' element missing name attribute" , fileName )
168+ launch :ShowErrMsg (" ^1Error parsing '%s': 'Input' element missing name attribute" , dbFileName )
167169 return true
168170 end
169171 if node .attrib .number then
@@ -173,12 +175,12 @@ function CalcsTabClass:Load(xml, dbFileName)
173175 elseif node .attrib .boolean then
174176 self .input [node .attrib .name ] = node .attrib .boolean == " true"
175177 else
176- launch :ShowErrMsg (" ^1Error parsing '%s': 'Input' element missing number, string or boolean attribute" , fileName )
178+ launch :ShowErrMsg (" ^1Error parsing '%s': 'Input' element missing number, string or boolean attribute" , dbFileName )
177179 return true
178180 end
179181 elseif node .elem == " Section" then
180182 if not node .attrib .id then
181- launch :ShowErrMsg (" ^1Error parsing '%s': 'Section' element missing id attribute" , fileName )
183+ launch :ShowErrMsg (" ^1Error parsing '%s': 'Section' element missing id attribute" , dbFileName )
182184 return true
183185 end
184186 for _ , section in ipairs (self .sectionList ) do
0 commit comments