cwIoPresetSelApp.cpp : Update fragment button enable to include 'play seq' and 'play all' buttons.
This commit is contained in:
parent
a408e14096
commit
f5ce96dcd2
@ -734,7 +734,6 @@ namespace cw
|
|||||||
|
|
||||||
get_value( app->psH, fragId, preset_sel::kGuiUuIdVarId, kInvalidId, fragPanelUuId );
|
get_value( app->psH, fragId, preset_sel::kGuiUuIdVarId, kInvalidId, fragPanelUuId );
|
||||||
|
|
||||||
|
|
||||||
_update_frag_ui( app, fragId, preset_sel::kBegLocVarId, kInvalidId, fragPanelUuId, kFragBegLocId, uiChanId, uValue );
|
_update_frag_ui( app, fragId, preset_sel::kBegLocVarId, kInvalidId, fragPanelUuId, kFragBegLocId, uiChanId, uValue );
|
||||||
_update_frag_ui( app, fragId, preset_sel::kEndLocVarId, kInvalidId, fragPanelUuId, kFragEndLocId, uiChanId, uValue );
|
_update_frag_ui( app, fragId, preset_sel::kEndLocVarId, kInvalidId, fragPanelUuId, kFragEndLocId, uiChanId, uValue );
|
||||||
_update_frag_ui( app, fragId, preset_sel::kInGainVarId, kInvalidId, fragPanelUuId, kFragInGainId, uiChanId, dValue );
|
_update_frag_ui( app, fragId, preset_sel::kInGainVarId, kInvalidId, fragPanelUuId, kFragInGainId, uiChanId, dValue );
|
||||||
@ -774,17 +773,25 @@ namespace cw
|
|||||||
{
|
{
|
||||||
bool enableFl = begPlayLoc < endPlayLoc;
|
bool enableFl = begPlayLoc < endPlayLoc;
|
||||||
unsigned fragUuId = kInvalidId;
|
unsigned fragUuId = kInvalidId;
|
||||||
unsigned fragPlayBtnUuId = kInvalidId;
|
|
||||||
|
|
||||||
if((fragUuId = frag_to_gui_id( app->psH, blob->fragId )) != kInvalidId )
|
if((fragUuId = frag_to_gui_id( app->psH, blob->fragId )) != kInvalidId )
|
||||||
if((fragPlayBtnUuId = uiFindElementUuId( app->ioH, fragUuId, kFragPlayBtnId, blob->presetId )) != kInvalidId )
|
|
||||||
{
|
{
|
||||||
uiSetEnable( app->ioH, fragPlayBtnUuId, enableFl );
|
unsigned btnIdA[] = { kFragPlayBtnId, kFragPlaySeqBtnId, kFragPlayAllBtnId };
|
||||||
|
unsigned btnIdN = sizeof(btnIdA)/sizeof(btnIdA[0]);
|
||||||
|
|
||||||
|
for(unsigned i=0; i<btnIdN; ++i)
|
||||||
|
{
|
||||||
|
unsigned btnUuId;
|
||||||
|
if((btnUuId = uiFindElementUuId( app->ioH, fragUuId, btnIdA[i], blob->presetId )) != kInvalidId )
|
||||||
|
uiSetEnable( app->ioH, btnUuId, enableFl );
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if( enableFl )
|
if( enableFl )
|
||||||
_clear_status(app);
|
_clear_status(app);
|
||||||
else
|
else
|
||||||
_set_status(app,"Invalid fragment play range.");
|
_set_status(app,"Invalid fragment play range.");
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user