cwPresetSel : Added loc_to_gui_id()

This commit is contained in:
kevin 2024-05-11 12:10:43 -04:00
parent 8ffc2f3e57
commit 145ab83a06
2 changed files with 14 additions and 0 deletions

View File

@ -1097,6 +1097,19 @@ unsigned cw::preset_sel::gui_to_frag_id( handle_t h, unsigned guiUuId, bool show
return kInvalidId;
}
unsigned cw::preset_sel::loc_to_gui_id( handle_t h, unsigned loc )
{
preset_sel_t* p = _handleToPtr(h);
frag_t* f;
if((f = _fast_loc_to_frag( p, loc)) == nullptr )
return kInvalidId;
return f->guiUuId;
}
cw::rc_t cw::preset_sel::create_fragment( handle_t h, unsigned end_loc, time::spec_t end_timestamp, unsigned& fragIdRef )
{

View File

@ -95,6 +95,7 @@ namespace cw
unsigned frag_to_gui_id( handle_t h, unsigned fragId, bool showErrorFl=true );
unsigned gui_to_frag_id( handle_t h, unsigned guiUuId, bool showErrorFl=true );
unsigned loc_to_gui_id( handle_t h, unsigned loc );
rc_t create_fragment( handle_t h, unsigned end_loc, time::spec_t endTimestamp, unsigned& fragIdRef );
rc_t delete_fragment( handle_t h, unsigned fragId );