Beispiel #1
0
a_window DoWndIOOpen( address *addr, mad_type_handle mth )
{
    io_window   *io;
    int         i;

    if( IOData.num_types == 0 )
        return( NULL );
    io = WndMustAlloc( sizeof( io_window ) );
    io->list = WndMustAlloc( sizeof( io_location ) );
    io->num_rows = 1;
    io->list->addr = *addr;
    io->list->type = PIECE_TYPE( MENU_IO_FIRST_TYPE );
    if( mth != MAD_NIL_TYPE_HANDLE ) {
        for( i = 0; i < IOData.num_types; i++ ) {
            if( IOData.info[i].mth == mth ) {
                break;
            }
        }
        if( i != IOData.num_types ) {
            io->list->type = i;
        }
    }
    io->list->value.ud = 0;
    io->list->value_known = false;
    return( DbgWndCreate( LIT_DUI( WindowIO_Ports ), &IOInfo, WND_IO, io, &IOIcon ) );
}
Beispiel #2
0
extern a_window *DoWndGlobOpen( mod_handle mod )
{
    glob_window *glob;

    glob = WndMustAlloc( sizeof( glob_window ) );
    glob->mod = mod;
    return( DbgWndCreate( LIT( WindowGlobals ), &GlobInfo, WND_GLOBALS, glob, &GlobIcon ) );
}
Beispiel #3
0
extern a_window *DoWndModOpen( mod_handle handle )
{
    mod_window  *mod;

    mod = WndMustAlloc( sizeof( mod_window ) );
    mod->handle = handle;
    return( DbgWndCreate( LIT( WindowModules ), &ModInfo, WND_MODULES, mod, &ModIcon ) );
}
Beispiel #4
0
extern a_window *WndCallOpen( void )
{
    call_window *call;
    a_window    *wnd;

    call = WndMustAlloc( sizeof( call_window ) );
    wnd = DbgWndCreate( LIT_DUI( WindowCalls ), &CallInfo, WND_CALL, call, &CallIcon );
    return( wnd );
}
Beispiel #5
0
extern a_window *WndMadRegOpen( mad_type_kind kind, wnd_class_wv wndclass, gui_resource *icon )
{
    reg_window  *reg;
    a_window    *wnd;

    reg = WndMustAlloc( sizeof( reg_window ) );
    reg->kind = kind;
    wnd = DbgWndCreate( LIT_ENG( Empty ), &MadRegInfo, wndclass, reg, icon );
    return( wnd );
}
Beispiel #6
0
extern a_window *WndBrkOpen( void )
{
    a_window            *wnd;
    break_window        *brkw;

    brkw = WndMustAlloc( sizeof( *brkw ) );
    wnd = DbgWndCreate( LIT_DUI( WindowBrk ), &BrkInfo, WND_BREAK, brkw, &BrkIcon );
    if( wnd != NULL )
        WndClrSwitches( wnd, WSW_ONLY_MODIFY_TABSTOP );
    return( wnd );
}
Beispiel #7
0
a_window WndIOOpen( void )
{
    io_window   *io;
    a_window    wnd;

    io = WndMustAlloc( sizeof( io_window ) );
    io->list = NULL;
    io->num_rows = 0;
    wnd = DbgWndCreate( LIT_DUI( WindowIO_Ports ), &IOInfo, WND_IO, io, &IOIcon );
    if( wnd != NULL )
        WndClrSwitches( wnd, WSW_ONLY_MODIFY_TABSTOP );
    return( wnd );
}
Beispiel #8
0
extern a_window *DoWndFuncOpen( bool is_global, mod_handle mod )
{
    func_window *func;
    wnd_class   wndcls;
    const char  *title;

    func = WndMustAlloc( sizeof( func_window ) );
    func->mod = mod;
    if( is_global ) {
        wndcls = WND_GBLFUNCTIONS;
        func->is_global = TRUE;
    } else {
        wndcls = WND_FUNCTIONS;
        func->is_global = FALSE;
    }
    if( is_global ) {
        title = LIT_DUI( WindowGlobal_Functions );
    } else {
        title = LIT_DUI( WindowFunctions );
    }
    return( DbgWndCreate( title, &FuncInfo, wndcls, func, &FuncIcon ) );
}
Beispiel #9
0
extern a_window *WndRepOpen( void )
{
    return( DbgWndCreate( LIT_DUI( WindowReplay ), &RepInfo, WND_REPLAY, NULL, &RepIcon ) );
}