This is a port of the EditGCodeDialog from PrusaSlicer 2.7.x. There were
a few changes made to make it a bit more functional. Also, it isn't
quite fully complete, but it should be in a very usable state.
General Changes:
- Implement UndoValueUIManager and EditValueUI in Field
- Implement EditGCodeDialog and add buttons to the tabs
- Other minor changes to accommodate the new classes
Differences from PrusaSlicer's Implementation:
- backported to wxWidgets 3.1.5 (reverse commit 8770c4b7 after updating
to 3.2.x)
- icons have been updated to use Orca colors
- improve the report that tells you if certain placeholders have not
been defined properly for the dialog. It now shows all issues at once
rather than having to fix then recompile to see the next issue.
- allow the use of the cmake option `ORCA_CHECK_GCODE_PLACEHOLDERS` to
toggle the above report since our workflow rarely uses debug mode.
- if a custom gcode value is not set when checking gcode placeholders, a
testing value is set. Custom gcode is not parsed if it is empty, and the
only way to check if the placeholders are all defined is by running the
placeholder operation on the custom gcode.
- some calls to `print.config()` in Gcode.cpp were changed to `m_config`
to support the above testing values feature (only m_config is modified
with the placeholders and `print.config()` would return an empty string)
- a macro has been added to quickly add a definition to
SlicingStatesConfigDefs with less boiler plate (it could technically be
used for any ConfigOptionDef, but that would hurt interoperability with
PS. I tried to not use the macro for too many PS defined definitions.)
- the presets are now also categorized by the page they are on in their
tab
<table>
<tr>
<td>Prusa
<td>Orca
<tr>
<td>
<img
src="https://github.com/SoftFever/OrcaSlicer/assets/24759591/27cb4f48-d225-4563-9aeb-b2b461f8bff5"
/>
<td>
<img
src="https://github.com/SoftFever/OrcaSlicer/assets/24759591/4fcd8cde-2427-4d1a-a0ed-1738b570b919"
/>
</table>
TODO:
- [x] Make sure all linux fixes have been applied
- [x] Finish adding "universal" gcode options
- [x] add search function to dataview (maybe?)
- [x] determine if any options are being left out of the preset
categories by getting options from Tab rather than Presets. If so,
consider adding outside of the groupings
* Add button to add model info
* Initial impl of project info editor
* Add sidebar item to edit project info
* Add license selector
* Fix use of deprecated apis
* Fix license combox dark mode
* Add back button on project info editor screen
---------
Co-authored-by: SoftFever <softfeverever@gmail.com>
* Machine G-code Fix
* Merge branch 'SoftFever:main' into main
* 0109 Update end code and process
* 0109 new update
* 0109 Profile Update for end gcode
* Merge branch 'main' into main
* Support custom IP camera
Allow adding custom IP camera source while keeping possible
built-in bambulab camera also functional and add button to
switch between them.
This uses WebView widget to show the stream. Upon loading the
page, javascript is used to remove native controls and scroll-
bars for aesthetic reasons.
* Add partial support for PiP video
HTMLVideoElement supports picture-in-picture video
but the dedicated control is hidden in this implementation
to have more integrated look in OrcaSlicer. Add right-click
listener to the camera switch icon that opens the video element
in a PiP window.
Only works when the video is in <video> HTML element, so for
example MJPEG streams in <img> element won't work.
* 10-25
Add TPU-95A HF
* 1030
Adding Introduction of Chamber Temperature Control Macros(M191) to Notes
* 1102
Add ABS-GF10 profile,
Remove a extra "s" from the "0.36mm Standard @Qidi XPlus3 0.6 nozzle.json" file
* 1106
Add the PA value to some genetic filament profiles
* Add new filaments profiles
Add new filaments profiles
* 1
1
* Add two new filaments
Add two new filaments
* Optimized 0.2mm nozzle profiles
Optimized 0.2 mm nozzle QIDI Generic ABS/PETG/PLA profiles
* disable prime tower
disable prime tower and independent_support_layer_height,
Improve some part of the surface when supported
* Fix the name issue
Fix the name issue
Orca: Added option to use CMake config option ORCA_CHECK_GCODE_PLACEHOLDERS to check custom gcode placeholders rather than using debug
Original Commit: prusa3d/PrusaSlicer@b8bb7f2
Co-authored-by: YuSanka <yusanka@gmail.com>
Included pre-generated files specific to Orca rather than PS provided files
Original Commit: prusa3d/PrusaSlicer@55d5921
Co-authored-by: YuSanka <yusanka@gmail.com>
* Fixed retraction speed and added missing parameters.
* Fixes for manual filament change
* More tunings and fixes.
* Fixes and tunings
* Formatting
* Decrease z-hop for K1
* Updated thumbnails sizes to the same as Creality Print has.
* Updated French translations.
* Reword "strength"
* Updated translations
* Added missing translations.
* Fixed place on face translation
* Fixed strings.
* Updated locales
* Better translation for "Brim ears"
* Other round of fixes
* Added missing strings
* Renaming studio to Orca.
* Rewording "Arc fitting"
* Flush means purge and not "rinçage"
* 10-25
Add TPU-95A HF
* 1030
Adding Introduction of Chamber Temperature Control Macros(M191) to Notes
* 1102
Add ABS-GF10 profile,
Remove a extra "s" from the "0.36mm Standard @Qidi XPlus3 0.6 nozzle.json" file
* 1106
Add the PA value to some genetic filament profiles
* Add new filaments profiles
Add new filaments profiles
* 1
1
* Add two new filaments
Add two new filaments
* Added Creality Ender 3 V3 SE.
* Fixed fine profile.
* Optimized first layer speed (based on Creality Print)
* Brought back Ender-5 (2019)
* Setting Marlin 2 as gcode flavor
* Use inheritance for Ender-3 V3 filament profiles.
* Various improvements.
* Temperature optimisations (less power consumption)
* Fixed some log errors.
* Optimizations
* Reverted support_interface_top_layers
* Added correct jerk and acceleration settings.
* Added retraction speed.
* Re-added missing Ender-5 references in filaments.
* Reverted slow_down_layer_time, Creality print is too optimistic on this at least for Ender 3 V3 SE.
* Optimizations for supports (easier to remove)
---------
Co-authored-by: SoftFever <softfeverever@gmail.com>