[Lazarus] copy declaration, with implementation [Re: Tweaking 'code completion' for event handlers]
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri May 13 15:55:26 CEST 2011
Martin <lazarus at mfriebe.de> hat am 13. Mai 2011 um 15:36 geschrieben:
> [...]
> Maybe even synedit could be told to create this format => it has already some
> nice code to create clipboard stuff.
Can you explain this?
>
> Or it can be extended in SynSourceEditor
>
>
> >
> > The format must contain
> > - the source of the headers, because they might contain comments and ifdefs
> > - the implementations
> > - the source position. This is needed to resolve the identifiers, which
> > could be used in a later extension to automatically extend the uses section
> > of the target unit.
> >
> >
> Actually, there should be (at least) 2 paste methods. (But for starters one
> would do)
>
> 1) Paste, without any question.
> Necessary/Optional actions such as units-dependencies, or replacing
> identifiers, can be globally configured
> IMHO kept to a minimum by default (insert units into uses, but do not update
> identifiers
This could happen on normal Paste.
>
> 2) Paste via feedback dialog (like "extract procedure " already has.
> Could offer a growing amount of options. Such as an identifier, to use as
> prefix for calls to the originating-class. Or creation of missing fields....
This can be a menu item under Refactor.
Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110513/926181f6/attachment-0003.html>
More information about the Lazarus
mailing list