easier selection of graph rectangles (click inner border), add graph resize in intuitive_interface_cheatsheet.sch

This commit is contained in:
stefan schippers 2025-08-24 17:41:00 +02:00
parent 5338deac78
commit 010a31d779
2 changed files with 1845 additions and 1738 deletions

View File

@ -64,14 +64,13 @@ static int waves_selected(int event, KeySym key, int state, int button)
(xctx->ui_state & GRAPHPAN) ||
(event != -3 &&
(
POINTINSIDE(xctx->mousex, xctx->mousey, r->x1 + lmargin, r->y1 + 8, r->x2 - 20, r->y2 - 8) ||
POINTINSIDE(xctx->mousex, xctx->mousey, r->x1, r->y1, r->x1 + 20, r->y1 + 8) ||
POINTINSIDE(xctx->mousex, xctx->mousey, r->x2 - 20, r->y2 - 8, r->x2, r->y2)
POINTINSIDE(xctx->mousex, xctx->mousey, r->x1 + 5, r->y1 + 5, r->x2 - 5, r->y2 - 5)
)
) ||
( event == -3 &&
(POINTINSIDE(xctx->mousex, xctx->mousey, r->x1, r->y1, r->x2 - 40, r->y1 + 20) ||
POINTINSIDE(xctx->mousex, xctx->mousey, r->x1 + 20, r->y1, r->x2 - 30, r->y2 - 10))
(event == -3 && /* double click */
(
POINTINSIDE(xctx->mousex, xctx->mousey, r->x1 + 5, r->y1 + 5, r->x2 - 5, r->y2 - 5)
)
);
if(check) {

File diff suppressed because one or more lines are too long