Feature request: toggle lock/unlock layers functionality

Please use this forum to post feedback and suggestions related to QCAD.

Moderator: andrew

Post Reply
newyd_cnc
Junior Member
Posts: 22
Joined: Thu Feb 02, 2023 6:06 pm

Feature request: toggle lock/unlock layers functionality

Post by newyd_cnc » Thu Nov 30, 2023 1:34 pm

Hello all, I have a feature request to bring forward.

In my use of the software I think a "toggle lock" function could be useful when working with layers.

Once you have a relatively complex drawing with several layers and you want to work with/select entities in one layer only, one is normally brought to locking everything and then unlocking just the layer one wants to work with. In doing so causes any user defined layers' lock definition is lost.

The toggle lock could work in this way:
- Several layers in the drawing, some are locked some aren't
- right click on a layer to "toggle on lock": all other layers will be locked temporaily (their original status is kept in memory) except for the one that receives the toggle command
- when you right clock again to "toggle off" all layers are set back to their original lock state

Optional extended behavior:
- if you "toggle lock" another layer (say layer "B") once one is already toggled (call it layer "A"), the toggle lock behavior switches to layer "B", however the original lock states of all layers are kept over from when layer "A" was toggled
- when layer "B" is untoggled all goes back to the original configuration

A shortcut button "toggle lock off" could be next to the general layer control buttons for ease of access.

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: Feature request: toggle lock/unlock layers functionality

Post by CVH » Thu Nov 30, 2023 1:44 pm

The intended solution to this are Layer States.
Record actual Layer States (YM) ... Call it 'temp' or something appropriate.
Lock all layers (YK)
Unlock the required Layer and proceed with your actions.

Almost anything goes, unlocking another, hiding, adding, ...
All existent layers their attributes were recorded.
Renaming a layer would ensure it doesn't revert back to a former state.
Re-arranging sub layers is similar as renaming.
New layers have no recorded state.

Revert back to the stored Layer State 'temp' by activating it.
For a second usage you could update the existent Layer State 'temp' before locking all.
Layer States can be removed in a similar fashion.

Regards,
CVH
Last edited by CVH on Fri Dec 01, 2023 1:45 pm, edited 2 times in total.

newyd_cnc
Junior Member
Posts: 22
Joined: Thu Feb 02, 2023 6:06 pm

Re: Feature request: toggle lock/unlock layers functionality

Post by newyd_cnc » Fri Dec 01, 2023 10:18 am

Thank you for explaining, I'll try that!!
Lorenzo

Post Reply

Return to “QCAD Suggestions and Feedback”