/* enlarge_file_selector: * Enlarges the dialog for Large Mode. -L */ DIALOG *enlarge_file_selector(int width, int height) { bool show_extlist = file_selector[FS_TYPES].proc != fs_dummy_proc; stretch_dialog(file_selector, width, height, 1); DIALOG *newd = resizeDialog(file_selector, 1.5); jwin_center_dialog(newd); if(is_large()) { int bottom = #ifndef HAVE_DIR_LIST newd[FS_OK].y; #else newd[FS_WIN].y+ newd[FS_WIN].h-8; #endif newd[FS_FILES].dp2=NULL; newd[FS_TYPES].y = bottom- newd[FS_TYPES].h-5; newd[FS_FILES].h=show_extlist ? 152 : 168; newd[FS_FILES].y = (show_extlist ? newd[FS_TYPES].y:bottom)-(newd[FS_FILES].h+5); newd[FS_EDIT].y = newd[FS_FILES].y-26; ((ListData *)newd[FS_FILES].dp)->font = &lfont_l; newd[FS_TYPES].dp2=NULL; newd[FS_TYPES].h=20; ((ListData *)newd[FS_TYPES].dp)->font = &lfont_l; #ifdef HAVE_DIR_LIST newd[FS_DISKS].dp2=NULL; newd[FS_DISKS].h=20; ((ListData *)newd[FS_DISKS].dp)->font = &lfont_l; #endif } return newd; }
void dealloc() { if (is_large() && data_ != 0) { std::free(data_); data_ = 0; } }