Index: trunk/src/board.h =================================================================== --- trunk/src/board.h (revision 36975) +++ trunk/src/board.h (revision 36976) @@ -61,6 +61,7 @@ saved with the layout. */ struct pcb_board_s { rnd_hidlib_t hidlib; + char *name; /* name of the board */ long ID; char *PrintFilename; /* from print dialog */ Index: trunk/src/buffer.c =================================================================== --- trunk/src/buffer.c (revision 36975) +++ trunk/src/buffer.c (revision 36976) @@ -300,7 +300,7 @@ char *nfn; nfn = rnd_hid_fileselect(rnd_gui, "Load pixmap into buffer gfx...", "Choose a file to load the pixmap\nfor the gfx object to be created\nin the buffer.\n", - default_file, ".*", NULL, "gfx", RND_HID_FSD_READ | RND_HID_FSD_MAY_NOT_EXIST, NULL); + default_file, ".*", NULL, "gfx", RND_HID_FSD_READ, NULL); if (default_file != NULL) { free(default_file); default_file = NULL; @@ -1121,7 +1121,7 @@ if (argc <= 2) { name = rnd_hid_fileselect(rnd_gui, "Load Paste Buffer ...", "Choose a file to load the contents of the\npaste buffer from.\n", - default_file, ".lht", NULL, "buffer", RND_HID_FSD_READ | RND_HID_FSD_MAY_NOT_EXIST, NULL); + default_file, ".lht", NULL, "buffer", RND_HID_FSD_READ, NULL); if (default_file) { free(default_file); Index: trunk/src/file_act.c =================================================================== --- trunk/src/file_act.c (revision 36975) +++ trunk/src/file_act.c (revision 36976) @@ -383,7 +383,7 @@ if (fn == NULL) { int sr = save_fmt_dialog("Save footprint lib to file ...", "Choose a file to save all subcircuits to.\n", - &default_file, "save_lib_file", RND_HID_FSD_MAY_NOT_EXIST, &name, &fmt); + &default_file, "save_lib_file", 0, &name, &fmt); if (sr != 0) { RND_ACT_IRES(-1); return 0; @@ -416,7 +416,7 @@ if (fn == NULL) { int sr = save_fmt_dialog("Save footprint lib to directory ...", "Choose a file name pattern to save all subcircuits to.\n", - &default_file, "save_lib_dir", RND_HID_FSD_IS_TEMPLATE, &name, &fmt); + &default_file, "save_lib_dir", 0, &name, &fmt); if (sr != 0) { RND_ACT_IRES(-1); return 0; @@ -512,7 +512,7 @@ if (fn == NULL) { int sr = save_fmt_dialog("Save padstack to file ...", "Choose a file to save padstack to.\n", - &default_file, "save_pstk_file", RND_HID_FSD_MAY_NOT_EXIST, &name, &fmt); + &default_file, "save_pstk_file", 0, &name, &fmt); if (sr != 0) { RND_ACT_IRES(-1); return 0; Index: trunk/src/font_act.c =================================================================== --- trunk/src/font_act.c (revision 36975) +++ trunk/src/font_act.c (revision 36976) @@ -150,7 +150,7 @@ if (!fname || !*fname) { fname = rnd_hid_fileselect(rnd_gui, "Save PCB font file...", "Picks a PCB font file to save.\n", - default_file, ".font", NULL, "pcbfont", RND_HID_FSD_MAY_NOT_EXIST, NULL); + default_file, ".font", NULL, "pcbfont", 0, NULL); if (fname == NULL) RND_ACT_FAIL(save_font_to); if (default_file != NULL) { Index: trunk/src_plugins/ar_extern/dlg_extroute.c =================================================================== --- trunk/src_plugins/ar_extern/dlg_extroute.c (revision 36975) +++ trunk/src_plugins/ar_extern/dlg_extroute.c (revision 36976) @@ -196,7 +196,7 @@ fname = rnd_hid_fileselect(rnd_gui, "Save autoroute settings to...", "Pick a file for saving autoroute settings to.\n", - "autoroute.cfg.lht", ".lht", NULL, "ar_extern", RND_HID_FSD_MAY_NOT_EXIST, NULL); + "autoroute.cfg.lht", ".lht", NULL, "ar_extern", 0, NULL); if (fname == NULL) return; Index: trunk/src_plugins/dialogs/dlg_loadsave.c =================================================================== --- trunk/src_plugins/dialogs/dlg_loadsave.c (revision 36975) +++ trunk/src_plugins/dialogs/dlg_loadsave.c (revision 36976) @@ -569,7 +569,7 @@ timer_ctx.ptr = &save; save.timer_active = 1; save.timer = rnd_gui->add_timer(rnd_gui, save_timer, 300, timer_ctx); /* the timer needs to run at least once, to get some initialization done that can be done only after fmtsub got created */ - final_name = rnd_hid_fileselect(rnd_gui, prompt, NULL, name_in, NULL, NULL, "board", RND_HID_FSD_MAY_NOT_EXIST, fmtsub); + final_name = rnd_hid_fileselect(rnd_gui, prompt, NULL, name_in, NULL, NULL, "board", 0, fmtsub); if (save.timer_active) rnd_gui->stop_timer(rnd_gui, save.timer); free(name_in); Index: trunk/src_plugins/export_openems/mesh.c =================================================================== --- trunk/src_plugins/export_openems/mesh.c (revision 36975) +++ trunk/src_plugins/export_openems/mesh.c (revision 36976) @@ -991,7 +991,7 @@ fname = rnd_hid_fileselect(rnd_gui, "Save mesh settings...", "Picks file for saving mesh settings.\n", - default_file, ".lht", NULL, "mesh", RND_HID_FSD_MAY_NOT_EXIST, NULL); + default_file, ".lht", NULL, "mesh", 0, NULL); if (fname == NULL) return; /* cancel */ Index: trunk/src_plugins/import_sch2/import_sch_dlg.c =================================================================== --- trunk/src_plugins/import_sch2/import_sch_dlg.c (revision 36975) +++ trunk/src_plugins/import_sch2/import_sch_dlg.c (revision 36976) @@ -257,7 +257,7 @@ if (*cwd == '\0') rnd_get_wd(cwd); - name = rnd_hid_fileselect(rnd_gui, "Import schematics", "Import netlist and footprints from schematics", cwd, NULL, NULL, "schematics", RND_HID_FSD_MAY_NOT_EXIST, NULL); + name = rnd_hid_fileselect(rnd_gui, "Import schematics", "Import netlist and footprints from schematics", cwd, NULL, NULL, "schematics", 0, NULL); if (name == NULL) return;