pcb 4.1.1
An interactive printed circuit board layout editor.

hid/lesstif/main.c File Reference

The lesstif HID implementation. More...

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <math.h>
#include <unistd.h>
#include <signal.h>
#include <sys/time.h>
#include "xincludes.h"
#include "global.h"
#include "data.h"
#include "action.h"
#include "crosshair.h"
#include "mymem.h"
#include "misc.h"
#include "pcb-printf.h"
#include "resource.h"
#include "clip.h"
#include "error.h"
#include "hid.h"
#include "hid_draw.h"
#include "../hidint.h"
#include "hid/common/hidnogui.h"
#include "hid/common/draw_helpers.h"
#include "hid/common/hid_resource.h"
#include "lesstif.h"
#include <sys/poll.h>
Include dependency graph for hid/lesstif/main.c:

Go to the source code of this file.

Data Structures

struct  hid_gc_struct
struct  PinoutData
union  val_union
struct  TimerStruct
struct  WatchStruct
struct  BlockHookStruct

Defines

#define XtRDouble   "Double"
#define MAX_ZOOM_SCALE   10
#define UUNIT   Settings.grid_unit->allow
#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 HA_colormap   0

Typedefs

typedef struct hid_gc_struct hid_gc_struct
typedef struct PinoutData PinoutData

Functions

static hidGC lesstif_make_gc (void)
static void ShowCrosshair (bool show)
static int flag_flipx (void *data)
static int flag_flipy (void *data)
 REGISTER_ATTRIBUTES (lesstif_attribute_list)
static int Vy (Coord y)
static int Vz (Coord z)
static Coord Px (int x)
static Coord Py (int y)
static Coord Pz (int z)
void lesstif_coords_to_pcb (int vx, int vy, Coord *px, Coord *py)
Pixel lesstif_parse_color (char *value)
static void do_color (char *value, char *which)
static char * cur_clip ()
static int Busy (int argc, char **argv, Coord x, Coord y)
static int PointCursor (int argc, char **argv, Coord x, Coord y)
static int PCBChanged (int argc, char **argv, Coord x, Coord y)
static int SetUnits (int argc, char **argv, Coord x, Coord y)
static int ZoomAction (int argc, char **argv, Coord x, Coord y)
static int PanAction (int argc, char **argv, Coord x, Coord y)
static int group_showing (int g, int *c)
static int SwapSides (int argc, char **argv, Coord x, Coord y)
static void command_callback (Widget w, XtPointer uptr, XmTextVerifyCallbackStruct *cbs)
static void command_event_handler (Widget w, XtPointer p, XEvent *e, Boolean *cont)
static int Command (int argc, char **argv, Coord x, Coord y)
static int Benchmark (int argc, char **argv, Coord x, Coord y)
static int Center (int argc, char **argv, Coord x, Coord y)
static int CursorAction (int argc, char **argv, Coord x, Coord y)
 REGISTER_ACTIONS (lesstif_main_action_list)
static void LoadBackgroundFile (FILE *f, char *filename)
void LoadBackgroundImage (char *filename)
static void DrawBackgroundImage ()
static HID_Attributelesstif_get_export_options (int *n)
static void set_scroll (Widget s, int pos, int view, int pcb)
void lesstif_pan_fixup ()
static void zoom_max ()
static void zoom_to (double new_zoom, int x, int y)
static void zoom_toggle (int x, int y)
void zoom_by (double factor, int x, int y)
static void Pan (int mode, int x, int y)
static void mod_changed (XKeyEvent *e, int set)
static void work_area_input (Widget w, XtPointer v, XEvent *e, Boolean *ctd)
static void draw_right_cross (GC xor_gc, int x, int y, int view_width, int view_height)
static void draw_slanted_cross (GC xor_gc, int x, int y, int view_width, int view_height)
static void draw_dozen_cross (GC xor_gc, int x, int y, int view_width, int view_height)
static void draw_crosshair (GC xor_gc, int x, int y, int view_width, int view_height)
void lesstif_show_crosshair (int show)
static void work_area_expose (Widget work_area, void *me, XmDrawingAreaCallbackStruct *cbs)
static void scroll_callback (Widget scroll, int *view_dim, XmScrollBarCallbackStruct *cbs)
static void work_area_make_pixmaps (Dimension width, Dimension height)
static void work_area_resize (Widget work_area, void *me, XmDrawingAreaCallbackStruct *cbs)
static void work_area_first_expose (Widget work_area, void *me, XmDrawingAreaCallbackStruct *cbs)
static Widget make_message (char *name, Widget left, int resizeable)
static void lesstif_do_export (HID_Attr_Val *options)
static void lesstif_do_exit (HID *hid)
void lesstif_uninit_menu (void)
static void lesstif_uninit (HID *hid)
static Boolean pcb_cvt_string_to_double (Display *d, XrmValue *args, Cardinal *num_args, XrmValue *from, XrmValue *to, XtPointer *data)
static Boolean pcb_cvt_string_to_coord (Display *d, XrmValue *args, Cardinal *num_args, XrmValue *from, XrmValue *to, XtPointer *data)
static void mainwind_delete_cb ()
static void lesstif_listener_cb (XtPointer client_data, int *fid, XtInputId *id)
static void lesstif_parse_arguments (int *argc, char ***argv)
void lesstif_draw_grid (BoxType *region)
 Draw the grid on the lesstif canvas.
