compute cell editability

This commit is contained in:
Ryan Fleury
2025-04-19 19:12:55 -07:00
parent 92f3ea922d
commit 657f5edb31
+22
View File
@@ -1450,6 +1450,28 @@ rd_info_from_watch_row_cell(Arena *arena, EV_Row *row, EV_StringFlags string_fla
}
}
//////////////////////////////
//- rjf: determine cell editability
//
switch(cell->kind)
{
default:{}break;
case RD_WatchCellKind_Expr:
{
if(row_info->expr_is_editable)
{
result.flags |= RD_WatchCellFlag_CanEdit;
}
}break;
case RD_WatchCellKind_Eval:
{
if(ev_type_key_is_editable(cell->eval.irtree.type_key) && cell->eval.irtree.mode == E_Mode_Offset)
{
result.flags |= RD_WatchCellFlag_CanEdit;
}
}break;
}
//////////////////////////////
//- rjf: build cell's visual appearance info
//