Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-09

New methods code creation

19 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Aradeonas

Hi,

In Lazarus 1.6 when I used code creation for procedures and events they will be made in private part of class and I had an option in Codetool named "Insert new event methods to section" but now in Lazarus trunk I cant find that and methods will made in public part.

What is wrong?

Regards,
Ara

http://www.fastmail.com - Send your email first class -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160926/98909e1f/attachment.html>

Reply by email

Aradeonas
to Ondrej Pokorny

Thanks Ondrej but Ctrl+Shift+X will show the message and I set it on private but problem is how can I set Ctrl+Shift+c default? Also If I want to it adds method after class name not in private section, what should I do?

Regards,
Ara

http://www.fastmail.com - Access your email from home and the web -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160926/f822e685/attachment.html>

Reply by email

Ondrej Pokorny
to Aradeonas
Aradeonas wrote
Thanks Ondrej but Ctrl+Shift+X will show the message and I set it on private but problem is how can I set Ctrl+Shift+c default?

You cannot. +C is always without dialog (predefined hard-coded settings), whereas +X is always with dialog.

Also If I want to it adds method after class name not in private section, what should I do?

This section is "published".

Ondrej

Reply by email

Ondrej Pokorny
to Aradeonas
Aradeonas wrote
I want my old behavior back, its a pain to see a dialog every time.

Well not a pain for me. But you can raise a discussion about the default section for methods for +C. I always use +X for methods; the same if I want to declare an object variable. Maybe it can be changed to private.

it at least can use last chosen value with +X dialog.

This is a no-go for me.

Ondrej

Reply by email

Ondrej Pokorny
to Aradeonas
Aradeonas wrote
Cause we had an option before, can we have it back for Ctrl+C ? just like 1.6 and no hard coded option so anyone can choose what he like?

Well I don't know if we should make an option for every tiny feature that can be easily compensated with another existing feature. What is so painful on Ctrl+Shift+X and Enter? Do you create so many methods in one particular section?

Ondrej

Reply by email

Aradeonas
to Ondrej Pokorny

Yes, and it isnt tiny and also programmers like me are lazy and a click or a enter more very time is a pain.
I didnt want option for every detail just font like messages ;) Also we had it before :D

Regards,
Ara

http://www.fastmail.com - Faster than the air-speed velocity of an unladen european swallow -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160926/45022d9b/attachment-0001.html>

Reply by email

Mattias Gaertner
to Ondrej Pokorny: http://wiki.freepascal.org/index.php?title=Lazarus_1.8.0_release_notes Ondrej
Show quoted text 11 lines
On 26.09.2016 16:01, Aradeonas via Lazarus wrote: > Hi, > > In Lazarus 1.6 when I used code creation for procedures and events > they will be made in private part of class and I had an option in > Codetool named "Insert new event methods to section" but now in > Lazarus trunk I cant find that and methods will made in public part. > > What is wrong? http://wiki.freepascal.org/index.php?title=Lazarus_1.8.0_release_notes

Where does it mention the change from default section to public section?

Mattias

Reply by email

Ondrej Pokorny
to Mattias Gaertner
Mattias Gaertner wrote 14 lines
On Mon, 26 Sep 2016 16:26:06 +0200 Ondrej Pokorny via Lazarus wrote: > On 26.09.2016 16:01, Aradeonas via Lazarus wrote: >> Hi, >> >> In Lazarus 1.6 when I used code creation for procedures and events >> they will be made in private part of class and I had an option in >> Codetool named "Insert new event methods to section" but now in >> Lazarus trunk I cant find that and methods will made in public part. >> >> What is wrong? > http://wiki.freepascal.org/index.php?title=Lazarus_1.8.0_release_notes Where does it mention the change from default section to public section?

Obviously nowhere. At least I cannot find that information there.

Ondrej

Reply by email

Aradeonas
to Ondrej Pokorny

I dont know who changed it but here is a screen shot from 1.6

Regards,
Ara

http://www.fastmail.com - Does exactly what it says on the tin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160926/0e170392/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 43181 bytes Desc: not available URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160926/0e170392/attachment-0001.png>

Reply by email

Ondrej Pokorny
to Aradeonas
Aradeonas wrote
I dont know who changed it but here is a screen shot from 1.6

I implemented the option in 1.5 trunk and I extended it in 1.7. During this extension I decided to delete the option because now there are much more options and it doesn't make sense for me to have duplicate functionality (+C with IDE various IDE options and +X with dialog). I decided to keep it simple.

But if you get support from other devs and/or users, you can revert the option part of the 1.7 change and bring it back. In that case send a patch through mantis. But please first try to get the green light.

Ondrej

Reply by email

Aradeonas
to Ondrej Pokorny

Thanks Ondrej for your works.

You talk about various IDE options but as I searched I cant find any options to make this message off and also from my view it makes no sense forcing anybody to a shortcut do just one thing and make all the stuff in Public.
But as you are the maintainer and no one attracted in this topic for know, its your decision and yours is no so it is as is but Im grateful for your works as always.

Regards,
Ara

http://www.fastmail.com - Choose from over 50 domains or use your own -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160926/885bbaf2/attachment.html>

Reply by email

Mattias Gaertner
to Aradeonas
Show quoted text 9 lines
Thanks Ondrej for your works. You talk about various IDE options but as I searched I cant find any options to make this message off and also from my view it makes no sense forcing anybody to a shortcut do just one thing and make all the stuff in Public. But as you are the maintainer and no one attracted in this topic for know, its your decision and yours is no so it is as is but Im grateful for your works as always.

I personally prefer to use private as default.
I will add the option.

Mattias

Reply by email