static void mark_delta_to_widget (Coord dx, Coord dy, Widget w)
static int cursor_pos_to_widget (Coord x, Coord y, Widget w, int prev_state)
void lesstif_update_status_line ()
static Boolean idle_proc (XtPointer dummy)
void lesstif_need_idle_proc ()
static void lesstif_invalidate_lr (Coord l, Coord r, Coord t, Coord b)
void lesstif_invalidate_all (void)
static void lesstif_notify_crosshair_change (bool changes_complete)
static void lesstif_notify_mark_change (bool changes_complete)
static int lesstif_set_layer (const char *name, int group, int empty)
static void lesstif_destroy_gc (hidGC gc)
static void lesstif_use_mask (enum mask_mode mode)
static void lesstif_set_color (hidGC gc, const char *name)
static void set_gc (hidGC gc)
static void lesstif_set_line_cap (hidGC gc, EndCapStyle style)
static void lesstif_set_line_width (hidGC gc, Coord width)
static void lesstif_set_draw_xor (hidGC gc, int xor_set)
static void lesstif_draw_line (hidGC gc, Coord x1, Coord y1, Coord x2, Coord y2)
static void lesstif_draw_arc (hidGC gc, Coord cx, Coord cy, Coord width, Coord height, Angle start_angle, Angle delta_angle)
static void lesstif_draw_rect (hidGC gc, Coord x1, Coord y1, Coord x2, Coord y2)
static void lesstif_fill_circle (hidGC gc, Coord cx, Coord cy, Coord radius)
static void lesstif_fill_polygon (hidGC gc, int n_coords, Coord *x, Coord *y)
static void lesstif_fill_rect (hidGC gc, Coord x1, Coord y1, Coord x2, Coord y2)
static void lesstif_calibrate (double xval, double yval)
static int lesstif_shift_is_pressed (void)
static int lesstif_control_is_pressed (void)
static int lesstif_mod1_is_pressed (void)
void lesstif_get_coords (const char *msg, Coord *x, Coord *y)
static void lesstif_set_crosshair (int x, int y, int action)
static void lesstif_timer_cb (XtPointer *p, XtIntervalId *id)
static hidval lesstif_add_timer (void(*func)(hidval user_data), unsigned long milliseconds, hidval user_data)
static void lesstif_stop_timer (hidval hv)
static void lesstif_watch_cb (XtPointer client_data, int *fid, XtInputId *id)
hidval lesstif_watch_file (int fd, unsigned int condition, void(*func)(hidval watch, int fd, unsigned int condition, hidval user_data), hidval user_data)
void lesstif_unwatch_file (hidval data)
static void lesstif_block_hook_cb (XtPointer user_data)
static hidval lesstif_add_block_hook (void(*func)(hidval data), hidval user_data)
static void lesstif_stop_block_hook (hidval mlpoll)
void lesstif_logv (const char *fmt, va_list ap)
int lesstif_confirm_dialog (char *msg,...)
int lesstif_close_confirm_dialog ()
void lesstif_report_dialog (char *title, char *msg)
int lesstif_attribute_dialog (HID_Attribute *attrs, int n_attrs, HID_Attr_Val *results, const char *title, const char *descr)
static void pinout_callback (Widget da, PinoutData *pd, XmDrawingAreaCallbackStruct *cbs)
static void pinout_unmap (Widget w, PinoutData *pd, void *v)
BoxTypehid_get_extents (void *item)
 Convenience function that calls the expose callback for the item, and returns the extents of what was drawn.
static void lesstif_show_item (void *item)
static void lesstif_beep (void)
static void progress_cancel_callback (Widget w, void *v, void *cbs)
static void lesstif_progress_dialog (int so_far, int total, const char *msg)
static int lesstif_progress (int so_far, int total, const char *message)
static HID_DRAWlesstif_request_debug_draw (void)
static void lesstif_flush_debug_draw (void)
static void lesstif_finish_debug_draw (void)
void hid_lesstif_init ()

Variables

static HID lesstif_hid
static HID_DRAW lesstif_graphics
XtAppContext app_context
Widget appwidget
Display * display
static Window window = 0
static Cursor my_cursor = 0
static int old_cursor_mode = -1
static int over_point = 0
static Pixmap pixmap = 0
static Pixmap main_pixmap = 0
static Pixmap mask_pixmap = 0
static Pixmap mask_bitmap = 0
static enum mask_mode use_mask = HID_MASK_OFF
static int use_xrender = 0
static int pixmap_w = 0
static int pixmap_h = 0
Screen * screen_s
int screen
static Colormap colormap
static GC my_gc = 0
static GC bg_gc
static GC clip_gc = 0
static GC bset_gc = 0
static GC bclear_gc = 0
static GC mask_gc
static Pixel bgcolor
static Pixel offlimit_color
static Pixel grid_color
static int bgred
static int bggreen
static int bgblue
static GC arc1_gc
static GC arc2_gc
static hidGC crosshair_gc
static PinoutDatapinouts = 0
static PinoutDatapinout = 0
static int crosshair_x = 0
static int crosshair_y = 0
static int in_move_event = 0
static int crosshair_in_window = 1
Widget mainwind
Widget work_area
Widget messages
Widget command
Widget hscroll
Widget vscroll
static Widget m_mark
static Widget m_crosshair
static Widget m_grid
static Widget m_zoom
static Widget m_mode
static Widget m_status
static Widget m_rats
Widget lesstif_m_layer
Widget m_click
static int view_width
static int view_height
static int view_left_x = 0
static int view_top_y = 0
static double view_zoom = MIL_TO_COORD (10)
static double prev_view_zoom = MIL_TO_COORD (10)
static bool flip_x = 0
static bool flip_y = 0
static bool autofade = 0
static bool crosshair_on = true
HID_Flag lesstif_main_flag_list []
static Arg args [30]
static int n
static int use_private_colormap = 0
static int stdin_listen = 0
static char * background_image_file = 0
char * lesstif_pcbmenu_path = "pcb-menu.res"
HID_Attribute lesstif_attribute_list []
static const char setunits_syntax [] = "SetUnits(mm|mil)"
static const char setunits_help [] = "Set the default measurement units."
static const char zoom_syntax [] = "Zoom(factor)"
static const char zoom_help [] = "Various zoom factor changes."
static int pan_thumb_mode
static const char swapsides_syntax [] = "SwapSides(|v|h|r)"
static const char swapsides_help [] = "Swaps the side of the board you're looking at."
static Widget m_cmd = 0
static Widget m_cmd_label
static const char command_syntax [] = "Command()"
static const char command_help [] = "Displays the command line input window."
static const char benchmark_syntax [] = "Benchmark()"
static const char benchmark_help [] = "Benchmark the GUI speed."
static const char cursor_syntax [] = "Cursor(Type,DeltaUp,DeltaRight,Units)"
static const char cursor_help [] = "Move the cursor."
HID_Action lesstif_main_action_list []
 pixel_type = PT_unknown
static int panning = 0
static int shift_pressed
static int ctrl_pressed
static int alt_pressed
XrmOptionDescRec lesstif_options []
XtResource lesstif_resources []
static int idle_proc_set = 0
static int need_redraw = 0
static bool progress_cancelled = false
static Widget progress_dialog = 0
static Widget progress_cancel
static Widget progress_label
static Widget progress_scale

Detailed Description

The lesstif HID implementation.


Copyright.


PCB, interactive printed circuit board design

Copyright (C) 1994,1995,1996,1997,1998,2005,2006 Thomas Nau

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Contact addresses for paper mail and Email: Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany Thomas.Nau@rz.uni-ulm.de

