mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-30 17:43:20 -08:00
query watch windows progress; hook up visualizer schemas to cfg evaluator, use in tab query watch
This commit is contained in:
1 parent
f5683b0f3d
commit
43d8fd4886
9 files changed
+275
-339
No files matched your search
@@ -1611,7 +1611,7 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
|
||||
// rjf: bp hovering
|
||||
if(ui_hovering(bp_sig) && !rd_drag_is_active())
|
||||
{
|
||||
rd_set_hover_eval(v2f32(bp_box->rect.x0, bp_box->rect.y1-2.f), push_str8f(scratch.arena, "$%I64u", bp->id), str8_zero());
|
||||
rd_set_hover_eval(v2f32(bp_box->rect.x0, bp_box->rect.y1-2.f), push_str8f(scratch.arena, "$%I64x", bp->id), str8_zero());
|
||||
RD_RegsScope(.cfg = bp->id) rd_set_hover_regs(RD_RegSlot_Cfg);
|
||||
}
|
||||
|
||||
@@ -1632,17 +1632,6 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
|
||||
{
|
||||
RD_RegsScope(.cfg = bp->id) rd_drag_begin(RD_RegSlot_Cfg);
|
||||
}
|
||||
|
||||
// rjf: bp right-click menu
|
||||
if(ui_right_clicked(bp_sig))
|
||||
{
|
||||
rd_cmd(RD_CmdKind_PushQuery,
|
||||
.cfg = bp->id,
|
||||
.reg_slot = RD_RegSlot_Cfg,
|
||||
.ui_key = bp_box->key,
|
||||
.off_px = v2f32(0, bp_box->rect.y1-bp_box->rect.y0),
|
||||
.lister_flags= RD_ListerFlag_LineEdit|RD_ListerFlag_Settings|RD_ListerFlag_Commands);
|
||||
}
|
||||
}
|
||||
|
||||
//- rjf: build margin watch pin ui
|
||||
@@ -1673,7 +1662,7 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
|
||||
// rjf: watch hovering
|
||||
if(ui_hovering(pin_sig) && !rd_drag_is_active())
|
||||
{
|
||||
rd_set_hover_eval(v2f32(pin_box->rect.x0, pin_box->rect.y1-2.f), push_str8f(scratch.arena, "$%I64u", pin->id), str8_zero());
|
||||
rd_set_hover_eval(v2f32(pin_box->rect.x0, pin_box->rect.y1-2.f), push_str8f(scratch.arena, "$%I64x", pin->id), str8_zero());
|
||||
RD_RegsScope(.cfg = pin->id) rd_set_hover_regs(RD_RegSlot_Cfg);
|
||||
}
|
||||
|
||||
@@ -1688,17 +1677,6 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
|
||||
{
|
||||
RD_RegsScope(.cfg = pin->id) rd_drag_begin(RD_RegSlot_Cfg);
|
||||
}
|
||||
|
||||
// rjf: watch right-click menu
|
||||
if(ui_right_clicked(pin_sig))
|
||||
{
|
||||
rd_cmd(RD_CmdKind_PushQuery,
|
||||
.cfg = pin->id,
|
||||
.reg_slot = RD_RegSlot_Cfg,
|
||||
.ui_key = pin_box->key,
|
||||
.off_px = v2f32(0, pin_box->rect.y1-pin_box->rect.y0),
|
||||
.lister_flags= RD_ListerFlag_LineEdit|RD_ListerFlag_Settings|RD_ListerFlag_Commands);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1915,15 +1893,6 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
|
||||
{
|
||||
RD_RegsScope(.cfg = pin->id) rd_drag_begin(RD_RegSlot_Cfg);
|
||||
}
|
||||
if(ui_right_clicked(sig))
|
||||
{
|
||||
rd_cmd(RD_CmdKind_PushQuery,
|
||||
.cfg = pin->id,
|
||||
.reg_slot = RD_RegSlot_Cfg,
|
||||
.ui_key = sig.box->key,
|
||||
.off_px = v2f32(0, sig.box->rect.y1-sig.box->rect.y0),
|
||||
.lister_flags= RD_ListerFlag_LineEdit|RD_ListerFlag_Settings|RD_ListerFlag_Commands);
|
||||
}
|
||||
}
|
||||
rd_code_label(0.8f, 1, rd_rgba_from_theme_color(RD_ThemeColor_CodeDefault), pin_expr);
|
||||
rd_code_label(0.6f, 1, rd_rgba_from_theme_color(RD_ThemeColor_CodeDefault), eval_string);
|
||||
@@ -2075,6 +2044,7 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
|
||||
vaddr = params->line_vaddrs[cursor->line - params->line_num_range.min];
|
||||
lines = params->line_infos[cursor->line - params->line_num_range.min];
|
||||
}
|
||||
#if 0 // TODO(rjf): @cfg
|
||||
rd_cmd(RD_CmdKind_PushQuery,
|
||||
.reg_slot = RD_RegSlot_Cursor,
|
||||
.ui_key = ui_get_selected_state()->root->key,
|
||||
@@ -2084,6 +2054,7 @@ rd_code_slice(RD_CodeSliceParams *params, TxtPt *cursor, TxtPt *mark, S64 *prefe
|
||||
.vaddr = vaddr,
|
||||
.lines = lines,
|
||||
.lister_flags= RD_ListerFlag_LineEdit|RD_ListerFlag_Settings|RD_ListerFlag_Commands);
|
||||
#endif
|
||||
}
|
||||
|
||||
//- rjf: dragging threads, breakpoints, or watch pins over this slice ->
|
||||
@@ -2817,6 +2788,7 @@ rd_label(String8 string)
|
||||
fstr.params.font = ui_top_font();
|
||||
fstr.params.color = ui_color_from_name(str8_lit("text"));
|
||||
fstr.params.size = ui_top_font_size();
|
||||
fstr.params.raster_flags = rd_raster_flags_from_slot(RD_FontSlot_Main);
|
||||
if(p->flags & StringPartFlag_Code)
|
||||
{
|
||||
fstr.params.font = rd_font_from_slot(RD_FontSlot_Code);
|
||||
|
||||
Reference in new issue
Block a user