Example #1
0
bool WResolveAllEntrySymbols( WAccelEditInfo *einfo )
{
    WAccelEntry *entry;

    if( einfo == NULL || einfo->tbl == NULL ) {
        return( false );
    }

    for( entry = einfo->tbl->first_entry; entry != NULL; entry = entry->next ) {
        WResolveEntrySymbol( entry, einfo->info->symbol_table );
    }

    return( true );
}
Example #2
0
Bool WResolveAllEntrySymbols( WAccelEditInfo *einfo )
{
    WAccelEntry *entry;

    if( einfo == NULL || einfo->tbl == NULL ) {
        return( FALSE );
    }

    entry = einfo->tbl->first_entry;
    while( entry != NULL ) {
        WResolveEntrySymbol( entry, einfo->info->symbol_table );
        entry = entry->next;
    }

    return( TRUE );
}
Example #3
0
bool WPasteAccelItem( WAccelEditInfo *einfo )
{
    WAccelEntry entry;
    void        *data;
    uint_32     dsize;
    bool        ok;

    data = NULL;
    entry.symbol = NULL;

    ok = (einfo != NULL);

    if( ok ) {
        ok = WGetClipData( einfo->win, WItemClipbdFormat, &data, &dsize );
    }

    if( ok ) {
        ok = WMakeEntryFromClipData( &entry, data, dsize );
    }

    if( ok ) {
        WResolveEntrySymbol( &entry, einfo->info->symbol_table );
        ok = WSetEditWindowKeyEntry( einfo, &entry );
    }

    if( ok ) {
        ok = WInsertAccelEntry( einfo );
    }

    if( entry.symbol != NULL ) {
        WRMemFree( entry.symbol );
    }

    if( data != NULL ) {
        WRMemFree( data );
    }

    return( ok );
}