Definition in file hid/lesstif/main.c.


Define Documentation

#define CRASH   fprintf(stderr, "HID error: pcb called unimplemented GUI function %s\n", __FUNCTION__), abort()

Definition at line 96 of file hid/lesstif/main.c.

Referenced by lesstif_calibrate().

#define HA_colormap   0
#define MAX_ZOOM_SCALE   10

Definition at line 79 of file hid/lesstif/main.c.

Referenced by zoom_to().

#define UUNIT   Settings.grid_unit->allow
#define XtRDouble   "Double"

Definition at line 75 of file hid/lesstif/main.c.

Referenced by lesstif_parse_arguments().


Typedef Documentation

typedef struct hid_gc_struct hid_gc_struct
typedef struct PinoutData PinoutData

Function Documentation

static int Benchmark ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int Busy ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 381 of file hid/lesstif/main.c.

References display, old_cursor_mode, and window.

static int Center ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 894 of file hid/lesstif/main.c.

References display, PCBType::Grid, GridFit(), PCBType::GridOffsetX, PCBType::GridOffsetY, lesstif_pan_fixup(), PCB, view_height, view_left_x, view_top_y, view_width, view_zoom, Vx(), Vy(), and window.

Here is the call graph for this function:

static int Command ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 836 of file hid/lesstif/main.c.

References m_cmd_label.

static void command_callback ( Widget  w,
XtPointer  uptr,
XmTextVerifyCallbackStruct *  cbs 
) [static]

Definition at line 741 of file hid/lesstif/main.c.

References hid_parse_command(), lesstif_show_crosshair(), m_cmd_label, and s.

Referenced by lesstif_do_export().

Here is the call graph for this function:

static void command_event_handler ( Widget  w,
XtPointer  p,
XEvent *  e,
Boolean *  cont 
) [static]

Definition at line 760 of file hid/lesstif/main.c.

References m_cmd_label.

Referenced by lesstif_do_export().

static char* cur_clip ( ) [static]

Definition at line 365 of file hid/lesstif/main.c.

References PCBType::Clipping, PCB, and TEST_FLAG.

Referenced by idle_proc(), and lesstif_update_status_line().

static int cursor_pos_to_widget ( Coord  x,
Coord  y,
Widget  w,
int  prev_state 
) [static]

Definition at line 2467 of file hid/lesstif/main.c.

References unit::allow, coord_to_unit(), unit::default_prec, PCBType::Grid, SettingType::grid_unit, PCB, pcb_g_strdup_printf(), Settings, stdarg, UUNIT, and XmStringCreatePCB().

Referenced by idle_proc().

Here is the call graph for this function:

static int CursorAction ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static void do_color ( char *  value,
char *  which 
) [static]

Definition at line 352 of file hid/lesstif/main.c.

References colormap, display, and stdarg.

Referenced by add_resource_to_menu(), and lesstif_do_export().

static void draw_crosshair ( GC  xor_gc,
int  x,
int  y,
int  view_width,
int  view_height 
) [static]
static void draw_dozen_cross ( GC  xor_gc,
int  x,
int  y,
int  view_width,
int  view_height 
) [static]

Definition at line 1558 of file hid/lesstif/main.c.

References display, MAX, MIN, window, x, and y.

Referenced by draw_crosshair().

static void draw_right_cross ( GC  xor_gc,
int  x,
int  y,
int  view_width,
int  view_height 
) [static]

Definition at line 1524 of file hid/lesstif/main.c.

References display, and window.

Referenced by draw_crosshair().

static void draw_slanted_cross ( GC  xor_gc,
int  x,
int  y,
int  view_width,
int  view_height 
) [static]

Definition at line 1532 of file hid/lesstif/main.c.

References display, MAX, MIN, window, x, and y.

Referenced by draw_crosshair().

static void DrawBackgroundImage ( ) [static]

Definition at line 1163 of file hid/lesstif/main.c.

References bg_gc, display, main_pixmap, PCBType::MaxHeight, PCBType::MaxWidth, MIN, PCB, Px(), Py(), view_height, view_width, view_zoom, window, work_area, x, and y.

Referenced by idle_proc().

Here is the call graph for this function:

static int flag_flipx ( void *  data) [static]

Definition at line 202 of file hid/lesstif/main.c.

References flip_x.

static int flag_flipy ( void *  data) [static]

Definition at line 207 of file hid/lesstif/main.c.

References flip_y.

static int group_showing ( int  g,
int *  c 
) [static]
BoxType* hid_get_extents ( void *  item)

Convenience function that calls the expose callback for the item, and returns the extents of what was drawn.

Definition at line 199 of file extents.c.

References box, hid_expose_callback(), hid_extents_init(), region, BoxType::X1, BoxType::X2, BoxType::Y1, and BoxType::Y2.

Referenced by lesstif_show_item().

Here is the call graph for this function:

void hid_lesstif_init ( )

Definition at line 4119 of file hid/lesstif/main.c.

