<!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 14:27, Mattias Gaertner wrote:
<blockquote
cite="mid:1657903076.202443.1305293246339.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;"> <br>
Martin <a class="moz-txt-link-rfc2396E" href="mailto:lazarus@mfriebe.de"><lazarus@mfriebe.de></a> hat am 13. Mai 2011 um 14:44
geschrieben:<br>
<br>
<blockquote style="margin-left: 0px; padding-left: 10px;
border-left: 1px solid blue;" type="cite"> [...]<br>
IMHO it should copy (or cut) to clipboard => but as
indicated via different shortcut/command. </blockquote>
</div>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Yes. Remove method/procedure. Or maybe
better two functions: Copy- and Cut method/procedure.</p>
<p style="margin: 0px;"> </p>
<div style="margin: 5px 0px;">
<blockquote style="margin-left: 0px; padding-left: 10px;
border-left: 1px solid blue;" type="cite"> <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>
</blockquote>
</div>
<p style="margin: 0px;">Yes, a special format would be useful.</p>
</blockquote>
<br>
Maybe even synedit could be told to create this format => it has
already some nice code to create clipboard stuff.<br>
<br>
Or it can be extended in SynSourceEditor<br>
<br>
<blockquote
cite="mid:1657903076.202443.1305293246339.JavaMail.open-xchange@cc-app2"
type="cite">
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">The format must contain </p>
<p style="margin: 0px;">- the source of the headers, because they
might contain comments and ifdefs</p>
<p style="margin: 0px;">- the implementations</p>
<p style="margin: 0px;">- 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.</p>
<br>
</blockquote>
<br>
Actually, there should be (at least) 2 paste methods. (But for
starters one would do)<br>
<br>
1) Paste, without any question.<br>
Necessary/Optional actions such as units-dependencies, or replacing
identifiers, can be globally configured <br>
IMHO kept to a minimum by default (insert units into uses, but do
not update identifiers<br>
<br>
2) Paste via feedback dialog (like "extract procedure " already has.<br>
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....<br>
<br>
<br>
<br>
<br>
</body>
</html>