pcb 4.1.1
An interactive printed circuit board layout editor.

lesstif.h

Go to the documentation of this file.
00001 #define app_context lesstif_app_context
00002 #define appwidget lesstif_appwidget
00003 #define display lesstif_display
00004 #define screen_s lesstif_screen_s
00005 #define screen lesstif_screen
00006 #define mainwind lesstif_mainwind
00007 #define work_area lesstif_work_area
00008 #define messages lesstif_messages
00009 #define command lesstif_command
00010 #define hscroll lesstif_hscroll
00011 #define vscroll lesstif_vscroll
00012 #define m_click lesstif_message_click
00013 
00014 extern XtAppContext app_context;
00015 extern Widget appwidget;
00016 extern Display *display;
00017 extern Screen *screen_s;
00018 extern int screen;
00019 
00020 extern Widget mainwind, work_area, command, hscroll, vscroll;
00021 extern Widget m_click;
00022 
00023 extern Widget lesstif_menu (Widget, char *, Arg *, int);
00024 extern int lesstif_key_event (XKeyEvent *);
00025 extern int lesstif_button_event (Widget w, XEvent * e);
00026 
00027 /* Returns TRUE if the point mapped to the PCB region, FALSE (=0) if
00028    we're off-board.  Note that *pcbxy is always written to, even if
00029    out of range.  */
00030 extern int lesstif_winxy_to_pcbxy (int winx, int winy, int *pcbx, int *pcby);
00031 
00032 /* Returns TRUE if the point is in the window, FALSE (=0) otherwise. */
00033 extern int lesstif_pcbxy_to_winxy (int pcbx, int pcby, int *winx, int *winy);
00034 
00035 extern void lesstif_need_idle_proc (void);
00036 extern void lesstif_show_crosshair (int);
00037 extern void lesstif_invalidate_all (void);
00038 extern void lesstif_coords_to_pcb (int, int, Coord *, Coord *);
00039 extern void lesstif_get_xy (const char *msg);
00040 extern void lesstif_update_widget_flags (void);
00041 extern int lesstif_call_action (const char *, int, char **);
00042 extern void lesstif_sizes_reset (void);
00043 extern void lesstif_pan_fixup (void);
00044 extern void lesstif_show_library (void);
00045 extern void lesstif_show_netlist (void);
00046 extern Pixel lesstif_parse_color (char *value);
00047 extern void lesstif_insert_style_buttons (Widget menu);
00048 extern void lesstif_styles_update_values ();
00049 extern void lesstif_update_layer_groups ();
00050 extern void lesstif_update_status_line ();
00051 extern char *lesstif_prompt_for (const char *, const char *);
00052 extern char *lesstif_fileselect (const char *, const char *,
00053                                  char *, char *,
00054                                  const char *, int);
00055 extern void lesstif_log (const char *fmt, ...);
00056 extern void lesstif_attributes_dialog (char *, AttributeListType *);
00057 
00058 #ifndef XtRPCBCoord
00059 #define XtRPCBCoord     "PCBCoord"
00060 #endif
00061 
00062 #define need_idle_proc lesstif_need_idle_proc
00063 #define show_crosshair lesstif_show_crosshair
00064 
00065 static XmString
00066 XmStringCreatePCB (char *x)
00067 {
00068   if (x && x[0])
00069     x = gettext (x);
00070   return XmStringCreateLtoR (x, XmFONTLIST_DEFAULT_TAG);
00071 }