Read-only view of the firmware source generated for a preset. More...
| Header: | #include <CodeInspectorActivity> |
| Inherits: | octomy::activity::PageActivity |
The hub registers CodeInspectorActivity with its activity loader and loads it lazily. FirmwareEditorActivity pushes it with the generated source as the first push argument. The activity shows that source in a read-only code editor with C++ syntax highlighting.
Two buttons act on the source: one copies it to the clipboard, and one saves it to a timestamped .cpp file in an octomy-firmware-code folder on the desktop, then copies the file path to the clipboard.
See also FirmwareEditorActivity and FirmwareEditorScreen.