References hid_st::add_block_hook, hid_st::add_timer, hid_st::attribute_dialog, hid_st::beep, hid_st::calibrate, hid_st::close_confirm_dialog, common_draw_helpers_init(), common_gui_draw_pcb_polygon(), common_nogui_init(), hid_st::confirm_dialog, hid_st::control_is_pressed, hid_st::description, hid_draw_st::destroy_gc, hid_st::do_exit, hid_st::do_export, hid_draw_st::draw_arc, hid_draw_st::draw_grid, hid_draw_st::draw_line, hid_draw_st::draw_pcb_polygon, hid_draw_st::draw_rect, hid_st::edit_attributes, hid_st::fileselect, hid_draw_st::fill_circle, hid_draw_st::fill_polygon, hid_draw_st::fill_rect, hid_st::finish_debug_draw, hid_st::flush_debug_draw, hid_st::get_coords, hid_st::get_export_options, hid_st::graphics, hid_st::gui, hid_register_hid(), hid_st::invalidate_all, hid_st::invalidate_lr, lesstif_add_block_hook(), lesstif_add_timer(), lesstif_attribute_dialog(), lesstif_attributes_dialog(), lesstif_beep(), lesstif_calibrate(), lesstif_close_confirm_dialog(), lesstif_confirm_dialog(), lesstif_control_is_pressed(), lesstif_destroy_gc(), lesstif_do_exit(), lesstif_do_export(), lesstif_draw_arc(), lesstif_draw_grid(), lesstif_draw_line(), lesstif_draw_rect(), lesstif_fileselect(), lesstif_fill_circle(), lesstif_fill_polygon(), lesstif_fill_rect(), lesstif_finish_debug_draw(), lesstif_flush_debug_draw(), lesstif_get_coords(), lesstif_get_export_options(), lesstif_graphics, lesstif_invalidate_all(), lesstif_invalidate_lr(), lesstif_log(), lesstif_logv(), lesstif_make_gc(), lesstif_mod1_is_pressed(), lesstif_notify_crosshair_change(), lesstif_notify_mark_change(), lesstif_parse_arguments(), lesstif_progress(), lesstif_prompt_for(), lesstif_report_dialog(), lesstif_request_debug_draw(), lesstif_set_color(), lesstif_set_crosshair(), lesstif_set_draw_xor(), lesstif_set_layer(), lesstif_set_line_cap(), lesstif_set_line_width(), lesstif_shift_is_pressed(), lesstif_show_item(), lesstif_stop_block_hook(), lesstif_stop_timer(), lesstif_uninit(), lesstif_unwatch_file(), lesstif_use_mask(), lesstif_watch_file(), hid_st::log, hid_st::logv, hid_draw_st::make_gc, hid_st::mod1_is_pressed, hid_st::name, hid_st::notify_crosshair_change, hid_st::notify_mark_change, hid_st::parse_arguments, hid_st::poly_before, hid_st::progress, hid_st::prompt_for, hid_st::report_dialog, hid_st::request_debug_draw, hid_draw_st::set_color, hid_st::set_crosshair, hid_draw_st::set_draw_xor, hid_st::set_layer, hid_draw_st::set_line_cap, hid_draw_st::set_line_width, hid_st::shift_is_pressed, hid_st::show_item, hid_st::stop_block_hook, hid_st::stop_timer, hid_st::struct_size, hid_st::uninit, hid_st::unwatch_file, hid_draw_st::use_mask, and hid_st::watch_file.

static hidval lesstif_add_block_hook ( void(*)(hidval data)  func,
hidval  user_data 
) [static]

Definition at line 3765 of file hid/lesstif/main.c.

References app_context, BlockHookStruct::func, BlockHookStruct::id, lesstif_block_hook_cb(), malloc(), hidval::ptr, and BlockHookStruct::user_data.

Referenced by hid_lesstif_init().

Here is the call graph for this function:

static hidval lesstif_add_timer ( void(*)(hidval user_data)  func,
unsigned long  milliseconds,
hidval  user_data 
) [static]

Definition at line 3651 of file hid/lesstif/main.c.

References app_context, TimerStruct::func, TimerStruct::id, lesstif_timer_cb(), malloc(), hidval::ptr, and TimerStruct::user_data.

Referenced by hid_lesstif_init().

Here is the call graph for this function:

int lesstif_attribute_dialog ( HID_Attribute attrs,
int  n_attrs,
HID_Attr_Val results,
const char *  title,
const char *  descr 
)
static void lesstif_beep ( void  ) [static]

Definition at line 3954 of file hid/lesstif/main.c.

Referenced by hid_lesstif_init().

static void lesstif_block_hook_cb ( XtPointer  user_data) [static]

Definition at line 3758 of file hid/lesstif/main.c.

References BlockHookStruct::func, and BlockHookStruct::user_data.

Referenced by lesstif_add_block_hook().

static void lesstif_calibrate ( double  xval,
double  yval 
) [static]

Definition at line 3551 of file hid/lesstif/main.c.

References CRASH.

Referenced by hid_lesstif_init().

int lesstif_close_confirm_dialog ( )

Definition at line 478 of file dialogs.c.

References lesstif_confirm_dialog().

Referenced by hid_lesstif_init().

Here is the call graph for this function:

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().

Here is the call graph for this function:

static int lesstif_control_is_pressed ( void  ) [static]

Definition at line 3563 of file hid/lesstif/main.c.

References ctrl_pressed.

Referenced by hid_lesstif_init().

void lesstif_coords_to_pcb ( int  vx,
int  vy,
Coord px,
Coord py 
)

Definition at line 335 of file hid/lesstif/main.c.

References Px(), and Py().

Referenced by lesstif_get_coords().

Here is the call graph for this function:

static void lesstif_destroy_gc ( hidGC  gc) [static]

Definition at line 3131 of file hid/lesstif/main.c.

Referenced by hid_lesstif_init().

static void lesstif_do_exit ( HID hid) [static]

Definition at line 2013 of file hid/lesstif/main.c.

References app_context.

Referenced by hid_lesstif_init().

static void lesstif_draw_arc ( hidGC  gc,
Coord  cx,
Coord  cy,
Coord  width,
Coord  height,
Angle  start_angle,
Angle  delta_angle 
) [static]
void lesstif_draw_grid ( BoxType region)

Draw the grid on the lesstif canvas.

Definition at line 2355 of file hid/lesstif/main.c.

References display, SettingType::DrawGrid, flip_x, flip_y, PCBType::Grid, grid_color, GridFit(), PCBType::GridOffsetX, PCBType::GridOffsetY, n, PCB, pixmap, Px(), Py(), realloc(), Settings, view_height, view_width, Vx(), vy, Vy(), Vz(), window, x, and y.

Referenced by hid_lesstif_init().

Here is the call graph for this function:

static void lesstif_draw_line ( hidGC  gc,
Coord  x1,
Coord  y1,
Coord  x2,
Coord  y2 
) [static]
static void lesstif_draw_rect ( hidGC  gc,
Coord  x1,
Coord  y1,
Coord  x2,
Coord  y2 
) [static]

Definition at line 3436 of file hid/lesstif/main.c.

References display, hid_gc_struct::erase, mask_bitmap, mask_gc, my_gc, PCB, pixmap, set_gc(), TEST_FLAG, use_mask, view_height, view_width, Vx(), Vy(), Vz(), and hid_gc_struct::width.

Referenced by hid_lesstif_init().

Here is the call graph for this function:

static void lesstif_fill_circle ( hidGC  gc,
Coord  cx,
Coord  cy,
Coord  radius 
) [static]
static void lesstif_fill_polygon ( hidGC  gc,
int  n_coords,
Coord x,
Coord y 
) [static]

Definition at line 3491 of file hid/lesstif/main.c.

References display, malloc(), mask_bitmap, mask_gc, my_gc, pixmap, realloc(), set_gc(), use_mask, Vx(), and Vy().

Referenced by hid_lesstif_init().

Here is the call graph for this function:

