[Gammaray-interest] Object connectivity inspector/viewer
Anton Kreuzkamp
anton.kreuzkamp at kdab.com
Tue May 14 17:00:09 CEST 2019
Hi,
> Connectivity map
> I have a stupid/simple PoC for the connectivity map, it doesn't yet
> contain meta-data, but the result is IMHO interesting. The only
> problem is that it is generated as a dot file on the target (inside
> the ObjectInspector). If i want to implement this on the GUI side,
> that would be better to have a more suited model - my understanding is
> that the GUI has only access to remote models, so i'll have to rely on
> models, is it correct?
No. GammaRay client and server can communicate through the client calling
slots on the server, the server sending signals to the client and models. It's
a common pattern in the GammaRay code to communicate by a combination of
calling slots from the client and emitting signals from the server. If you
don't need update signals when the data changes, you can call a slot
"giveMeData()" from the client and then transfer arbitrary data from the
server to the client by emitting a signal
"hereIsYourData(QVector<BigStruct>)". We do this in quite some places, where
we need to have the data in a more machine-readable format than a model (see
e.g. ToolManager and ClientToolManager).
> As well, i would like to render the graph in the UI, for a start i'm
> thinking about generating an SVG and simply display it.
> I think that a weighted graph would be perfect for that job, no
> details about signal/slots, just weight b/w objects.
> See attached dot files, generate png with "dot -O -Tpng graph1.dot"
Cheers,
Anton
--
Anton Kreuzkamp | anton.kreuzkamp at kdab.com | Software Engineer
KDAB (Deutschland) GmbH, a KDAB Group company
Tel: +49-30-521325470
KDAB - The Qt, C++ and OpenGL Experts
More information about the Gammaray-interest
mailing list