lepton-schematic: old-style configuration settings in system-gschemrc

This document lists current settings for lepton-schematic defined in system-gschemrc file, along with some implementation details. It's intended to assist us in migration to new configuration system.

Files involved:

Tags:

Notes:



A: The only option from system-gschemrc implemented in liblepton:

# notes liblepton/src/{g_register,g_rc}.c system-gschemrc expr TODO TODO
1 bus-ripper-symname ( bus-ripper-symname "busripper-1.sym" )


B: Global variables defined in schematic/src/globals.c:

# notes g_register.c, g_rc.c system-gschemrc expr new cfg: group new cfg: key:type
2 logging-destination ( logging-destination "log_window" )
ivar: default_logging_dest
glob: logging_dest
val: LOG_WINDOW - "log_window"
val: STDOUT_TTY - "tty"
val: BOTH_LOGWIN_STDOUT - "both"
dflt: LOG_WINDOW
[defines]


C: Global variables defined in schematic/src/i_vars.c:

# notes g_register.c, g_rc.c system-gschemrc expr new cfg: group new cfg: key:type
3 [H] window-size ( window-size 900 650 )
ivar_1: default_width
ivar_2: default_height
val_1: [int]
val_2: [int]
dflt_1: 800
dflt_2: 600
4 [H] mousepan-gain ( mousepan-gain 1 )
ivar: default_mousepan_gain
topl: mousepan_gain
val: [int]
fbck: 5
dflt: 5
5 [H] keyboardpan-gain ( keyboardpan-gain 20 )
ivar: default_keyboardpan_gain
topl: keyboardpan_gain
val: [int]
fbck: 20
dflt: 20
6 [H] select-slack-pixels ( select-slack-pixels 10 )
ivar: default_select_slack_pixels
topl: select_slack_pixels
val: [int]
fbck: 4
dflt: 4
7 [H] zoom-gain ( zoom-gain 20 )
ivar: default_zoom_gain
topl: zoom_gain
val: [int]
fbck: 20
dflt: 20
8 [H] scrollpan-steps ( scrollpan-steps 8 )
ivar: default_scrollpan_steps
topl: scrollpan_steps
val: [int]
fbck: 8
dflt: 8
9 [H] auto-save-interval ( auto-save-interval 120 )
ivar: default_auto_save_interval
topl: auto_save_interval
val: [int]
fbck: 120
dflt: 120


D: Members of struct _GschemOptions (schematic/include/gschem_options.h):

# notes g_register.c, g_rc.c system-gschemrc expr new cfg: group new cfg: key:type
10 snap-size ( snap-size 100 )
ivar: default_snap_size
opt: snap_size
val: [int]
val: MINIMUM_SNAP_SIZE = 1
val: MAXIMUM_SNAP_SIZE = 102400
[H] fbck: 100
dflt: DEFAULT_SNAP_SIZE = 100
[gschem_options]
11 netconn-rubberband ( netconn-rubberband "enabled" )
ivar: default_netconn_rubberband
opt: net_rubber_band_mode
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: DEFAULT_NET_RUBBER_BAND_MODE = FALSE
[gschem_options]
12 magnetic-net-mode ( magnetic-net-mode "enabled" )
ivar: default_magnetic_net_mode
opt: magnetic_net_mode
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: DEFAULT_MAGNETIC_NET_MODE = TRUE
[gschem_options]
13 grid-mode ( grid-mode "mesh" )
ivar: default_grid_mode
opt: grid_mode
val: GRID_MODE_NONE - "none"
val: GRID_MODE_DOTS - "dots"
val: GRID_MODE_MESH - "mesh"
dflt: DEFAULT_GRID_MODE = GRID_MODE_MESH
[gschem_options]


E: Members of struct st_gschem_toplevel (schematic/include/gschem_toplevel.h):