static void lesstif_fill_rect ( hidGC  gc,
Coord  x1,
Coord  y1,
Coord  x2,
Coord  y2 
) [static]

Definition at line 3523 of file hid/lesstif/main.c.

References display, hid_gc_struct::erase, mask_bitmap, mask_gc, my_gc, PCB, pixmap, set_gc(), TEST_FLAG, use_mask, view_height, view_width, Vx(), Vy(), Vz(), and hid_gc_struct::width.

Referenced by hid_lesstif_init().

Here is the call graph for this function:

static void lesstif_finish_debug_draw ( void  ) [static]

Definition at line 4109 of file hid/lesstif/main.c.

References lesstif_flush_debug_draw().

Referenced by hid_lesstif_init().

Here is the call graph for this function:

static void lesstif_flush_debug_draw ( void  ) [static]

Definition at line 4093 of file hid/lesstif/main.c.

References crosshair_on, display, DrawAttached(), DrawMark(), main_pixmap, my_gc, pixmap, view_height, view_width, and window.

Referenced by hid_lesstif_init(), and lesstif_finish_debug_draw().

Here is the call graph for this function:

void lesstif_get_coords ( const char *  msg,
Coord x,
Coord y 
)

Definition at line 842 of file menu.c.

References action_x, have_xy, lesstif_coords_to_pcb(), and lesstif_get_xy().

Referenced by hid_lesstif_init().

Here is the call graph for this function:

static HID_Attribute* lesstif_get_export_options ( int *  n) [static]

Definition at line 1210 of file hid/lesstif/main.c.

References lesstif_attribute_list.

Referenced by hid_lesstif_init().

void lesstif_invalidate_all ( void  )
static void lesstif_invalidate_lr ( Coord  l,
Coord  r,
Coord  t,
Coord  b 
) [static]

Definition at line 2981 of file hid/lesstif/main.c.

References need_idle_proc, and window.

Referenced by hid_lesstif_init(), and lesstif_invalidate_all().

static void lesstif_listener_cb ( XtPointer  client_data,
int *  fid,
XtInputId *  id 
) [static]

Definition at line 2079 of file hid/lesstif/main.c.

References hid_parse_actions().

Referenced by lesstif_parse_arguments().

Here is the call graph for this function:

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().

Here is the call graph for this function:

static hidGC lesstif_make_gc ( void  ) [static]

Definition at line 3122 of file hid/lesstif/main.c.

References lesstif_hid, malloc(), and hid_gc_struct::me_pointer.

Referenced by hid_lesstif_init(), and lesstif_do_export().

Here is the call graph for this function:

static int lesstif_mod1_is_pressed ( void  ) [static]

Definition at line 3569 of file hid/lesstif/main.c.

References alt_pressed.

Referenced by hid_lesstif_init().

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().

Here is the call graph for this function:

static void lesstif_notify_crosshair_change ( bool  changes_complete) [static]

Definition at line 2997 of file hid/lesstif/main.c.

References crosshair_on, DrawAttached(), my_gc, need_idle_proc, pixmap, and window.

Referenced by hid_lesstif_init().

Here is the call graph for this function:

static void lesstif_notify_mark_change ( bool  changes_complete) [static]

Definition at line 3033 of file hid/lesstif/main.c.

References crosshair_on, DrawMark(), need_idle_proc, pixmap, and window.

Referenced by hid_lesstif_init().

Here is the call graph for this function:

void lesstif_pan_fixup ( void  )
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().

static int lesstif_progress ( int  so_far,
int  total,
const char *  message 
) [static]

Definition at line 4034 of file hid/lesstif/main.c.

References app_context, idle_proc(), lesstif_progress_dialog(), and progress_cancelled.

Referenced by hid_lesstif_init().

Here is the call graph for this function:

static void lesstif_progress_dialog ( int  so_far,
int  total,
const char *  msg 
) [static]

Definition at line 3974 of file hid/lesstif/main.c.

References display, mainwind, progress_cancel_callback(), stdarg, and XmStringCreatePCB().

Referenced by lesstif_progress().

Here is the call graph for this function:

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().

static HID_DRAW* lesstif_request_debug_draw ( void  ) [static]

Definition at line 4085 of file hid/lesstif/main.c.

References hid_st::graphics, main_pixmap, and pixmap.

Referenced by hid_lesstif_init().

static void lesstif_set_color ( hidGC  gc,
const char *  name 
) [static]
static void lesstif_set_crosshair ( int  x,
int  y,
int  action 
) [static]
static void lesstif_set_draw_xor ( hidGC  gc,
int  xor_set 
) [static]

Definition at line 3326 of file hid/lesstif/main.c.

References hid_gc_struct::xor_set.

Referenced by hid_lesstif_init().

static void lesstif_set_line_cap ( hidGC  gc,
EndCapStyle  style 
) [static]

Definition at line 3314 of file hid/lesstif/main.c.

References hid_gc_struct::cap, and style.

Referenced by hid_lesstif_init().

static void lesstif_set_line_width ( hidGC  gc,
Coord  width 
) [static]

Definition at line 3320 of file hid/lesstif/main.c.

References hid_gc_struct::width.

Referenced by hid_lesstif_init().

static int lesstif_shift_is_pressed ( void  ) [static]

Definition at line 3557 of file hid/lesstif/main.c.

References shift_pressed.

Referenced by hid_lesstif_init().

void lesstif_show_crosshair ( int  show)
static void lesstif_stop_block_hook ( hidval  mlpoll) [static]

Definition at line 3780 of file hid/lesstif/main.c.

References BlockHookStruct::id, and hidval::ptr.

Referenced by hid_lesstif_init().

static void lesstif_stop_timer ( hidval  hv) [static]

Definition at line 3665 of file hid/lesstif/main.c.

References TimerStruct::id, and hidval::ptr.

Referenced by hid_lesstif_init().

static void lesstif_timer_cb ( XtPointer *  p,
XtIntervalId *  id 
) [static]

Definition at line 3643 of file hid/lesstif/main.c.

References TimerStruct::func, and TimerStruct::user_data.

Referenced by lesstif_add_timer().

static void lesstif_uninit ( HID hid) [static]

Definition at line 2022 of file hid/lesstif/main.c.

References lesstif_uninit_menu().

Referenced by hid_lesstif_init().

Here is the call graph for this function:

void lesstif_uninit_menu ( void  )

Todo:
XtDestroyWidget (...);

Definition at line 1523 of file menu.c.

Referenced by lesstif_uninit().

void lesstif_unwatch_file ( hidval  data)

