-
Notifications
You must be signed in to change notification settings - Fork 11
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
UI Improvements and More Sheet Options #19
base: master
Are you sure you want to change the base?
Conversation
Improvements include: - adjusting column spacing - adding padding to buttons with text - enabling horizontal mouse scrolling with shift + scroll in certain panels - vertical mouse scrolling in the settings tab - zoom scroll rate controlled by variable in Constants file - clearer extrema/height/width display in DrawingContextBoundSoomPreview - enabling column sorting in NestMonitor - "add sheet" button moved and split into two types (for use later) - adjustments to some of the displayed text
Added ability to import sheets of arbitrary shapes, view them in the DrawingContextBoundZoomPreview element, use decimal values for rectangle sheet width/height, and export original un-offset sheets.
These mostly include changes prompted by various style rules to help make ownership and type more obvious for someone unfamiliar with the codebase (like me), but omitting them shouldn't affect the actual execution.
Hi @Lukrative525 Don't let my slow reply put you off; but do try see why you weren't picking up the editorconfig correctly. FWIW when I build in VS all I get is I trust in the meantime you've been building locally to benefit from the fixes you're proposing in the PR? I'll get through all you've offered up in due course. |
@9swampy I'm glad you were able to browse some of the changes in my PR message. As a noob "developer" (if an un-trained mechanical engineer qualifies), I appreciate and welcome your feedback!
Let me know what you'd like to change, and we can work on it. Alternatively, I think I set up my fork to give you write access, so if you wanted to change it yourself, feel free (or if you want to change anything else you mentioned).
Honestly, not that big. Most of the machinery was already there, just had to hook up a few new wires, so to speak.
I just read that it wasn't being maintained, and since it was easy-peasy to switch, figured why not?
I'll do my best in the future to conform to the pre-established coding style. As I have gotten deeper into the code, I think I've started to get a better feeling for what you expect. I'm almost a blank slate in that regard, and I value learning some of these things from someone more experienced than me. When making those changes, I was working on the assumption that the suggested edits came from the editorconfig settings from the repo. Obviously not. I'll for sure look into that, and any hints as to where to find that setting in VS would be appreciated. I installed VS Community 2022 in order to work on this project, version 17.10.3. Moving forward, should I just let you undo those changes? Should I revert that entire commit? Also, once I figure out the editorconfig settings, I'll probably need to go through all the other added code and change it to match.
Gotcha, that must be why I didn't notice it until making a release build to stick on my desktop.
Ah, yes. So from what I can tell, in DrawingContextBoundZoomPreview.xaml, the Canvas is being automatically scaled to fit within the Grid nested under the ScrollViewer. So as long as you know the dimensions (in pixels) of the Grid, you can change the scroll value to fit the Grid inside the ScrollViewer (rather than the Canvas), and you don't even have to worry about the Canvas dimensions. This was also the key to fixing the drag/drop for editing part placement. Those changes are in my "development" branch. I haven't merged with my fork's master yet because those commits would show up under this PR if I did (I think). So I figured I would hold off, since this PR is pretty long already.
Great heuristics, I'll be sure to keep them in mind.
I hadn't thought to use the ellipses to help distinguish module-level variables from local ones. Nice. A lot of work to do still, but we'll get there. |
@9swampy I reorganized my previous changes into more sensible commits, so they should hopefully be easier to sift through. So far, the only testing I've done has been with me clicking around and trying everything out manually.
Here's the rundown of what changed:
UI Improvements
Adjusting Column Spacing
Other columns besides these were adjusted, but these are a pretty good representation.
Before:
After:
Button Padding & Spacing
Other buttons were padded, but these are a pretty good representation.
Before:
After:
Horizontal Mouse Scrolling
In every PropertyGrid panel where I could remember ever seeing a horizontal scroll bar, I added the capability to scroll horizontally with Shift + MouseWheel.
Vertical Scrolling in Settings Tab
In the settings tab, vertical scrolling with the mouse wheel can now be accomplished whenever the mouse hovers over the PropertyGrid.
Polygon Extrema/Height/Width
Before:
After:
Sheet Handling
Users can now add either rectangular sheets, or arbitrarily-shaped sheets from a file. Width and Height fields accept decimals. Exported nests also include a correctly-sized outline of the sheet.