extern a_window *W4Open() { a_window *wnd; wnd = WndCreate( "", &W4Info, 0, NULL ); if( wnd ) WndSetKey( wnd, 1 ); return( wnd ); }
static void GlobInit( a_window *wnd ) { glob_window *glob = WndGlob( wnd ); WndScrollAbs( wnd, 0 ); NameListFree( NameList( glob ) ); WndZapped( wnd ); NameListAddModules( NameList( glob ), glob->mod, glob->d2_only, TRUE ); WndSetKey( wnd, PIECE_NAME ); }
static bool FuncEventProc( a_window * wnd, gui_event gui_ev, void *parm ) { func_window *func = WndFunc( wnd ); parm=parm; switch( gui_ev ) { case GUI_INIT_WINDOW: NameListInit( NameList( func ), WF_CODE ); func->toggled_break = FALSE; FuncSetOptions( wnd ); WndSetKey( wnd, PIECE_NAME ); return( TRUE ); case GUI_RESIZE : CalcIndent( wnd ); WndZapped( wnd ); break; case GUI_DESTROY : NameListFree( NameList( func ) ); WndFree( func ); return( TRUE ); } return( FALSE ); }
static bool ModEventProc( a_window * wnd, gui_event gui_ev, void *parm ) { mod_window *mod = WndMod( wnd ); parm=parm; switch( gui_ev ) { case GUI_INIT_WINDOW: ModListInit( ModList( mod ), NULL ); mod->info = NULL; WndSetKey( wnd, PIECE_MODULE ); ModSetOptions( wnd ); ModSetCurrent( wnd ); return( TRUE ); case GUI_RESIZE: ModCalcIndent( wnd ); return( TRUE ); case GUI_DESTROY : ModListFree( ModList( mod ) ); WndFree( mod->info ); WndFree( mod ); return( TRUE ); } return( FALSE ); }