Definition at line 3741 of file hid/lesstif/main.c.

References WatchStruct::id, and hidval::ptr.

Referenced by hid_lesstif_init().

static void lesstif_use_mask ( enum mask_mode  mode) [static]
static void lesstif_watch_cb ( XtPointer  client_data,
int *  fid,
XtInputId *  id 
) [static]
hidval lesstif_watch_file ( int  fd,
unsigned int  condition,
void(*)(hidval watch, int fd, unsigned int condition, hidval user_data)  func,
hidval  user_data 
)
static void LoadBackgroundFile ( FILE *  f,
char *  filename 
) [static]

Definition at line 1030 of file hid/lesstif/main.c.

References c, colormap, display, malloc(), and pixel_type.

Referenced by LoadBackgroundImage().

Here is the call graph for this function:

void LoadBackgroundImage ( char *  filename)

Definition at line 1149 of file hid/lesstif/main.c.

References f, LoadBackgroundFile(), and NSTRCMP.

Referenced by lesstif_do_export().

Here is the call graph for this function:

static void mainwind_delete_cb ( ) [static]

Definition at line 2073 of file hid/lesstif/main.c.

References hid_action().

Referenced by lesstif_parse_arguments().

Here is the call graph for this function:

static Widget make_message ( char *  name,
Widget  left,
int  resizeable 
) [static]

Definition at line 1815 of file hid/lesstif/main.c.

References f, messages, and stdarg.

Referenced by lesstif_do_export().

static void mark_delta_to_widget ( Coord  dx,
Coord  dy,
Widget  w 
) [static]

Definition at line 2435 of file hid/lesstif/main.c.

References coord_to_unit(), unit::default_prec, dist(), Distance(), PCBType::Grid, SettingType::grid_unit, M_PI, PCB, pcb_g_strdup_printf(), Settings, stdarg, UUNIT, and XmStringCreatePCB().

Referenced by idle_proc().

Here is the call graph for this function:

static void mod_changed ( XKeyEvent *  e,
int  set 
) [static]

Definition at line 1381 of file hid/lesstif/main.c.

References AdjustAttachedObjects(), display, EventMoveCrosshair(), in_move_event, notify_crosshair_change(), Pan(), Px(), and Py().

Referenced by work_area_input().

Here is the call graph for this function:

static void Pan ( int  mode,
int  x,
int  y 
) [static]

Definition at line 1334 of file hid/lesstif/main.c.

References flip_x, flip_y, lesstif_pan_fixup(), PCBType::MaxHeight, PCBType::MaxWidth, PCB, view_height, view_left_x, view_top_y, view_width, view_zoom, x, and y.

Referenced by mod_changed(), PanAction(), and work_area_input().

Here is the call graph for this function:

static int PanAction ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 578 of file hid/lesstif/main.c.

References Pan(), Vx(), and Vy().

Here is the call graph for this function:

static Boolean pcb_cvt_string_to_coord ( Display *  d,
XrmValue *  args,
Cardinal num_args,
XrmValue *  from,
XrmValue *  to,
XtPointer *  data 
) [static]

Definition at line 2059 of file hid/lesstif/main.c.

References GetValue(), and TRUE.

Referenced by lesstif_parse_arguments().

Here is the call graph for this function:

static Boolean pcb_cvt_string_to_double ( Display *  d,
XrmValue *  args,
Cardinal num_args,
XrmValue *  from,
XrmValue *  to,
XtPointer *  data 
) [static]

Definition at line 2045 of file hid/lesstif/main.c.

Referenced by lesstif_parse_arguments().

static int PCBChanged ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static void pinout_unmap ( Widget  w,
PinoutData pd,
void *  v 
) [static]

Definition at line 3874 of file hid/lesstif/main.c.

References PinoutData::form, PinoutData::next, and PinoutData::prev.

Referenced by lesstif_show_item(), and PCBChanged().

static int PointCursor ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 397 of file hid/lesstif/main.c.

References old_cursor_mode, and over_point.

static void progress_cancel_callback ( Widget  w,
void *  v,
void *  cbs 
) [static]

Definition at line 3964 of file hid/lesstif/main.c.

Referenced by lesstif_progress_dialog().

static Coord Px ( int  x) [inline, static]
static Coord Py ( int  y) [inline, static]
static Coord Pz ( int  z) [inline, static]

Definition at line 329 of file hid/lesstif/main.c.

References view_zoom.

Referenced by CursorAction().

REGISTER_ACTIONS ( lesstif_main_action_list  )

Definition at line 1013 of file hid/lesstif/main.c.

REGISTER_ATTRIBUTES ( lesstif_attribute_list  )

Definition at line 274 of file hid/lesstif/main.c.

References flip_x, view_left_x, view_width, and view_zoom.

static void scroll_callback ( Widget  scroll,
int *  view_dim,
XmScrollBarCallbackStruct *  cbs 
) [static]

Definition at line 1660 of file hid/lesstif/main.c.

References lesstif_invalidate_all().

Referenced by lesstif_do_export().

Here is the call graph for this function:

static void set_scroll ( Widget  s,
int  pos,
int  view,
int  pcb 
) [static]

Definition at line 1217 of file hid/lesstif/main.c.

References pcb, stdarg, and view_zoom.

Referenced by lesstif_pan_fixup().

static int SetUnits ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static void ShowCrosshair ( bool  show) [static]

Definition at line 185 of file hid/lesstif/main.c.

References crosshair_on, Marked, notify_crosshair_change(), notify_mark_change(), and MarkType::status.

Referenced by work_area_input().

Here is the call graph for this function:

static int SwapSides ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]
static int Vz ( Coord  z) [inline, static]
static void work_area_expose ( Widget  work_area,
void *  me,
XmDrawingAreaCallbackStruct *  cbs 
) [static]

Definition at line 1646 of file hid/lesstif/main.c.

References display, main_pixmap, my_gc, show_crosshair, and window.

Referenced by work_area_first_expose().

static void work_area_first_expose ( Widget  work_area,
void *  me,
XmDrawingAreaCallbackStruct *  cbs 
) [static]
static void work_area_input ( Widget  w,
XtPointer  v,
XEvent *  e,
Boolean *  ctd 
) [static]
static void work_area_make_pixmaps ( Dimension  width,
Dimension  height 
) [static]
static void work_area_resize ( Widget  work_area,
void *  me,
XmDrawingAreaCallbackStruct *  cbs 
) [static]

Definition at line 1715 of file hid/lesstif/main.c.

