Page 1 of 1

[dream wish] tree-view for class-list

Posted: Sep 22nd, '17, 08:55
by MSandro
When a project grows large, to manage a large amount of classes it would be better to use a tree-structure instead of an normal list to manage the classes.

Re: [dream wish] tree-view for class-list

Posted: Sep 22nd, '17, 10:29
by SimpleSi
Not seeing how a tree structure applies to classes

Have you got a example project that would show the idea?

Re: [dream wish] tree-view for class-list

Posted: Sep 22nd, '17, 14:39
by MSandro
I mean something like this:
Tree-Structure-VisualStudion.PNG
Instead of:
list-classes.PNG
list-classes.PNG (11.22 KiB) Viewed 4841 times
To heave more control over your class structure in huge projects, also maybe it can display the scripts/methods in the class to directly jump to this script.

Re: [dream wish] tree-view for class-list

Posted: Sep 22nd, '17, 15:07
by SimpleSi
How would GP know which classes are to be children/parents of other classes?

How do you create/assign a class to be a child of another class?

Re: [dream wish] tree-view for class-list

Posted: Oct 31st, '17, 17:10
by JohnM
Unlike Free Pascal (the language used by the Lazarus library you mentioned), GP does not have subclasses, so GP classes don't form a natural tree structure.

However, you are right that GP needs a better way to organize classes for larger projects such as the one you are working on, perhaps using some sort of nested folders.

Thanks for sharing this dream/wish.