model_server/gala/src/genDialog.cxx
/***************
  This method finds a gdListItem in a gDialog.  All current gDialogs are searched.
  This function may be called as an iterator by passing a NULL pointer as the tag name.
***************/
This method finds a gdListItem in a gDialog.  All current gDialogs are searched.
This function may be called as an iterator by passing a NULL pointer as the tag name.
This method finds a gdListItem in a gDialog . All current gDialogs are searched . This function may be called as an iterator by passing a NULL pointer as the tag name .
gdListItem* GDialog::FindListItem (char *tagName)
{
    static char *theTag;
    static GDialog *n;
    if (tagName) {
       if (theTag) vmemFree (theTag);
       theTag = (char *)vmemAlloc (sizeof (char) * (strlen (tagName) + 1));
       strcpy (theTag, tagName);
       n = dialogs;
    }
    if (!theTag) return NULL;
    while (n) {
        gdListItem* myItem = NULL;
        if (myItem = (gdListItem*)n->FindItem(vnameInternGlobal((const vchar*)theTag))) {
            n = n->nextDialog_;
            return myItem;
        }
        n = n->nextDialog_;
    }
    return NULL;
}
gdListItem * GDialog :: FindListItem ( char * tagName ) { static char * theTag ; static GDialog * n ; if ( tagName ) { if ( theTag ) vmemFree ( theTag ) ; theTag = ( char * ) vmemAlloc ( sizeof ( char ) * ( strlen ( tagName ) + 1 ) ) ; strcpy ( theTag , tagName ) ; n = dialogs ; } if ( ! theTag ) return NULL ; while ( n ) { gdListItem * myItem = NULL ; if ( myItem = ( gdListItem * ) n -> FindItem ( vnameInternGlobal ( ( const vchar * ) theTag ) ) ) { n = n -> nextDialog_ ; return myItem ; } n = n -> nextDialog_ ; } return NULL ; }
This method finds a gdListItem in a gDialog.
This method finds a gdListItem in a gDialog .