orcaslicer/resources
SoftFever 5ff00fb48c
Port EditGCodeDialog from PrusaSlicer (#3417)
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
2024-01-24 19:56:18 +08:00
..
calib make folder name more consistent 2023-11-04 10:37:53 +08:00
cert ENH: revert remove unused cert 2023-07-07 17:25:51 +08:00
dailytip Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
data Fixed typo (#3331) 2023-12-29 00:02:45 +08:00
fonts Feature/bs1.8beta (#2844) 2023-12-01 10:42:45 +00:00
handy_models Rename bunny to Stanford Bunny 2023-12-20 19:57:30 +08:00
i18n ENH: add a text translation of a dailytip 2023-10-13 14:43:42 +08:00
images Merge branch 'main' into enh-port-edit-gcode-dlg 2024-01-14 03:54:27 -05:00
info ENH: use json to store filament & nozzle info 2023-10-13 14:43:42 +08:00
printers Feature/merge 1.8.2 (#3193) 2023-12-19 23:46:19 +08:00
profiles corrected printable_area (#3527) 2024-01-24 11:36:17 +00:00
profiles_template Feature/bs1.8beta (#2844) 2023-12-01 10:42:45 +00:00
shaders Revert "Add a simple subtle outline effect by drawing back faces using wireframe mode (#2934)" 2023-12-05 22:05:11 +08:00
tooltip post changes after merging BS1.7.4 2023-08-26 18:45:43 +08:00
web Add project info editor (#3754) 2024-01-21 22:13:37 +08:00
check_access_code.txt ENH:Update IP address input process 2023-02-01 16:24:44 +08:00
Icon.icns fix Mac icon 2023-09-08 00:41:23 +08:00