<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 13/05/2011 13:31, Mattias Gaertner wrote:
<blockquote
cite="mid:1945938867.201501.1305289864854.JavaMail.open-xchange@cc-app2"
type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
<p style="margin: 0px;"><span>Â </span></p>
<p style="margin: 0px;">Â </p>
<div style="margin: 5px 0px;"> Michael Van Canneyt
<a class="moz-txt-link-rfc2396E" href="mailto:michael@freepascal.org"><michael@freepascal.org></a> hat am 13. Mai 2011 um 12:55
geschrieben:<br>
<br>
><br>
><br>
> On Fri, 13 May 2011, Martin wrote:<br>
><br>
> > On 13/05/2011 10:03, Mattias Gaertner wrote:<br>
> >Â Â Â Â Graeme Geldenhuys
<a class="moz-txt-link-rfc2396E" href="mailto:graemeg.lists@gmail.com"><graemeg.lists@gmail.com></a> hat am 13. Mai 2011 um 09:48
geschrieben:<br>
> ><br>
> >Â Â Â Â >Â Â
<a class="moz-txt-link-freetext" href="http://bugs.freepascal.org/view.php?id=13994">http://bugs.freepascal.org/view.php?id=13994</a><br>
> >Â Â Â Â ><br>
> >Â Â Â Â > No solution has been implemented in Lazarus
yet. As a work-around, is<br>
> >Â Â Â Â > there any way to tell Code Completion
(Ctrl+Shift+C) for event handlers,<br>
> >Â Â Â Â > to only generate the code in the interface
of the unit, and not the<br>
> >Â Â Â Â > implementation section?<br>
> ><br>
> > Â <br>
> ><br>
> > Not yet.<br>
> ><br>
> > I will add the checkbox for the implementation to my
todo list.<br>
> ><br>
> ><br>
> > That reminds me of an idea, a feature I would like.
And that would solve this too.<br>
> ><br>
> > It would be cool if one could with a single copy (or
cut; as in copy/paste) copy a method (or procedure/function)
declaration, including the<br>
> > implementation.<br>
> > Or even several methods, if one selects several lines
in the interface.<br>
> ><br>
> > This would/should allow to:<br>
> > - copy/cut paste a method from one place in a class to
another place in the same class (adjusting order of
implementation too)<br>
> > - copy/cut paste a method from one class to any other
class (adjusting the classname in the "procedure FOOCLASS.metho"
line)<br>
> > Â This one would hugely add to the ability of
refactoring, moving things up/down in the class hierachy, or
even to rlated classes<br>
> > - copy/cut paste a plain procedure into a class,
making it a method<br>
> > - copy/cut paste a method to become a plain procedure.
So this one still requires some clean up, for any reference to
self<br>
><br>
> I'm all for this one. A 'Remove method/procedure' and
'Insert method/procedure'. </div>
<p style="margin: 0px;">Â </p>
<p style="margin: 0px;">Good idea.</p>
<p style="margin: 0px;">Â </p>
<div style="margin: 5px 0px;"> <br>
> As long as it doesn't interfere with regular
copy&paste. </div>
<br>
I agree, it should not use the Cut/Copy shortcuts. <br>
But I see no problem with Paste. Do you see one?<br>
</blockquote>
<br>
Not at all.<br>
IMHO it should copy (or cut) to clipboard => but as indicated via
different shortcut/command.<br>
<br>
It does therefore need a different clipboard format (a mixed one
plain text / codetool-format). The plain text would allow to paste
into other apps<br>
(SynEdit does the same for copy with fold info / or copy column-mode
selection)<br>
<br>
If required, synEdit could get a callbackon paste => so codetool
can check for the special format, and intercept it.<br>
At some future point, I can provide insight, how this could even
include foldstate info.<br>
<br>
</body>
</html>