References bgblue, bgcolor, bggreen, bgred, colormap, display, show_crosshair, stdarg, view_height, view_width, window, work_area_make_pixmaps(), and zoom_by().

Referenced by lesstif_do_export().

Here is the call graph for this function:

void zoom_by ( double  factor,
int  x,
int  y 
)

Definition at line 1322 of file hid/lesstif/main.c.

References view_zoom, and zoom_to().

Referenced by lesstif_pan_fixup(), work_area_resize(), and ZoomAction().

Here is the call graph for this function:

static void zoom_max ( ) [static]

Definition at line 1259 of file hid/lesstif/main.c.

References lesstif_pan_fixup(), PCBType::MaxHeight, PCBType::MaxWidth, PCB, pixel_slop, view_height, view_left_x, view_top_y, view_width, and view_zoom.

Referenced by PCBChanged(), and ZoomAction().

Here is the call graph for this function:

static void zoom_to ( double  new_zoom,
int  x,
int  y 
) [static]

Definition at line 1273 of file hid/lesstif/main.c.

References cx, cy, flip_x, flip_y, lesstif_pan_fixup(), MAX_ZOOM_SCALE, PCBType::MaxHeight, PCBType::MaxWidth, PCB, pixel_slop, view_height, view_left_x, view_top_y, view_width, and view_zoom.

Referenced by zoom_by(), zoom_toggle(), and ZoomAction().

Here is the call graph for this function:

static void zoom_toggle ( int  x,
int  y 
) [static]

Definition at line 1312 of file hid/lesstif/main.c.

References prev_view_zoom, view_zoom, and zoom_to().

Referenced by ZoomAction().

Here is the call graph for this function:

static int ZoomAction ( int  argc,
char **  argv,
Coord  x,
Coord  y 
) [static]

Definition at line 529 of file hid/lesstif/main.c.

References view_height, view_width, Vx(), Vy(), zoom_by(), zoom_max(), zoom_to(), and zoom_toggle().

Here is the call graph for this function:


Variable Documentation

int alt_pressed [static]

Definition at line 1330 of file hid/lesstif/main.c.

Referenced by lesstif_mod1_is_pressed().

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.

GC arc1_gc [static]

Definition at line 133 of file hid/lesstif/main.c.

Referenced by lesstif_draw_arc(), and work_area_first_expose().

GC arc2_gc

Definition at line 133 of file hid/lesstif/main.c.

Referenced by lesstif_draw_arc(), and work_area_first_expose().

Arg args[30] [static]

Definition at line 223 of file hid/lesstif/main.c.

bool autofade = 0 [static]

Definition at line 176 of file hid/lesstif/main.c.

Referenced by lesstif_set_color(), and lesstif_set_layer().

char* background_image_file = 0 [static]

Definition at line 230 of file hid/lesstif/main.c.

GC bclear_gc = 0

Definition at line 128 of file hid/lesstif/main.c.

Referenced by lesstif_use_mask(), set_gc(), and work_area_first_expose().

const char benchmark_help[] = "Benchmark the GUI speed." [static]

Definition at line 847 of file hid/lesstif/main.c.

const char benchmark_syntax[] = "Benchmark()" [static]

Definition at line 844 of file hid/lesstif/main.c.

int bgblue

Definition at line 131 of file hid/lesstif/main.c.

Referenced by lesstif_set_color(), and work_area_resize().

int bggreen

Definition at line 131 of file hid/lesstif/main.c.

Referenced by lesstif_set_color(), and work_area_resize().

int bgred [static]

Definition at line 131 of file hid/lesstif/main.c.

Referenced by lesstif_set_color(), and work_area_resize().

GC bset_gc = 0

Definition at line 128 of file hid/lesstif/main.c.

Referenced by set_gc(), and work_area_first_expose().

GC clip_gc = 0

Definition at line 128 of file hid/lesstif/main.c.

Referenced by lesstif_use_mask(), and work_area_first_expose().

Widget command

Definition at line 159 of file hid/lesstif/main.c.

const char command_help[] = "Displays the command line input window." [static]

Definition at line 785 of file hid/lesstif/main.c.

const char command_syntax[] = "Command()" [static]

Definition at line 782 of file hid/lesstif/main.c.

hidGC crosshair_gc [static]

Definition at line 135 of file hid/lesstif/main.c.

Definition at line 156 of file hid/lesstif/main.c.

Referenced by lesstif_show_crosshair(), and work_area_input().

int crosshair_x = 0 [static]

Definition at line 155 of file hid/lesstif/main.c.

Referenced by idle_proc(), lesstif_set_crosshair(), and lesstif_show_crosshair().

int crosshair_y = 0

Definition at line 155 of file hid/lesstif/main.c.

Referenced by idle_proc(), lesstif_set_crosshair(), and lesstif_show_crosshair().

int ctrl_pressed [static]

Definition at line 1329 of file hid/lesstif/main.c.

Referenced by lesstif_control_is_pressed().

const char cursor_help[] = "Move the cursor." [static]

Definition at line 912 of file hid/lesstif/main.c.

const char cursor_syntax[] = "Cursor(Type,DeltaUp,DeltaRight,Units)" [static]

Definition at line 909 of file hid/lesstif/main.c.

Display* display

Definition at line 100 of file hid/lesstif/main.c.

Pixel grid_color

Definition at line 130 of file hid/lesstif/main.c.

Referenced by lesstif_draw_grid(), and work_area_first_expose().

Widget hscroll

Definition at line 159 of file hid/lesstif/main.c.

int idle_proc_set = 0 [static]

Definition at line 2555 of file hid/lesstif/main.c.

int in_move_event = 0 [static]

Definition at line 156 of file hid/lesstif/main.c.

Referenced by lesstif_set_crosshair(), mod_changed(), and work_area_input().

Initial value:
 {
  {"install", "Install private colormap",
   HID_Boolean, 0, 0, {0, 0, 0}, 0, &use_private_colormap},
#define HA_colormap


  {"listen", "Listen on standard input for actions",
   HID_Boolean, 0, 0, {0, 0, 0}, 0, &stdin_listen},
#define HA_listen 1


  {"bg-image", "Background Image",
   HID_String, 0, 0, {0, 0, 0}, 0, &background_image_file},
#define HA_bg_image 2


  {"pcb-menu", "Location of pcb-menu.res file",
   HID_String, 0, 0, {0, PCBLIBDIR "/pcb-menu.res", 0}, 0, &lesstif_pcbmenu_path}
#define HA_pcbmenu 3
}

