pcb 4.1.1
An interactive printed circuit board layout editor.
|
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>
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_Attribute * | lesstif_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) |
BoxType * | hid_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_DRAW * | lesstif_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 PinoutData * | pinouts = 0 |
static PinoutData * | pinout = 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 |
The lesstif HID implementation.
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 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().
Definition at line 225 of file hid/lesstif/main.c.
Referenced by cursor_pos_to_widget(), do_color(), idle_proc(), lesstif_do_export(), lesstif_parse_arguments(), lesstif_progress_dialog(), lesstif_show_item(), lesstif_update_status_line(), make_message(), mark_delta_to_widget(), PCBChanged(), pinout_callback(), set_scroll(), SwapSides(), work_area_first_expose(), and work_area_resize().
#define UUNIT Settings.grid_unit->allow |
Definition at line 80 of file hid/lesstif/main.c.
Referenced by cursor_pos_to_widget(), idle_proc(), lesstif_update_status_line(), and mark_delta_to_widget().
#define XtRDouble "Double" |
Definition at line 75 of file hid/lesstif/main.c.
Referenced by lesstif_parse_arguments().
typedef struct hid_gc_struct hid_gc_struct |
typedef struct PinoutData PinoutData |
Definition at line 859 of file hid/lesstif/main.c.
References bg_gc, display, hid_expose_callback(), main_pixmap, PCBType::MaxHeight, PCBType::MaxWidth, PCB, pixmap, region, view_height, view_width, window, BoxType::X1, BoxType::X2, BoxType::Y1, and BoxType::Y2.
Definition at line 381 of file hid/lesstif/main.c.
References display, old_cursor_mode, and window.
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.
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().
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().
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().
Definition at line 951 of file hid/lesstif/main.c.
References AFAIL, Crosshair, EventMoveCrosshair(), flip_x, flip_y, GetValueEx(), PCBType::Grid, gui, HID_SC_DO_NOTHING, HID_SC_PAN_VIEWPORT, HID_SC_WARP_POINTER, PCBType::MaxHeight, PCBType::MaxWidth, PCB, Pz(), hid_st::set_crosshair, UNIT_PERCENT, view_height, view_width, CrosshairType::X, and CrosshairType::Y.
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] |
Definition at line 1606 of file hid/lesstif/main.c.
References Crosshair, Dozen_Crosshair_Shape, draw_dozen_cross(), draw_right_cross(), draw_slanted_cross(), CrosshairType::shape, and Union_Jack_Crosshair_Shape.
Referenced by lesstif_show_crosshair().
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().
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] |
Definition at line 640 of file hid/lesstif/main.c.
References PCBType::Data, LayerGroupType::Entries, DataType::Layer, PCBType::LayerGroups, max_copper_layer, LayerGroupType::Number, LayerType::On, and PCB.
Referenced by SwapSides().
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().
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 Boolean idle_proc | ( | XtPointer | dummy | ) | [static] |
Definition at line 2559 of file hid/lesstif/main.c.
References unit::allow, ARC_MODE, ARROW_MODE, bg_gc, bgcolor, COPY_MODE, crosshair_on, crosshair_x, crosshair_y, cur_clip(), cursor_pos_to_widget(), PCBType::Data, display, hid_draw_st::draw_grid, DrawAttached(), DrawBackgroundImage(), DrawMark(), flip_x, flip_y, PCBType::Grid, SettingType::grid_unit, PCBType::GridOffsetX, PCBType::GridOffsetY, hid_expose_callback(), HID_MASK_OFF, INSERTPOINT_MODE, lesstif_update_status_line(), lesstif_update_widget_flags(), lesstif_use_mask(), LINE_MODE, LOCK_MODE, m_crosshair, m_grid, m_mark, m_mode, m_rats, m_status, m_zoom, main_pixmap, mark_delta_to_widget(), Marked, PCBType::MaxHeight, PCBType::MaxWidth, SettingType::Mode, MOVE_MODE, my_cursor, my_gc, NO_MODE, offlimit_color, old_cursor_mode, over_point, PASTEBUFFER_MODE, PCB, pcb_g_strdup_printf(), pcb_snprintf(), pixmap, POLYGON_MODE, POLYGONHOLE_MODE, Px(), Py(), DataType::RatN, RECTANGLE_MODE, region, REMOVE_MODE, ROTATE_MODE, RUBBERBANDMOVE_MODE, s, Settings, show_crosshair, MarkType::status, stdarg, TEXT_MODE, SettingType::TextScale, THERMAL_MODE, UUNIT, VIA_MODE, view_height, view_width, view_zoom, Vx(), Vy(), window, MarkType::X, BoxType::X1, BoxType::X2, XmStringCreatePCB(), MarkType::Y, BoxType::Y1, and BoxType::Y2.
Referenced by lesstif_need_idle_proc(), and lesstif_progress().
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().
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().
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().
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().
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().
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().
Definition at line 335 of file hid/lesstif/main.c.
Referenced by lesstif_get_coords().
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_do_export | ( | HID_Attr_Val * | options | ) | [static] |
Definition at line 1850 of file hid/lesstif/main.c.
References app_context, appwidget, SettingType::BackgroundColor, command_callback(), command_event_handler(), display, do_color(), hscroll, lesstif_m_layer, lesstif_make_gc(), lesstif_menu(), LoadBackgroundImage(), m_click, m_cmd_label, m_crosshair, m_grid, m_mark, m_mode, m_rats, m_status, m_zoom, mainwind, make_message(), PCBType::MaxHeight, PCBType::MaxWidth, messages, PCB, PCBChanged(), screen, scroll_callback(), Settings, stdarg, view_left_x, view_top_y, vscroll, window, work_area, work_area_first_expose(), work_area_input(), work_area_resize(), and XmStringCreatePCB().
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] |
Definition at line 3380 of file hid/lesstif/main.c.
References arc1_gc, arc2_gc, hid_gc_struct::colorname, display, hid_gc_struct::erase, flip_x, flip_y, M_PI, mask_bitmap, mask_gc, my_gc, NormalizeAngle(), PCB, pcb_printf(), pixmap, set_gc(), start_angle, TEST_FLAG, use_mask, Vx(), Vy(), Vz(), and hid_gc_struct::width.
Referenced by hid_lesstif_init().
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().
Definition at line 3334 of file hid/lesstif/main.c.
References hid_gc_struct::cap, ClipLine(), hid_gc_struct::colorname, display, hid_gc_struct::erase, mask_bitmap, mask_gc, my_gc, PCB, pcb_printf(), pixmap, set_gc(), Square_Cap, TEST_FLAG, use_mask, view_height, view_width, Vx(), Vy(), Vz(), and hid_gc_struct::width.
Referenced by hid_lesstif_init().
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().
Definition at line 3463 of file hid/lesstif/main.c.
References hid_gc_struct::color, hid_gc_struct::colorname, display, hid_gc_struct::erase, mask_bitmap, mask_gc, my_gc, PCB, pcb_printf(), pixmap, set_gc(), TEST_FLAG, use_mask, view_height, view_width, Vx(), Vy(), and Vz().
Referenced by hid_lesstif_init().
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().
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().
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().
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().
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().
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 | ) |
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().
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().
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().
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().
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().
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().
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().
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().
static void lesstif_parse_arguments | ( | int * | argc, |
char *** | argv | ||
) | [static] |
Definition at line 2095 of file hid/lesstif/main.c.
References app_context, appwidget, HID_AttrNode::attributes, val_union::c, colormap, HID_Attr_Val::coord_value, HID_Attribute::default_val, display, val_union::f, hid_attr_nodes, HID_Boolean, HID_Coord, HID_Integer, HID_Path, HID_Real, HID_String, val_union::i, HID_Attr_Val::int_value, lesstif_listener_cb(), mainwind_delete_cb(), malloc(), HID_AttrNode::n, HID_Attribute::name, HID_AttrNode::next, pcb_cvt_string_to_coord(), pcb_cvt_string_to_double(), HID_Attr_Val::real_value, val_union::s, screen, screen_s, stdarg, HID_Attr_Val::str_value, HID_Attribute::type, use_xrender, HID_Attribute::value, XtRDouble, and XtRPCBCoord.
Referenced by hid_lesstif_init().
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().
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().
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] |
Definition at line 3191 of file hid/lesstif/main.c.
References autofade, bgblue, bgcolor, bggreen, bgred, hid_gc_struct::color, colormap, hid_gc_struct::colorname, display, hid_gc_struct::erase, hid_cache_color(), lastcolor, hidval::lval, offlimit_color, and screen.
Referenced by hid_lesstif_init().
static void lesstif_set_crosshair | ( | int | x, |
int | y, | ||
int | action | ||
) | [static] |
Definition at line 3577 of file hid/lesstif/main.c.
References crosshair_x, crosshair_y, display, flip_x, flip_y, HID_SC_CENTER_IN_VIEWPORT_AND_WARP_POINTER, HID_SC_PAN_VIEWPORT, HID_SC_WARP_POINTER, in_move_event, lesstif_pan_fixup(), lesstif_show_crosshair(), mainwind, need_idle_proc, view_height, view_left_x, view_top_y, view_width, view_zoom, Vx(), Vy(), window, x, and y.
Referenced by hid_lesstif_init().
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 int lesstif_set_layer | ( | const char * | name, |
int | group, | ||
int | empty | ||
) | [static] |
Definition at line 3066 of file hid/lesstif/main.c.
References autofade, PCBType::Data, PCBType::ElementOn, LayerGroupType::Entries, GetLayerGroupNumberByNumber(), PCBType::InvisibleObjectsOn, DataType::Layer, PCBType::LayerGroups, LayerStack, max_copper_layer, max_group, LayerGroupType::Number, LayerType::On, PCB, PCBType::RatOn, SILK_LAYER, SL_ASSY, SL_INVISIBLE, SL_MASK, SL_MYSIDE, SL_PDRILL, SL_RATS, SL_SILK, SL_TYPE, SL_UDRILL, and TEST_FLAG.
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().
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 | ) |
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().
static void lesstif_show_item | ( | void * | item | ) | [static] |
Definition at line 3889 of file hid/lesstif/main.c.
References PinoutData::bottom, PinoutData::form, hid_get_extents(), PinoutData::item, PinoutData::left, mainwind, PinoutData::next, pinout_callback(), pinout_unmap(), pinouts, PinoutData::prev, PinoutData::right, scale, stdarg, PinoutData::top, PinoutData::window, BoxType::X1, BoxType::X2, BoxType::Y1, BoxType::Y2, and PinoutData::zoom.
Referenced by hid_lesstif_init().
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().
void lesstif_uninit_menu | ( | void | ) |
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().
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().
static void lesstif_use_mask | ( | enum mask_mode | mode | ) | [static] |
Definition at line 3137 of file hid/lesstif/main.c.
References bclear_gc, clip_gc, display, HID_MASK_OFF, main_pixmap, mask_bitmap, mask_pixmap, my_gc, PCB, pixmap, pixmap_h, pixmap_w, screen, TEST_FLAG, use_mask, use_xrender, view_height, view_width, and window.
Referenced by hid_lesstif_init(), and idle_proc().
static void lesstif_watch_cb | ( | XtPointer | client_data, |
int * | fid, | ||
XtInputId * | id | ||
) | [static] |
Definition at line 3685 of file hid/lesstif/main.c.
References WatchStruct::fd, WatchStruct::func, PCB_WATCH_ERROR, PCB_WATCH_HANGUP, PCB_WATCH_READABLE, PCB_WATCH_WRITABLE, hidval::ptr, WatchStruct::user_data, and x.
Referenced by lesstif_watch_file().
hidval lesstif_watch_file | ( | int | fd, |
unsigned int | condition, | ||
void(*)(hidval watch, int fd, unsigned int condition, hidval user_data) | func, | ||
hidval | user_data | ||
) |
Definition at line 3715 of file hid/lesstif/main.c.
References app_context, WatchStruct::fd, WatchStruct::func, WatchStruct::id, lesstif_watch_cb(), malloc(), PCB_WATCH_ERROR, PCB_WATCH_HANGUP, PCB_WATCH_READABLE, PCB_WATCH_WRITABLE, hidval::ptr, and WatchStruct::user_data.
Referenced by hid_lesstif_init().
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().
void LoadBackgroundImage | ( | char * | filename | ) |
Definition at line 1149 of file hid/lesstif/main.c.
References f, LoadBackgroundFile(), and NSTRCMP.
Referenced by lesstif_do_export().
static void mainwind_delete_cb | ( | ) | [static] |
Definition at line 2073 of file hid/lesstif/main.c.
References hid_action().
Referenced by lesstif_parse_arguments().
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().
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().
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().
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().
Definition at line 578 of file hid/lesstif/main.c.
References Pan(), Vx(), and Vy().
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().
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().
Definition at line 408 of file hid/lesstif/main.c.
References appwidget, crosshair_update_range(), PCBType::Filename, hid_action(), hscroll, lesstif_sizes_reset(), lesstif_update_layer_groups(), PCBType::MaxHeight, PCBType::MaxWidth, PCB, pinout_unmap(), stdarg, vscroll, work_area, and zoom_max().
static void pinout_callback | ( | Widget | da, |
PinoutData * | pd, | ||
XmDrawingAreaCallbackStruct * | cbs | ||
) | [static] |
Definition at line 3802 of file hid/lesstif/main.c.
References bg_gc, PinoutData::bottom, display, flip_x, flip_y, hid_expose_callback(), PinoutData::item, PinoutData::left, PCBType::MaxHeight, PCBType::MaxWidth, PCB, pixmap, region, PinoutData::right, stdarg, PinoutData::top, use_mask, PinoutData::v_height, PinoutData::v_width, view_height, view_left_x, view_top_y, view_width, view_zoom, PinoutData::window, PinoutData::x, BoxType::X1, BoxType::X2, PinoutData::y, BoxType::Y1, BoxType::Y2, and PinoutData::zoom.
Referenced by lesstif_show_item().
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().
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] |
Definition at line 313 of file hid/lesstif/main.c.
References flip_x, view_left_x, view_width, view_zoom, and x.
Referenced by DrawBackgroundImage(), idle_proc(), lesstif_coords_to_pcb(), lesstif_draw_grid(), mod_changed(), and work_area_input().
static Coord Py | ( | int | y | ) | [inline, static] |
Definition at line 321 of file hid/lesstif/main.c.
References flip_y, view_height, view_top_y, view_zoom, and y.
Referenced by DrawBackgroundImage(), idle_proc(), lesstif_coords_to_pcb(), lesstif_draw_grid(), mod_changed(), and work_area_input().
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().
static void set_gc | ( | hidGC | gc | ) | [static] |
Definition at line 3250 of file hid/lesstif/main.c.
References bclear_gc, Beveled_Cap, bgcolor, bset_gc, hid_gc_struct::cap, hid_gc_struct::color, hid_gc_struct::colorname, display, hid_gc_struct::erase, mask_gc, hid_gc_struct::me_pointer, my_gc, offlimit_color, pcb_printf(), Round_Cap, Square_Cap, Trace_Cap, use_mask, Vz(), hid_gc_struct::width, and hid_gc_struct::xor_set.
Referenced by lesstif_draw_arc(), lesstif_draw_line(), lesstif_draw_rect(), lesstif_fill_circle(), lesstif_fill_polygon(), and lesstif_fill_rect().
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().
Definition at line 467 of file hid/lesstif/main.c.
References unit::allow, AttributePut, unit::family, get_increments_struct(), get_unit_struct(), SettingType::grid_unit, SettingType::increments, lesstif_sizes_reset(), lesstif_styles_update_values(), NO_PRINT, PCB, and Settings.
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().
Definition at line 658 of file hid/lesstif/main.c.
References bottom_group, BOTTOM_SIDE, ChangeGroupVisibility(), flip_x, flip_y, GetLayerGroupNumberByNumber(), GetLayerGroupNumberBySide(), group_showing(), hscroll, LayerStack, lesstif_invalidate_all(), Settings, SettingType::ShowBottomSide, stdarg, top_group, TOP_SIDE, and vscroll.
static int Vy | ( | Coord | y | ) | [inline, static] |
Definition at line 298 of file hid/lesstif/main.c.
References flip_y, view_height, view_top_y, and view_zoom.
Referenced by Center(), idle_proc(), lesstif_draw_arc(), lesstif_draw_grid(), lesstif_draw_line(), lesstif_draw_rect(), lesstif_fill_circle(), lesstif_fill_polygon(), lesstif_fill_rect(), lesstif_set_crosshair(), lesstif_show_crosshair(), PanAction(), and ZoomAction().
static int Vz | ( | Coord | z | ) | [inline, static] |
Definition at line 307 of file hid/lesstif/main.c.
References view_zoom.
Referenced by lesstif_draw_arc(), lesstif_draw_grid(), lesstif_draw_line(), lesstif_draw_rect(), lesstif_fill_circle(), lesstif_fill_rect(), and set_gc().
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] |
Definition at line 1746 of file hid/lesstif/main.c.
References arc1_gc, arc2_gc, bclear_gc, bg_gc, bgcolor, bset_gc, c, clip_gc, display, grid_color, SettingType::GridColor, lesstif_invalidate_all(), lesstif_parse_color(), mask_bitmap, my_gc, offlimit_color, SettingType::OffLimitColor, Settings, stdarg, use_xrender, view_height, view_width, window, work_area_expose(), and work_area_make_pixmaps().
Referenced by lesstif_do_export().
static void work_area_input | ( | Widget | w, |
XtPointer | v, | ||
XEvent * | e, | ||
Boolean * | ctd | ||
) | [static] |
Definition at line 1416 of file hid/lesstif/main.c.
References crosshair_in_window, display, do_mouse_action(), EventMoveCrosshair(), in_move_event, lesstif_button_event(), lesstif_key_event(), M_Alt, M_Ctrl, M_Release, M_Shift, mod_changed(), mods, need_idle_proc, notify_crosshair_change(), Pan(), Px(), Py(), show_crosshair, and ShowCrosshair().
Referenced by lesstif_do_export().
Definition at line 1668 of file hid/lesstif/main.c.
References display, main_pixmap, mask_bitmap, mask_pixmap, pixmap, pixmap_h, pixmap_w, screen, use_mask, use_xrender, and window.
Referenced by work_area_first_expose(), and work_area_resize().
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().
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().
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().
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().
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().
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().
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.
GC bg_gc |
Definition at line 128 of file hid/lesstif/main.c.
Referenced by Benchmark(), DrawBackgroundImage(), idle_proc(), pinout_callback(), and work_area_first_expose().
int bgblue |
Definition at line 131 of file hid/lesstif/main.c.
Referenced by lesstif_set_color(), and work_area_resize().
Pixel bgcolor [static] |
Definition at line 130 of file hid/lesstif/main.c.
Referenced by idle_proc(), lesstif_set_color(), lesstif_show_crosshair(), set_gc(), work_area_first_expose(), 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().
Colormap colormap [static] |
Definition at line 127 of file hid/lesstif/main.c.
Referenced by do_color(), ghid_map_color_string(), lesstif_parse_arguments(), lesstif_parse_color(), lesstif_set_color(), LoadBackgroundFile(), and work_area_resize().
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.
int crosshair_in_window = 1 |
Definition at line 156 of file hid/lesstif/main.c.
Referenced by lesstif_show_crosshair(), and work_area_input().
bool crosshair_on = true [static] |
Definition at line 177 of file hid/lesstif/main.c.
Referenced by idle_proc(), lesstif_flush_debug_draw(), lesstif_notify_crosshair_change(), lesstif_notify_mark_change(), and ShowCrosshair().
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.
bool flip_x = 0 [static] |
Definition at line 175 of file hid/lesstif/main.c.
Referenced by CursorAction(), flag_flipx(), ghid_flip_view(), idle_proc(), lesstif_draw_arc(), lesstif_draw_grid(), lesstif_set_crosshair(), Pan(), pinout_callback(), Px(), REGISTER_ATTRIBUTES(), SwapSides(), and zoom_to().
bool flip_y = 0 |
Definition at line 175 of file hid/lesstif/main.c.
Referenced by CursorAction(), flag_flipy(), ghid_flip_view(), idle_proc(), lesstif_draw_arc(), lesstif_draw_grid(), lesstif_set_crosshair(), Pan(), pinout_callback(), Py(), SwapSides(), Vy(), and zoom_to().
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().
{ {"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().
HID_DRAW lesstif_graphics [static] |
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().
Widget lesstif_m_layer |
Definition at line 162 of file hid/lesstif/main.c.
Referenced by layerpick_button_callback(), LayersChanged(), and lesstif_do_export().
{ {"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.
{ {"flip_x", flag_flipx, NULL}, {"flip_y", flag_flipy, NULL} }
Definition at line 212 of file hid/lesstif/main.c.
XrmOptionDescRec lesstif_options[] |
{ }
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[] |
{ }
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_cmd_label |
Definition at line 738 of file hid/lesstif/main.c.
Referenced by Command(), command_callback(), command_event_handler(), and lesstif_do_export().
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().
Pixmap main_pixmap = 0 [static] |
Definition at line 111 of file hid/lesstif/main.c.
Referenced by Benchmark(), DrawBackgroundImage(), idle_proc(), lesstif_flush_debug_draw(), lesstif_request_debug_draw(), lesstif_use_mask(), work_area_expose(), and work_area_make_pixmaps().
Widget mainwind |
Definition at line 158 of file hid/lesstif/main.c.
Pixmap mask_bitmap = 0 [static] |
Definition at line 113 of file hid/lesstif/main.c.
Referenced by lesstif_draw_arc(), lesstif_draw_line(), lesstif_draw_rect(), lesstif_fill_circle(), lesstif_fill_polygon(), lesstif_fill_rect(), lesstif_use_mask(), work_area_first_expose(), and work_area_make_pixmaps().
GC mask_gc |
0
Definition at line 128 of file hid/lesstif/main.c.
Referenced by lesstif_draw_arc(), lesstif_draw_line(), lesstif_draw_rect(), lesstif_fill_circle(), lesstif_fill_polygon(), lesstif_fill_rect(), and set_gc().
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().
GC my_gc = 0 [static] |
Definition at line 128 of file hid/lesstif/main.c.
Referenced by idle_proc(), lesstif_draw_arc(), lesstif_draw_line(), lesstif_draw_rect(), lesstif_fill_circle(), lesstif_fill_polygon(), lesstif_fill_rect(), lesstif_flush_debug_draw(), lesstif_notify_crosshair_change(), lesstif_use_mask(), set_gc(), work_area_expose(), and work_area_first_expose().
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.
Pixel offlimit_color |
Definition at line 130 of file hid/lesstif/main.c.
Referenced by idle_proc(), lesstif_set_color(), set_gc(), and work_area_first_expose().
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* pinout = 0 [static] |
Definition at line 153 of file hid/lesstif/main.c.
Referenced by ghid_pinout_preview_expose(), ghid_pinout_preview_finalize(), and ghid_pinout_preview_set_property().
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().
Pixmap pixmap = 0 [static] |
Definition at line 110 of file hid/lesstif/main.c.
Referenced by Benchmark(), ghid_render_pixmap(), ghid_violation_renderer_render(), idle_proc(), 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_notify_crosshair_change(), lesstif_notify_mark_change(), lesstif_request_debug_draw(), lesstif_use_mask(), pinout_callback(), and work_area_make_pixmaps().
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.
Widget progress_label |
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.
Definition at line 114 of file hid/lesstif/main.c.
Referenced by lesstif_draw_arc(), lesstif_draw_line(), lesstif_draw_rect(), lesstif_fill_circle(), lesstif_fill_polygon(), lesstif_fill_rect(), lesstif_use_mask(), pinout_callback(), set_gc(), and work_area_make_pixmaps().
int use_private_colormap = 0 [static] |
Definition at line 228 of file hid/lesstif/main.c.
int use_xrender = 0 [static] |
Definition at line 116 of file hid/lesstif/main.c.
Referenced by lesstif_parse_arguments(), lesstif_use_mask(), work_area_first_expose(), and work_area_make_pixmaps().
int view_height |
Definition at line 166 of file hid/lesstif/main.c.
Referenced by Benchmark(), Center(), CursorAction(), DrawBackgroundImage(), idle_proc(), lesstif_draw_grid(), lesstif_draw_line(), lesstif_draw_rect(), lesstif_fill_circle(), lesstif_fill_rect(), lesstif_flush_debug_draw(), lesstif_pan_fixup(), lesstif_set_crosshair(), lesstif_show_crosshair(), lesstif_use_mask(), Pan(), pinout_callback(), Py(), Vy(), work_area_first_expose(), work_area_resize(), zoom_max(), zoom_to(), and ZoomAction().
int view_left_x = 0 [static] |
Definition at line 170 of file hid/lesstif/main.c.
Referenced by Center(), lesstif_do_export(), lesstif_pan_fixup(), lesstif_set_crosshair(), Pan(), pinout_callback(), Px(), REGISTER_ATTRIBUTES(), zoom_max(), and zoom_to().
int view_top_y = 0 |
Definition at line 170 of file hid/lesstif/main.c.
Referenced by Center(), lesstif_do_export(), lesstif_pan_fixup(), lesstif_set_crosshair(), Pan(), pinout_callback(), Py(), Vy(), zoom_max(), and zoom_to().
int view_width [static] |
Definition at line 166 of file hid/lesstif/main.c.
Referenced by Benchmark(), Center(), CursorAction(), DrawBackgroundImage(), idle_proc(), lesstif_draw_grid(), lesstif_draw_line(), lesstif_draw_rect(), lesstif_fill_circle(), lesstif_fill_rect(), lesstif_flush_debug_draw(), lesstif_pan_fixup(), lesstif_set_crosshair(), lesstif_show_crosshair(), lesstif_use_mask(), Pan(), pinout_callback(), Px(), REGISTER_ATTRIBUTES(), work_area_first_expose(), work_area_resize(), zoom_max(), zoom_to(), and ZoomAction().
double view_zoom = MIL_TO_COORD (10) [static] |
Definition at line 174 of file hid/lesstif/main.c.
Referenced by Center(), DrawBackgroundImage(), idle_proc(), lesstif_pan_fixup(), lesstif_set_crosshair(), Pan(), pinout_callback(), Px(), Py(), Pz(), REGISTER_ATTRIBUTES(), set_scroll(), Vy(), Vz(), zoom_by(), zoom_max(), zoom_to(), and zoom_toggle().
Widget vscroll |
Definition at line 159 of file hid/lesstif/main.c.
Window window = 0 [static] |
Definition at line 101 of file hid/lesstif/main.c.
Referenced by Benchmark(), Busy(), Center(), draw_crosshair(), draw_dozen_cross(), draw_lead_user(), draw_right_cross(), draw_slanted_cross(), DrawBackgroundImage(), ghid_build_pcb_top_window(), ghid_drawing_area_expose_cb(), ghid_init_icons(), ghid_parse_arguments(), ghid_pinout_preview_expose(), ghid_pinout_preview_set_property(), ghid_route_style_selector_edit_dialog(), ghid_screen_update(), gport_set_cursor(), idle_proc(), lesstif_do_export(), lesstif_draw_grid(), lesstif_flush_debug_draw(), lesstif_invalidate_lr(), lesstif_need_idle_proc(), lesstif_notify_crosshair_change(), lesstif_notify_mark_change(), lesstif_set_crosshair(), lesstif_show_crosshair(), lesstif_use_mask(), use_gc(), work_area_expose(), work_area_first_expose(), work_area_make_pixmaps(), and work_area_resize().
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.