diff --git a/htdocs/qtobjecttree.html b/htdocs/qtobjecttree.html index 568f7d54..463512c9 100644 --- a/htdocs/qtobjecttree.html +++ b/htdocs/qtobjecttree.html @@ -3,7 +3,6 @@ - @@ -20,13 +19,16 @@ function iterateObjects(obj, level, idParent) { - var table = ''; + var table = '
'; table += ''; table += ''; table += ''; + table += ''; + table += ''; table += ''; - + + // Class Chain table += ''; table += ''; - table += ''; + + // Methods + table += ''; + // Children + table += ''; + + table += ''; + document.getElementById(idParent).innerHTML = table; + + for (var i = 0; i < obj.children.length; i++) + { + var id = idParent + '.' + i; + iterateObjects(obj.children[i], level + 1, id); + } } @@ -73,7 +130,7 @@ function fmqReady() { poll(); - setInterval(poll, 2000); + //setInterval(poll, 2000); } diff --git a/inc/finalmq/Qt/qtdata.fmq b/inc/finalmq/Qt/qtdata.fmq index 518e9d08..c9e7082d 100644 --- a/inc/finalmq/Qt/qtdata.fmq +++ b/inc/finalmq/Qt/qtdata.fmq @@ -83,8 +83,10 @@ {"tid":"struct[]", "type":"Parameter", "name":"parameters", "desc":"","flags":[]} ]}, {"type":"Property","desc":"","fields":[ - {"tid":"string", "type":"", "name":"name", "desc":"","flags":[]}, - {"tid":"string", "type":"", "name":"value", "desc":"","flags":[]} + {"tid":"string", "type":"", "name":"type", "desc":"","flags":[]}, + {"tid":"string", "type":"", "name":"name", "desc":"","flags":[]}, + {"tid":"string", "type":"", "name":"value", "desc":"","flags":[]}, + {"tid":"bool", "type":"", "name":"hasNotifySignal","desc":"","flags":[]} ]}, {"type":"ObjectData","desc":"","fields":[ {"tid":"struct[]", "type":"Property", "name":"properties", "desc":"","flags":[]}, @@ -127,16 +129,20 @@ {"tid":"int32", "type":"","name":"right","desc":"","flags":[]}, {"tid":"int32", "type":"","name":"bottom","desc":"","flags":[]} ]}, + {"type":"FmqQSize","attrs":["qttype:QSize"],"desc":"","fields":[ + {"tid":"int32", "type":"","name":"width","desc":"","flags":[]}, + {"tid":"int32", "type":"","name":"height","desc":"","flags":[]} + ]}, {"type":"FmqQColor","attrs":["qttype:QColor"],"desc":"","fields":[ {"tid":"enum", "type":"FmqQColorSpec","name":"cspec","desc":"","flags":[]}, - {"tid":"int16", "type":"","name":"alpha","desc":"","flags":[]}, - {"tid":"int16", "type":"","name":"red","desc":"","flags":[]}, - {"tid":"int16", "type":"","name":"green","desc":"","flags":[]}, - {"tid":"int16", "type":"","name":"blue","desc":"","flags":[]}, - {"tid":"int16", "type":"","name":"pad","desc":"","flags":[]} + {"tid":"uint16", "type":"","name":"alpha","desc":"","flags":[]}, + {"tid":"uint16", "type":"","name":"red","desc":"","flags":[]}, + {"tid":"uint16", "type":"","name":"green","desc":"","flags":[]}, + {"tid":"uint16", "type":"","name":"blue","desc":"","flags":[]}, + {"tid":"uint16", "type":"","name":"pad","desc":"","flags":[]} ]}, - {"type":"FmqQTransform","desc":"","fields":[ + {"type":"FmqQTransform","attrs":["qttype:QTransform"],"desc":"","fields":[ {"tid":"double", "name":"m11", "desc":"","flags":[]}, {"tid":"double", "name":"m12", "desc":"","flags":[]}, {"tid":"double", "name":"m13", "desc":"","flags":[]}, @@ -148,11 +154,16 @@ {"tid":"double", "name":"m33", "desc":"","flags":[]} ]}, - {"type":"FmqQPointF","desc":"","fields":[ + {"type":"FmqQPointF","attrs":["qttype:QPointF"],"desc":"","fields":[ {"tid":"double", "name":"x", "desc":"","flags":[]}, {"tid":"double", "name":"y", "desc":"","flags":[]} ]}, + {"type":"FmqQPoint","attrs":["qttype:QPoint"],"desc":"","fields":[ + {"tid":"int32", "name":"x", "desc":"","flags":[]}, + {"tid":"int32", "name":"y", "desc":"","flags":[]} + ]}, + {"type":"FmqQBrushSimple","desc":"","fields":[ {"tid":"struct","type":"FmqQColor", "name":"color", "desc":"","flags":[]}, {"tid":"struct","type":"FmqQTransform", "name":"transform", "desc":"","flags":[]} @@ -212,11 +223,18 @@ {"type":"FmqQBrush","attrs":["qttype:QBrush"],"desc":"","fields":[ {"tid":"enum", "type":"FmqQBrushStyle", "name":"style", "attrs":["indexmode:mapping,0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:1,16:1,17:1,24:2"],"desc":"","flags":["METAFLAG_INDEX"]}, - {"tid":"struct","type":"FmqQBrushSimple", "name":"sinple", "desc":"","flags":[]}, + {"tid":"struct","type":"FmqQBrushSimple", "name":"simple", "desc":"","flags":[]}, {"tid":"struct","type":"FmqQBrushGradient", "name":"gradient", "desc":"","flags":[]}, {"tid":"struct","type":"FmqQBrushTexturePattern", "name":"texture", "desc":"","flags":[]} - ]} + ]}, + {"type":"FmqQPaletteColorRole","desc":"","fields":[ + {"tid":"struct[]","type":"FmqQBrush", "name":"roles", "attrs":["fixedarray:21"], "desc":"","flags":[]} + ]}, + + {"type":"FmqQPalette","attrs":["qttype:QPalette"],"desc":"","fields":[ + {"tid":"struct[]","type":"FmqQPaletteColorRole", "name":"goups", "attrs":["fixedarray:3"], "desc":"","flags":[]} + ]} ] }
Class ChainPropertiesMethodsChildren
' @@ -34,21 +36,76 @@ { var className = obj.classchain[i]; table += className; - table += ' '; + table += '
'; } table += '
' + // properties + table += ''; for (var i = 0; i < obj.properties.length; i++) { var prop = obj.properties[i]; - table += prop.name + '=' + prop.value+'
'; - } - table += ''; + table += ''; + table += ''; + table += ''; + table += ''; + table += ''; - table += ''; + table += ''; + } + table += '
' + prop.type + '' + prop.name + '' + prop.value.substr(0, 100) + '' + prop.hasNotifySignal + '
'; + for (var i = 0; i < obj.methods.length; i++) + { + var method = obj.methods[i]; + table += ''; + table += ''; + table += ''; + table += ''; + table += ''; + table += ''; + table += ''; + + // Parameters + table += ''; + + table += ''; + } + table += '
' + method.name + '' + method.index + '' + method.access + '' + method.methodType + '' + method.signature + '' + method.returnType.typeName + ''; + for (var j = 0; j < method.parameters.length; j++) + { + var parameter = method.parameters[j]; + table += ''; + table += ''; + table += ''; + table += ''; + table += ''; + } + table += '
' + parameter.name + '' + parameter.typeName + '' + parameter.typeId + '
'; + for (var i = 0; i < obj.children.length; i++) + { + var id = idParent + '.' + i; + table += ''; + table += ''; + table += ''; + } + table += '
'; + table += '