static HID_Attribute * gerber_get_export_options (int *n) { static char *last_made_filename = NULL; if (PCB) derive_default_filename(PCB->Filename, &gerber_options[HA_gerberfile], "", &last_made_filename); if (n) *n = NUM_OPTIONS; return gerber_options; }
static HID_Attribute * bom_get_export_options (int *n) { static char *last_bom_filename = 0; static char *last_xy_filename = 0; static int last_unit_value = -1; if (bom_options[HA_unit].default_val.int_value == last_unit_value) { if (Settings.grid_unit) bom_options[HA_unit].default_val.int_value = Settings.grid_unit->index; else bom_options[HA_unit].default_val.int_value = get_unit_struct ("mil")->index; last_unit_value = bom_options[HA_unit].default_val.int_value; } if (PCB) { derive_default_filename(PCB->Filename, &bom_options[HA_bomfile], ".bom", &last_bom_filename); derive_default_filename(PCB->Filename, &bom_options[HA_xyfile ], ".xy" , &last_xy_filename ); } if (n) *n = NUM_OPTIONS; return bom_options; }
static HID_Attribute * IPCD356_get_export_options (int *n) { static char *last_IPCD356_filename = 0; if (PCB) { derive_default_filename (PCB->Filename, &IPCD356_options[HA_IPCD356_filename], ".net", &last_IPCD356_filename); } if (n) *n = NUM_OPTIONS; return IPCD356_options; }