Comentários: separadores com no máximo "---"
Trechos com quatro ou mais hífens dentro de comentários viram "---" (strings não mudam). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
374b445a8f
commit
80bd330766
40 files changed
+137
-137
No files matched your search
@@ -19,7 +19,7 @@
|
||||
#include <tb_editor_internal.h>
|
||||
#include "tb_editor_files.h"
|
||||
|
||||
/* -- Geometria ------------------------------------------------------------ */
|
||||
/* -- Geometria --- */
|
||||
#define FD_HEAD_H 46
|
||||
#define FD_BAR_H 44
|
||||
#define FD_SIDE_W 196
|
||||
@@ -87,7 +87,7 @@ static void fd_layout(Ed* ed, FdL* L) {
|
||||
L->cancel_x = L->ok_x - 10.f - FD_BTN_W;
|
||||
}
|
||||
|
||||
/* -- Utilidades ----------------------------------------------------------- */
|
||||
/* -- Utilidades --- */
|
||||
|
||||
static unsigned fd_now_ms(void) {
|
||||
struct timespec ts;
|
||||
@@ -213,7 +213,7 @@ static void fd_time_str(char* out, size_t cap, long long t) {
|
||||
strftime(out, cap, "%d/%m/%Y %H:%M", &tmv);
|
||||
}
|
||||
|
||||
/* -- Listagem ------------------------------------------------------------- */
|
||||
/* -- Listagem --- */
|
||||
|
||||
static int fd_cmp(const void* a, const void* b) {
|
||||
const FileEnt* x = a;
|
||||
@@ -346,7 +346,7 @@ static void fd_places(Ed* ed) {
|
||||
fd_add_place(F, "Raiz do sistema", "/");
|
||||
}
|
||||
|
||||
/* -- Trilha da pasta atual (segmentos clicaveis) ------------------------- */
|
||||
/* -- Trilha da pasta atual (segmentos clicaveis) --- */
|
||||
#define FD_MAX_CRUMBS 48
|
||||
typedef struct {
|
||||
int n, first; /* segmentos; primeiro visivel */
|
||||
@@ -400,7 +400,7 @@ static void fd_crumbs(Ed* ed, const FdL* L, FdCrumbs* K) {
|
||||
}
|
||||
}
|
||||
|
||||
/* -- Acoes ---------------------------------------------------------------- */
|
||||
/* -- Acoes --- */
|
||||
|
||||
static void fd_ensure_visible(Ed* ed) {
|
||||
FileDlg* F = &ed->fdlg;
|
||||
@@ -549,7 +549,7 @@ void tb_editor_files_open(Ed* ed, int mode, const char* def) {
|
||||
fd_ensure_visible(ed);
|
||||
}
|
||||
|
||||
/* -- Desenho -------------------------------------------------------------- */
|
||||
/* -- Desenho --- */
|
||||
|
||||
static void fd_icon_folder(TinyBlocks_RenderableBlock* rb, float x, float y, bool dim) {
|
||||
Col c = COL_FD_FOLDER, d = COL_FD_FOLDER_DARK;
|
||||
@@ -797,7 +797,7 @@ void tb_editor_files_view(Ed* ed, TinyBlocks_RenderableBlock* rb) {
|
||||
}
|
||||
}
|
||||
|
||||
/* -- Entrada -------------------------------------------------------------- */
|
||||
/* -- Entrada --- */
|
||||
|
||||
static void fd_rescan_keep(Ed* ed) {
|
||||
FileDlg* F = &ed->fdlg;
|
||||
|
||||
+12
-12
@@ -53,7 +53,7 @@ static const Col IMG_PALETTE[12] = {
|
||||
{0.55f,0.38f,0.24f,1.f}, {0.60f,0.60f,0.60f,1.f}
|
||||
};
|
||||
|
||||
/* Cor: HSV (roda de matiz + quadrado saturacao/valor) ------------------- */
|
||||
/* Cor: HSV (roda de matiz + quadrado saturacao/valor) --- */
|
||||
static Col img_hsv_col(float h, float sat, float v) {
|
||||
float c = v * sat;
|
||||
float hp = h / 60.f;
|
||||
@@ -95,7 +95,7 @@ static void img_hsv_apply(Tab* T) {
|
||||
T->img_swatch = -1;
|
||||
}
|
||||
|
||||
/* Geometria -------------------------------------------------------------
|
||||
/* Geometria ---
|
||||
* Layout (como no Krita): ferramentas na coluna da esquerda, tela no meio e
|
||||
* na direita uma coluna com a roda de cores em cima e as camadas embaixo. */
|
||||
#define IMG_TOOL_W 54 /* coluna de ferramentas (esquerda) */
|
||||
@@ -248,7 +248,7 @@ static void img_side_btn(Ed* ed, int which, float* x, float* y, float* w, float*
|
||||
(void)ed;
|
||||
}
|
||||
|
||||
/* Camadas --------------------------------------------------------------- */
|
||||
/* Camadas --- */
|
||||
#define IMG_THUMB_W 40
|
||||
#define IMG_THUMB_H 30
|
||||
/* Miniatura da camada (cacheada por revisao) - como no painel do Scratch */
|
||||
@@ -383,7 +383,7 @@ static bool img_layer_add(Ed* ed, Tab* T, int kind, const char* src, const char*
|
||||
return true;
|
||||
}
|
||||
|
||||
/* Desenho --------------------------------------------------------------- */
|
||||
/* Desenho --- */
|
||||
static bool img_pixel_at(Ed* ed, Tab* T, float mx, float my, int* px, int* py) {
|
||||
float dx, dy, dw, dh;
|
||||
img_view(ed, T, &dx, &dy, &dw, &dh);
|
||||
@@ -514,9 +514,9 @@ static void img_flatten(Tab* T, TinyBlocks_Image* dst) {
|
||||
}
|
||||
}
|
||||
|
||||
/* Miniatura do documento (cache; reconstruida so quando algo muda) -------- */
|
||||
/* Miniatura do documento (cache; reconstruida so quando algo muda) --- */
|
||||
|
||||
/* Selecao: mover / redimensionar pixels ---------------------------------- */
|
||||
/* Selecao: mover / redimensionar pixels --- */
|
||||
void tb_editor_image_sel_reset(Tab* T) {
|
||||
if (T->img_sel.buf) { tb_image_release(T->img_sel.buf); T->img_sel.buf = NULL; }
|
||||
memset(&T->img_sel, 0, sizeof(T->img_sel));
|
||||
@@ -606,7 +606,7 @@ static void img_sel_resize(Tab* T, int hnd, int px, int py) {
|
||||
if (S->h < 1) S->h = 1;
|
||||
}
|
||||
|
||||
/* Undo ------------------------------------------------------------------ */
|
||||
/* Undo --- */
|
||||
static void img_undo_push(Tab* T) {
|
||||
ImgLayer* L = img_active(T);
|
||||
if (!L || !L->img) return;
|
||||
@@ -636,7 +636,7 @@ static void img_undo_do(Tab* T) {
|
||||
T->img_rev++;
|
||||
}
|
||||
|
||||
/* Icones das ferramentas ------------------------------------------------ */
|
||||
/* Icones das ferramentas --- */
|
||||
static void img_draw_icon(TinyBlocks_RenderableBlock* rb, int tool, float cx, float cy, Col c) {
|
||||
switch (tool) {
|
||||
case IT_SEL:
|
||||
@@ -672,7 +672,7 @@ static void img_draw_icon(TinyBlocks_RenderableBlock* rb, int tool, float cx, fl
|
||||
}
|
||||
}
|
||||
|
||||
/* Render ---------------------------------------------------------------- */
|
||||
/* Render --- */
|
||||
void tb_editor_image_view(Ed* ed, TinyBlocks_RenderableBlock* rb) {
|
||||
Tab* T = &CT;
|
||||
img_ensure(ed, T);
|
||||
@@ -805,7 +805,7 @@ void tb_editor_image_view(Ed* ed, TinyBlocks_RenderableBlock* rb) {
|
||||
labels[i], enabled ? COL_TEXT : COL_TEXT_DIM, FS_UI - 1);
|
||||
}
|
||||
|
||||
/* ---- widget novo: slider de zoom ---- */
|
||||
/* --- widget novo: slider de zoom --- */
|
||||
{
|
||||
float sx, sy, sw, sh;
|
||||
img_zoom_slider(ed, &sx, &sy, &sw, &sh);
|
||||
@@ -907,7 +907,7 @@ void tb_editor_image_view(Ed* ed, TinyBlocks_RenderableBlock* rb) {
|
||||
rb_text_c(rb, px + IMG_PAD, img_pal_y(ed) + 4 * 30 + 6, inf, COL_TEXT, FS_UI);
|
||||
}
|
||||
|
||||
/* ---- camadas: embaixo da roda de cores (como no Krita) ---- */
|
||||
/* --- camadas: embaixo da roda de cores (como no Krita) --- */
|
||||
rb_line(rb, px + IMG_PAD, img_layers_title_y(ed) - 14,
|
||||
px + IMG_RIGHT_W - IMG_PAD, img_layers_title_y(ed) - 14, 1.f, COL_PAINT_LINE);
|
||||
rb_text_c(rb, px + IMG_PAD, img_layers_title_y(ed), "Camadas", COL_TEXT_DIM, 11.f);
|
||||
@@ -957,7 +957,7 @@ void tb_editor_image_view(Ed* ed, TinyBlocks_RenderableBlock* rb) {
|
||||
}
|
||||
}
|
||||
|
||||
/* Entrada --------------------------------------------------------------- */
|
||||
/* Entrada --- */
|
||||
static void img_clear_layer(Tab* T) {
|
||||
ImgLayer* L = img_active(T);
|
||||
if (!L || !L->img) return;
|
||||
|
||||
@@ -51,7 +51,7 @@ static char s_dir[512] = "";
|
||||
|
||||
const char* tb_ed_modules_dir(void) { return s_dir; }
|
||||
|
||||
/* -- utilidades ---------------------------------------------------------- */
|
||||
/* -- utilidades --- */
|
||||
|
||||
static bool file_exists(const char* p) {
|
||||
struct stat st;
|
||||
@@ -157,7 +157,7 @@ static bool resolve_files(void) {
|
||||
return ok;
|
||||
}
|
||||
|
||||
/* -- carga --------------------------------------------------------------- */
|
||||
/* -- carga --- */
|
||||
|
||||
bool tb_ed_modules_load(Ed* ed) {
|
||||
if (!tb_api_runtime()) tb_api_init(ed->rt);
|
||||
|
||||
Reference in new issue
Block a user