Mattias Gaertner wrote:
> Al Boldi <[EMAIL PROTECTED]> wrote:
> > Mattias Gaertner wrote:
> > > Al Boldi <[EMAIL PROTECTED]> wrote:
> > > > Mattias Gaertner wrote:
> > > > > Al Boldi <[EMAIL PROTECTED]> wrote:
> > > > > > I was more looking for something that would seamlessly work
> > > > > > with the CodeExplorer. So you could right click on a type
> > > > > > def and see its tree, either ascending or descending. I
> > > > > > think this wouldn't be too difficult to implement, as the
> > > > > > SourceEditor already supports this textually with ctrl+click.
> > > > >
> > > > > Maybe you can start a proposal, what functions you need to start
> > > > > this.
> > > >
> > > > Thanks for asking!
> > > >
> > > > Maybe something like this for descending:
> > > >
> > > > ParentClass(ChildClass):TObject
> > > >
> > > > and for ascending (that's the big one):
> > > >
> > > > ChildClasses(ParentClass):TList of TObject
> > >
> > > Can you be more specific? What is ChildClass?
> > > I would expect a function to scan the classes of the project or a
> > > package. For example:
> > > function ScanProjectClasses(AProject: TLazProject):
> > > TSomeTreeStructure; function ScanPackageClasses(const
> > > APackageFilename: string): TSomeTreeStructure;
> >
> > Wow! That's even better.
> >
> > Maybe even add: function ScanSourceEditorClasses: TSomeTreeStructure;
> >
> > which would scan all open source editor tabs down to TObject.
>
> What do yo mean with 'scan' down?
i.e: TComponent -> TPersistent -> TObject
> What information do you need? For example?
For now, only the Class name. Later we may extend this.
> > > > The result could then easily be put into a treeview, for display
> > > > and further functionality.
>
> How should this treeview work?
Maybe use TTreeView and assign the scanned classes to TTreeView.Items.
Do you have different idea?
Thanks!
--
Al
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives