<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 7, 2016 at 3:25 PM, Ondrej Pokorny <span dir="ltr"><<a href="mailto:lazarus@kluug.net" target="_blank">lazarus@kluug.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
I implemented "class code creation" in r51851. I was already tired
of creating/copying object variables by hand. The idea is the same
as with code creation (ctrl+shift+c), but the variable is created in
one of the class section:<br><tt><br>
</tt><tt>procedure TClass.Test(y: integer);</tt><tt><br>
</tt><tt>begin</tt><tt><br>
</tt><tt> x| := y;</tt><tt><br>
</tt><tt>end;</tt><tt><br>
</tt><tt><br></tt></div></blockquote><div>how about inline notation.</div><div><tt>procedure TClass.Test(y: integer);</tt><tt><br></tt><tt>begin</tt><tt><br></tt><tt> x pvt| := y;</tt><tt><br></tt><tt>end;</tt><br></div><div><tt><br></tt></div><div><tt>or </tt></div><div><tt><br></tt></div><div><tt><tt>procedure TClass.Test(y: integer);</tt><tt><br></tt><tt>begin</tt><tt><br></tt><tt> x private|:= y;</tt><tt><br></tt><tt>end;</tt><br></tt></div><div> </div><div>hit ctrl+shift+x </div><div><br></div><div><tt>type</tt><tt><br></tt><tt> TClass = class</tt><tt><br></tt><tt> private</tt><tt><br></tt><tt> x: Integer;</tt><tt><br></tt><tt> procedure Test(y: integer);</tt><tt><br></tt><tt> end;</tt><tt><br></tt><tt><br></tt><tt>implementation</tt><tt><br></tt><tt><br></tt><tt>{ TClass }</tt><tt><br></tt><tt><br></tt><tt>procedure TClass.Test(y: integer);</tt><tt><br></tt><tt>begin</tt><tt><br></tt><tt> x |:= y;</tt><tt><br></tt><tt>end;</tt><br></div><div><br></div><div>Eventually people will know the dialog well, so selecting the needed item in the dialog might be painful.</div><div>As well as adding more items to the dialog (by further IDE improvement) will frustrate users.</div><div><br></div><div>thanks,</div><div>Dmitry</div></div></div></div>