model_server/gala/src/controlObjects.cxx
// sell popup menu assosiation. sell xy in , callback function address in,
// menu items and it's amount in
sell popup menu assosiation. sell xy in , callback function address in,
menu items and it's amount in
sell popup menu assosiation . sell xy in callback function address in menu items and it ' s amount in
void gdListView::SetCellMenu(int row, int col, char *callback, int count, char **items)
{
	ListViewCell *cell = GetCellInfo(row, col);
	if(cell == NULL)     return;
	cell->popup_items.reset();
	for(int i = 0; i < count; i++){
		PopupMenuItemDescPtr desc = new PopupMenuItemDesc;
		desc->title    = strdup(items[i]);
		desc->callback = strdup(callback); 
		cell->popup_items.append(desc); 
	}
}
void gdListView :: SetCellMenu ( int row , int col , char * callback , int count , char * * items ) { ListViewCell * cell = GetCellInfo ( row , col ) ; if ( cell == NULL ) return ; cell -> popup_items . reset ( ) ; for ( int i = 0 ; i < count ; i ++ ) { PopupMenuItemDescPtr desc = new PopupMenuItemDesc ; desc -> title = strdup ( items [ i ] ) ; desc -> callback = strdup ( callback ) ; cell -> popup_items . append ( desc ) ; } }
sell popup menu assosiation.
sell popup menu assosiation .
// popup items list cleaning // and filling // ? // real menu items filling