Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Board editor: Support locking placement of items #1144

Merged
merged 6 commits into from
Apr 8, 2023

Conversation

ubruhin
Copy link
Member

@ubruhin ubruhin commented Apr 6, 2023

Summary

Support locking the placement of the following board items:

  • Devices
  • Polygons
  • Planes
  • Stroke texts
  • Holes

The property can be modified through the context menu, the property dialogs, and shortcuts (CTRL+L to lock, CTRL+U to unlock):

image

Locked items can't be dragged, i.e. their placement is fixed. This is useful e.g. for the board outline or mechanical holes to avoid modifying their placement by accident. However, for convenience there's a shortcut CTRL+SHIFT+L to ignore all locks, to (temporarily) allow moving them without needing to unlock & re-lock them.

File format

Adds the node (lock true|false) to the items mentioned above.

Related issues

Closes #577

@ubruhin ubruhin added enhancement UI / UX User Interface/Experience file format Issues affecting the file format tool-board-editor labels Apr 6, 2023
@ubruhin ubruhin added this to the 1.0.0 milestone Apr 6, 2023
@ubruhin ubruhin self-assigned this Apr 6, 2023
@ubruhin ubruhin changed the title Board editor: Support locking/unlocking items Board editor: Support locking placement of items Apr 6, 2023
@ubruhin ubruhin merged commit daafca9 into master Apr 8, 2023
@ubruhin ubruhin deleted the 577-lock-board-items branch April 8, 2023 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement file format Issues affecting the file format tool-board-editor UI / UX User Interface/Experience
Development

Successfully merging this pull request may close these issues.

Board editor: Allow locking item positions
1 participant