cwPresetSel : Added loc_to_gui_id()
This commit is contained in:
parent
8ffc2f3e57
commit
145ab83a06
@ -1097,6 +1097,19 @@ unsigned cw::preset_sel::gui_to_frag_id( handle_t h, unsigned guiUuId, bool show
|
|||||||
return kInvalidId;
|
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 )
|
cw::rc_t cw::preset_sel::create_fragment( handle_t h, unsigned end_loc, time::spec_t end_timestamp, unsigned& fragIdRef )
|
||||||
{
|
{
|
||||||
|
@ -95,6 +95,7 @@ namespace cw
|
|||||||
|
|
||||||
unsigned frag_to_gui_id( handle_t h, unsigned fragId, bool showErrorFl=true );
|
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 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 create_fragment( handle_t h, unsigned end_loc, time::spec_t endTimestamp, unsigned& fragIdRef );
|
||||||
rc_t delete_fragment( handle_t h, unsigned fragId );
|
rc_t delete_fragment( handle_t h, unsigned fragId );
|
||||||
|
Loading…
Reference in New Issue
Block a user