|
@@ -415,20 +415,44 @@ cmDspRC_t cmDspUiScoreCreate( cmDspCtx_t* ctx, cmDspInst_t* inst, unsigned scFi
|
415
|
415
|
return rc;
|
416
|
416
|
}
|
417
|
417
|
|
418
|
|
-cmDspRC_t cmDspUiTakeSeqBldrCreate( cmDspCtx_t* ctx, cmDspInst_t* inst, unsigned fileNameVarId )
|
|
418
|
+cmDspRC_t cmDspUiTakeSeqBldrCreate( cmDspCtx_t* ctx, cmDspInst_t* inst, unsigned fileNameVarId, unsigned ptrVarId, unsigned selVarId, unsigned refreshVarId )
|
419
|
419
|
{
|
420
|
420
|
cmDspRC_t rc;
|
421
|
|
- unsigned arr[] = { fileNameVarId };
|
|
421
|
+ unsigned arr[] = { fileNameVarId, ptrVarId, selVarId, refreshVarId };
|
422
|
422
|
cmDspValue_t v;
|
423
|
423
|
unsigned vn = sizeof(arr)/sizeof(arr[0]);
|
424
|
424
|
cmDsvSetUIntMtx(&v,arr,vn,1);
|
425
|
425
|
|
426
|
|
- // tell the UI to create a time-line control
|
|
426
|
+ // tell the UI to create a sequence builder control
|
427
|
427
|
if((rc = _cmDspUiMsg( ctx, kUiSelAsId, kTakeSeqBldrDuiId, 0, inst, cmInvalidId, &v )) != kOkDspRC )
|
428
|
428
|
return cmDspInstErr(ctx,inst,kUiEleCreateFailDspRC,"Take Sequence Builder UI element create failed.");
|
429
|
429
|
|
430
|
430
|
// Setting kUiDsvFl will cause variable values to be sent to the UI whenever they change.
|
431
|
431
|
cmDspInstVarSetFlags( ctx, inst, fileNameVarId, kUiDsvFl );
|
|
432
|
+ cmDspInstVarSetFlags( ctx, inst, ptrVarId, kUiDsvFl );
|
|
433
|
+ cmDspInstVarSetFlags( ctx, inst, selVarId, kUiDsvFl );
|
|
434
|
+ cmDspInstVarSetFlags( ctx, inst, refreshVarId, kUiDsvFl );
|
|
435
|
+
|
|
436
|
+ return rc;
|
|
437
|
+}
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+cmDspRC_t cmDspUiTakeSeqRendCreate( cmDspCtx_t* ctx, cmDspInst_t* inst, unsigned ptrVarId, unsigned refreshVarId, unsigned selVarId )
|
|
441
|
+{
|
|
442
|
+ cmDspRC_t rc;
|
|
443
|
+ unsigned arr[] = { ptrVarId, refreshVarId, selVarId };
|
|
444
|
+ cmDspValue_t v;
|
|
445
|
+ unsigned vn = sizeof(arr)/sizeof(arr[0]);
|
|
446
|
+ cmDsvSetUIntMtx(&v,arr,vn,1);
|
|
447
|
+
|
|
448
|
+ // tell the UI to create a sequence render control
|
|
449
|
+ if((rc = _cmDspUiMsg( ctx, kUiSelAsId, kTakeSeqRendDuiId, 0, inst, cmInvalidId, &v )) != kOkDspRC )
|
|
450
|
+ return cmDspInstErr(ctx,inst,kUiEleCreateFailDspRC,"Take Sequence Render UI element create failed.");
|
|
451
|
+
|
|
452
|
+ // Setting kUiDsvFl will cause variable values to be sent to the UI whenever they change.
|
|
453
|
+ cmDspInstVarSetFlags( ctx, inst, ptrVarId, kUiDsvFl );
|
|
454
|
+ cmDspInstVarSetFlags( ctx, inst, refreshVarId, kUiDsvFl );
|
|
455
|
+ cmDspInstVarSetFlags( ctx, inst, selVarId, kUiDsvFl );
|
432
|
456
|
|
433
|
457
|
return rc;
|
434
|
458
|
}
|