Преглед изворни кода

cmDspPgm.c : Added test for 'Checkbox' to _cmDspSysPgm_UiTest().

master
kevin пре 10 година
родитељ
комит
4c44c396fd
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5
    1
      dsp/cmDspPgm.c

+ 5
- 1
dsp/cmDspPgm.c Прегледај датотеку

@@ -401,6 +401,7 @@ cmDspRC_t _cmDspSysPgm_UiTest(cmDspSysH_t h, void** userPtrPtr )
401 401
   cmDspInst_t* trp = cmDspSysAllocInst(h,"Scalar", "target",    5, kNumberDuiId, 0.0, 1.0, 0.01, 0.5 );
402 402
   cmDspInst_t* btn = cmDspSysAllocInst(h,"Button", "btn",       2, kButtonDuiId, 12.3 );
403 403
   cmDspInst_t* chk = cmDspSysAllocInst(h,"Button", "check",     2, kCheckDuiId, 0 );
404
+  cmDspInst_t* chb = cmDspSysAllocInst(h,"Checkbox","checkbox", 5, "Checker","up","down", 2.0, 1.0);
404 405
   cmDspInst_t* txt = cmDspSysAllocInst(h,"Text",   "text",      1, "Hello" );
405 406
   cmDspInst_t* prp = cmDspSysAllocInst(h,"Printer", NULL,   1, ">" );
406 407
   cmDspInst_t* mtp = cmDspSysAllocInst(h,"Meter", "meter",  3, 0.0,  0.0, 4.0);
@@ -428,6 +429,9 @@ cmDspRC_t _cmDspSysPgm_UiTest(cmDspSysH_t h, void** userPtrPtr )
428 429
   
429 430
   cmDspSysInstallCb(h, txt, "val", prp, "in", NULL );
430 431
 
432
+  cmDspSysInstallCb(h, chb, "out", prp, "in", NULL );
433
+  cmDspSysInstallCb(h, chb, "sym", prp, "in", NULL );
434
+
431 435
   return rc;
432 436
 
433 437
 }
@@ -2486,7 +2490,7 @@ cmDspRC_t _cmDspSysPgm_Goertzel( cmDspSysH_t h, void** userPtrPtr )
2486 2490
   cmDspInst_t*   igain = cmDspSysAllocScalar(    h, "igain", 0.0,  3.0, 0.01, 1.0 );
2487 2491
   cmDspInst_t*   hop   = cmDspSysAllocScalar(    h, "hop",   0.0, 16.0, 1.0,  4.0 );
2488 2492
 
2489
-  cmDspInst_t* prnt = cmDspSysAllocInst( h,"Printer", NULL,     1, ">" );
2493
+  //cmDspInst_t* prnt = cmDspSysAllocInst( h,"Printer", NULL,     1, ">" );
2490 2494
 
2491 2495
   // check for allocation errors
2492 2496
   if((rc = cmDspSysLastRC(h)) != kOkDspRC )

Loading…
Откажи
Сачувај