Re: [JPP-Devel] About turning non-visible layer into non-editable

2016-10-19 Thread edgar . soldin
good point. so mainly we are talking prohibiting CursorTools to edit invisible layers. maybe we should think smaller and just change the way CursorTools determine the layer to edit. ..ede On 19.10.2016 11:20, Rahkonen Jukka (MML) wrote: > Hi, > > Trying to think how we actually edit layers: >

Re: [JPP-Devel] About turning non-visible layer into non-editable

2016-10-19 Thread Rahkonen Jukka (MML)
Hi, Trying to think how we actually edit layers: - from the map - from attribute window - with tools which edit attributes and geometries in place Isn't it only when doing edits from the map when the layer really must be visible? -Jukka- edgar.soldin wrote: > Mike, > had a quick look. simpl

Re: [JPP-Devel] About turning non-visible layer into non-editable

2016-10-19 Thread edgar . soldin
Mike, had a quick look. simplest approach might be just editing AbstractLayerable.isEditable() to always return boolean sum of editable && visible, no? all layerables i know are based on AbstractLayerable. plugins probably all use TreeLayerNamePanel.chooseEditableLayer() *but* do not have to.

Re: [JPP-Devel] About turning non-visible layer into non-editable

2016-10-18 Thread Michaël Michaud
Hi all, Thank you for your feedback, I made a second attempt to solve the problem in a more conservative way (r5083+). Instead of making invisible layers uneditable, I changed the method chooseEditableLayer used by most editing tools so that it does not choose invisible layers any more. Now

Re: [JPP-Devel] About turning non-visible layer into non-editable

2016-10-18 Thread Stefan Steiniger
I think I somewhat agree with Jukka. I also look once in while what is underneath by shortly making it invisible... stefan On 10/18/16 09:56, Rahkonen Jukka (MML) wrote: Hi, I agree that it is logically good that non-visible layer is not editable because I can’t imagine a real world use ca

Re: [JPP-Devel] About turning non-visible layer into non-editable

2016-10-18 Thread edgar . soldin
On 18.10.2016 14:56, Rahkonen Jukka (MML) wrote: > Hi, > > > > I agree that it is logically good that non-visible layer is not editable > because I can’t imagine a real world use case where it would be better to > create features without seeing the other features of the layer. However, > som

[JPP-Devel] About turning non-visible layer into non-editable

2016-10-18 Thread Rahkonen Jukka (MML)
Hi, I agree that it is logically good that non-visible layer is not editable because I can't imagine a real world use case where it would be better to create features without seeing the other features of the layer. However, sometimes it is useful to switch the layer off and have a look under th