<!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 10:03, Mattias Gaertner wrote:
<blockquote
cite="mid:998392153.198321.1305277405986.JavaMail.open-xchange@cc-app2"
type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
<div style="margin: 5px 0px;"> 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? </div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Not yet.</p>
I will add the checkbox for the implementation to my todo list.<br>
<br>
</blockquote>
<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 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>
<br>
<br>
</body>
</html>