model_server/gala/src/dis_cmds.cxx
// Call only on existing cell, the arguments are :
// list,row,column, callback  <state, CheckTitle, UncheckTitle>
Call only on existing cell, the arguments are :
list,row,column, callback  
Call only on existing cell the arguments are : list row column callback
int dis_gdListViewAddCheckCell(ClientData,
							   Tcl_Interp* interp, int argc, char* argv[]) {
    gInit (dis_gdAddCheckCell);
    if (argc < 5) {
	   Tcl_SetResult (interp, "wrong number of arguments", TCL_STATIC);
	   return TCL_ERROR;
    }
    gdListView *item = (gdListView *)dis_findItem(interp, (vchar*) argv[1]);
    if(!item) TCL_EXECERR1 ("listview not found", argv[1]);
    int row       = atoi(argv[2]);
    int col       = atoi(argv[3]);
    char *data = NULL;
	data = argv[4];
	int state=1;
	if(argc>5) state = atoi(argv[5]);
    gdListCheck* check=item->SetCellCheck(row,col,data,state);
	if(check!=NULL) {
	   if(argc>6) {
	      gString titleOn=argv[6];
	      check->SetTitle(titleOn);
	   }
	   if(argc>7) {
	      gString titleOff=argv[7];
		  check->SetAlternateTitle(titleOff);
	   }
	}
	return TCL_OK;
}
int dis_gdListViewAddCheckCell ( ClientData , Tcl_Interp * interp , int argc , char * argv [ ] ) { gInit ( dis_gdAddCheckCell ) ; if ( argc < 5 ) { Tcl_SetResult ( interp , " " , TCL_STATIC ) ; return TCL_ERROR ; } gdListView * item = ( gdListView * ) dis_findItem ( interp , ( vchar * ) argv [ 1 ] ) ; if ( ! item ) TCL_EXECERR1 ( " " , argv [ 1 ] ) ; int row = atoi ( argv [ 2 ] ) ; int col = atoi ( argv [ 3 ] ) ; char * data = NULL ; data = argv [ 4 ] ; int state = 1 ; if ( argc > 5 ) state = atoi ( argv [ 5 ] ) ; gdListCheck * check = item -> SetCellCheck ( row , col , data , state ) ; if ( check != NULL ) { if ( argc > 6 ) { gString titleOn = argv [ 6 ] ; check -> SetTitle ( titleOn ) ; } if ( argc > 7 ) { gString titleOff = argv [ 7 ] ; check -> SetAlternateTitle ( titleOff ) ; } } return TCL_OK ; }
Call only on existing cell, the arguments are :
list,row,column, callback  <state, CheckTitle, UncheckTitle>
Call only on existing cell the arguments are : list row column callback <state CheckTitle UncheckTitle >