model_server/gala/src/view.cxx
// LoadContentList - Loads in the pane content list if found.
//    Load in the Content List, if found.
//    The name of the content list is the Pane's tag name with
//        LIST_STRING added to the end.
//   This function has no return value.
Loads in the pane content list if found.
Load in the Content List, if found.
The name of the content list is the Pane's tag name with
LIST_STRING added to the end.
This function has no return value.
Loads in the pane content list if found . Load in the Content List if found . The name of the content list is the Pane ' s tag name with LIST_STRING added to the end . This function has no return value .
void View::LoadContentList(const vchar * paneTagName)
{
    if (paneTagName) {
        vchar buffer[TCL_STRING_SIZE];
        vcharCopy(paneTagName, buffer);
        vcharAppendFromLiteral(buffer, LIST_STRING);
        vresource res;
        if (getResource(buffer, &res) ) {
            vliststr* itemList = new vliststr(res);
            for (int x = 0; x < itemList->GetRowCount(); x++) {
                vcharCopyScribed ((itemList->ScribeCellValue(x,1)),buffer);
                vcharAppendFromLiteral(buffer, " {");
                vcharAppendScribed(buffer, itemList->ScribeCellValue(x,2));
                vcharAppendFromLiteral(buffer, "} {");
                vcharAppendScribed(buffer, itemList->ScribeCellValue(x,3));
                vcharAppendFromLiteral(buffer, "}");
                Tcl_Eval (interp(), (char*)buffer);  
            }
            itemList->DeleteLater();
        }
    }
}
void View :: LoadContentList ( const vchar * paneTagName ) { if ( paneTagName ) { vchar buffer [ TCL_STRING_SIZE ] ; vcharCopy ( paneTagName , buffer ) ; vcharAppendFromLiteral ( buffer , LIST_STRING ) ; vresource res ; if ( getResource ( buffer , & res ) ) { vliststr * itemList = new vliststr ( res ) ; for ( int x = 0 ; x < itemList -> GetRowCount ( ) ; x ++ ) { vcharCopyScribed ( ( itemList -> ScribeCellValue ( x , 1 ) ) , buffer ) ; vcharAppendFromLiteral ( buffer , " " ) ; vcharAppendScribed ( buffer , itemList -> ScribeCellValue ( x , 2 ) ) ; vcharAppendFromLiteral ( buffer , " " ) ; vcharAppendScribed ( buffer , itemList -> ScribeCellValue ( x , 3 ) ) ; vcharAppendFromLiteral ( buffer , " " ) ; Tcl_Eval ( interp ( ) , ( char * ) buffer ) ; } itemList -> DeleteLater ( ) ; } } }
LoadContentList - Loads in the pane content list if found.
LoadContentList - Loads in the pane content list if found .
// Loop through the lines in the content list. // Selection command. // Selection command. // Init the item.