Definition at line 233 of file hid/lesstif/main.c.

Referenced by lesstif_get_export_options().

Definition at line 94 of file hid/lesstif/main.c.

Referenced by hid_lesstif_init().

HID lesstif_hid [static]

Definition at line 93 of file hid/lesstif/main.c.

Referenced by lesstif_make_gc().

Initial value:
 {
  {"PCBChanged", 0, PCBChanged,
   pcbchanged_help, pcbchanged_syntax},
  {"SetUnits", 0, SetUnits,
   setunits_help, setunits_syntax},
  {"Zoom", "Click on a place to zoom in", ZoomAction,
   zoom_help, zoom_syntax},
  {"Pan", "Click on a place to pan", PanAction,
   zoom_help, zoom_syntax},
  {"SwapSides", 0, SwapSides,
   swapsides_help, swapsides_syntax},
  {"Command", 0, Command,
   command_help, command_syntax},
  {"Benchmark", 0, Benchmark,
   benchmark_help, benchmark_syntax},
  {"PointCursor", 0, PointCursor},
  {"Center", "Click on a location to center", Center},
  {"Busy", 0, Busy},
  {"Cursor", 0, CursorAction,
   cursor_help, cursor_syntax},
}

Definition at line 991 of file hid/lesstif/main.c.

Initial value:
 {
  {"flip_x", flag_flipx, NULL},
  {"flip_y", flag_flipy, NULL}
}

Definition at line 212 of file hid/lesstif/main.c.

XrmOptionDescRec lesstif_options[]
Initial value:
 {
}

Definition at line 2029 of file hid/lesstif/main.c.

char* lesstif_pcbmenu_path = "pcb-menu.res"

Definition at line 231 of file hid/lesstif/main.c.

Referenced by lesstif_menu().

XtResource lesstif_resources[]
Initial value:
 {
}

Definition at line 2032 of file hid/lesstif/main.c.

Widget m_click

Definition at line 163 of file hid/lesstif/main.c.

Widget m_cmd = 0 [static]

Definition at line 738 of file hid/lesstif/main.c.

Widget m_crosshair

Definition at line 160 of file hid/lesstif/main.c.

Referenced by idle_proc(), and lesstif_do_export().

Widget m_grid

Definition at line 160 of file hid/lesstif/main.c.

Referenced by idle_proc(), and lesstif_do_export().

Widget m_mark [static]

Definition at line 160 of file hid/lesstif/main.c.

Referenced by idle_proc(), and lesstif_do_export().

Widget m_mode

Definition at line 160 of file hid/lesstif/main.c.

Referenced by idle_proc(), and lesstif_do_export().

Widget m_rats [static]

Definition at line 161 of file hid/lesstif/main.c.

Referenced by idle_proc(), and lesstif_do_export().

Widget m_status

Definition at line 160 of file hid/lesstif/main.c.

Referenced by idle_proc(), lesstif_do_export(), and lesstif_update_status_line().

Widget m_zoom

Definition at line 160 of file hid/lesstif/main.c.

Referenced by idle_proc(), and lesstif_do_export().

Widget mainwind

Definition at line 158 of file hid/lesstif/main.c.

Pixmap mask_pixmap = 0 [static]

Definition at line 112 of file hid/lesstif/main.c.

Referenced by lesstif_use_mask(), and work_area_make_pixmaps().

Widget messages

Definition at line 159 of file hid/lesstif/main.c.

Referenced by lesstif_do_export(), and make_message().

Cursor my_cursor = 0 [static]

Definition at line 102 of file hid/lesstif/main.c.

Referenced by idle_proc().

int n [static]

Definition at line 224 of file hid/lesstif/main.c.

Referenced by lesstif_draw_grid().

int need_redraw = 0 [static]

Definition at line 2556 of file hid/lesstif/main.c.

int old_cursor_mode = -1 [static]

Definition at line 103 of file hid/lesstif/main.c.

Referenced by Busy(), idle_proc(), and PointCursor().

int over_point = 0 [static]

Definition at line 104 of file hid/lesstif/main.c.

Referenced by idle_proc(), and PointCursor().

int pan_thumb_mode [static]

Definition at line 575 of file hid/lesstif/main.c.

int panning = 0 [static]

Definition at line 1327 of file hid/lesstif/main.c.

PinoutData* pinouts = 0 [static]

Definition at line 151 of file hid/lesstif/main.c.

Referenced by lesstif_show_item().

pixel_type = PT_unknown

Definition at line 1027 of file hid/lesstif/main.c.

Referenced by LoadBackgroundFile().

int pixmap_h = 0

Definition at line 124 of file hid/lesstif/main.c.

Referenced by lesstif_use_mask(), and work_area_make_pixmaps().

int pixmap_w = 0 [static]

Definition at line 124 of file hid/lesstif/main.c.

Referenced by lesstif_use_mask(), and work_area_make_pixmaps().

double prev_view_zoom = MIL_TO_COORD (10)

Definition at line 174 of file hid/lesstif/main.c.

Referenced by zoom_toggle().

Widget progress_cancel [static]

Definition at line 3970 of file hid/lesstif/main.c.

bool progress_cancelled = false [static]

Definition at line 3961 of file hid/lesstif/main.c.

Referenced by lesstif_progress().

Widget progress_dialog = 0 [static]

Definition at line 3969 of file hid/lesstif/main.c.

Definition at line 3970 of file hid/lesstif/main.c.

Widget progress_scale [static]

Definition at line 3971 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.

const char setunits_help[] = "Set the default measurement units." [static]

Definition at line 449 of file hid/lesstif/main.c.

const char setunits_syntax[] = "SetUnits(mm|mil)" [static]

Definition at line 446 of file hid/lesstif/main.c.

int shift_pressed [static]

Definition at line 1328 of file hid/lesstif/main.c.

Referenced by lesstif_shift_is_pressed().

int stdin_listen = 0 [static]

Definition at line 229 of file hid/lesstif/main.c.

const char swapsides_help[] = "Swaps the side of the board you're looking at." [static]

Definition at line 603 of file hid/lesstif/main.c.

const char swapsides_syntax[] = "SwapSides(|v|h|r)" [static]

Definition at line 600 of file hid/lesstif/main.c.

int use_private_colormap = 0 [static]

Definition at line 228 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.

const char zoom_help[] = "Various zoom factor changes." [static]

Definition at line 488 of file hid/lesstif/main.c.

const char zoom_syntax[] = "Zoom(factor)" [static]

Definition at line 484 of file hid/lesstif/main.c.