Prévia do scratchblocks antes de exportar, copiar para o fórum e colar

- "Exportar scratchblocks" abre uma prévia do texto (rolável) com Copiar
  (já com [scratchblocks]...[/scratchblocks]), Salvar... e Fechar.
- "Colar scratchblocks": um script copiado do fórum vira uma aba nova.
- graphics: área de transferência no contrato (tb_graphics_set_clipboard /
  tb_graphics_get_clipboard); o SDL2 usa a do sistema e o backend nulo,
  uma memória interna (testável no harness).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mguinhosandClaude Opus 5.5 committed 2026-10-22 18:06:46 -03:00
1 parent d842890b0b
commit d9449a568e
6 files changed
+251 -11

No files matched your search

@@ -593,7 +593,7 @@ typedef struct { FlyKind kind; int cat; int bi; float y, h; } FlyItem;
typedef enum { ES_IDLE, ES_PRESS, ES_DRAG, ES_PAN } EdSt;
typedef enum { SN_NONE, SN_NEXT, SN_SUB, SN_ABOVE, SN_ARG } SnapKind;
enum { CM_DUPLICATE, CM_DELETE, CM_EDIT_DEF, CM_CLEANUP, CM_NEW_COMPOSITE,
CM_EXP_JSON, CM_EXP_XML, CM_EXP_CSV, CM_EXP_SB };
CM_EXP_JSON, CM_EXP_XML, CM_EXP_CSV, CM_EXP_SB, CM_PASTE_SB };
/* Modos da barra de caminho do menu (path_input) */
enum { PM_NONE, PM_LIB, PM_LOAD, PM_SAVE, PM_EXP_JSON, PM_EXP_XML, PM_EXP_CSV,
@@ -887,6 +887,11 @@ typedef struct Ed {
bool tab_drag; /* passou do limiar: esta sendo arrastada */
float tab_press_x, tab_press_y, tab_grab_dx;
/* Previa da exportacao scratchblocks (copiar para o forum / salvar) */
bool sbp_open;
char* sbp_text;
int sbp_scroll;
/* Abas destacadas */
TabWin twin[TABWIN_MAX];
int tabctx; /* janela de aba ativa (-1 = principal) */