pcb 4.1.1
An interactive printed circuit board layout editor.
|
Go to the source code of this file.
Defines | |
#define | app_context lesstif_app_context |
#define | appwidget lesstif_appwidget |
#define | display lesstif_display |
#define | screen_s lesstif_screen_s |
#define | screen lesstif_screen |
#define | mainwind lesstif_mainwind |
#define | work_area lesstif_work_area |
#define | messages lesstif_messages |
#define | command lesstif_command |
#define | hscroll lesstif_hscroll |
#define | vscroll lesstif_vscroll |
#define | m_click lesstif_message_click |
#define | XtRPCBCoord "PCBCoord" |
#define | need_idle_proc lesstif_need_idle_proc |
#define | show_crosshair lesstif_show_crosshair |
Functions | |
Widget | lesstif_menu (Widget, char *, Arg *, int) |
int | lesstif_key_event (XKeyEvent *) |
int | lesstif_button_event (Widget w, XEvent *e) |
int | lesstif_winxy_to_pcbxy (int winx, int winy, int *pcbx, int *pcby) |
int | lesstif_pcbxy_to_winxy (int pcbx, int pcby, int *winx, int *winy) |
void | lesstif_need_idle_proc (void) |
void | lesstif_show_crosshair (int) |
void | lesstif_invalidate_all (void) |
void | lesstif_coords_to_pcb (int, int, Coord *, Coord *) |
void | lesstif_get_xy (const char *msg) |
void | lesstif_update_widget_flags (void) |
int | lesstif_call_action (const char *, int, char **) |
void | lesstif_sizes_reset (void) |
void | lesstif_pan_fixup (void) |
void | lesstif_show_library (void) |
void | lesstif_show_netlist (void) |
Pixel | lesstif_parse_color (char *value) |
void | lesstif_insert_style_buttons (Widget menu) |
void | lesstif_styles_update_values () |
void | lesstif_update_layer_groups () |
void | lesstif_update_status_line () |
char * | lesstif_prompt_for (const char *, const char *) |
char * | lesstif_fileselect (const char *, const char *, char *, char *, const char *, int) |
void | lesstif_log (const char *fmt,...) |
void | lesstif_attributes_dialog (char *, AttributeListType *) |
static XmString | XmStringCreatePCB (char *x) |
Variables | |
XtAppContext | app_context |
Widget | appwidget |
Display * | display |
Screen * | screen_s |
int | screen |
Widget | mainwind |
Widget | work_area |
Widget | command |
Widget | hscroll |
Widget | vscroll |
Widget | m_click |
#define app_context lesstif_app_context |
Definition at line 1 of file lesstif.h.
Referenced by lesstif_add_block_hook(), lesstif_add_timer(), lesstif_do_exit(), lesstif_do_export(), lesstif_get_xy(), lesstif_need_idle_proc(), lesstif_parse_arguments(), lesstif_progress(), lesstif_watch_file(), and wait_for_dialog().
#define appwidget lesstif_appwidget |
Definition at line 2 of file lesstif.h.
Referenced by lesstif_do_export(), lesstif_parse_arguments(), and PCBChanged().
#define command lesstif_command |
Definition at line 9 of file lesstif.h.
Referenced by ActionExecCommand(), command_entry_activate_cb(), EvaluateFilename(), ExpandFilename(), ghid_handle_user_command(), Parse(), ReadLibraryContents(), ReadNetlist(), and WritePipe().
#define display lesstif_display |
Definition at line 3 of file lesstif.h.
Referenced by ActionDisplay(), add_resource_to_menu(), Benchmark(), Busy(), callback(), Center(), do_color(), draw_dozen_cross(), draw_right_cross(), draw_slanted_cross(), DrawBackgroundImage(), ghid_set_crosshair(), idle_proc(), lesstif_do_export(), lesstif_draw_arc(), lesstif_draw_grid(), lesstif_draw_line(), lesstif_draw_rect(), lesstif_fill_circle(), lesstif_fill_polygon(), lesstif_fill_rect(), lesstif_flush_debug_draw(), lesstif_get_xy(), lesstif_menu(), lesstif_parse_arguments(), lesstif_parse_color(), lesstif_progress_dialog(), lesstif_set_color(), lesstif_set_crosshair(), lesstif_show_crosshair(), lesstif_use_mask(), lgbutton_expose(), LoadBackgroundFile(), mod_changed(), pinout_callback(), set_gc(), work_area_expose(), work_area_first_expose(), work_area_input(), work_area_make_pixmaps(), and work_area_resize().
#define hscroll lesstif_hscroll |
Definition at line 10 of file lesstif.h.
Referenced by lesstif_do_export(), lesstif_pan_fixup(), PCBChanged(), and SwapSides().
#define m_click lesstif_message_click |
Definition at line 12 of file lesstif.h.
Referenced by lesstif_do_export(), and lesstif_get_xy().
#define mainwind lesstif_mainwind |
Definition at line 6 of file lesstif.h.
Referenced by About(), AdjustSizes(), AdjustStyle(), build_library_dialog(), build_netlist_dialog(), create_form_ok_dialog(), EditLayerGroups(), lesstif_attributes_dialog(), lesstif_confirm_dialog(), lesstif_do_export(), lesstif_logv(), lesstif_progress_dialog(), lesstif_prompt_for(), lesstif_report_dialog(), lesstif_set_crosshair(), lesstif_show_item(), lesstif_show_library(), and setup_fsb_dialog().
#define need_idle_proc lesstif_need_idle_proc |
Definition at line 62 of file lesstif.h.
Referenced by lesstif_invalidate_lr(), lesstif_notify_crosshair_change(), lesstif_notify_mark_change(), lesstif_set_crosshair(), lesstif_show_crosshair(), and work_area_input().
#define screen lesstif_screen |
Definition at line 5 of file lesstif.h.
Referenced by Center(), DrawLayer(), ghid_set_crosshair(), lesstif_do_export(), lesstif_menu(), lesstif_parse_arguments(), lesstif_set_color(), lesstif_use_mask(), and work_area_make_pixmaps().
#define screen_s lesstif_screen_s |
Definition at line 4 of file lesstif.h.
Referenced by lesstif_parse_arguments().
#define show_crosshair lesstif_show_crosshair |
Definition at line 63 of file lesstif.h.
Referenced by idle_proc(), work_area_expose(), work_area_input(), and work_area_resize().
#define vscroll lesstif_vscroll |
Definition at line 11 of file lesstif.h.
Referenced by lesstif_do_export(), lesstif_pan_fixup(), PCBChanged(), and SwapSides().
#define work_area lesstif_work_area |
Definition at line 7 of file lesstif.h.
Referenced by callback(), DrawBackgroundImage(), lesstif_button_event(), lesstif_do_export(), lesstif_key_event(), and PCBChanged().
#define XtRPCBCoord "PCBCoord" |
Definition at line 59 of file lesstif.h.
Referenced by lesstif_parse_arguments().
void lesstif_attributes_dialog | ( | char * | , |
AttributeListType * | |||
) |
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().
int lesstif_button_event | ( | Widget | w, |
XEvent * | e | ||
) |
int lesstif_call_action | ( | const char * | , |
int | , | ||
char ** | |||
) |
Definition at line 335 of file hid/lesstif/main.c.
Referenced by lesstif_get_coords().
char* lesstif_fileselect | ( | const char * | , |
const char * | , | ||
char * | , | ||
char * | , | ||
const char * | , | ||
int | |||
) |
Definition at line 524 of file dialogs.c.
References lesstif_prompt_for().
Referenced by hid_lesstif_init().
void lesstif_get_xy | ( | const char * | msg | ) |
Definition at line 819 of file menu.c.
References app_context, args, display, have_xy, m_click, n, stdarg, and XmStringCreatePCB().
Referenced by lesstif_get_coords().
void lesstif_insert_style_buttons | ( | Widget | menu | ) |
Definition at line 440 of file styles.c.
References args, n, RouteStyleType::Name, num_style_buttons, PCB, realloc(), PCBType::RouteStyle, s, stdarg, style_selected(), update_style_buttons(), StyleButtons::w, and XmStringCreatePCB().
Referenced by add_resource_to_menu().
void lesstif_invalidate_all | ( | void | ) |
Definition at line 2991 of file hid/lesstif/main.c.
References lesstif_invalidate_lr(), PCBType::MaxHeight, PCBType::MaxWidth, and PCB.
Referenced by hid_lesstif_init(), layer_button_callback(), layerpick_button_callback(), lesstif_pan_fixup(), scroll_callback(), SwapSides(), and work_area_first_expose().
int lesstif_key_event | ( | XKeyEvent * | ) |
Definition at line 1134 of file menu.c.
References acc_table_t::a, acc_num, acc_sort_rev(), acc_table, action_x, acc_table_t::c, cur_ntable, cur_table, dump_multi, have_xy, hid_parse_actions(), KM, lesstif_log(), M_Alt, M_Ctrl, M_Multi, M_Shift, mods, resource_type, acc_table_t::u, u(), and work_area.
Referenced by work_area_input().
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().
Widget lesstif_menu | ( | Widget | , |
char * | , | ||
Arg * | , | ||
int | |||
) |
Definition at line 1451 of file menu.c.
References add_resource_to_menu(), callback(), cmap, Concat(), display, do_dump_keys, DumpKeys2(), filename, homedir, lesstif_pcbmenu_path, load_mouse_resource(), Message(), R_OK, resource_parse(), resource_subres(), and screen.
Referenced by lesstif_do_export().
void lesstif_need_idle_proc | ( | void | ) |
Definition at line 2972 of file hid/lesstif/main.c.
References app_context, idle_proc(), and window.
Referenced by callback().
void lesstif_pan_fixup | ( | void | ) |
Definition at line 1233 of file hid/lesstif/main.c.
References hscroll, lesstif_invalidate_all(), PCBType::MaxHeight, PCBType::MaxWidth, PCB, set_scroll(), view_height, view_left_x, view_top_y, view_width, view_zoom, vscroll, and zoom_by().
Referenced by Center(), lesstif_set_crosshair(), Pan(), sizes_set(), zoom_max(), and zoom_to().
Pixel lesstif_parse_color | ( | char * | value | ) |
Definition at line 342 of file hid/lesstif/main.c.
References colormap, and display.
Referenced by LayersChanged(), lesstif_show_crosshair(), and work_area_first_expose().
int lesstif_pcbxy_to_winxy | ( | int | pcbx, |
int | pcby, | ||
int * | winx, | ||
int * | winy | ||
) |
char* lesstif_prompt_for | ( | const char * | , |
const char * | |||
) |
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_show_crosshair | ( | int | ) |
Definition at line 1616 of file hid/lesstif/main.c.
References bgcolor, crosshair_in_window, crosshair_x, crosshair_y, SettingType::CrosshairColor, display, draw_crosshair(), lesstif_parse_color(), need_idle_proc, Settings, view_height, view_width, Vx(), Vy(), and window.
Referenced by callback(), command_callback(), and lesstif_set_crosshair().
void lesstif_show_library | ( | void | ) |
Definition at line 172 of file library.c.
References library_dialog, LibraryChanged(), and mainwind.
Referenced by DoWindows().
void lesstif_show_netlist | ( | void | ) |
Definition at line 477 of file hid/lesstif/netlist.c.
References build_netlist_dialog(), and netlist_dialog.
Referenced by DoWindows().
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_styles_update_values | ( | ) |
Definition at line 120 of file styles.c.
References SettingType::grid_unit, lesstif_update_status_line(), Settings, style_dialog, unit::suffix, update_values(), and ustr.
Referenced by 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().
void lesstif_update_status_line | ( | ) |
Definition at line 2504 of file hid/lesstif/main.c.
References ARC_MODE, ARROW_MODE, COPY_MODE, cur_clip(), INSERTPOINT_MODE, LINE_MODE, LOCK_MODE, m_status, SettingType::Mode, MOVE_MODE, NO_MODE, PASTEBUFFER_MODE, pcb_g_strdup_printf(), POLYGON_MODE, RECTANGLE_MODE, REMOVE_MODE, ROTATE_MODE, RUBBERBANDMOVE_MODE, Settings, stdarg, TEXT_MODE, THERMAL_MODE, UUNIT, VIA_MODE, and XmStringCreatePCB().
Referenced by idle_proc(), lesstif_styles_update_values(), style_selected(), and update_values().
void lesstif_update_widget_flags | ( | void | ) |
Definition at line 722 of file menu.c.
References args, hid_get_flag(), n_wflags, and WidgetFlagType::oldval.
Referenced by idle_proc().
int lesstif_winxy_to_pcbxy | ( | int | winx, |
int | winy, | ||
int * | pcbx, | ||
int * | pcby | ||
) |
static XmString XmStringCreatePCB | ( | char * | x | ) | [static] |
Definition at line 66 of file lesstif.h.
References gettext.
Referenced by About(), add_resource_to_menu(), build_netlist_dialog(), cursor_pos_to_widget(), EditLayerGroups(), idle_proc(), ImportGUI(), insert_layerpick_buttons(), insert_layerview_buttons(), layerpick_button_callback(), LayersChanged(), lesstif_attribute_dialog(), lesstif_confirm_dialog(), lesstif_do_export(), lesstif_get_xy(), lesstif_insert_style_buttons(), lesstif_progress_dialog(), lesstif_prompt_for(), lesstif_sizes_reset(), lesstif_update_layer_groups(), lesstif_update_status_line(), LesstifNetlistChanged(), LesstifNetlistShow(), LibraryChanged(), mark_delta_to_widget(), nbcb_rat_off(), nbcb_rat_on(), netlist_button(), netlist_select(), pick_net(), RouteStylesChanged(), setup_fsb_dialog(), size_field(), and style_button().
XtAppContext app_context |
Definition at line 98 of file hid/lesstif/main.c.
Widget appwidget |
Definition at line 99 of file hid/lesstif/main.c.
Widget command |
Definition at line 159 of file hid/lesstif/main.c.
Display* display |
Definition at line 100 of file hid/lesstif/main.c.
Widget hscroll |
Definition at line 159 of file hid/lesstif/main.c.
Widget m_click |
Definition at line 163 of file hid/lesstif/main.c.
Widget mainwind |
Definition at line 158 of file hid/lesstif/main.c.
int screen |
Definition at line 126 of file hid/lesstif/main.c.
Screen* screen_s |
Definition at line 125 of file hid/lesstif/main.c.
Widget vscroll |
Definition at line 159 of file hid/lesstif/main.c.
Widget work_area |
Definition at line 159 of file hid/lesstif/main.c.