What do you mean "it wouldn't"?It wouldn't take into account that signals and slots actually are connected between class instances and not classes.
Signals and slot ARE only between instances, not between classes.
What do you mean "it wouldn't"?It wouldn't take into account that signals and slots actually are connected between class instances and not classes.
Signals and slot ARE only between instances, not between classes.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Exactly. Signals and slots are between instances. And I would like to autogenerate a "class diagram" displaying connections between signals and slots, _ignoring_ that very fact. If there is ever a connection made between an object of ClassA and an object of ClassB, then I want to show this connection in the diagram. Maybe to most, this doesn't seem like a very helpful feature, but to me it does. It would help me to get a _sketchy_ overview of the app, and I put ephasis on sketchy. Some apps are driven by signals triggering the execution of slots more than others, and sometimes it can be difficult to get a quick overview. But I take it from your answer that there isn't any such utility around, as such a diagram wouldn't be an entirely correct representation, so I won't keep looking.
Well, the fact I don't know any doesn't mean there are none.But I take it from your answer that there isn't any such utility around, as such a diagram wouldn't be an entirely correct representation, so I won't keep looking.
I would be surprised if you would find such an application through, since it make no sense to have this feature - except in in your view of your case.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
It's possible to do such a graph using grep, sed or awk (or both) and graphviz. First grep your sources for connect statements and extract the data from them (sender, signal, receiver, slot), then grep sources again to find classes for each of the sender and receiver objects and then use graphviz to create a graph.
Bookmarks