# notes g_register.c, g_rc.c system-gschemrc expr new cfg: group new cfg: key:type
14 net-direction-mode ( net-direction-mode "enabled" )
ivar: default_net_direction_mode
topl: net_direction_mode
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: TRUE
15 net-selection-mode ( net-selection-mode "enabled_net" )
ivar: default_net_selection_mode
[H] topl: net_selection_mode
val: 0 - "disabled"
val: 2 - "enabled_net"
val: 3 - "enabled_all"
dflt: 0
16 zoom-with-pan ( zoom-with-pan "enabled" )
ivar: default_zoom_with_pan
topl: zoom_with_pan
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: TRUE
17 action-feedback-mode ( action-feedback-mode "outline" )
ivar: default_actionfeedback_mode
topl: actionfeedback_mode
val: OUTLINE - "outline"
val: BOUNDINGBOX - "boundingbox"
dflt: OUTLINE
[gschem_defines]
18 scrollbars ( scrollbars "enabled" )
ivar: default_scrollbars_flag
topl: scrollbars_flag
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: TRUE
19 embed-components ( embed-components "disabled" )
ivar: default_embed_complex
topl: embed_complex
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: FALSE
20 logging ( logging "enabled" )
ivar: default_do_logging
topl: do_logging
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: TRUE
21 text-size ( text-size 10 )
ivar: default_text_size
topl: text_size
val: [int]
val: MINIMUM_TEXT_SIZE = 1
dflt: DEFAULT_TEXT_SIZE = 10
[geda_text_object]
22 text-caps-style ( text-caps-style "both" )
ivar: default_text_caps
topl: text_caps
val: LOWER - "lower"
val: UPPER - "upper"
val: BOTH - "both"
dflt: LOWER
[gschem_defines]
23 image-color ( image-color "enabled" )
ivar: default_image_color
topl: image_color
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: FALSE
24 log-window ( log-window "startup" )
ivar: default_log_window
topl: log_window
val: MAP_ON_STARTUP - "startup"
val: MAP_LATER - "later"
dflt: MAP_ON_STARTUP
[gschem_defines]
25 log-window-type ( log-window-type "decorated" )
ivar: default_log_window_type
topl: log_window_type
val: TRANSIENT - "transient"
val: DECORATED - "decorated"
dflt: DECORATED
[gschem_defines]
26 third-button ( third-button "popup" )
ivar: default_third_button
topl: third_button
val: POPUP_ENABLED - "popup"
val: MOUSEPAN_ENABLED - "mousepan"
dflt: POPUP_ENABLED
[gschem_defines]
27 third-button-cancel ( third-button-cancel "enabled" )
ivar: default_third_button_cancel
topl: third_button_cancel
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: TRUE
28 middle-button ( middle-button "mousepan" )
ivar: default_middle_button
topl: middle_button
val: STROKE - "stroke"
val: REPEAT - "repeat"
val: ACTION - "action"
val: MID_MOUSEPAN_ENABLED - "mousepan"
dflt: HAVE_LIBSTROKE ? STROKE : REPEAT u u
[gschem_defines]
29 scroll-wheel ( scroll-wheel "classic" )
ivar: default_scroll_wheel
topl: scroll_wheel
val: SCROLL_WHEEL_CLASSIC - "classic"
val: SCROLL_WHEEL_GTK - "gtk"
dflt: SCROLL_WHEEL_CLASSIC
[gschem_defines]
30 net-consolidate ( net-consolidate "enabled" )
ivar: default_net_consolidate
topl: net_consolidate
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: TRUE
31 file-preview ( file-preview "enabled" )
ivar: default_file_preview
topl: file_preview
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: FALSE
32 enforce-hierarchy ( enforce-hierarchy "enabled" )
ivar: default_enforce_hierarchy
topl: enforce_hierarchy
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: TRUE
33 fast-mousepan ( fast-mousepan "enabled" )
ivar: default_fast_mousepan
topl: fast_mousepan
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: TRUE
34 raise-dialog-boxes-on-expose ( raise-dialog-boxes-on-expose "disabled" )
ivar: default_raise_dialog_boxes
topl: raise_dialog_boxes
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: FALSE
35 continue-component-place ( continue-component-place "enabled" )
ivar: default_continue_component_place
topl: continue_component_place
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: TRUE
36 [H] undo-levels ( undo-levels 10 )
ivar: default_undo_levels
topl: undo_levels
val: [int]
fbck: 10
dflt: 20
37 undo-control ( undo-control "enabled" )
ivar: default_undo_control
topl: undo_control
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: TRUE
38 undo-type ( undo-type "disk" )
ivar: default_undo_control
topl: undo_control
val: UNDO_DISK - "disk"
val: UNDO_MEMORY - "memory"
dflt: UNDO_DISK
[gschem_defines]
39 undo-panzoom ( undo-panzoom "enabled" )
ivar: default_undo_panzoom
topl: undo_panzoom
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: FALSE
40 draw-grips ( draw-grips "enabled" )
ivar: default_draw_grips
topl: draw_grips
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: TRUE
41 warp-cursor ( warp-cursor "enabled" )
ivar: default_warp_cursor
topl: warp_cursor
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: TRUE
42 toolbars ( toolbars "enabled" )
ivar: default_toolbars
topl: toolbars
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: TRUE
43 handleboxes ( handleboxes "enabled" )
ivar: default_handleboxes
topl: handleboxes
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: TRUE
44 [H] bus-ripper-size ( bus-ripper-size 200 )
ivar: default_bus_ripper_size
topl: bus_ripper_size
val: [int]
fbck: 200
dflt: 200
45 bus-ripper-type ( bus-ripper-type "component" )
ivar: default_bus_ripper_type
topl: bus_ripper_type
val: COMP_BUS_RIPPER - "component"
val: NET_BUS_RIPPER - "net"
dflt: COMP_BUS_RIPPER
[gschem_defines]
46 bus-ripper-rotation ( bus-ripper-rotation "non-symmetric" )
ivar: default_bus_ripper_rotation
topl: bus_ripper_rotation
val: SYMMETRIC - "symmetric"
val: NON_SYMMETRIC - "non-symmetric"
dflt: NON_SYMMETRIC
[gschem_defines]
47 force-boundingbox ( force-boundingbox "disabled" )
ivar: default_force_boundingbox
topl: force_boundingbox
val: TRUE - "enabled"
val: FALSE - "disabled"
dflt: FALSE
48 [H] dots-grid-dot-size ( dots-grid-dot-size 1 )
ivar: default_dots_grid_dot_size
topl: dots_grid_dot_size
val: [int]
fbck: 1
dflt: 1
49 dots-grid-mode ( dots-grid-mode "variable" )
ivar: default_dots_grid_mode
topl: dots_grid_mode
val: DOTS_GRID_VARIABLE_MODE - "variable"
val: DOTS_GRID_FIXED_MODE - "fixed"
dflt: DOTS_GRID_VARIABLE_MODE
[gschem_defines]
50 [H] dots-grid-fixed-threshold ( dots-grid-fixed-threshold 10 )
ivar: default_dots_grid_fixed_threshold
topl: dots_grid_fixed_threshold
val: [int]
fbck: 10
dflt: 10
51 [H] mesh-grid-display-threshold ( mesh-grid-display-threshold 3 )
ivar: default_mesh_grid_display_threshold
topl: mesh_grid_display_threshold
val: [int]
fbck: 3
dflt: 3
52 [H] [N] add-attribute-offset ( add-attribute-offset 50 )
ivar: default_add_attribute_offset
topl: add_attribute_offset
val: [int]
fbck: 50
dflt: 50


Description (copy/paste from system-gschemrc):



TODO: