-
-
Notifications
You must be signed in to change notification settings - Fork 757
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
Loading preprocessors #1461
Loading preprocessors #1461
Conversation
…e action for applying preprocessors so it's applied to the currently loaded file.
Codecov Report
@@ Coverage Diff @@
## master #1461 +/- ##
============================================
- Coverage 37.11% 36.84% -0.27%
- Complexity 1200 1218 +18
============================================
Files 160 164 +4
Lines 9097 9273 +176
Branches 890 900 +10
============================================
+ Hits 3376 3417 +41
- Misses 5406 5535 +129
- Partials 315 321 +6
Continue to review full report at Codecov.
|
Wow, this is really cool. I'll need to schedule time time to properly review it. I definitely agree that it's a bit awkward to rewrite the file each time and the UX is not great. The one nice thing about it is that it allows the user to see exactly what the processor is doing. For example run-from has some special code to rewrite the state init section. Does the export button still export the preprocessed code? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, and this wasn't the most thorough review. I do think there might be times when it's useful to see the processed code, mainly during development/debugging of "invasive" processors. But this is nice progress!
…Sender into feature/processor # Conflicts: # ugs-core/src/com/willwinder/universalgcodesender/gcode/GcodeParser.java # ugs-core/src/com/willwinder/universalgcodesender/visualizer/GcodeViewParse.java
…d new icons to all actions.
@winder you often mention the preprocessor as a solution to many problems and I now see why. It can be really powerful way to manipulate the gcode.
The "Run from"-feature is great, but I feel that it is a bit limited as it creates a new program and loads it. If the user changes her mind the original program needs to be reloaded. So I have a suggestion that we enable some of these preprocessors through services that alters the preprocessors states (row number to start from). I have also made an attempt to create a rotation feature as shown in the video below.
I'm not sure if this is the best approach, when you get the time I would appreciate if you browsed through my changes.