PeterPanettone 157 Posted August 7, 2019 (edited) I have filed this new feature Request: The Procedure List should have a Flow Diagram option. What does this mean? Let's assume a unit has this source code: Then the Flow Diagram option would show the following diagram in the Procedure List window (instead of the list of procedures): Left-clicking on a diagram item would show the clicked procedure source code in the source pane. Double-clicking on a diagram item would show the clicked procedure source code in the source code editor. This would be a VERY USEFUL Procedure List view mode! Here is the URL of the Feature Request: https://sourceforge.net/p/gexperts/feature-requests/74/ Edited August 7, 2019 by PeterPanettone Share this post Link to post
Der schöne Günther 316 Posted August 7, 2019 Wasn't ModelMakerTools for Delphi able to do that? Share this post Link to post
PeterPanettone 157 Posted August 7, 2019 55 minutes ago, Der schöne Günther said: Wasn't ModelMakerTools for Delphi able to do that? AFAIR, ModelMakerTools had a lot of complicated abstractions. But what I need is only a very simple flow diagram as shown above. Share this post Link to post
Uwe Raabe 2057 Posted August 7, 2019 I now that MM can create a Sequence Diagram from the call stack. I am unsure about this static analysis mentioned above. Share this post Link to post
PeterPanettone 157 Posted August 7, 2019 1 hour ago, Uwe Raabe said: I now that MM can create a Sequence Diagram from the call stack. You mean when debugging? No, no, just a representation of the source code in the source code editor. With "MM" you mean ModelMakerTools or MMX? Share this post Link to post
Uwe Raabe 2057 Posted August 7, 2019 5 minutes ago, PeterPanettone said: With "MM" you mean ModelMakerTools or MMX? MM = ModelMaker, the other - now discontinued - tool from ModelMaker Tools Share this post Link to post
PeterPanettone 157 Posted August 7, 2019 (edited) I could also imagine the Flow Diagram View as an additional IDE main view tab after Code, Form Designer and History: Edited August 7, 2019 by PeterPanettone 1 Share this post Link to post
PeterPanettone 157 Posted August 7, 2019 Colors in the Flow Diagram (this is a personal suggestion which could be customized): • FormEventHandler procedures: Fuchsia • ClickHandler procedures: Green • General ClassMethod procedures: ... • Functions: ... • Etc. etc. Share this post Link to post
dummzeuch 1505 Posted August 8, 2019 So, when can I expect a patch, that implements this functionality? Share this post Link to post
PeterPanettone 157 Posted August 8, 2019 (edited) 7 minutes ago, dummzeuch said: So, when can I expect a patch, that implements this functionality? That partly depends on my body's ability to metabolize large quantities of coffee. No, but seriously: Is it allowed to use a closed source DLL dependence? Or do you know a good open-source diagram component? Edited August 8, 2019 by PeterPanettone Share this post Link to post
dummzeuch 1505 Posted August 8, 2019 26 minutes ago, PeterPanettone said: No, but seriously: Is it allowed to use a closed source DLL dependence? Or do you know a good open-source diagram component? That depends on the license of that DLL, I guess. This sounds as if you have got a particular DLL in mind. Which one? Share this post Link to post
PeterPanettone 157 Posted August 8, 2019 (edited) 23 minutes ago, dummzeuch said: Which one? I would create my own from the TMS Diagram component. Edited August 8, 2019 by PeterPanettone Share this post Link to post
PeterPanettone 157 Posted August 8, 2019 (edited) 14 hours ago, Uwe Raabe said: call stack "call stack" is a term from the IDE's debugging functionality and refers to the "visited" source code lines, I believe. The concept I have called "Flow Diagram" is in practice a sum of all possible call stacks, a diagram showing the complete call tree. Is this definition appropriate? Or how would you name/define the concept? Edited August 8, 2019 by PeterPanettone Share this post Link to post
Sherlock 663 Posted August 8, 2019 Call tree sounds about right. But keep recursiveness in mind. 1 Share this post Link to post
PeterPanettone 157 Posted August 8, 2019 (edited) The methodology I have in mind is to take the list of procedures generated by the GExperts Procedure List and convert it into a graphical Call Tree diagram by using the rules of logic. Would you agree with that approach? Edited August 8, 2019 by PeterPanettone Share this post Link to post
Uwe Raabe 2057 Posted August 8, 2019 Peganza Pascal Analyzer creates a Call Tree Report. That looks like a perfect input for such a diagram. 1 Share this post Link to post
PeterPanettone 157 Posted August 8, 2019 7 minutes ago, Uwe Raabe said: Peganza Pascal Analyzer creates a Call Tree Report. That looks like a perfect input for such a diagram. Good idea. Thank you! Share this post Link to post
PeterPanettone 157 Posted August 8, 2019 In the Call Tree Diagram, when the mouse pointer hovers over a diagram item, then the source code documentation of this procedure is shown in a formatted hint: 1 Share this post Link to post
PeterPanettone 157 Posted August 8, 2019 5 hours ago, Uwe Raabe said: Peganza Pascal Analyzer creates a Call Tree Report. This is the Pascal Analyzer 8.1.0.0 Call Tree report for the above example source code: However, when using this report, the user would have to buy Pascal Analyzer. So I probably will use the procedure list created by the GExperts procedure list. (Or the one used by the CnWizards procedure list). Share this post Link to post