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: Add device context menu item "Snap to grid" #525

Merged
merged 1 commit into from Oct 1, 2019

Conversation

@ubruhin
Copy link
Member

ubruhin commented Sep 28, 2019

This menu item is only shown on devices which are located outside the current grid interval. When clicking on it, the device is moved to the nearest multiple of the grid interval.

grafik

Of course that's not the solution for our "grid issue" (see discussions here and here), but at least these few lines of code provide the ability to easily fix off-the-grid positions ;)

@ubruhin ubruhin added this to the 0.1.3 milestone Sep 28, 2019
@ubruhin ubruhin self-assigned this Sep 28, 2019
@ubruhin ubruhin force-pushed the device-snap-to-grid-menuitem branch 2 times, most recently from 538efe9 to 35219c7 Sep 28, 2019
This menu item is only shown on devices which are located outside the
current grid interval. When clicking on it, the device is moved to the
nearest multiple of the grid interval, i.e. it "fixes" off-the-grid
positions.
@ubruhin ubruhin force-pushed the device-snap-to-grid-menuitem branch from 35219c7 to 961ea43 Oct 1, 2019
@ubruhin ubruhin merged commit c0945ca into master Oct 1, 2019
11 checks passed
11 checks passed
LibrePCB Build #20191001.3 succeeded
Details
LibrePCB (Doxygen) Doxygen succeeded
Details
LibrePCB (Linux Ubuntu_1404_GCC) Linux Ubuntu_1404_GCC succeeded
Details
LibrePCB (Linux Ubuntu_1604_GCC) Linux Ubuntu_1604_GCC succeeded
Details
LibrePCB (Linux Ubuntu_1604_Qt_5_12_3_GCC) Linux Ubuntu_1604_Qt_5_12_3_GCC succeeded
Details
LibrePCB (Linux Ubuntu_1804_Clang) Linux Ubuntu_1804_Clang succeeded
Details
LibrePCB (Linux Ubuntu_1904_GCC9) Linux Ubuntu_1904_GCC9 succeeded
Details
LibrePCB (Stylecheck) Stylecheck succeeded
Details
LibrePCB (macOS) macOS succeeded
Details
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
@ubruhin ubruhin deleted the device-snap-to-grid-menuitem branch Oct 1, 2019
ubruhin added a commit that referenced this pull request Nov 17, 2019
Board editor: Add device context menu item "Snap to grid"
(cherry picked from commit c0945ca)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.