pcb 4.1.1
An interactive printed circuit board layout editor.
|
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "xincludes.h"
#include "compat.h"
#include "global.h"
#include "data.h"
#include "crosshair.h"
#include "misc.h"
#include "pcb-printf.h"
#include "hid.h"
#include "../hidint.h"
#include "lesstif.h"
Go to the source code of this file.
Data Structures | |
struct | LgResource |
struct | AttrRow |
Defines | |
#define | CRASH fprintf(stderr, "HID error: pcb called unimplemented GUI function %s\n", __FUNCTION__), abort() |
#define | stdarg(t, v) XtSetArg(args[n], t, v); n++ |
#define | TOP_SIDE_NAME "(top)" |
#define | BOTTOM_SIDE_NAME "(bottom)" |
Functions | |
static void | dialog_callback (Widget w, void *v, void *cbs) |
static int | wait_for_dialog (Widget w) |
static void | setup_fsb_dialog () |
static int | Load (int argc, char **argv, Coord x, Coord y) |
static int | LoadVendor (int argc, char **argv, Coord x, Coord y) |
static int | Save (int argc, char **argv, Coord x, Coord y) |
static void | log_clear (Widget w, void *up, void *cbp) |
static void | log_dismiss (Widget w, void *up, void *cbp) |
void | lesstif_logv (const char *fmt, va_list ap) |
void | lesstif_log (const char *fmt,...) |
int | lesstif_confirm_dialog (char *msg,...) |
static int | ConfirmAction (int argc, char **argv, Coord x, Coord y) |
int | lesstif_close_confirm_dialog () |
void | lesstif_report_dialog (char *title, char *msg) |
char * | lesstif_fileselect (const char *title, const char *descr, char *default_file, char *default_ext, const char *history_tag, int flags) |
char * | lesstif_prompt_for (const char *msg, const char *default_string) |
static int | PromptFor (int argc, char **argv, Coord x, Coord y) |
static Widget | create_form_ok_dialog (char *name, int ok) |
int | lesstif_attribute_dialog (HID_Attribute *attrs, int n_attrs, HID_Attr_Val *results, const char *title, const char *descr) |
static int | DoWindows (int argc, char **argv, Coord x, Coord y) |
static int | About (int argc, char **argv, Coord x, Coord y) |
static int | Print (int argc, char **argv, Coord x, Coord y) |
static int | PrintCalibrate (int argc, char **argv, Coord x, Coord y) |
static int | Export (int argc, char **argv, Coord x, Coord y) |
static int | sz_str2val (Widget w, bool pcbu) |
static void | sz_val2str (Widget w, Coord u, int pcbu) |
static void | sizes_set () |
void | lesstif_sizes_reset () |
static Widget | size_field (Widget parent, char *label, int posn) |
static int | AdjustSizes (int argc, char **argv, Coord x, Coord y) |
static void | lgbutton_cb (Widget w, int ij, void *cbs) |
static void | lgbutton_expose (Widget w, XtPointer u, XmDrawingAreaCallbackStruct *cbs) |
static void | lgbutton_input (Widget w, XtPointer u, XmDrawingAreaCallbackStruct *cbs) |
static void | lgbutton_resize (Widget w, XtPointer u, XmDrawingAreaCallbackStruct *cbs) |
void | lesstif_update_layer_groups () |
static int | EditLayerGroups (int argc, char **argv, Coord x, Coord y) |
static void | attributes_delete_callback (Widget w, void *v, void *cbs) |
static void | fiddle_with_bb_layout () |
static void | lesstif_attributes_need_rows (int new_max) |
static void | lesstif_attributes_revert () |
static void | attributes_new_callback (Widget w, void *v, void *cbs) |
static void | attributes_revert_callback (Widget w, void *v, void *cbs) |
void | lesstif_attributes_dialog (char *owner, AttributeListType *attrs_list) |
static int | ImportGUI (int argc, char **argv, Coord x, Coord y) |
Variables | |
static Arg | args [30] |
static int | n |
static int | ok |
static Widget | fsb = 0 |
static XmString | xms_pcb |
static XmString | xms_net |
static XmString | xms_vend |
static XmString | xms_all |
static XmString | xms_load |
static XmString | xms_loadv |
static XmString | xms_save |
static XmString | xms_fp |
static const char | load_syntax [] = "Load(Layout|LayoutToBuffer|ElementToBuffer|Netlist|Revert)" |
static const char | load_help [] = "Load layout data from a user-selected file." |
static const char | loadvendor_syntax [] = "LoadVendor()" |
static const char | loadvendor_help [] = "Loads a user-selected vendor resource file." |
static const char | save_syntax [] = "Save(PasteBuffer)" |
static const char | save_help [] = "Save layout data to a user-selected file." |
static Widget | log_form |
static Widget | log_text |
static int | log_size = 0 |
static int | pending_newline = 0 |
static Widget | confirm_dialog = 0 |
static Widget | confirm_cancel |
static Widget | confirm_ok |
static Widget | confirm_label |
static Widget | report = 0 |
static Widget | report_form |
static Widget | prompt_dialog = 0 |
static Widget | prompt_label |
static Widget | prompt_text |
static const char | promptfor_syntax [] = "PromptFor([message[,default]])" |
static const char | promptfor_help [] = "Prompt for a response." |
static const char | dowindows_syntax [] = "DoWindows(Layout|Library|Log|Netlist)" |
static const char | dowindows_help [] = "Open various GUI windows." |
static const char | about_syntax [] = "About()" |
static const char | about_help [] = "Tell the user about this version of PCB." |
static const char | print_syntax [] = "Print()" |
static const char | print_help [] = "Print the layout." |
static HID_Attribute | printer_calibrate_attrs [] |
static HID_Attr_Val | printer_calibrate_values [3] |
static const char | printcalibrate_syntax [] = "PrintCalibrate()" |
static const char | printcalibrate_help [] = "Calibrate the printer." |
static const char | export_syntax [] = "Export()" |
static const char | export_help [] = "Export the layout." |
static Widget | sizes_dialog = 0 |
static Widget | sz_pcb_w |
static Widget | sz_pcb_h |
static Widget | sz_bloat |
static Widget | sz_shrink |
static Widget | sz_drc_wid |
static Widget | sz_drc_slk |
static Widget | sz_drc_drill |
static Widget | sz_drc_ring |
static Widget | sz_text |
static Widget | sz_set |
static Widget | sz_reset |
static Widget | sz_units |
static const char | adjustsizes_syntax [] = "AdjustSizes()" |
static const char | adjustsizes_help [] = "Let the user change the board size, DRC parameters, etc" |
static Widget | layer_groups_form = 0 |
static Widget | lg_buttonform = 0 |
static int | lg_setcol [MAX_ALL_LAYER] |
static int | lg_width |
static int | lg_height |
static int | lg_r [MAX_ALL_LAYER+1] |
static int | lg_c [MAX_ALL_LAYER+1] |
static int | lg_label_width |
static int | lg_fa |
static int | lg_fd |
static GC | lg_gc = 0 |
static Widget | lglabels [MAX_ALL_LAYER] |
static Widget | lgbuttons [MAX_ALL_LAYER][MAX_GROUP] |
static LgResource | lgr |
static XtResource | lg_resources [] |
static const char | editlayergroups_syntax [] = "EditLayerGroups()" |
static const char | editlayergroups_help [] = "Let the user change the layer groupings" |
static AttrRow * | attr_row = 0 |
static int | attr_num_rows = 0 |
static int | attr_max_rows = 0 |
static Widget | attr_dialog = NULL |
static Widget | f_top |
static AttributeListType * | attributes_list |
static const char | importgui_syntax [] = "ImportGUI()" |
static const char | importgui_help [] = "Lets the user choose the schematics to import from" |
HID_Action | lesstif_dialog_action_list [] |
#define BOTTOM_SIDE_NAME "(bottom)" |
Definition at line 36 of file dialogs.c.
Referenced by lesstif_update_layer_groups(), and lgbutton_expose().
Definition at line 31 of file dialogs.c.
Referenced by About(), AdjustSizes(), EditLayerGroups(), Export(), fiddle_with_bb_layout(), ImportGUI(), lesstif_attribute_dialog(), lesstif_attributes_dialog(), lesstif_attributes_need_rows(), lesstif_confirm_dialog(), lesstif_logv(), lesstif_prompt_for(), lesstif_report_dialog(), lesstif_sizes_reset(), lesstif_update_layer_groups(), lgbutton_resize(), Load(), LoadVendor(), Save(), and size_field().
#define TOP_SIDE_NAME "(top)" |
Definition at line 35 of file dialogs.c.
Referenced by lesstif_update_layer_groups(), and lgbutton_expose().
Definition at line 941 of file dialogs.c.
References args, GetInfoString(), mainwind, n, stdarg, wait_for_dialog(), and XmStringCreatePCB().
Definition at line 1239 of file dialogs.c.
References args, lesstif_sizes_reset(), mainwind, n, size_field(), sizes_dialog, sizes_set(), stdarg, sz_bloat, sz_drc_drill, sz_drc_ring, sz_drc_slk, sz_drc_wid, sz_pcb_h, sz_pcb_w, sz_reset, sz_set, sz_shrink, sz_text, and sz_units.
static void attributes_delete_callback | ( | Widget | w, |
void * | v, | ||
void * | cbs | ||
) | [static] |
Definition at line 1839 of file dialogs.c.
References fiddle_with_bb_layout(), n, AttrRow::w_name, and AttrRow::w_value.
Referenced by lesstif_attributes_need_rows().
static void attributes_new_callback | ( | Widget | w, |
void * | v, | ||
void * | cbs | ||
) | [static] |
Definition at line 1829 of file dialogs.c.
References fiddle_with_bb_layout(), and lesstif_attributes_need_rows().
Referenced by lesstif_attributes_dialog().
static void attributes_revert_callback | ( | Widget | w, |
void * | v, | ||
void * | cbs | ||
) | [static] |
Definition at line 1865 of file dialogs.c.
References lesstif_attributes_revert().
Referenced by lesstif_attributes_dialog().
Definition at line 466 of file dialogs.c.
References lesstif_confirm_dialog().
static Widget create_form_ok_dialog | ( | char * | name, |
int | ok | ||
) | [static] |
Definition at line 611 of file dialogs.c.
References args, dialog_callback(), mainwind, and n.
Referenced by Export(), and lesstif_attribute_dialog().
static void dialog_callback | ( | Widget | w, |
void * | v, | ||
void * | cbs | ||
) | [static] |
Definition at line 41 of file dialogs.c.
References ok.
Referenced by create_form_ok_dialog(), Export(), lesstif_attributes_dialog(), lesstif_confirm_dialog(), lesstif_prompt_for(), and setup_fsb_dialog().
Definition at line 897 of file dialogs.c.
References lesstif_log(), lesstif_show_library(), lesstif_show_netlist(), and log_form.
Definition at line 1564 of file dialogs.c.
References args, layer_groups_form, lesstif_update_layer_groups(), lg_buttonform, lg_resources, lgbutton_cb(), lgbutton_expose(), lgbutton_input(), lgbutton_resize(), lgbuttons, lglabels, mainwind, MAX_ALL_LAYER, max_copper_layer, max_group, n, SILK_LAYER, stdarg, and XmStringCreatePCB().
Definition at line 1051 of file dialogs.c.
References args, create_form_ok_dialog(), dialog_callback(), hid_st::do_export, exporter, hid_st::get_export_options, hid_enumerate(), lesstif_attribute_dialog(), n, stdarg, and wait_for_dialog().
static void fiddle_with_bb_layout | ( | ) | [static] |
Definition at line 1661 of file dialogs.c.
References args, attr_num_rows, n, and stdarg.
Referenced by attributes_delete_callback(), attributes_new_callback(), lesstif_attributes_dialog(), lesstif_attributes_need_rows(), and lesstif_attributes_revert().
Definition at line 2006 of file dialogs.c.
References args, AttributePut, fsb, hid_action(), n, PCB, setup_fsb_dialog(), stdarg, wait_for_dialog(), and XmStringCreatePCB().
int lesstif_attribute_dialog | ( | HID_Attribute * | attrs, |
int | n_attrs, | ||
HID_Attr_Val * | results, | ||
const char * | title, | ||
const char * | descr | ||
) |
Definition at line 635 of file dialogs.c.
References args, ATTR_UNDOCUMENTED, HID_Attr_Val::coord_value, create_form_ok_dialog(), HID_Attribute::default_val, HID_Attribute::enumerations, GetValue(), HID_Boolean, HID_Coord, HID_Enum, HID_Integer, HID_Label, HID_Real, HID_String, HID_Attr_Val::int_value, malloc(), n, pcb_snprintf(), stdarg, HID_Attr_Val::str_value, wait_for_dialog(), and XmStringCreatePCB().
Referenced by Export(), hid_lesstif_init(), and Print().
void lesstif_attributes_dialog | ( | char * | owner, |
AttributeListType * | attrs_list | ||
) |
Definition at line 1871 of file dialogs.c.
References args, attr_num_rows, attributes_new_callback(), attributes_revert_callback(), dialog_callback(), fiddle_with_bb_layout(), lesstif_attributes_revert(), AttributeListType::List, mainwind, malloc(), AttributeListType::Max, n, AttributeType::name, AttributeListType::Number, realloc(), stdarg, AttributeType::value, and wait_for_dialog().
Referenced by hid_lesstif_init().
static void lesstif_attributes_need_rows | ( | int | new_max | ) | [static] |
Definition at line 1756 of file dialogs.c.
References args, attr_max_rows, attributes_delete_callback(), AttrRow::del, fiddle_with_bb_layout(), malloc(), n, realloc(), stdarg, AttrRow::w_name, and AttrRow::w_value.
Referenced by attributes_new_callback(), and lesstif_attributes_revert().
static void lesstif_attributes_revert | ( | ) | [static] |
Definition at line 1803 of file dialogs.c.
References fiddle_with_bb_layout(), lesstif_attributes_need_rows(), AttributeListType::List, AttributeType::name, AttributeListType::Number, and AttributeType::value.
Referenced by attributes_revert_callback(), and lesstif_attributes_dialog().
int lesstif_close_confirm_dialog | ( | ) |
Definition at line 478 of file dialogs.c.
References lesstif_confirm_dialog().
Referenced by hid_lesstif_init().
int lesstif_confirm_dialog | ( | char * | msg, |
... | |||
) |
Definition at line 398 of file dialogs.c.
References args, confirm_cancel, confirm_dialog, confirm_label, confirm_ok, dialog_callback(), mainwind, n, ok, stdarg, wait_for_dialog(), and XmStringCreatePCB().
Referenced by ConfirmAction(), hid_lesstif_init(), lesstif_close_confirm_dialog(), and Print().
char* lesstif_fileselect | ( | const char * | title, |
const char * | descr, | ||
char * | default_file, | ||
char * | default_ext, | ||
const char * | history_tag, | ||
int | flags | ||
) |
Definition at line 524 of file dialogs.c.
References lesstif_prompt_for().
Referenced by hid_lesstif_init().
void lesstif_log | ( | const char * | fmt, |
... | |||
) |
Definition at line 384 of file dialogs.c.
References lesstif_logv().
Referenced by DoWindows(), hid_lesstif_init(), and lesstif_key_event().
void lesstif_logv | ( | const char * | fmt, |
va_list | ap | ||
) |
Definition at line 309 of file dialogs.c.
References args, log_clear(), log_dismiss(), log_form, log_size, log_text, mainwind, n, pcb_vprintf(), pending_newline, and stdarg.
Referenced by hid_lesstif_init(), and lesstif_log().
char* lesstif_prompt_for | ( | const char * | msg, |
const char * | default_string | ||
) |
Definition at line 538 of file dialogs.c.
References args, dialog_callback(), mainwind, n, prompt_dialog, prompt_label, prompt_text, stdarg, wait_for_dialog(), and XmStringCreatePCB().
Referenced by hid_lesstif_init(), lesstif_fileselect(), PromptFor(), and style_name_cb().
void lesstif_report_dialog | ( | char * | title, |
char * | msg | ||
) |
Definition at line 488 of file dialogs.c.
References args, mainwind, n, report, report_form, and stdarg.
Referenced by hid_lesstif_init().
void lesstif_sizes_reset | ( | void | ) |
Definition at line 1171 of file dialogs.c.
References _, args, PCBType::Bloat, SettingType::grid_unit, unit::in_suffix, PCBType::MaxHeight, PCBType::MaxWidth, PCBType::minDrill, PCBType::minRing, PCBType::minSlk, PCBType::minWid, n, PCB, Settings, PCBType::Shrink, sizes_dialog, stdarg, sz_bloat, sz_drc_drill, sz_drc_ring, sz_drc_slk, sz_drc_wid, sz_pcb_h, sz_pcb_w, sz_shrink, sz_text, sz_units, sz_val2str(), SettingType::TextScale, and XmStringCreatePCB().
Referenced by AdjustSizes(), PCBChanged(), and SetUnits().
void lesstif_update_layer_groups | ( | ) |
Definition at line 1452 of file dialogs.c.
References args, BOTTOM_SIDE_NAME, bottom_silk_layer, PCBType::Data, LayerGroupType::Entries, LgResource::font, DataType::Layer, layer_groups_form, PCBType::LayerGroups, lg_buttonform, lg_fa, lg_fd, lg_label_width, lg_setcol, lgbutton_expose(), lgbuttons, lglabels, MAX_ALL_LAYER, max_copper_layer, max_group, n, LayerType::Name, LayerGroupType::Number, PCB, SILK_LAYER, stdarg, TOP_SIDE_NAME, top_silk_layer, and XmStringCreatePCB().
Referenced by EditLayerGroups(), LayersChanged(), and PCBChanged().
static void lgbutton_cb | ( | Widget | w, |
int | ij, | ||
void * | cbs | ||
) | [static] |
Definition at line 1345 of file dialogs.c.
References layer, lgbuttons, max_group, and MoveLayerToGroup().
Referenced by EditLayerGroups().
static void lgbutton_expose | ( | Widget | w, |
XtPointer | u, | ||
XmDrawingAreaCallbackStruct * | cbs | ||
) | [static] |
Definition at line 1363 of file dialogs.c.
References LgResource::bg, BOTTOM_SIDE_NAME, bottom_silk_layer, c, PCBType::Data, display, LgResource::fg, LgResource::font, DataType::Layer, lg_c, lg_fa, lg_fd, lg_gc, lg_height, lg_label_width, lg_r, lg_setcol, lg_width, max_copper_layer, max_group, LayerType::Name, PCB, LgResource::sel, SILK_LAYER, TOP_SIDE_NAME, and top_silk_layer.
Referenced by EditLayerGroups(), lesstif_update_layer_groups(), lgbutton_input(), and lgbutton_resize().
static void lgbutton_input | ( | Widget | w, |
XtPointer | u, | ||
XmDrawingAreaCallbackStruct * | cbs | ||
) | [static] |
Definition at line 1418 of file dialogs.c.
References gui, hid_st::invalidate_all, layer, lg_height, lg_label_width, lg_setcol, lg_width, lgbutton_expose(), max_copper_layer, max_group, MoveLayerToGroup(), and SILK_LAYER.
Referenced by EditLayerGroups().
static void lgbutton_resize | ( | Widget | w, |
XtPointer | u, | ||
XmDrawingAreaCallbackStruct * | cbs | ||
) | [static] |
Definition at line 1433 of file dialogs.c.
References args, lg_c, lg_height, lg_label_width, lg_r, lg_width, lgbutton_expose(), max_copper_layer, max_group, n, SILK_LAYER, and stdarg.
Referenced by EditLayerGroups().
Definition at line 109 of file dialogs.c.
References args, fsb, hid_actionl(), hid_actionv(), n, setup_fsb_dialog(), stdarg, wait_for_dialog(), xms_fp, xms_load, xms_net, and xms_pcb.
Definition at line 170 of file dialogs.c.
References args, fsb, hid_actionl(), hid_actionv(), n, setup_fsb_dialog(), stdarg, wait_for_dialog(), xms_loadv, and xms_vend.
static void log_clear | ( | Widget | w, |
void * | up, | ||
void * | cbp | ||
) | [static] |
Definition at line 295 of file dialogs.c.
References log_size, log_text, and pending_newline.
Referenced by lesstif_logv().
static void log_dismiss | ( | Widget | w, |
void * | up, | ||
void * | cbp | ||
) | [static] |
Definition at line 974 of file dialogs.c.
References hid_st::do_export, hid_st::get_export_options, hid_find_printer(), lesstif_attribute_dialog(), lesstif_confirm_dialog(), and n.
Definition at line 1024 of file dialogs.c.
References hid_st::attribute_dialog, hid_st::calibrate, gui, hid_find_printer(), and printer_calibrate_attrs.
Definition at line 600 of file dialogs.c.
References lesstif_prompt_for().
Definition at line 228 of file dialogs.c.
References args, PCBType::Filename, fsb, hid_actionl(), hid_actionv(), n, PCB, setup_fsb_dialog(), stdarg, wait_for_dialog(), xms_pcb, and xms_save.
static void setup_fsb_dialog | ( | ) | [static] |
Definition at line 68 of file dialogs.c.
References args, dialog_callback(), fsb, mainwind, n, xms_all, xms_fp, xms_load, xms_loadv, xms_net, xms_pcb, xms_save, xms_vend, and XmStringCreatePCB().
Referenced by ImportGUI(), Load(), LoadVendor(), and Save().
static Widget size_field | ( | Widget | parent, |
char * | label, | ||
int | posn | ||
) | [static] |
Definition at line 1194 of file dialogs.c.
References args, n, stdarg, and XmStringCreatePCB().
Referenced by AdjustSizes().
static void sizes_set | ( | ) | [static] |
Definition at line 1147 of file dialogs.c.
References SettingType::Bloat, PCBType::Bloat, crosshair_update_range(), lesstif_pan_fixup(), PCBType::MaxHeight, PCBType::MaxWidth, SettingType::minDrill, PCBType::minDrill, SettingType::minRing, PCBType::minRing, SettingType::minSlk, PCBType::minSlk, SettingType::minWid, PCBType::minWid, PCB, Settings, SettingType::Shrink, PCBType::Shrink, sz_bloat, sz_drc_drill, sz_drc_ring, sz_drc_slk, sz_drc_wid, sz_pcb_h, sz_pcb_w, sz_shrink, sz_str2val(), sz_text, and SettingType::TextScale.
Referenced by AdjustSizes().
static int sz_str2val | ( | Widget | w, |
bool | pcbu | ||
) | [static] |
Definition at line 1127 of file dialogs.c.
References GetValueEx(), SettingType::grid_unit, Settings, and unit::suffix.
Referenced by sizes_set().
static void sz_val2str | ( | Widget | w, |
Coord | u, | ||
int | pcbu | ||
) | [static] |
Definition at line 1136 of file dialogs.c.
References unit::allow, SettingType::grid_unit, pcb_snprintf(), and Settings.
Referenced by lesstif_sizes_reset().
static int wait_for_dialog | ( | Widget | w | ) | [static] |
Definition at line 47 of file dialogs.c.
References app_context, and ok.
Referenced by About(), Export(), ImportGUI(), lesstif_attribute_dialog(), lesstif_attributes_dialog(), lesstif_confirm_dialog(), lesstif_prompt_for(), Load(), LoadVendor(), and Save().
const char about_help[] = "Tell the user about this version of PCB." [static] |
const char about_syntax[] = "About()" [static] |
const char adjustsizes_help[] = "Let the user change the board size, DRC parameters, etc" [static] |
const char adjustsizes_syntax[] = "AdjustSizes()" [static] |
Arg args[30] [static] |
Definition at line 29 of file dialogs.c.
Referenced by About(), ActionElementList(), AdjustSizes(), create_form_ok_dialog(), EditLayerGroups(), Export(), fiddle_with_bb_layout(), gts_file_error(), gts_file_variable_error(), ImportGUI(), LayerStringToLayerStack(), lesstif_attribute_dialog(), lesstif_attributes_dialog(), lesstif_attributes_need_rows(), lesstif_confirm_dialog(), lesstif_logv(), lesstif_prompt_for(), lesstif_report_dialog(), lesstif_sizes_reset(), lesstif_update_layer_groups(), lgbutton_resize(), Load(), LoadFootprintByName(), LoadVendor(), Message(), MyFatal(), nogui_confirm_dialog(), pcb_fprintf(), pcb_g_strdup_printf(), pcb_printf(), pcb_snprintf(), Save(), setup_fsb_dialog(), and size_field().
Widget attr_dialog = NULL [static] |
int attr_max_rows = 0 [static] |
Definition at line 1654 of file dialogs.c.
Referenced by lesstif_attributes_need_rows().
int attr_num_rows = 0 [static] |
Definition at line 1653 of file dialogs.c.
Referenced by fiddle_with_bb_layout(), and lesstif_attributes_dialog().
AttributeListType* attributes_list [static] |
Widget confirm_cancel [static] |
Definition at line 395 of file dialogs.c.
Referenced by lesstif_confirm_dialog().
Widget confirm_dialog = 0 [static] |
Definition at line 394 of file dialogs.c.
Referenced by ActionPasteBuffer(), and lesstif_confirm_dialog().
Widget confirm_label |
Definition at line 395 of file dialogs.c.
Referenced by lesstif_confirm_dialog().
Widget confirm_ok |
Definition at line 395 of file dialogs.c.
Referenced by lesstif_confirm_dialog().
const char dowindows_help[] = "Open various GUI windows." [static] |
const char dowindows_syntax[] = "DoWindows(Layout|Library|Log|Netlist)" [static] |
const char editlayergroups_help[] = "Let the user change the layer groupings" [static] |
const char editlayergroups_syntax[] = "EditLayerGroups()" [static] |
const char export_help[] = "Export the layout." [static] |
const char export_syntax[] = "Export()" [static] |
Widget fsb = 0 [static] |
Definition at line 63 of file dialogs.c.
Referenced by ImportGUI(), Load(), LoadVendor(), Save(), and setup_fsb_dialog().
const char importgui_help[] = "Lets the user choose the schematics to import from" [static] |
const char importgui_syntax[] = "ImportGUI()" [static] |
Widget layer_groups_form = 0 [static] |
Definition at line 1314 of file dialogs.c.
Referenced by EditLayerGroups(), and lesstif_update_layer_groups().
{ {"Load", 0, Load, load_help, load_syntax}, {"LoadVendor", 0, LoadVendor, loadvendor_help, loadvendor_syntax}, {"Save", 0, Save, save_help, save_syntax}, {"DoWindows", 0, DoWindows, dowindows_help, dowindows_syntax}, {"PromptFor", 0, PromptFor, promptfor_help, promptfor_syntax}, {"Confirm", 0, ConfirmAction}, {"About", 0, About, about_help, about_syntax}, {"Print", 0, Print, print_help, print_syntax}, {"PrintCalibrate", 0, PrintCalibrate, printcalibrate_help, printcalibrate_syntax}, {"Export", 0, Export, export_help, export_syntax}, {"AdjustSizes", 0, AdjustSizes, adjustsizes_help, adjustsizes_syntax}, {"EditLayerGroups", 0, EditLayerGroups, editlayergroups_help, editlayergroups_syntax}, {"ImportGUI", 0, ImportGUI, importgui_help, importgui_syntax}, }
Widget lg_buttonform = 0 [static] |
Definition at line 1315 of file dialogs.c.
Referenced by EditLayerGroups(), and lesstif_update_layer_groups().
int lg_c[MAX_ALL_LAYER+1] [static] |
Definition at line 1320 of file dialogs.c.
Referenced by lgbutton_expose(), and lgbutton_resize().
int lg_fa |
Definition at line 1321 of file dialogs.c.
Referenced by lesstif_update_layer_groups(), and lgbutton_expose().
int lg_fd |
Definition at line 1321 of file dialogs.c.
Referenced by lesstif_update_layer_groups(), and lgbutton_expose().
GC lg_gc = 0 [static] |
Definition at line 1322 of file dialogs.c.
Referenced by lgbutton_expose().
int lg_height |
Definition at line 1318 of file dialogs.c.
Referenced by lgbutton_expose(), lgbutton_input(), and lgbutton_resize().
int lg_label_width [static] |
Definition at line 1321 of file dialogs.c.
Referenced by lesstif_update_layer_groups(), lgbutton_expose(), lgbutton_input(), and lgbutton_resize().
int lg_r[MAX_ALL_LAYER+1] [static] |
Definition at line 1319 of file dialogs.c.
Referenced by lgbutton_expose(), and lgbutton_resize().
XtResource lg_resources[] [static] |
{ { "font", "Font", XtRFontStruct, sizeof(XFontStruct*), XtOffset(LgResource*, font), XtRString, (void *)"fixed" }, { "foreground", "Foreground", XtRPixel, sizeof(Pixel), XtOffset(LgResource*, fg), XtRString, (void *)"black" }, { "selectColor", "Foreground", XtRPixel, sizeof(Pixel), XtOffset(LgResource*, sel), XtRString, (void *)"blue" }, { "background", "Background", XtRPixel, sizeof(Pixel), XtOffset(LgResource*, bg), XtRString, (void *)"white" } }
Definition at line 1336 of file dialogs.c.
Referenced by EditLayerGroups().
int lg_setcol[MAX_ALL_LAYER] [static] |
Definition at line 1317 of file dialogs.c.
Referenced by lesstif_update_layer_groups(), lgbutton_expose(), and lgbutton_input().
int lg_width [static] |
Definition at line 1318 of file dialogs.c.
Referenced by lgbutton_expose(), lgbutton_input(), and lgbutton_resize().
Widget lgbuttons[MAX_ALL_LAYER][MAX_GROUP] [static] |
Definition at line 1326 of file dialogs.c.
Referenced by EditLayerGroups(), lesstif_update_layer_groups(), and lgbutton_cb().
Widget lglabels[MAX_ALL_LAYER] [static] |
Definition at line 1325 of file dialogs.c.
Referenced by EditLayerGroups(), and lesstif_update_layer_groups().
LgResource lgr [static] |
const char load_help[] = "Load layout data from a user-selected file." [static] |
const char load_syntax[] = "Load(Layout|LayoutToBuffer|ElementToBuffer|Netlist|Revert)" [static] |
const char loadvendor_help[] = "Loads a user-selected vendor resource file." [static] |
const char loadvendor_syntax[] = "LoadVendor()" [static] |
Widget log_form [static] |
Definition at line 290 of file dialogs.c.
Referenced by DoWindows(), lesstif_logv(), and log_dismiss().
int log_size = 0 [static] |
Definition at line 291 of file dialogs.c.
Referenced by lesstif_logv(), and log_clear().
int n [static] |
Definition at line 30 of file dialogs.c.
Referenced by __r_search(), About(), ActionExecuteFile(), add_edge_inter(), add_line_to_corner(), adjust_vertices(), AdjustSizes(), are_neighbors_unique(), AssignDefaultLayerTypes(), attributes_delete_callback(), bestpolygon(), better_seed(), biggest(), calc_lon(), calc_sums(), calculate_serpintine(), ChangeElementNameSize(), check_adj_pushing_vertex(), CheckPinForRubberbandConnection(), ClosePolygon(), common_draw_pcb_text(), ComputeCost(), config_file_read(), connect_edge(), CoordsToString(), CopyPolygonLowLevel(), count_drill_lines(), create_form_ok_dialog(), CreateNewPCB(), CreateRouteData(), createSortedYList(), deleteSegment(), DestroyElement(), detour_router(), draw_dashed_line(), DrawShortestRats(), EditLayerGroups(), Export(), fiddle_with_bb_layout(), fill_contour(), FillDrill(), find_smallest_degree(), FlagCurrentStyle(), FlagLayerShown(), FreeRotateElementLowLevel(), GatherSubnets(), gcode_choose_groups(), GetLowestDistancePolygonPoint(), GetValueEx(), ghid_attribute_dialog(), ghid_coord_entry_popup_cb(), ghid_dialog_print(), ghid_draw_grid(), ghid_layer_selector_install_pick_items(), ghid_layer_selector_install_view_items(), ghid_route_style_selector_install_items(), ghid_set_layer(), GoToPreviousPoint(), gsvit_choose_groups(), gsvit_write_xnets(), gts_bb_tree_segment_distance(), gts_file_read(), gts_gnode_split_new(), gts_gnode_weight(), gts_graph_bfgg_bisection(), gts_graph_bisection_bkl_refine(), gts_graph_bisection_kl_refine(), gts_graph_distance_sum(), gts_graph_farthest(), gts_graph_ggg_bisection(), gts_graph_read(), gts_graph_read_jostle(), gts_matrix_compatible_row(), gts_matrix_quadratic_optimization(), gts_ngnode_new(), gts_pgraph_new(), gts_pgraph_set_node_number(), gts_psurface_close(), gts_psurface_set_vertex_number(), gts_surface_edge_number(), gts_surface_foreach_face_remove(), gts_surface_read(), gts_surface_vertex_number(), gts_surface_write(), gts_surface_write_oogl(), gts_surface_write_vtk(), gts_volume_optimized_vertex(), gts_wgnode_new(), hid_find_flag(), hid_register_actions(), hid_register_attributes(), hid_register_flags(), hidgl_draw_grid(), ImportGUI(), init_cost_matrix(), InsertPointIntoPolygon(), insertSegment(), lesstif_attribute_dialog(), lesstif_attributes_dialog(), lesstif_attributes_need_rows(), lesstif_confirm_dialog(), lesstif_logv(), lesstif_prompt_for(), lesstif_report_dialog(), lesstif_sizes_reset(), lesstif_update_layer_groups(), lgbutton_resize(), Load(), LoadVendor(), LookupConnectionsToAllElements(), match_neighbor(), MoveElementLowLevel(), MoveElementName(), nelma_choose_groups(), nelma_write_layer(), nelma_write_nets(), nelma_write_objects(), netlist_recalculate(), netscore_create(), NotifyMode(), num_shared_vertices(), original_poly(), partition_update(), penalty3(), pgedge_write(), png_hid_export_to_file(), pointslope(), poly_Valid(), Print(), print_costmatrix(), print_defaults(), print_vertex(), PrintFab(), privcurve_init(), process_path(), qloop(), r_delete_element(), RemoveExcessPolygonPoints(), ReportDrills(), ReportNetLength(), res_scan_bytes(), restore_edge(), RotateElementLowLevel(), RotateElementName(), route_checkpoint(), route_restore(), rubber_callback(), Save(), SetElementBoundingBox(), SetRouteStyle(), setup_fsb_dialog(), size_field(), smartdisperse(), surface_read(), touch_conflicts(), tri_data_num_unused_neighbors2(), uninit_strflags_buf(), usage_attr(), vertex_normal_attributes(), WriteElementData(), WriteLayerData(), WritePCBNetlistData(), yy_flex_strncpy(), and yy_scan_bytes().
int ok [static] |
Definition at line 33 of file dialogs.c.
Referenced by ActionRenumber(), check_bg(), check_edge(), check_surface_edge(), dialog_callback(), gts_graph_bisection_check(), gts_surface_inter_check(), hid_parse_command_line(), hid_set_attribute(), lesstif_confirm_dialog(), parse_optionv(), and wait_for_dialog().
int pending_newline = 0 [static] |
Definition at line 292 of file dialogs.c.
Referenced by lesstif_logv(), and log_clear().
const char print_help[] = "Print the layout." [static] |
const char print_syntax[] = "Print()" [static] |
const char printcalibrate_help[] = "Calibrate the printer." [static] |
const char printcalibrate_syntax[] = "PrintCalibrate()" [static] |
HID_Attribute printer_calibrate_attrs[] [static] |
{ {"Enter Values here:", "", HID_Label, 0, 0, {0, 0, 0}, 0, 0}, {"x-calibration", "X scale for calibrating your printer", HID_Real, 0.5, 25, {0, 0, 1.00}, 0, 0}, {"y-calibration", "Y scale for calibrating your printer", HID_Real, 0.5, 25, {0, 0, 1.00}, 0, 0} }
Definition at line 1000 of file dialogs.c.
Referenced by PrintCalibrate().
HID_Attr_Val printer_calibrate_values[3] [static] |
Widget prompt_dialog = 0 [static] |
Definition at line 534 of file dialogs.c.
Referenced by lesstif_prompt_for().
Widget prompt_label [static] |
Definition at line 535 of file dialogs.c.
Referenced by lesstif_prompt_for().
Widget prompt_text |
Definition at line 535 of file dialogs.c.
Referenced by lesstif_prompt_for().
const char promptfor_help[] = "Prompt for a response." [static] |
const char promptfor_syntax[] = "PromptFor([message[,default]])" [static] |
Widget report = 0 [static] |
Definition at line 485 of file dialogs.c.
Referenced by lesstif_report_dialog(), Report(), and ReportDialog().
Widget report_form |
Definition at line 485 of file dialogs.c.
Referenced by lesstif_report_dialog().
const char save_help[] = "Save layout data to a user-selected file." [static] |
const char save_syntax[] = "Save(PasteBuffer)" [static] |
Widget sizes_dialog = 0 [static] |
Definition at line 1120 of file dialogs.c.
Referenced by AdjustSizes(), and lesstif_sizes_reset().
Widget sz_bloat |
Definition at line 1121 of file dialogs.c.
Referenced by AdjustSizes(), lesstif_sizes_reset(), and sizes_set().
Widget sz_drc_drill |
Definition at line 1121 of file dialogs.c.
Referenced by AdjustSizes(), lesstif_sizes_reset(), and sizes_set().
Widget sz_drc_ring |
Definition at line 1121 of file dialogs.c.
Referenced by AdjustSizes(), lesstif_sizes_reset(), and sizes_set().
Widget sz_drc_slk |
Definition at line 1121 of file dialogs.c.
Referenced by AdjustSizes(), lesstif_sizes_reset(), and sizes_set().
Widget sz_drc_wid |
Definition at line 1121 of file dialogs.c.
Referenced by AdjustSizes(), lesstif_sizes_reset(), and sizes_set().
Widget sz_pcb_h |
Definition at line 1121 of file dialogs.c.
Referenced by AdjustSizes(), lesstif_sizes_reset(), and sizes_set().
Widget sz_pcb_w [static] |
Definition at line 1121 of file dialogs.c.
Referenced by AdjustSizes(), lesstif_sizes_reset(), and sizes_set().
Widget sz_reset |
Definition at line 1124 of file dialogs.c.
Referenced by AdjustSizes().
Widget sz_set [static] |
Definition at line 1124 of file dialogs.c.
Referenced by AdjustSizes().
Widget sz_shrink |
Definition at line 1121 of file dialogs.c.
Referenced by AdjustSizes(), lesstif_sizes_reset(), and sizes_set().
Widget sz_text [static] |
Definition at line 1123 of file dialogs.c.
Referenced by AdjustSizes(), lesstif_sizes_reset(), and sizes_set().
Widget sz_units |
Definition at line 1124 of file dialogs.c.
Referenced by AdjustSizes(), and lesstif_sizes_reset().
XmString xms_all |
Definition at line 64 of file dialogs.c.
Referenced by setup_fsb_dialog().
XmString xms_fp |
Definition at line 64 of file dialogs.c.
Referenced by Load(), and setup_fsb_dialog().
XmString xms_load |
Definition at line 64 of file dialogs.c.
Referenced by Load(), and setup_fsb_dialog().
XmString xms_loadv |
Definition at line 64 of file dialogs.c.
Referenced by LoadVendor(), and setup_fsb_dialog().
XmString xms_net |
Definition at line 64 of file dialogs.c.
Referenced by Load(), and setup_fsb_dialog().
XmString xms_pcb [static] |
Definition at line 64 of file dialogs.c.
Referenced by Load(), Save(), and setup_fsb_dialog().
XmString xms_save |
Definition at line 64 of file dialogs.c.
Referenced by Save(), and setup_fsb_dialog().
XmString xms_vend |
Definition at line 64 of file dialogs.c.
Referenced by LoadVendor(), and setup_fsb_dialog().