model_server/gala/src/controlObjects.cxx
// set text and data assosiated with the specified cell. 
// Enables or disables cell editing.
set text and data assosiated with the specified cell.
Enables or disables cell editing.
set text and data assosiated with the specified cell . Enables or disables cell editing .
void gdListView::SetDataCell(int row, int col, char *value, int read_only, char *mydata) {
	ListViewCell *cell = GetCellInfo(row, col);
	if(!cell){
		cell               = new ListViewCell;
		cell->value        = NULL;
		cell->data         = NULL;
		cell->check_button = NULL;
		internal_list->SetCellValue(row, col, cell);
	}
	if(cell->value != NULL)      free(cell->value);
	if(cell->data  != NULL)      free(cell->data);
	if(cell->check_button!=NULL) {
		delete cell->check_button;
		cell->check_button=NULL;
	}
	cell->value=strdup(value);
	if(mydata != NULL) cell->data = strdup(mydata);
	cell->read_only    = read_only;
	cell->check_button = NULL;
}
void gdListView :: SetDataCell ( int row , int col , char * value , int read_only , char * mydata ) { ListViewCell * cell = GetCellInfo ( row , col ) ; if ( ! cell ) { cell = new ListViewCell ; cell -> value = NULL ; cell -> data = NULL ; cell -> check_button = NULL ; internal_list -> SetCellValue ( row , col , cell ) ; } if ( cell -> value != NULL ) free ( cell -> value ) ; if ( cell -> data != NULL ) free ( cell -> data ) ; if ( cell -> check_button != NULL ) { delete cell -> check_button ; cell -> check_button = NULL ; } cell -> value = strdup ( value ) ; if ( mydata != NULL ) cell -> data = strdup ( mydata ) ; cell -> read_only = read_only ; cell -> check_button = NULL ; }
set text and data assosiated with the specified cell.
set text and data assosiated with the specified cell .