Index: trunk/doc-rnd/news.html =================================================================== --- trunk/doc-rnd/news.html (revision 5606) +++ trunk/doc-rnd/news.html (nonexistent) @@ -1,53 +0,0 @@ - - - pcb-rnd - news - - - - - - - - - -
Main - News - People - Events & timeline - pcb-rnd -
- - -
- -

News

- -
- - - -
- 2016-09-04 -
- Rebranding -
- We have a new main page reflecting the transition how we regard pcb-rnd: - it is not much of just a fork of geda/pcb by now, but a separate PCB - editor with its own team and own course. File save/load compatibility is - maintained. - -
- 2016-08-24 -
- Release 1.1.1 -
- Available at the download page . -
- The next development cycle will focus on editable/searchable attributes - and a new native file format. - -
-
- - - Index: trunk/doc-rnd/irc.html =================================================================== --- trunk/doc-rnd/irc.html (revision 5606) +++ trunk/doc-rnd/irc.html (nonexistent) @@ -1,43 +0,0 @@ - - - pcb-rnd - IRC - - - - - - - - - -
Main - News - People - Events & timeline - pcb-rnd -
- - -

Live support via IRC (chat)

-
Irc server: repo.hu       Port: 6667       Channel: #pcb-rnd -
  -

I'm normally online as Igor2 between 5:00 CET and 19:00 CET; on Sunday there's an AFK-window between 11:00 CET and 16:00 CET. If I don't answer in a few minutes I'm probably away doing something, please be patient; say hi before you type your long question so you see if I'm available. -


-

-Below is an iframe of -kiwiirc irc client configured with the above settings. If it doesn't -work, please visit their page and -try to manually configure it, it's just 4 fields. -

-Using the web client: you may change your nickname; there's no password -or registration or channel key or ssl of any form. Your real IP won't be -shown on the IRC network (check kiwiirc's page about thier privacy -policy). -

-Connecting with the web client may take some time, give it a minute. -


- - - - - Index: trunk/doc-rnd/conf/tree/rc_path.html =================================================================== --- trunk/doc-rnd/conf/tree/rc_path.html (revision 5606) +++ trunk/doc-rnd/conf/tree/rc_path.html (nonexistent) @@ -1,12 +0,0 @@ - -

pcb-rnd conf tree

-

subtree: rc/path

- -
node name type flags description -
prefix string 0 e.g. /usr/local -
lib string 0 e.g. /usr/lib/pcb-rnd -
bin string 0 e.g. /usr/bin -
share string 0 e.g. /usr/share/pcb-rnd -
home string 0 user's home dir, determined run-time -
exec_prefix string 0 exec prefix path (extracted from argv[0]) -
Index: trunk/doc-rnd/conf/tree/editor_view.html =================================================================== --- trunk/doc-rnd/conf/tree/editor_view.html (revision 5606) +++ trunk/doc-rnd/conf/tree/editor_view.html (nonexistent) @@ -1,8 +0,0 @@ - -

pcb-rnd conf tree

-

subtree: editor/view

- -
node name type flags description -
flip_x boolean 0 view: flip the board along the X (horizontal) axis -
flip_y boolean 0 view: flip the board along the Y (vertical) axis -
Index: trunk/doc-rnd/conf/tree/CFN_INTEGER.html =================================================================== --- trunk/doc-rnd/conf/tree/CFN_INTEGER.html (revision 5606) +++ trunk/doc-rnd/conf/tree/CFN_INTEGER.html (nonexistent) @@ -1,10 +0,0 @@ - - -

pcb-rnd conf tree

-

type: integer

-A decimal integer value without unit. The value might be stored in a -32 bit integer; safe range is approximately -2^31 .. 2^31. -

-Example values: 4, 1500, 2545343, -6 - - Index: trunk/doc-rnd/conf/tree/appearance_messages.html =================================================================== --- trunk/doc-rnd/conf/tree/appearance_messages.html (revision 5606) +++ trunk/doc-rnd/conf/tree/appearance_messages.html (nonexistent) @@ -1,7 +0,0 @@ - -

pcb-rnd conf tree

-

subtree: appearance/messages

- -
node name type flags description -
char_per_line integer 0 width of an output line in characters (used by separator drawing in find.c) -
Index: trunk/doc-rnd/conf/tree/editor.html =================================================================== --- trunk/doc-rnd/conf/tree/editor.html (revision 5606) +++ trunk/doc-rnd/conf/tree/editor.html (nonexistent) @@ -1,49 +0,0 @@ - -

pcb-rnd conf tree

-

subtree: editor

- -
node name type flags description -
grid_unit unit 0 select whether you draw in mm or mil -
grid coord 0 grid in pcb-units -
increments_mm increments 0 increments (size deltas) when drawing in mil -
increments_mil increments 0 increments (size deltas) when drawing in mil -
zoom real 0 default zoom -
mode integer 0 currently active mode -
buffer_number integer 0 number of the current buffer -
clear_line boolean 0 new lines/arc clear polygons. -
full_poly boolean 0 new polygons are full polygons. -
unique_names boolean 0 force unique names -
snap_pin boolean 0 snap to pins and pads -
snap_offgrid_line boolean 0 Snap to certain off-grid points along a line. -
highlight_on_point boolean 0 Highlight if crosshair is on endpoints. -
show_solder_side boolean 0 mirror output -
save_last_command boolean 0 the command entry editline always starts with the last command entered by user in the current session -
line_refraction integer 0 value for line lookahead setting -
save_in_tmp boolean 0 emergency save unsaved PCB data (despite the user clicks don't save) when: user starts a new PCB; user quits pcb-rnd. Does not affect the on-crash emergency save. -
draw_grid boolean 0 draw grid points -
all_direction_lines boolean 0 enable lines to all directions -
rubber_band_mode boolean 0 move, rotate use rubberband connections -
swap_start_direction boolean 0 change starting direction after each click -
show_drc boolean 0 show drc region on crosshair -
auto_drc boolean 0 when set, PCB doesn't let you place copper that violates DRC. -
show_number boolean 0 pinout shows number -
orthogonal_moves boolean 0 move items orthogonally. -
reset_after_element boolean 0 reset connections after each element while saving all connections -
auto_place boolean 0 flag which says we should force placement of the windows on startup -
lock_names boolean 0 lock down text so they can not be moved or selected -
only_names boolean 0 lock down everything else but text so only text objects can be moved or selected -
thin_draw boolean 0 if set, objects on the screen are drawn as outlines (lines are drawn as center-lines). This lets you see line endpoints hidden under pins, for example. -
thin_draw_poly boolean 0 if set, polygons on the screen are drawn as outlines. -
local_ref boolean 0 use local reference for moves, by setting the mark at the beginning of each move. -
check_planes boolean 0 when set, only polygons and their clearances are drawn, to see if polygons have isolated regions. -
show_mask boolean 0 show the solder mask layer -
hide_names boolean 0 when set, element names are not drawn. -
description boolean 0 display element description as element name, instead of value -
name_on_pcb boolean 0 display Reference Designator as element name, instead of value -
fullscreen boolean 0 hide widgets to make more room for the drawing -
click_time integer 0 default time for click expiration, in ms -
enable_stroke boolean 0 Enable libstroke gestures on middle mouse button when non-zero -
live_routing boolean 0 autorouter shows tracks in progress -
beep_when_finished boolean 0 flag if a signal should be produced when searching of connections is done -
undo_warning_size integer 0 warn the user when undo list exceeds this amount of kilobytes in memory -
Index: trunk/doc-rnd/conf/tree/CFN_STRING.html =================================================================== --- trunk/doc-rnd/conf/tree/CFN_STRING.html (revision 5606) +++ trunk/doc-rnd/conf/tree/CFN_STRING.html (nonexistent) @@ -1,13 +0,0 @@ - - -

pcb-rnd conf tree

-

type: string

-Text value. -

-Example values: -

-foo
-bar
-{long text with / punctuation?}
-
- Index: trunk/doc-rnd/conf/tree/CFN_COORD.html =================================================================== --- trunk/doc-rnd/conf/tree/CFN_COORD.html (revision 5606) +++ trunk/doc-rnd/conf/tree/CFN_COORD.html (nonexistent) @@ -1,10 +0,0 @@ - - -

pcb-rnd conf tree

-

type: coord

-A coordinate: size, distance, spacing. A decimal number with an unit. Unit -can be metric (e.g. mm, cm, m) or imperial (e.g. mil). -

-Example values: 1.5mm, 15 mil - - Index: trunk/doc-rnd/conf/tree/appearance_color.html =================================================================== --- trunk/doc-rnd/conf/tree/appearance_color.html (revision 5606) +++ trunk/doc-rnd/conf/tree/appearance_color.html (nonexistent) @@ -1,30 +0,0 @@ - -

pcb-rnd conf tree

-

subtree: appearance/color

- -
node name type flags description -
black color 0 -
white color 0 -
background color 0 background and cursor color ... -
crosshair color 0 different object colors -
cross color 0 -
via color 0 -
via_selected color 0 -
pin color 0 -
pin_selected color 0 -
pin_name color 0 -
element color 0 -
element_nonetlist color 0 -
rat color 0 -
invisible_objects color 0 -
invisible_mark color 0 -
element_selected color 0 -
rat_selected color 0 -
connected color 0 -
off_limit color 0 -
grid color 0 -
layer color 0 -
layer_selected color 0 -
warn color 0 -
mask color 0 -
Index: trunk/doc-rnd/conf/tree/CFN_INCREMENTS.html =================================================================== --- trunk/doc-rnd/conf/tree/CFN_INCREMENTS.html (revision 5606) +++ trunk/doc-rnd/conf/tree/CFN_INCREMENTS.html (nonexistent) @@ -1,8 +0,0 @@ - - -

pcb-rnd conf tree

-

type: increments

-A collection of coordinates representing an increment configuration. -

-TODO - Index: trunk/doc-rnd/conf/tree/appearance_pinout.html =================================================================== --- trunk/doc-rnd/conf/tree/appearance_pinout.html (revision 5606) +++ trunk/doc-rnd/conf/tree/appearance_pinout.html (nonexistent) @@ -1,12 +0,0 @@ - -

pcb-rnd conf tree

-

subtree: appearance/pinout

- -
node name type flags description -
name_length integer 0 -
zoom real 0 -
offset_x coord 0 X offset of origin -
offset_y coord 0 Y offset of origin -
text_offset_x coord 0 X offset of text from pin center -
text_offset_y coord 0 Y offset of text from pin center -
Index: trunk/doc-rnd/conf/tree/appearance.html =================================================================== --- trunk/doc-rnd/conf/tree/appearance.html (revision 5606) +++ trunk/doc-rnd/conf/tree/appearance.html (nonexistent) @@ -1,8 +0,0 @@ - -

pcb-rnd conf tree

-

subtree: appearance

- -
node name type flags description -
rat_thickness coord 0 -
mark_size coord 0 relative marker size -
Index: trunk/doc-rnd/conf/tree/CFN_LIST.html =================================================================== --- trunk/doc-rnd/conf/tree/CFN_LIST.html (revision 5606) +++ trunk/doc-rnd/conf/tree/CFN_LIST.html (nonexistent) @@ -1,10 +0,0 @@ - - -

pcb-rnd conf tree

-

type: list

-An ordered list of strings. -

-Example values: -

-li:{ foo; bar; {foo/bar/with-punctuation}; 123}
-
Index: trunk/doc-rnd/conf/tree/rc.html =================================================================== --- trunk/doc-rnd/conf/tree/rc.html (revision 5606) +++ trunk/doc-rnd/conf/tree/rc.html (nonexistent) @@ -1,26 +0,0 @@ - -

pcb-rnd conf tree

-

subtree: rc

- -
node name type flags description -
verbose integer 0 -
quiet integer 0 print only errors on stderr -
backup_interval integer 0 time between two backups in seconds -
font_command string 0 file name template; if not empty, run this command and read its outout for loading the font; %f is the file name -
file_command string 0 file name template; if not empty, run this command and read its outout for loading a pcb file; %f is the file name, %p is the conf setting rc.file_path -
file_path string 0 -
library_shell string 0 -
library_search_paths list 0 -
emergency_name string 0 file name template for emergency save anonymous .pcb files (when pcb-rnd crashes); optional field: %ld --> pid; must be shorter than 240 characters. Don't do emergency save if this item is empty. -
backup_name string 0 file name template for periodic backup anonymous .pcb files; optional fields: %P --> pid -
save_command string 0 command to pipe the pcb, footprint or buffer file into, when saving (makes lihata persist impossible) -
keep_save_backups boolean 0 a copy is made before a save operation overwrites an existing file; if this setting is true, keep the copy even after a successful save -
default_font_file list 0 name of default font file (list of names to search) -
default_pcb_file list 0 -
script_filename string 0 PCB Actions script to execute on startup -
action_string string 0 PCB Actions string to execute on startup -
rat_path string 0 -
rat_command string 0 file name template; if not empty, run this command and read its outout for loading a rats; %f is the file name, %p is the rc.rat_path conf setting -
preferred_gui list 0 if set, try GUI HIDs in this order when no GUI is explicitly selected -
have_regex boolean 0 whether we have regex compiled in -
Index: trunk/doc-rnd/conf/tree/CFN_COLOR.html =================================================================== --- trunk/doc-rnd/conf/tree/CFN_COLOR.html (revision 5606) +++ trunk/doc-rnd/conf/tree/CFN_COLOR.html (nonexistent) @@ -1,9 +0,0 @@ - - -

pcb-rnd conf tree

-

type: color

-A color description. Use the "webcolor" format: #rrggbb, where -rr, gg and bb are 2 digit hexadecimal values for red, green and blue -components. -

-Example values: #ff0000 for red, #555555 for grey. Index: trunk/doc-rnd/conf/tree/CFN_UNIT.html =================================================================== --- trunk/doc-rnd/conf/tree/CFN_UNIT.html (revision 5606) +++ trunk/doc-rnd/conf/tree/CFN_UNIT.html (nonexistent) @@ -1,9 +0,0 @@ - - -

pcb-rnd conf tree

-

type: unit

-Name of a unit. -

-Example values: mm, cm, m, mil - - Index: trunk/doc-rnd/conf/tree/CFN_BOOLEAN.html =================================================================== --- trunk/doc-rnd/conf/tree/CFN_BOOLEAN.html (revision 5606) +++ trunk/doc-rnd/conf/tree/CFN_BOOLEAN.html (nonexistent) @@ -1,8 +0,0 @@ - - -

pcb-rnd conf tree

-

type: boolean

-Boolean value: true or false. Most often used for determining whether a -feature or a (display mode) is enabled. -

-Example values: true, false, on, off, yes, no, 1, 0. Index: trunk/doc-rnd/conf/tree/temp.html =================================================================== --- trunk/doc-rnd/conf/tree/temp.html (revision 5606) +++ trunk/doc-rnd/conf/tree/temp.html (nonexistent) @@ -1,7 +0,0 @@ - -

pcb-rnd conf tree

-

subtree: temp

- -
node name type flags description -
rat_warn boolean 0 rats nest has set warnings -
Index: trunk/doc-rnd/conf/tree/CFN_REAL.html =================================================================== --- trunk/doc-rnd/conf/tree/CFN_REAL.html (revision 5606) +++ trunk/doc-rnd/conf/tree/CFN_REAL.html (nonexistent) @@ -1,9 +0,0 @@ - - -

pcb-rnd conf tree

-

type: real

-A decimal numeric value without unit. -

-Example values: 3.141592654, 5, -12, 0 - - Index: trunk/doc-rnd/conf/tree/design.html =================================================================== --- trunk/doc-rnd/conf/tree/design.html (revision 5606) +++ trunk/doc-rnd/conf/tree/design.html (nonexistent) @@ -1,26 +0,0 @@ - -

pcb-rnd conf tree

-

subtree: design

- -
node name type flags description -
via_thickness coord 0 -
via_drilling_hole coord 0 -
line_thickness coord 0 -
clearance coord 0 -
max_width coord 0 -
max_height coord 0 -
alignment_distance coord 0 default drc size -
bloat coord 0 default drc size -
shrink coord 0 -
min_wid coord 0 -
min_slk coord 0 -
min_drill coord 0 -
min_ring coord 0 -
text_scale integer 0 text scaling in % -
poly_isle_area real 0 polygon min area -
default_layer_name string 0 -
fab_author string 0 Full name of author for FAB drawings -
initial_layer_stack string 0 If set, the initial layer stack is set to this -
groups string 0 string with layergroups -
routes string 0 string with route styles -
Index: trunk/doc-rnd/conf/tree/appearance_misc.html =================================================================== --- trunk/doc-rnd/conf/tree/appearance_misc.html (revision 5606) +++ trunk/doc-rnd/conf/tree/appearance_misc.html (nonexistent) @@ -1,7 +0,0 @@ - -

pcb-rnd conf tree

-

subtree: appearance/misc

- -
node name type flags description -
volume integer 0 the speakers volume -100..100 -
Index: trunk/doc-rnd/conf/lists.html =================================================================== --- trunk/doc-rnd/conf/lists.html (revision 5606) +++ trunk/doc-rnd/conf/lists.html (nonexistent) @@ -1,125 +0,0 @@ - - -

The new config system in pcb-rnd

-

Lists and arrays

- -Non-scalar settings are arrays or lists. Arrays can be explicitly indexed - -The default policy is always overwrite. -

-There are three active policies: overwrite, prepend and append. -When dealing with lists: -

-Step 3 is straight-forward: if policy is overwrite, reset the output -list and copy the source's list into the output list. If policy is -prepend (or append), keep the current output list and prepend -(or append) the list provided by the source. -

-In practice this means the user can replace, prepend or append ordered lists -from various sources. A common example is setting the library search paths. - -

examples

- -

simple overwrite

-Config sources (ordered by priority): - -
role priority policy content -
system 200 overwrite A,B,C -
user 400 overwrite (not defined) -
project 600 overwrite D,E -
-

Merge iterations: - -
step description output list after executing this step remarks -
0. reset the output (empty)   -
1. apply system A,B,C   -
2. apply user A,B,C "not defined" doesn't mean "empty", so the list is not deleted - no change -
3. apply project D,E replace the original output because of the overwrite policy -
-

Example scenario: the project is restricted to local footprint libs; this setup -makes sure no system or user configuration injects external footprint paths. - -

empty overwrite

-Config sources (ordered by priority): - -
role priority policy content -
system 200 overwrite A,B,C -
user 400 overwrite (not defined) -
project 600 overwrite defined to be an empty list -
-

Merge iterations: - -
step description output list after executing this step remarks -
0. reset the output (empty)   -
1. apply system A,B,C   -
2. apply user A,B,C "not defined" doesn't mean "empty", so the list is not deleted - no change -
3. apply project (empty) replace the original output because of the overwrite policy -
- -

prepend

-Config sources (ordered by priority): - -
role priority policy content -
system 200 overwrite A,B,C -
user 400 prepend (not defined) -
project 600 prepend D,E -
-

Merge iterations: - -
step description output list after executing this step remarks -
0. reset the output (empty)   -
1. apply system A,B,C   -
2. apply user A,B,C "not defined" doesn't mean "empty", so the list is not deleted - no change -
3. apply project D,E,A,B,C   -
-

Example scenario: the project has its own footprint libs with two paths; these -should be searched before system and user paths, still, system path is also -kept so stock footprints can be found. -

-This is better than hardwiring A,B,C in the project's list: A, B and C may -depend on the installation on a given system. A project file has no idea -about how the system is installed but it is assumed system installation -and the system configuration file are consistent. - -

append

-Config sources (ordered by priority): - -
role priority policy content -
system 200 overwrite A,B,C -
user 400 append (not defined) -
project 600 append D,E -
-

Merge iterations: - -
step description output list after executing this step remarks -
0. reset the output (empty)   -
1. apply system A,B,C   -
2. apply user A,B,C "not defined" doesn't mean "empty", so the list is not deleted - no change -
3. apply project A,B,C,D,E   -
-

Example scenario: the project has its own footprint libs with two paths; these -should be searched after system and user paths. This means the local footprint -lib has lower priority than the stock footprints. See system-dependent -installation remarks in the previous point. - - -

prepend+append

-Config sources (ordered by priority): - -
role priority policy content -
system 200 overwrite A,B,C -
user 400 prepend X,Y,Z -
project 600 append D,E -
-

Merge iterations: - -
step description output list after executing this step remarks -
0. reset the output (empty)   -
1. apply system A,B,C   -
2. apply user X,Y,Z,A,B,C   -
3. apply project X,Y,Z,A,B,C,D,E   -
Index: trunk/doc-rnd/conf/index_prog.html =================================================================== --- trunk/doc-rnd/conf/index_prog.html (revision 5606) +++ trunk/doc-rnd/conf/index_prog.html (nonexistent) @@ -1,8 +0,0 @@ - - -

The new config system in pcb-rnd

-

Programmer's documentation

- -TODO - - Index: trunk/doc-rnd/conf/groups.html =================================================================== --- trunk/doc-rnd/conf/groups.html (revision 5606) +++ trunk/doc-rnd/conf/groups.html (nonexistent) @@ -1,116 +0,0 @@ - - -

The new config system in pcb-rnd

-

grouping - flat vs. tree

-The original settings and HID attribute system in pcb were both flat: -basically a list of type:key=val triplets. All settings in a few big bags; -which bag sometimes doesn't depend on some logical categorizing, but -historical reasons (e.g. which part of the code needs the given setting). -

-This works well for a small amount of settings but lack of categories or -hierarchy (or sets or groups) makes it harder to understand what setting does -what and orients users to just accept defaults. After a while it also -makes programmers think twice before adding a new setting, increasing the -crowd in a bag. This in turn results in a less configurable -system. -

-Introducing a hierarchy of settings can solve these problems by grouping -and categorizing settings. If the user is interested in how footprints are -searched, they can ignore the settings the editor/ subtree has. It is also -easier to save and reload selectively: when the hierarchy is done right, -closely related settings end up in the same category (thus the same subtree). -Thus saving or loading a subtree can fully save or restore a property of the -program, even if that property is affected by multiple settings. - -

pcb-rnd config tree

-The config tree, the full tree is, something that exists in memory. Actual -config files often contain only a subset of the tree. Multiple config files -(e.g. system level, user level, settings from the .pcb file) are loaded and -merged to form the final config tree. The hierarchy of the tree is represented -by setting groups, which are like directories on a file system. Actual settings -are always leaves of the tree, placed in a specific group at any level (just -like in file systems). A full path to a setting is written like a -path on a file system: group1/group2/item, where group1 and group2 are -names of setting groups and item is the name of the setting. Note: unlike -with real file systems, the leading slash (representing the root) is omitted. -

-Details/constraints: -A valid path unambiguously identifies a setting (or a setting group). Settings -and groups always have exactly one parent (except for the root group that -has no parent). There is only one root of the config tree. -

-The main groups in the logical tree are: - -

- -
(root)   (config root) -
|       -
+- rc run control (program startup) -
|       -
|   |   -
|   +- path paths automatically set up by the program at startup - do not specify these -
|       -
+- design some default settings of a new design; minimum/maximum value of some design settings -
|       -
+- editor how the pcb editor behaves - independent of HIDs or the GUI -
|   |   -
|   +- increments_mm interactive increment/decrement steps when active unit is mm -
|   |   -
|   +- increments_mil interactive increment/decrement steps when active unit is mil -
|   |   -
|   +- view default view parameters -
|       -
+- appearance how the GUI looks like - common to all GUI HIDs -
|   |   -
|   +- color layer colors, GUI colors, misc design colors -
|   |   -
|   +- pinout pin label properties -
|   |   -
|   +- messages message window properties -
|   |   -
|   +- misc non-GUI settings handled by the GUI HIDs -
|       -
+- plugins dynamic subtree for various plugin settings -
|   |   -
|   +- foo all settings of the imaginary foo plugin are registered in this group -
|       -
+- utils dynamic subtree for various plugin settings -
  |   -
  +- bar all settings of the imaginary bar utility are registered in this group -
-
- -

dynamic subtrees

- -The plugins/ and utils/ subtree are dynamic, which means their contents -are not defined by core pcb. -

-In plugins/ each plugin should create a group for its own settings. What -this subtree should contain depends on what plugins are actually loaded. -The benefit of this approach is that plugins can use the central config -infrastructure instead of inventing their own config files. This makes -user's life easier on many levels: single config syntax to learn; uniform -GUI (gtk HID's preferences window) to change all settings; uniform way to -save/restore parts of the settings. -

-The utils/ subtree is very similar in all aspects except that it is for -external utility programs. Utils that are closely related to pcb-rnd, such -as gsch2pcb-rnd, should work from the same configuration (e.g. to -make sure the same footprint paths are searched). If they already load the -pcb-rnd config files it's easier to keep their settings in the same tree, -in the same format. -

-Pcb-rnd doesn't generate warning for unrecognized settings in dynamic subtrees. -This lets the user configure plugins that are not always loaded and let util -settings sit in their subtree. - -

what happens to all these settings

- -After loading all config files they are merged: if the same setting is -described in multiple files, the higher priority wins or if the setting is -a list (e.g. library search paths) the items are merged in a final list. -At this point the full logical config tree is built. Next the textual values -from the logical tree are converted into binary (native C values like -"long int" or "double") and are saved in C variables for the code to -access them directly. - Index: trunk/doc-rnd/conf/sources.html =================================================================== --- trunk/doc-rnd/conf/sources.html (revision 5606) +++ trunk/doc-rnd/conf/sources.html (nonexistent) @@ -1,72 +0,0 @@ - - -

The new config system in pcb-rnd

-

Sources

-There are different sources of configuration settings. These are -different configuration files, sometimes located on the file system. -The full list of config sources is: - - -
role default
setting
prio
location presence remarks -
internal - 100 - (compiled into the executable) - always - the ultimate fallback; allows pcb-rnd even if no other configuration file is found - - -
system - 200 - /usr/share/pcb-rnd/pcb-conf.lht - recommended - should hold system and installation specific settigns, e.g. path to the system-wise installed footprint library - -
default.pcb - 300 - /usr/share/pcb-rnd/default.pcb - deprecated - pcb editable defaults - -
user - 400 - ~/.pcb-rnd/pcb-conf.lht - recommended - store user preferences, user's common footprint lib path, etc; this is the first file the user can modify (even from the GUI) - -
environment - 500 - environment variables (TODO) - occassional - inject the same (temporary) settings in multiple pcb-rnd sessions without having to change config files - -
project - 600 - projdect.lht in the project directory - optional - local project settings - useful for large projects with multiple design (.pcb) files - -
design - 700 - saved in the design (.pcb) file - optional, common - per design deviation from the user+system config - -
cli - 800 - command line argument - occassional - inject/change a setting for a single session; useful in batch/automated processing -
- -

-Pcb-rnd reads them all, then merges all settings into a master binary -representation. If a setting is specified in multiple sources, the one -with the higher priority wins, except for lists where it is also possible -to prepend/append items. Default priorities are designed to result -precedence in an intuitive way (e.g. design settigns overwrite user settings). -However, priority can be changed per setting, resulting -in weak settings ("use this value if it was not already set") or strong settings -("I always want to use mincut, so I enable it from my user's config with high -priority and a version controlled project setting can not turn it off") - - Index: trunk/doc-rnd/conf/plugin_chk.html =================================================================== --- trunk/doc-rnd/conf/plugin_chk.html (revision 5606) +++ trunk/doc-rnd/conf/plugin_chk.html (nonexistent) @@ -1,7 +0,0 @@ - - -

The new config system in pcb-rnd

-

Plugin programmer's checklist

- -TODO - Index: trunk/doc-rnd/conf/src/merging.dot =================================================================== --- trunk/doc-rnd/conf/src/merging.dot (revision 5606) +++ trunk/doc-rnd/conf/src/merging.dot (nonexistent) @@ -1,103 +0,0 @@ -digraph g { - rankdir=LR; - - subgraph cluster_memtree { - label="in-memory lihata trees" - bgcolor=grey - rank=same - CFR_INTERNAL [label="CFR_INTERNAL\nultimate fallback"] - CFR_SYSTEM [label="CFR_SYSTEM\nsystem level configuration"] - CFR_DEFAULTPCB [label="CFR_DEFAULTPCB"] - CFR_USER [label="CFR_USER\nuser level configuration"] - CFR_ENV [label="CFR_ENV"] - CFR_PROJECT [label="CFR_PROJECT\nproject level configuration"] - CFR_DESIGN [label="CFR_DESIGN"] - CFR_CLI [label="CFR_CLI"] - } - - subgraph cluster_fields { - label="string -> conf_native_t hash" - bgcolor=grey - conf_fields [label="conf_fields\ncentral hash\nof all\nknown settings"] - } - - subgraph cluster_native { - label="native C structures\nper module" - bgcolor=grey - conf_core [label="conf_core\npcb-rnd core settings"] - conf_hid_gtk [label="conf_hid_gtk\nthe hid_gtk plugin's settings"] - conf_mincut [label="conf_mincut\nthe mincut plugin's settings"] - conf_report [label="conf_report\nthe report plugin's settings"] - conf_other [label="...\nother plugin's settings"] - } - - CFR_INTERNAL -> conf_fields [color=red] - CFR_SYSTEM -> conf_fields [color=red] - CFR_DEFAULTPCB -> conf_fields [color=red] - CFR_USER -> conf_fields [color=red] - CFR_ENV -> conf_fields [color=red] - CFR_PROJECT -> conf_fields [color=red] - CFR_DESIGN -> conf_fields [color=red] - CFR_CLI -> conf_fields [color=red] - - -# CFR_INTERNAL -> CFR_SYSTEM -# CFR_SYSTEM -> CFR_DEFAULTPCB -# CFR_DEFAULTPCB -> CFR_USER -# CFR_USER -> CFR_ENV -# CFR_ENV -> CFR_PROJECT -# CFR_PROJECT -> CFR_DESIGN -# CFR_DESIGN -> CFR_CLI - - conf_fields -> conf_core [color=red] - conf_fields -> conf_hid_gtk [color=red] - conf_fields -> conf_mincut [color=red] - conf_fields -> conf_report [color=red] - conf_fields -> conf_other [color=red] - - - - subgraph cluster_files { - label="config files" - bgcolor=grey - lht_system [label="/usr/share/pcb-rnd/pcb-conf.lht" shape=hexagon] - pcb_default [label="/usr/share/pcb-rnd/default.pcb" shape=hexagon] - project [label="./project.lht" shape=hexagon] - lht_user [label="~/.pcb-rnd/pcb-conf.lht" shape=hexagon] - } - - subgraph cluster_exec_env { - label="execution environment" - bgcolor=grey - env [label="environmental variables"] - cli [label="command line arguments\ne.g. -c or\npluginspecific args"] - } - - lht_internal [label="hardwired\nin the\nexecutable"] - design [label="settings\nin the\n.pcb file" shape=hexagon] - - lht_internal -> CFR_INTERNAL [label="program startup"] - lht_system -> CFR_SYSTEM [label="loaded at startup"] - pcb_default -> CFR_DEFAULTPCB [label="loadad in CreateNewPCB()"] - lht_user -> CFR_USER [label="loaded at startup" dir=both] - env -> CFR_ENV [label="built at startup"] - project -> CFR_PROJECT [label="loaded when a\nnew .pcb or project\nis loaded" dir=both] - design -> CFR_DESIGN [label="extracted when loading a design" dir=both] - cli -> CFR_CLI [label="built during\ncommand line argument\nparsing"] - - - hid_gtk [label="the GTK HID"] - - conf_core -> hid_gtk [weight=100] - conf_hid_gtk -> hid_gtk - - hid_gtk -> CFR_DESIGN [color=blue weigth=0] - hid_gtk -> CFR_PROJECT [color=blue weigth=0 style=dashed] - hid_gtk -> CFR_USER [color=blue weigth=0 style=dashed] - - - editor [label="core:\nediting pcb"] - conf_core -> editor [weight=100] - editor -> CFR_DESIGN [color=blue weigth=0] - -} \ No newline at end of file Index: trunk/doc-rnd/conf/src/Makefile =================================================================== --- trunk/doc-rnd/conf/src/Makefile (revision 5606) +++ trunk/doc-rnd/conf/src/Makefile (nonexistent) @@ -1,2 +0,0 @@ -../merging.png: merging.dot - dot -Tpng merging.dot > ../merging.png \ No newline at end of file Index: trunk/doc-rnd/conf/noextend.html =================================================================== --- trunk/doc-rnd/conf/noextend.html (revision 5606) +++ trunk/doc-rnd/conf/noextend.html (nonexistent) @@ -1,59 +0,0 @@ - - -

The OLD config system in pcb-rnd

-

If the config system is too static

- -This document describes the old situation, focusing on drawbacks for -a purpose: to give a hint on why some of the design decisions are made -the way they are, in the new conf system. - -

Settings, preferences, colors, and...

-The core implemented a so called Settings. It was a flat list of items, -each bound to a C variable. There was a bunch of metadata attached to -the items: name, type, description. Generic code could query or change -the value of any setting, the C code could read and write them directly -too. The content is saved to ~/.pcb/settings. -

-On the downside, the actual items this system knew about was pretty much -static, hardwired in core. A plugin could not register its own settings. -Multiple parallel methods were present in the code to overcome this -limitation: -

- -

Meta-drawbacks

-This also introduced a more subtle drawback: the configuration was now -scattered into different files, randomly (looking from the -user's point of view). In other words, the actual structure did not reflect -some logical grouping, but mostly historical or source code organizational -reasons. -

-In turn, this also limited (again somewhat randomly) what settings can be -stored system-wise, user-wise, or on project or design level. -

-Finally, handling of file search paths was not very sophisticated. There -was the system and user configuration that reflected where the stock -library or the user's generic library were installed. And then -there was the per-project local footprint libs that had to be somehow -added too. -

-There was a hardwired way of handling the situation where multiple set -of paths were specified. In practice it was usually possible to get this -to work for the simpler cases, but it was not powerful enough to express -things like "use all system and user libraries first, then the project's local -library" vs. "the project's local library has priority over system libraries". Index: trunk/doc-rnd/conf/index_user.html =================================================================== --- trunk/doc-rnd/conf/index_user.html (revision 5606) +++ trunk/doc-rnd/conf/index_user.html (nonexistent) @@ -1,92 +0,0 @@ - - -

The new config system in pcb-rnd

-

User documentation

-As of 1.1.0, pcb-rnd switched to a lihata based configuration system. -The purpose of this document is to describes the basic system design going into -enough details to provide the user with full control over the configuration. -The other side, how the system is implemented is described in the - programmer's manual and there is also a -checklist to assist plugin programmers. - -

Architecture: data flows, merging, dispatching

-The final configuration is a collection of values for - all known settings, arranged in a tree. The config -tree is a theoretical concept; different representations of the tree are -actually built runtime, in-memory. Pcb-rnd code, plugins and utilities -are constantly reading these in-memory representations to decide how to -carry out their tasks. -

-Config settings are imported from multiple sources: from different files, -from environment vareiables, from command line arguments, from the .pcb -files on load. Any source can define any part of the config tree. -When the configuration is processed, each source is read into a temporary -tree and then all the temporary trees are merged into the final -config tree. The following diagram demonstrates all configuration -related data flows. -

- -

-The leftmost column of nodes are the sources. (Note: paths mentioned there are -the default paths, for reference, it is possible to change them compile-time.) -Along the black arrows, from left to right, each source is imported into a -tree representing a role: the role or -purpose of the source. The next -step is following the red arrows in two steps: - -Some components may change some of the settings run-time. The trivial example -is the GUI (hid_gtk on this diagram) that provides menus and dialog boxes for -the user to change settings. Such a change is always fed back (blue arrow) -to the design role tree directly, from where the new value is again merged -and dispatched along the red arrows. Changes in the design role are saved -with the .pcb file (thus the bidirectional black arrow between the source and -the in-memory tree for the design role). Occassionally the user wants to -save parts of the setting as a project setting or -as an user setting - in this case, along the dashed blue lines, the -corresponding project or user roles are modified. This again results in updating -the hash and the binary representation; these roles also have -bidirectional black arrows and their changes are also saved in the original -source. - -

Merge details

-In the new system it is up to the user to decide what settings are -system-level and what settings are user- or project-level. This is possible -because any source can define any setting. In the merging step (red arrows -between roles and the hash) it may turn out that there are overlaps (multiple -sources defining value for the same setting) or blind spots (no source -sets a given item). - -

overlaps

-Each setting in each source has a prioirty. The -priority can be defined in the source, or if it is not defined, each source -inherits a fallback default priority. The fallback is designed to provide -the intuitive order: cli > design > project > user > system. -

-When multiple sources are describing a value for the same setting, -priority decides the final value. Most settings are scalar: -a single integer, string or a single "yes/no" or "on/off" value (e.g. -the background color or whether polygons are thin-drawn). For scalars -the rule is simple: the higher priority value wins and all lower priority -values are discarded when putting the values into the hash. More -details: how different roles and priorities -can be used with scalars. - -

-There are some settings that are represented as an array or list of -values. They are described in a lihata list item ("li:") in the config -files and are generally called lists in this document. How lists -are merged is controlled by the merging policy, which can be -in each source, just like the prioirty is set. Check out the -list merging section for more details. - -

blind spots

-At the end the code does need a value for each setting, so in the final -render (after the hash) every setting must have a value. To avoid blind spots, -values not initialized, there is a built-in configuration file, compiled into -the executable. This file is loaded into role CFR_INTERNAL, and has -the lowest priority. This configuration file contains the default value for -all settings. - Index: trunk/doc-rnd/conf/syntax.html =================================================================== --- trunk/doc-rnd/conf/syntax.html (revision 5606) +++ trunk/doc-rnd/conf/syntax.html (nonexistent) @@ -1,45 +0,0 @@ - - -

The new config system in pcb-rnd

-

Config file syntax

- -The config file sytnax is lihata. -Most users don't need to understand most of the syntax, just follow the -patterns seen in the examples. A few thumb of rules: - - -

config root syntax

-

-A pcb-rnd config file, (or document for short) has a single root -node whose name must be li:pcb-rnd-conf-v1 - this is the signature of the -document. It is a flat list of one or more config root/ subtrees. -TODO: is this really a list or a hash? -

-Each config root is a partial description of the - config tree (which is the logical -confgiuration of all possible settings). Config roots have a policy and -a priority attached. This is done in the name -of the config root, which must be of the form of policy-priority, -e.g. "overwrite-300" or "append-125". The priority part (with the dash) -can be omitted (and then the per role default priority is used), e.g. -"overwrite" or "append" are valid config root names. -

-Under the config root, a tree of sections (hashes) and setting values -(text nodes) are built. These structures and values are in 1:1 -correspondance with the config tree. Excess -(unknown) keys are considered a warning (except in the plugin/ and -utils/ subtrees). Missing keys or missing subtrees is normal because a config -root can be partial. -

-TODO: examples - -

list syntax

-TODO: list syntax - -

in project files

-TODO Index: trunk/doc-rnd/conf/index.html =================================================================== --- trunk/doc-rnd/conf/index.html (revision 5606) +++ trunk/doc-rnd/conf/index.html (nonexistent) @@ -1,92 +0,0 @@ - - -

The new config system in pcb-rnd

-

Why, what was wrong with the old one?

-The old config system had several limitations that would have been -hard to fix keeping the original design: - - -

What the new system offers

- - -

How to get started

- - - -

But isn't this more complicated for the user?

-Hopefully not much. There are a few extra features, like -multiple sources with levels that did not -exist in pcb and lists with prepend/append. Some of these -features present in other software so users should be comfortable with the ideas. -The learning curve is probably compensated by the more orthogonal system. -The syntax is also geared for simplicity and easy use with text editors. -Finally, the new preferences dialog in the GTK HID and config actions help -the user to explore how settings got used from all the config sources. There's -an intended layering in complexity: simple things can be done easily without -having to understand the whole system. -

-All in all, the extra features the user needs to learn is comparable with -the old customs that he/she can forget. - -

And did it make the code more complicated?

-The size of the code did not change much after the initial config rewrite. -The new system has new features, some of which brought in a few hundred lines of -code, but a similar amount of old code could be removed. What came in is -infrastructure, what had to go was a bunch of repetitive config parsing, -boolean-setting-accessor-action code. This means on the long run, the more -settings are added, the more the new system pays back. -

-Read access, which is far the most common way to use the config in the -code (e.g. if (setting == true) { }) is very similar to the old Settings -system. Write access needs to go through a function call API, but this -is usually a single call per setting (instead of directly modifying a -variable). -

-For plugin programmers, the new system makes life much easier as they can -plug their settings in. - - -

Compatibility with mainline

- -None. The new configuration system uses a new logical structure, new file -format, new locations on the file system. Most setting names are the same -or very similar to the old ones. Some settings are renamed for clarity: -clearance is always called clearance, on the UI, in the code and in -config files as well (mainline pcb sometimes call it keepaway).The new, -tree-based logics adds a twist too: full names of settings are paths. - -

- -Since configuration is stored in new files, pcb-rnd settings do not interfere -with pcb settings on any level. - - - Index: trunk/doc-rnd/conf/merging.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/conf/merging.png =================================================================== --- trunk/doc-rnd/conf/merging.png (revision 5606) +++ trunk/doc-rnd/conf/merging.png (nonexistent) Property changes on: trunk/doc-rnd/conf/merging.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/conf/scalars.html =================================================================== --- trunk/doc-rnd/conf/scalars.html (revision 5606) +++ trunk/doc-rnd/conf/scalars.html (nonexistent) @@ -1,56 +0,0 @@ - - -

The new config system in pcb-rnd

-

Scalars

- -Scalar settings have only one value after the merge. The only policy -available is overwrite - this policy is applied regardless of the -current policy setting. - -

examples

- -

simple overwrite

-Config sources: - -
role priority policy content -
system 200 overwrite A -
user 400 overwrite (not defined) -
project 600 overwrite Q -
-

-Merge iterations: - -
step description output list after executing this step remarks -
0. reset the output (empty)   -
1. apply system A   -
2. apply user A "not defined" doesn't mean "empty", so the list is not deleted - no change -
3. apply project Q replace the original output because of the overwrite policy -
-

Example scenario: system default overriden by a project setting. - -

user-forced value

-Config sources append: - -
role priority policy content -
system 200 overwrite A -
user 650 overwrite E -
project 600 overwrite Q -
-

-Merge iterations: - -
step description output list after executing this step remarks -
0. reset the output (empty)   -
1. apply system A   -
2. apply project Q   -
3. apply user E   -
-

Example scenario: user preference enforced: even if the project file would use -'Q' for the given setting, the user prefers 'E'. This affects runtime -(the value of the setting after the merge, in other words how pcb-rnd works), -but does nto change the project configuration. This allows the given user to -always use 'E' for the given setting while lets other users working on the -same project use the value set in the project file. - - - Index: trunk/doc-rnd/conf/prio.html =================================================================== --- trunk/doc-rnd/conf/prio.html (revision 5606) +++ trunk/doc-rnd/conf/prio.html (nonexistent) @@ -1,22 +0,0 @@ - - -

The new config system in pcb-rnd

-

Priorities

- -Priority is an integer property of each config root. -Syntax-wise it is part of the name of the config -root. In the lihata config file it is either specified or omitted. When -omitted, a role dependent default value is -used. The default values are chosen in an intuitive way, thus most -commonly the priority value is omitted. -

-For scalar settings, the highest priority -value determines the final value of a setting after the merge. If there -is a tie, role decides: the role closer to the CLI is stronger. -

-For lists and arrays, priority determines the -order of merge, which changes the order of itmes in the final list as -config roots prepend and append items. - - - Index: trunk/doc-rnd/logo32.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/logo32.png =================================================================== --- trunk/doc-rnd/logo32.png (revision 5606) +++ trunk/doc-rnd/logo32.png (nonexistent) Property changes on: trunk/doc-rnd/logo32.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/logo16.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/logo16.png =================================================================== --- trunk/doc-rnd/logo16.png (revision 5606) +++ trunk/doc-rnd/logo16.png (nonexistent) Property changes on: trunk/doc-rnd/logo16.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/help.html =================================================================== --- trunk/doc-rnd/help.html (revision 5606) +++ trunk/doc-rnd/help.html (nonexistent) @@ -1,62 +0,0 @@ - - - pcb-rnd - help wanted - - - - - - - - - -
Main - News - People - Events & timeline - pcb-rnd -
- - -

pcb-rnd - help wanted

-The project is looking for volunteers for the features listed below. If -you want to contribute, you will need to have an svn client and an email -client. Furthermore an IRC client is strongly recommended. -

-You will become part of the team and get svn commit right immediately -when you start working. -

-Don't have much free time? Don't worry: the tasks below are split up in -very small (1..2 hours) chunks. Coordination is granted, the administrative -overhead is almost zero - you can focus on the task, and finish it whenever -you have a free hour. -

-Worrying about your contribution to go in /dev/null? Don't: pcb-rnd -has very short loops; you start contributing and get immediate feedback. Your -work is part of the official thing immediately and revised and accepted (or -rarely refused) within hours or at most days. -There are no bitrotting branches. -

-You are not confident enough with your skills? pcb-rnd is an optimal -project for learning. If you start contributing, you get support. There -are small and simple entry level tasks. Most of the tasks don't require -any programming skills. -

-Sign up: mail to pcb-rnd (at) igor2.repo.hu . -If you want to work on a feature not listed below, feel free to drop me -a mail. -

- -
ID skill required description -
tutorial geda user tutorial projects -
windows geda user generic testing on windows -
mtest geda user systematic manual testing -
doc geda user, html write sections of user documentation -
logo designer the official pcb-rnd logo -
banner designer pcb-rnd banner for the homepage -
icons designer icons, other graphical elements for the GTK HID -
css designer CSS for the homepage (only design/style, no content). -
atest C/beginner program automated test cases -
- - Index: trunk/doc-rnd/motivation.html =================================================================== --- trunk/doc-rnd/motivation.html (revision 5606) +++ trunk/doc-rnd/motivation.html (nonexistent) @@ -1,109 +0,0 @@ - - - pcb-rnd - motivation - - - - - - - - - -
Main - News - People - Events & timeline - pcb-rnd -
- - -

pcb-rnd motivation

-

Phase 1: At the beginning... (2013..2014)

-I use PCB a lot on various computers. I used to try to join the mainstream -development with small contribution (minor patches) and was active on -IRC and the mailing lists for a while. However, it didn't work out well, -and: - -I was pondering a fork for years. The trigger was that one day I've upgraded -Debian on my lab computer and the new version of PCB came with gl enabled; this -made PCB absolutely unusable (had to wait like 10 seconds for a scroll) while -all the transparent polys over traces made the whole screen a mess. I should -have recompiled everything and built a new Debian package with gl disabled or -install from source (but I have too many computers for that). My decision -was to set up my own .deb but then build it from a fork (it's not much of -an extra effort), so I can add some of the features I miss in daily use. -My plans with this fork: - -

-Footnotes: -

- -

Phase 2: major cleanups (2015..2016)

-In the first phase I was mostly implementing a set of small features and fixes. -As I got more familiar with the code base, I decided to bite the bullet and -do some refactoring: - -

-Plans for the future includes: -

- -

Phase 3: community requested features (from 2016 onward)

-Overlapping phase 2 there is an ongoing - feature poll . If there -are enough active users/testers for a feature, it gets implemented in -phase 3. -

-There is a small, active, constructive community forming around pcb-rnd. Future -directions will be mainly set by their need. - - - Index: trunk/doc-rnd/Autostyle.html =================================================================== --- trunk/doc-rnd/Autostyle.html (revision 5606) +++ trunk/doc-rnd/Autostyle.html (nonexistent) @@ -1,14 +0,0 @@ - - - - - - - -
Main - News - People - Events & timeline - pcb-rnd -
- Index: trunk/doc-rnd/UNIX.txt =================================================================== --- trunk/doc-rnd/UNIX.txt (revision 5606) +++ trunk/doc-rnd/UNIX.txt (nonexistent) @@ -1,31 +0,0 @@ -State on UNIX systems -~~~~~~~~~~~~~~~~~~~~~ - -Source releases starting from 1.1.2 should compile and run out-of-the-box -on old UNIX systems, such as IRIX. Does NOT require any GNU installed. - -Requirements: - - x11 and motif (for the GUI) - - an awk implementation that supports gsub(), e.g. nawk - -1. If your C compiler does not support #warning, run a script to patch - the source: - - # cwd is the root of the distribution - util/workarounds/unwarn_all.sh - - This will take a while and will modify a lot of .c files. - -2. ./configure - -3. make - -Considerations listed in ../INSTALL apply. - -The above procedure has been tested on IRIX 5.3 on IP22. - -Expected compilation times [minute:second]: - -./configure compile, -O0 compile -O3 system -------------------------------------------------------------------------------- -1:55 7:40 14:27 IRIX 5.3, IP22 @ 100 MHz Index: trunk/doc-rnd/packaging.txt =================================================================== --- trunk/doc-rnd/packaging.txt (revision 5606) +++ trunk/doc-rnd/packaging.txt (nonexistent) @@ -1,90 +0,0 @@ -Packaging pcb-rnd for a distribution -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -1. program, libs, desktop integration - -Pcb-rnd is an interactive printed circuit board editor program. A typical -user is an electric engineer. This sort of programs are often called EDA, -Electronics Design Automation. - -Pcb-rnd has different frontends: graphical and stdio/text based batch -processing. There are different graphical frontends - pcb-rnd does not -depend on gtk or motif, the specific frontend modules may depend on them. - -Pcb-rnd is scriptable if libgpmi is available. Since libgpmi is not -a mainstream library for the scripting feature it should also be packaged. - -Pcb-rnd is intended for UNIX-fans. It is heavily keyboard-oriented and it -doesn't assume its users don't want to understand or learn how it works. -Many typical user workflows include Makefiles and it's a common thing to -start pcb-rnd from a shell. Thus desktop integration is not in focus -at the moment. If you fixed things for this while packaging, please let -us know, we may merge your patches (see below). - -2. options, plugins, dependencies - -Pcb-rnd is a modular software with a lot of options. Majority of these options -are selected by the state of a module. A module has three states: - - disable: (not compiled at all) - - buildin: enabled and static linked - - plugin: enabled and dynamic loaded (from a .so) - -The configure script takes --disable-*, --building-* and --plugin-* -arguments with * substituted with the name of the module. The configure -script also determines the dependencies according to the selection. Special -arguments --all=plugin and --all=buildin are provided in configure to select -all working modules to be plugins or buildins. - -For binary distributions it's strongly recommended to have most of the -modules compiled as plugins and have them in separate packages. This -would let the user to install a core pcb-rnd package and then the GTK -or the lesstif plugin (or both) from separate packages. This also reduces -package dependencies. - -This is less relevant for source distributions, if the user has full control -over the configuration. - -If non-critical dependencies are not met, modules are automatically disabled -by ./configure. - -3. typical ./configure options - scconfig vs. auto* - -./configurfe --prefix works as expected. DESTDIR is called install_root. - -Typical commands for configuring pcb-rnd for packaging would be: - - ./configure --all=plugin --prefix=/usr - make all - install_root=/tmp/pkg_tmp make install - -We are happy with scconfig. Please don't write about how much better -autoconf or cmake would be, we won't switch. - -4. release cycles, tarballs, svn trunk - what to package - -Development happens in svn trunk/, there are usually no branches. While -we try to keep trunk/ compilable any time, it's not guaranteed that it -would work out-of-the-box between releases. It is not recommended to -package trunk/ - please package stable releases instead. - -We follow the "release early, release often" rule. Source release tarballs -are always considered stable. Beside the project web page, releases are -also accessible as svn tags: svn://repo.hu/pcb-rnd/tags . - -Sometimes we have minor releases with 1..2 month period, sometimes a -longer period passes between releases. - -There's no automated release notification at the moment; if you want to -get notified about new releases, please contact me (email -pcb-rnd (at) igor2.repo.hu) - -5. bug reporting and fixes for packaging - -There's no special method for reporting packaging related bugs and -feature requests, please follow the normal bug report instructions or just -drop me a mail. Please mention that the issue is related to packaging, this -usually gives it a higher priority. - -We are willing to make minor changes to make packaging easier - if you bump -into something you'd need to work around while packaging, please let us know, -we may just fix it "upstream". - Index: trunk/doc-rnd/mods/gen.sh =================================================================== --- trunk/doc-rnd/mods/gen.sh (revision 5606) +++ trunk/doc-rnd/mods/gen.sh (nonexistent) @@ -1,128 +0,0 @@ -#!/bin/sh - -path=../../src_plugins - -sloc() -{ - (cd "$1" && sloccount .) | awk '/^Total Phys/ { size=$9; sub(",", "", size); print size }' -} - -gen_pie() -{ - local bn=$1 code_size=$2 color=$3 - echo "" - echo "@slice" - echo "$code_size" - echo "@label" - echo "$bn ($code_size)" - if test ! -z "$color" - then - echo "@color" - echo "$color" - fi -} - -echo "#autogenerated by gen.sh" > mods.pie -echo "#autogenerated by gen.sh" > after.pie - -echo HIDs >&2 -code_size=`sloc ../../src/hid` -gen_pie "HIDs" $code_size "orangered" >> after.pie - -echo Core >&2 -tmp=/tmp/pcb-mods-stat -mkdir $tmp -cp -r ../../src/*.c ../../src/*.h ../../src/Makefile* $tmp -code_size=`sloc $tmp` -gen_pie "core" $code_size "#00ff88" >> after.pie - -#echo 3rd >&2 -#code_size=`sloc ../../src_3rd` -#gen_pie "3rd" $code_size >> after.pie - - -( -cat pre.html -for n in $path/* -do - if test -d "$n" - then - echo $n >&2 - bn=`basename $n` - code_size=`sloc $n` - total=$(($total + $code_size)) - gen_pie $bn $code_size >> mods.pie -# case $bn in -# gpmi) echo "@pull" >> mods.pie; echo "0.1" >> mods.pie;; -# esac - - echo "$bn$code_size" - awk ' - /^#/ { - key=$1 - sub("#", "", key) - sub("[:=]", "", key) - $1="" - DB[key]=$0 - next - } - { desc = desc " " $0 } - - function strip(s) { - sub("^[ \t]*", "", s) - sub("[ \t]*$", "", s) - return s - } - - END { - st = DB["state"] - if (st ~ "partial") - clr = "bgcolor=\"yellow\"" - else if (st ~ "works") - clr = "bgcolor=\"lightgreen\"" - else if ((st ~ "fail") || (st ~ "disable")) - clr = "bgcolor=\"red\"" - else - clr="" - - clr2 = clr - if (clr2 != "") { - sub("bgcolor=\"", "", clr2) - sub("\"", "", clr2) - print "@color" >> "mods.pie" - print clr2 >> "mods.pie" - } - - print "" st - if (DB["lstate"] != "") - print "
(" strip(DB["lstate"]) ")" - - dfl = DB["default"] - if (dfl ~ "buildin") - clr = "bgcolor=\"lightgreen\"" - else if (dfl ~ "plugin") - clr = "bgcolor=\"yellow\"" - else if ((dfl ~ "fail") || (dfl ~ "disable")) - clr = "bgcolor=\"red\"" - else - clr="" - - print "" dfl - if (DB["ldefault"] != "") - print "
(" strip(DB["ldefault"]) ")" - print "" desc - } - ' < $n/README - fi -done -cat post.html -gen_pie "plugins" "$total" "#0088ff" >> after.pie -) > index.html - -for n in mods after -do - animpie < $n.pie | animator -H -d $n - pngtopnm ${n}0000.png | pnmcrop | pnmtopng > $n.png - rm ${n}0000.png -done - Property changes on: trunk/doc-rnd/mods/gen.sh ___________________________________________________________________ Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: trunk/doc-rnd/mods/after.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods/after.png =================================================================== --- trunk/doc-rnd/mods/after.png (revision 5606) +++ trunk/doc-rnd/mods/after.png (nonexistent) Property changes on: trunk/doc-rnd/mods/after.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods/before.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods/before.png =================================================================== --- trunk/doc-rnd/mods/before.png (revision 5606) +++ trunk/doc-rnd/mods/before.png (nonexistent) Property changes on: trunk/doc-rnd/mods/before.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods/mods.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods/mods.png =================================================================== --- trunk/doc-rnd/mods/mods.png (revision 5606) +++ trunk/doc-rnd/mods/mods.png (nonexistent) Property changes on: trunk/doc-rnd/mods/mods.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods/post.html =================================================================== --- trunk/doc-rnd/mods/post.html (revision 5606) +++ trunk/doc-rnd/mods/post.html (nonexistent) @@ -1,3 +0,0 @@ - - - Index: trunk/doc-rnd/mods/pre.html =================================================================== --- trunk/doc-rnd/mods/pre.html (revision 5606) +++ trunk/doc-rnd/mods/pre.html (nonexistent) @@ -1,60 +0,0 @@ - - -

pcb-rnd modularization

-

Why bother...

-I believe good software should be modular. This is especially important in -the context of large software, such as CAD applications. There should be -a thin core that can model the world and provide the basic operations defined -on it but anything else should go in separate modules. -

-Fortunately PCB already had a strong infrastructure supporting this idea. -It has dynamic loadable plugins and the GUI and exporters are in separate -HID modules. While working on pcb-gpmi and later pcb-rnd, I added the -gpmi module as a separate plugin. -

-As of version 1.0.8 a cosiderable chunk of core code has been moved into -core plugins. A core plugin is just a plugin that is -maintained together with the core, in the same repository, still the code is -somewhat detached from the core. More importantly, the user can choose, for -each plugin, separately: -

-

-I believe such modularization has benefits on multiple levels: -

- -

Progress in charts

-

Before-after

-All numbers are in SLOC -and are acquired running sloccount on the given directory. While lines of -code alone is not a true measure of complexity, it's a good estimation. The -slices of pie charts are the major components of the pcb-rnd executable. -
- -
        -
Before modularization: pcb-rnd version 1.0.7 -
Note: gpmi was already a plugin -
- After modularization: pcb-rnd version 1.0.8 -
Note: gpmi is part of the "plugins" slice -
-
-

Zooming on to the plugins

-

- -

-(Red means the plugin doesn't really work). - -

Progress in numbers

-Below is a table with the summary of core plugins. - -
module size [sloc] status configure
default
description - - Index: trunk/doc-rnd/mods/index.html =================================================================== --- trunk/doc-rnd/mods/index.html (revision 5606) +++ trunk/doc-rnd/mods/index.html (nonexistent) @@ -1,136 +0,0 @@ - - -

pcb-rnd modularization

-

Why bother...

-I believe good software should be modular. This is especially important in -the context of large software, such as CAD applications. There should be -a thin core that can model the world and provide the basic operations defined -on it but anything else should go in separate modules. -

-Fortunately PCB already had a strong infrastructure supporting this idea. -It has dynamic loadable plugins and the GUI and exporters are in separate -HID modules. While working on pcb-gpmi and later pcb-rnd, I added the -gpmi module as a separate plugin. -

-As of version 1.0.8 a cosiderable chunk of core code has been moved into -core plugins. A core plugin is just a plugin that is -maintained together with the core, in the same repository, still the code is -somewhat detached from the core. More importantly, the user can choose, for -each plugin, separately: -

    -
  • to compile it as a buildin (static-link it into the pcb executable) -
  • to compile it as a plugin (dynamic-link it runtime, if the .so is installed in the plugins/ directory) -
  • to disable the plugin, so it is not compiled at all -
-

-I believe such modularization has benefits on multiple levels: -

    -
  • it is possible to compiler smaller, potentially faster executables by omitting features the specific user would never use anyway -
  • in a distribution dynamic-link plugins can be distributed as separate packages providing the user with the option to decide what features to install -
  • such plugins have to have some sort of APIs if they want to reference eachother or if the code needs to reference them; such an API may not (and often did not) exist when the code is part of the core -
- -

Progress in charts

-

Before-after

-All numbers are in SLOC -and are acquired running sloccount on the given directory. While lines of -code alone is not a true measure of complexity, it's a good estimation. The -slices of pie charts are the major components of the pcb-rnd executable. -
- -
        -
Before modularization: pcb-rnd version 1.0.7 -
Note: gpmi was already a plugin -
- After modularization: pcb-rnd version 1.0.8 -
Note: gpmi is part of the "plugins" slice -
-
-

Zooming on to the plugins

-

- -

-(Red means the plugin doesn't really work). - -

Progress in numbers

-Below is a table with the summary of core plugins. - -
module size [sloc] status configure
default
description - - -
autoplace608 - works - buildin - Automatically place elements. -
autoroute4177 - works - buildin - Automatically route selected or all rats. This is the original autorouter. -
dbus438 - disabled -
(TODO: needs scconfig support) -
disabled - Remote control PCB using DBUS. -
djopt2315 - works - buildin - Various board optimization algorithms. -
export_gcode2450 - works - buildin - Export to gcode -
export_lpr96 - works - buildin - Export to lpr (using export_ps to generate postscript) -
export_nelma683 -
export_ps1608 - works - buildin - Export postscript or embedded postscript. -
gpmi2992 - works - buildin -
(if gpmi is installed) -
Scriptable plugin system with about 10 scripting languages supported and dynamic load/unload of scripts that can manipulate the GUI, the board, can implement exporters, etc. -
import_edif3578 - works - buildin - Import code for netlists in the EDIF format. -
import_sch255 - works - buildin - Imports element and netlist data from the schematics (or some other source). -
mincut886 - works - buildin - Use the minimal cut algorithm to indicate shorts: instead of highlighting two random pins/pads, try to highlight the least number of objects that connect the two networks. -
oldactions53 - works - disabled - Random collection of old/obsolete actions. Bell(): audible feedback; DumpLibrary(): print footprint library on stdout -
puller1878 - works - buildin - Pull traces to minimize their length. -
renumber218 - works - buildin - Renumber elements (renaming them) and generate a text file for back annotation. -
stroke124 - partially works (doesn't work with lesstif; works with the gtk hid, but there's no zoom bindings) - disabled -
(requires libstroke installed) -
Gesture recognition with libstroke. -
toporouter6161 - fails -
(infinite loop in gts) -
disabled - Automatically route selected or all rats using a topological algorithm. This is the new autorouter from 2009. -
vendordrill567 - works - buildin - Vendor drill mapping. -
- - Index: trunk/doc-rnd/contrib.html =================================================================== --- trunk/doc-rnd/contrib.html (revision 5606) +++ trunk/doc-rnd/contrib.html (nonexistent) @@ -1,66 +0,0 @@ - - - pcb-rnd - contribution - - - - - - - - - -
Main - News - People - Events & timeline - pcb-rnd -
- - -

pcb-rnd - contribution

- -If you are interested to help out, please contact me using - the live chat (CET daytime) or mail to: -pcb-rnd (at) igor2.repo.hu. - -

Contributing as a user

-Using pcb-rnd in production and just reporting bugs is already a huge contribution. -

-More dedicated users can join in scheduled, systematic testing. Such testing -is split up into independent chunks that each can be done in an hour. -

-Even more dedicated users can join developing the documentation. -

-None of the above requires or assumes any programming skill. - -

Contributing as a developer

- -The project is lead in an autocratic way by Igor2. - -Developer freedom taken away: -
    -
  • the basic concept of pcb-rnd is set and won't change -
  • the toolchain is chosen, and won't change; the usual hot topics: svn, scconfig, C. -
  • don't add code that restricts usability for others; add code that increases usability for some; thus prefer to add code in plugins! -
-

-Developer freedom promptly granted: -

    -
  • svn commit access from day 0 -
  • work together in trunk/, not alone in a branch -
  • pcb-rnd has a strong plugin support; want to implement a strange/controversial feature? In a plugin, almost anything goes -
  • especially in plugins, work on whatever you want, even if noone else needs that feature -
-

-Coding style/indentation: there's an unified style -in core and core plugins. If you work on those parts, try to stick to it. If you -are working on a new plugin, it's still the preferred style but you can use -a different style. However, the rule is that if someone else starts hacking -that part too, he is allowed to convert the code to the unified format; but -unified format can not be converted to anything else. So it's a one way -process which long term grants unified style while not demotivates a plugin -developer by forcing a style on him in the early, "when the bulk of the code -is written" phase. - - Index: trunk/doc-rnd/logo.pcb =================================================================== --- trunk/doc-rnd/logo.pcb (revision 5606) +++ trunk/doc-rnd/logo.pcb (nonexistent) @@ -1,91 +0,0 @@ -# release: pcb-rnd 1.1.0 - -# To read pcb files, the pcb version (or the git source date) must be >= the file version -FileVersion[20070407] - -PCB["" 15240000nm 15240000nm] - -Grid[635000nm 0 0 1] -Cursor[13335000nm 8890000nm 0.000000] -PolyArea[3100.006200] -Thermal[0.500000] -DRC[304800nm 228600nm 254000nm 177800nm 381000nm 254000nm] -Flags("nameonpcb,clearnew,snappin") -Groups("1,3,4,c:2,5,6,s:7:8") -Styles["Signal,254000nm,1999996nm,800100nm,508000nm:Power,508000nm,2199894nm,999998nm,508000nm:Fat,2032000nm,3500120nm,1199896nm,635000nm:Sig-tight,254000nm,1625600nm,800100nm,304800nm"] - -Symbol['r' 304800nm] -( - SymbolLine[127000nm 889000nm 127000nm 1270000nm 203200nm] - SymbolLine[127000nm 889000nm 254000nm 762000nm 203200nm] - SymbolLine[254000nm 762000nm 508000nm 762000nm 203200nm] - SymbolLine[0 762000nm 127000nm 889000nm 203200nm] -) -Symbol['n' 304800nm] -( - SymbolLine[127000nm 889000nm 127000nm 1270000nm 203200nm] - SymbolLine[127000nm 889000nm 254000nm 762000nm 203200nm] - SymbolLine[254000nm 762000nm 381000nm 762000nm 203200nm] - SymbolLine[381000nm 762000nm 508000nm 889000nm 203200nm] - SymbolLine[508000nm 889000nm 508000nm 1270000nm 203200nm] - SymbolLine[0 762000nm 127000nm 889000nm 203200nm] -) -Symbol['d' 304800nm] -( - SymbolLine[508000nm 254000nm 508000nm 1270000nm 203200nm] - SymbolLine[381000nm 1270000nm 508000nm 1143000nm 203200nm] - SymbolLine[127000nm 1270000nm 381000nm 1270000nm 203200nm] - SymbolLine[0 1143000nm 127000nm 1270000nm 203200nm] - SymbolLine[0 889000nm 0 1143000nm 203200nm] - SymbolLine[0 889000nm 127000nm 762000nm 203200nm] - SymbolLine[127000nm 762000nm 381000nm 762000nm 203200nm] - SymbolLine[381000nm 762000nm 508000nm 889000nm 203200nm] -) - - -Attribute("PCB::grid::unit" "mil") -Attribute("PCB::conf::editor/buffer_number" "0") -Attribute("PCB::conf::editor/draw_grid" "true") -Attribute("PCB::conf::editor/show_solder_side" "0") -Attribute("PCB::conf::editor/view/flip_x" "0") -Attribute("PCB::conf::editor/view/flip_y" "0") - -Element["" "dip(2)" "rnd" "2*300" 0 6985000nm 6350000nm 635000nm 0 115 ""] -( - Pin[7620000nm 0 2540000nm 1270000nm 2692400nm 999998nm "" "2" "thermal(0X,1X)"] - - ) -Layer(1 "component") -( - Polygon("clearpoly") - ( - [635000nm 635000nm] [14605000nm 635000nm] [14605000nm 14605000nm] [635000nm 14605000nm] - ) -) -Layer(2 "solder") -( -) -Layer(3 "comp-GND") -( -) -Layer(4 "comp-power") -( -) -Layer(5 "sold-GND") -( -) -Layer(6 "sold-power") -( -) -Layer(7 "signal3") -( -) -Layer(8 "outline") -( -) -Layer(9 "silk") -( -) -Layer(10 "silk") -( -) Index: trunk/doc-rnd/hacking/hid_remote/proto_parse.html =================================================================== --- trunk/doc-rnd/hacking/hid_remote/proto_parse.html (revision 5606) +++ trunk/doc-rnd/hacking/hid_remote/proto_parse.html (nonexistent) @@ -1,38 +0,0 @@ - - -Protocol parser state machine of the referece implementation: - -Legend: -

    -
  • yellow boxes are states -
  • blue arrows are optional features for a more tolerant parser -
  • round nodes are actions that shall be taken -
  • arrow with text: execute aciton or switch state if condition is true -
  • arrow without text: do this if no other condition is met -
-

Notes on the refernece implementation

-The reference implementation builds a tree of nodes for the arguments. -Each node is either a list or a text. A node has a pointer to its parent, its -first child and its next sibling. While parsing list-of-lists, the parser -keeps a current node. A new node is either added as the last sibling of -the current node (new argument on a list) or as the first -child of the current node (first argument of a new list when the list is -open). -

-When a list is closed, the parent of the current node becomes the -new current node. -

-When parsing a new message, the current node is NULL until the argument list -is open; the new current node also becomes the argument tree root. -If the argument tree root is closed, a newline shall follow, because that's -how a message is terminated. -

-The binary string part of the state machine has 2 more internal -states: -

    -
  • a boolean indicating whether we are parsing the length or the string (before or after the '=') -
  • an integer string length -
- - - \ No newline at end of file Index: trunk/doc-rnd/hacking/hid_remote/proto_parse.dot =================================================================== --- trunk/doc-rnd/hacking/hid_remote/proto_parse.dot (revision 5606) +++ trunk/doc-rnd/hacking/hid_remote/proto_parse.dot (nonexistent) @@ -1,84 +0,0 @@ -digraph parse_state_macine { - - -MSG [label="MSG:\nmessage lead-in\nor\nbetween\nmessages" shape=box style=filled fillcolor=yellow] -COMMENT [label="COMMENT:\nskipping comment" shape=box style=filled fillcolor=yellow] -CMD [label="CMD:\nparsing command name" shape=box style=filled fillcolor=yellow] -TSTR [label="TSTR:\nparsing test string" shape=box style=filled fillcolor=yellow] -BSTR [label="BSTR:\nparsing bin string" shape=box style=filled fillcolor=yellow] -LIST [label="LIST:\nin list" shape=box style=filled fillcolor=yellow] -ERROR [label="ERROR:\nbad input" shape=box style=filled fillcolor=red] - -######## MSG - -init [shape="diamond" style=filled fillcolor=yellow] -init -> MSG - -msg_append [label="store 1st\ncommand char"] - -MSG -> COMMENT [label="input==#" color=blue] -MSG -> MSG [label="input==\\r\\n\\t\nspace" color=blue] -MSG -> ERROR [label="input==binary"] -MSG -> msg_append [label="input==text"] -msg_append -> CMD - -######## COMMENT - -COMMENT -> MSG [label="input==\\n" color=blue] -COMMENT -> COMMENT [color=blue] - - -######## CMD -cmd_list_new [label="create new list\nmake it arg tree\nroot and current"] -cmd_list_new -> LIST -cmd_append [label="append a character\nto command name"] -cmd_append -> CMD [label="command name length\nis less than 16"] -cmd_append -> ERROR [label="command name length\nis more than 16"] -CMD -> cmd_list_new [label="input==({"] -CMD -> ERROR [label="input==binary"] -CMD -> cmd_append [label="input==text"] - -######## LIST -got_msg [label="message fully parsed\nexecute message" style=filled fillcolor=cyan] -got_msg -> MSG -pop [label="pop:\ncurrent_list = current_list->parent"] -pop -> got_msg [label="input=\\n\nand\ncurrent_list == NULL\n(arg root closed)"] -pop -> ERROR [label="input!=\\n\nand\ncurrent_list == NULL\n(unbalanced parenthesis)"] -pop -> LIST -push [label="push:\create new list\nappend it as current's sibling\nmake it current"] -push->LIST -new_str [label="create a new bin or text string\nnode and append it to\nthe current list"] -new_str -> tstr_append [label="current is generic list"] -new_str -> bstr_append [label="current is binary list"] - -LIST -> pop [label="input==)}"] -LIST -> push [label="input==({"] -LIST -> LIST [label="input==space\n(ignore)"] -LIST -> ERROR [label="input!=\\n and current == NULL\n(unbalanced parenthesis)"] -LIST -> new_str [label="input==text"] - -######## TSTR -str_fin [label="finish current string\n"] -str_fin -> LIST -str_fin_pop [label="finish current string\n"] -str_fin_pop -> pop -tstr_append [label="append to current string\n"] -tstr_append -> ERROR [label="string length > 16"] -tstr_append -> TSTR -TSTR -> str_fin [label="input==space"] -TSTR -> str_fin_pop [label="input==)}"] -TSTR -> ERROR [label="input==binary"] -TSTR -> tstr_append [label="input==text"] - -######## BSTR -read_base64 [label="store next digit\nof string length"] -read_base64 -> BSTR -bstr_append -> BSTR -BSTR -> read_base64 [label="before the ="] -BSTR -> bstr_append [label="after the ="] -BSTR -> str_fin_pop [label="last char of the string"] - -######## ERR -ERROR -> ERROR [label="can't recover"] - -} Index: trunk/doc-rnd/hacking/hid_remote/proto_high.html =================================================================== --- trunk/doc-rnd/hacking/hid_remote/proto_high.html (revision 5606) +++ trunk/doc-rnd/hacking/hid_remote/proto_high.html (nonexistent) @@ -1,224 +0,0 @@ - - -

remote HID protocol, high level

- -

reference

- -

ver(protver)

-Sends the protocol version the server will speak. If the client doesn't -support that version, it should break the connection. -

-Arguments: -

    -
  • protver: an integer value; 1 for the current version -
- -

unit(abbrev)

-Sends the coordinate unit used in subsequent communication. This is not -necessarily the unit used for displaying values on the user interface, -but the unit used to interpret numeric coordinate values sent in commands. -

-Arguments: -

    -
  • abbrev: unit name abbreviation; e.g. mm or nm or mil -
- -

ready()

-Informs the client that the server is ready to start the session. The -client needs to answer with a Ready() message before the server proceeds. -

-Arguments: none. - - -

brddim(w h)

-Announce board dimensions. Some layers may extend beyond the board. -

-Arguments: -

    -
  • w: width (x size) in coordinate units -
  • h: height (y size) in coordinate units -
- -

inval(x1 x2 y1 y2)

-Invalidate a rectangular section of the screen; the client should redraw -this area. Clients implementing their own mechanism to keep track on -drawing are free to ignore these requests -

-Arguments: -

    -
  • x1: left coordinate -
  • x2: right coordinate -
  • y1: top coordinate -
  • y2: bottom coordinate -
- -

inval()

-Same as inval(x1 x2 y1 y2) but invalidates the whole screen. -

-Arguments: none - -

newly(name id flags groups)

-Inform the client that the next set of drawing commands are for a specific -layer. -

-Arguments: -

    -
  • name: name of the layer (can be empty) -
  • id: unique group ID (decimal integer) -
  • flags: a list of 3 items: location, purpose and properites. Each item is a list of values (or an empty list). -
  • group: group ID; layers in the same group are turned on/off together and are considered to be on the same physical layer; -1 means not part of any group -
-

-Example: -

-newly(bottomassembly 16777226 ((bottom) (assy) (virtual)) -1)
-
-Creates the bottom assembly virtual layer with ID 16777226. It is not part of -any layer group and is called "bottomassembly". - -

setlg(group_id group_flags is_empty)

-Inform the client that the next set of drawing commands are for a specific -layer group. -

-Arguments: -

    -
  • group_id: unique ID of the layer group -
  • flags: TODO -
  • is_empty: 1 if the layer group may be empty, 0 if the layer is not empty -
- -

makeGC()

-Request the client to make a new graphical context. The client should -allocate a GC and return an integer ID using the MadeGC(ID) message. -The ID uniquely identifies the GC; it should be small positive integer -(between 0 and 31 for now). -

-Arguments: none - - - - -

delGC(ID)

-Inform the client that a given GC is not needed anymore. The server -will not reference the GC again and the GC can be destroyed (but graphics -drawn on the screen should not be affected). The ID may be reused by the -client in a subsequent madeGC() message). -

-Arguments: -

    -
  • ID: integer ID of the GC -
- -

clr(gci colorstring)

-Change the color subsequent drawing commands of a given GC will use. -

-Arguments: -

    -
  • gci: ID of the GC -
  • colorstring: name of the color, specified in the usual "web" format: #rrggbb (with 3 hex numbers) -
- -

cap(gci style)

-Set the line ending cap style. Note: the cap extends half-line-width beyond -the end coordinates, e.g. the end point of a line is the center of the round-cap -circle. -

-Arguments: -

    -
  • gci: ID of the GC -
  • style: r for round cap (circle), s for square cap, b for beveled (octagon) -
- - -

linwid(gci width)

-Sets line width (pen tip diameter). -

-Arguments: -

    -
  • gci: ID of the GC -
  • width: diameter of the circular aperture of the pen in coord units -
- -

setxor(gci state)

-Sets whether to perform "xor-drawing" for subsequent drawing commands in -the selected GC. -

-Arguments: -

    -
  • gci: ID of the GC -
  • xor: 0 means normal drawing, 1 means xor drawing -
- - -

line(gci x1 y1 x2 y2)

-Draw a line using the current GC. The line inherits line width, color -and cap style from the GC. -

-Arguments: -

    -
  • gci: ID of the GC -
  • x1: 1st endpoint's X coord (in coord units) -
  • y1: 1st endpoint's Y coord (in coord units) -
  • x2: 2nd endpoint's X coord (in coord units) -
  • y2: 2nd endpoint's Y coord (in coord units) -
- -

rect(gci x1 y1 x2 y2 filled)

-Draw a rectangle. The rectangle inherits only color from the GC. -

-Arguments: -

    -
  • gci: ID of the GC -
  • x1: 1st corner X coord (in coord units); x1 <= x2 -
  • y1: 1st corner Y coord (in coord units); y1 <= y2 -
  • x2: 2nd corner X coord (in coord units) -
  • y2: 2nd corner Y coord (in coord units) -
  • filled: 1 if the rectangle should be filled; a non-filled rectanlge is a frame of 1 pixel wide lines -
- - -

fcirc(gci cx cy r)

-Draw a filled circle. The circle inherits only color from the GC. -

-Arguments: -

    -
  • gci: ID of the GC -
  • cx1: center X coord (in coord units) -
  • cy1: center Y coord (in coord units) -
  • r: radius (in coord units) -
- -

poly(gci len ptlist)

-Draw a filled polygon. The polygon inherits only color from the GC. -

-Arguments: -

    -
  • gci: ID of the GC -
  • len: number of contour points -
  • ptlist: an ordered list of (x y) coordinates (all in coord units) -
- -

umask(m)

-"use mask" m. The server uses this message to make an announcement before it -starts drawing certain things. -

-Arguments: -

    -
  • m: mask name: -
      -
    • off: flush the buffer and return to non-mask operation. -
    • before: Polygons being drawn before clears. -
    • clear: Clearances being drawn. -
    • after: Polygons being drawn after clears. -
    -
- - - Index: trunk/doc-rnd/hacking/hid_remote/proto_low.html =================================================================== --- trunk/doc-rnd/hacking/hid_remote/proto_low.html (revision 5606) +++ trunk/doc-rnd/hacking/hid_remote/proto_low.html (nonexistent) @@ -1,146 +0,0 @@ - - -

remote HID protocol, low level

- -In this document bold words are tokens and italic words -are grammatic constructs. -

-The protocol is designed with the following goals in mind: -

    -
  • for simple/text data: compact, text format -
  • for simple/text data: easy to read/write manually -
  • for text with special characters: avoid quoting and escaping -
  • be able to embed binary data without having to recode it (e.g. in base64) -
  • to some extent be able to mix simple text and binary fields even within a single message -
  • predictable parsing: always know how much memory to allocate in advance -
  • minimalism - keep things as simple as possible -
- - -

Tokens

- -
token description -
( start a generic list -
) end a generic list -
{ start a binary list -
} end a binary list -
space element separator: space (ASCII dec 32) -
\n message separator: newline (ASCII dec 10) -
text-string short, alphanumeric string -
binary-string long and/or non-alnum string -
- -

Grammar

-The communication is a pair of asynchronous message stream. The message -format is: -
-text-string generic-list \n
-or
-text-string binary-list \n
-or
-# comment \n
-
-

-where text-string is a command and generic-list is a list and holds -the arguments of. The command name can not start with a hash mark ('#') and -can not be empty. The list is the argument tree of the command. -

-As a special exception, a line may start with a hash mark ('#') to indicate -a comment. Characters up to the first newline are ignored. -

-Optional: a tolerant parser also accepts empty lines and whitespace before -a message. -

-The language has two type of lists: generic and binary. -A generic list is wrapped in parenthesis () and its children are: -

    -
  • text-string, -
  • generic-list, -
  • binary-list. -
-A binary-list is wrapped in braces {} and its children are: -
    -
  • binary-string, -
  • binary-list. -
-

-Any list can be empty. There's no whitespace after the opening token and -before the closing token, so the empty generic-list and the empty binary-list -are written as, respectively: -

-()
-{}
-
-Subsequent fields of a list has a single space in between, for -separation (this is an intentional redundancy for a binary-list). -

-Note: a generic-list can host text and binary children, but a -binary list can not host only binary children. This means if a node -of the parse tree is a binary list, the subtree will contain only binary nodes. -

-A text-string contains only English alphanumeric characters (A..Z, a..z, -0..9), underscores (_), plus and minus signs (+, -) periods (.) and -the hash mark ('#') and is at most 16 characters long. -

-A binary string encodes the length of the payload in base64 (A..Z, a..z, +, /), -has a '=' for separator then the payload in binary format. For example -

-F=hello
-
-means the 5 characters long string "hello". The maximum size of the base64 -encoded length field is 5, thus the longest binary data that can be -packed in a single field is 1 gigabyte. - -

Examples

- -

empty-argument messages

-
-hello()\n
-foo{}\n
-
- -

single-argument messages

-Text and binary alternative for the same content: -
-hello(world)\n
-hello{F=world}\n
-
- -

multi-argument messages

-Text and binary alternative for the same content: -
-print(hello world !)\n
-print{E=hello F=world B=!}\n
-
- -Note: using space between list items; don't space -before the first or after the last argument. Always emit one space between -any two list items. - -

lists in list

-Text and binary alternatives for the same content: -
-line((14.55 3.1) (44.2 0) 5)\n
-line({F=14.55 D=3.1} (44.2 0) 5)\n
-line((14.55 3.1) {E=44.2 B=0} 5)\n
-line({F=14.55 D=3.1} {E=44.2 B=0} 5)\n
-line{{F=14.55 D=3.1} {E=44.2 B=0} B=5}\n
-
-The subtree assumed in this fictional message is two x;y coordinate pairs -and a line width. In other words the arguments of line is a list (start -point), another list (end point) and a scalar (width). -

-Since all data comply to the text-string token format, -the first, simplest format is recommended. The other 4 lines demonstrate all -other valid variants. -

-It is important to note that there are constraints (derived from -the grammar) on choosing which list items can be encoded in binary: -

    -
  • a binary-string can be only on a binary-list -
  • a text-string can be only on a generic-list -
  • a generic-list can not be only under a binary-list -
-Thus if the 3rd argument, (width in this example), must be encoded as a -binary-string, it will turn it's parent, line's argument list -binary too, which in turn enforces all arguments to be binary. Index: trunk/doc-rnd/hacking/hid_remote/proto_parse.svg =================================================================== --- trunk/doc-rnd/hacking/hid_remote/proto_parse.svg (revision 5606) +++ trunk/doc-rnd/hacking/hid_remote/proto_parse.svg (nonexistent) @@ -1,597 +0,0 @@ - - - - - - -parse_state_macine - - -MSG - -MSG: -message lead-in -or -between -messages - - -lbl2 - -input==# - - -MSG->lbl2 - - - -lbl3 - -input==\r\n\t -space - - -MSG->lbl3 - - - -lbl4 - -input==binary - - -MSG->lbl4 - - - -lbl5 - -input==text - - -MSG->lbl5 - - - -COMMENT - -COMMENT: -skipping comment - - -COMMENT->COMMENT - - - - -lbl7 - -input==\n - - -COMMENT->lbl7 - - - -CMD - -CMD: -parsing command name - - -lbl12 - -input==({ - - -CMD->lbl12 - - - -lbl13 - -input==binary - - -CMD->lbl13 - - - -lbl14 - -input==text - - -CMD->lbl14 - - - -TSTR - -TSTR: -parsing test string - - -lbl30 - -input==space - - -TSTR->lbl30 - - - -lbl31 - -input==)} - - -TSTR->lbl31 - - - -lbl32 - -input==binary - - -TSTR->lbl32 - - - -lbl33 - -input==text - - -TSTR->lbl33 - - - -BSTR - -BSTR: -parsing bin string - - -lbl36 - -before the = - - -BSTR->lbl36 - - - -lbl37 - -after the = - - -BSTR->lbl37 - - - -lbl38 - -last char of the string - - -BSTR->lbl38 - - - -LIST - -LIST: -in list - - -lbl21 - -input==)} - - -LIST->lbl21 - - - -lbl22 - -input==({ - - -LIST->lbl22 - - - -lbl23 - -input==space -(ignore) - - -LIST->lbl23 - - - -lbl24 - -input!=\n and current == NULL -(unbalanced parenthesis) - - -LIST->lbl24 - - - -lbl25 - -input==text - - -LIST->lbl25 - - - -ERROR - -ERROR: -bad input - - -lbl39 - -can't recover - - -ERROR->lbl39 - - - -init - -init - - -init->MSG - - - - -msg_append - -store 1st -command char - - -msg_append->CMD - - - - -lbl2->COMMENT - - - - -lbl3->MSG - - - - -lbl4->ERROR - - - - -lbl5->msg_append - - - - -lbl7->MSG - - - - -cmd_list_new - -create new list -make it arg tree -root and current - - -cmd_list_new->LIST - - - - -cmd_append - -append a character -to command name - - -lbl10 - -command name length -is less than 16 - - -cmd_append->lbl10 - - - -lbl11 - -command name length -is more than 16 - - -cmd_append->lbl11 - - - -lbl10->CMD - - - - -lbl11->ERROR - - - - -lbl12->cmd_list_new - - - - -lbl13->ERROR - - - - -lbl14->cmd_append - - - - -got_msg - -message fully parsed -execute message - - -got_msg->MSG - - - - -pop - -pop: -current_list = current_list->parent - - -pop->LIST - - - - -lbl16 - -input=\n -and -current_list == NULL -(arg root closed) - - -pop->lbl16 - - - -lbl17 - -input!=\n -and -current_list == NULL -(unbalanced parenthesis) - - -pop->lbl17 - - - -lbl16->got_msg - - - - -lbl17->ERROR - - - - -push - -push:create new list -append it as current's sibling -make it current - - -push->LIST - - - - -new_str - -create a new bin or text string -node and append it to -the current list - - -lbl19 - -current is generic list - - -new_str->lbl19 - - - -lbl20 - -current is binary list - - -new_str->lbl20 - - - -tstr_append - -append to current string - - -lbl19->tstr_append - - - - -tstr_append->TSTR - - - - -lbl28 - -string length > 16 - - -tstr_append->lbl28 - - - -bstr_append - -bstr_append - - -lbl20->bstr_append - - - - -bstr_append->BSTR - - - - -lbl21->pop - - - - -lbl22->push - - - - -lbl23->LIST - - - - -lbl24->ERROR - - - - -lbl25->new_str - - - - -str_fin - -finish current string - - -str_fin->LIST - - - - -str_fin_pop - -finish current string - - -str_fin_pop->pop - - - - -lbl28->ERROR - - - - -lbl30->str_fin - - - - -lbl31->str_fin_pop - - - - -lbl32->ERROR - - - - -lbl33->tstr_append - - - - -read_base64 - -store next digit -of string length - - -read_base64->BSTR - - - - -lbl36->read_base64 - - - - -lbl37->bstr_append - - - - -lbl38->str_fin_pop - - - - -lbl39->ERROR - - - - - Index: trunk/doc-rnd/hacking/hid_remote/Makefile =================================================================== --- trunk/doc-rnd/hacking/hid_remote/Makefile (revision 5606) +++ trunk/doc-rnd/hacking/hid_remote/Makefile (nonexistent) @@ -1,9 +0,0 @@ -proto_parse.svg: proto_parse.dot fixlab.sh - ./fixlab.sh < proto_parse.dot > .proto_parse.dot - dot -Tsvg .proto_parse.dot > proto_parse.svg - - -proto_parse.png: proto_parse.dot fixlab.sh - ./fixlab.sh < proto_parse.dot > .proto_parse.dot - dot -Tpng .proto_parse.dot > proto_parse.png - Index: trunk/doc-rnd/hacking/hid_remote/fixlab.sh =================================================================== --- trunk/doc-rnd/hacking/hid_remote/fixlab.sh (revision 5606) +++ trunk/doc-rnd/hacking/hid_remote/fixlab.sh (nonexistent) @@ -1,43 +0,0 @@ -#!/bin/sh -awk ' -($2 == "->") { - - if (NF > 3) { - attr=$0 - if (!(attr ~ "[[]")) - attr = attr "[]" - } - else - attr = "[]" - - tmp = "lbl" (++lbl) - if (attr ~ "label") - extra_label="" - else - extra_label="label=\"\"" - - tmp_attr = attr - attr1=attr - attr2=attr - - if (extra_label == "") - sub("^[^[]*[[]", "[style=filled fillcolor=\"#fefefe\" shape=plaintext ", tmp_attr) - else { -# tmp_attr = "[fixedsize=true width=0 shape=plaintext " extra_label "]" - print $0 - next - } - - sub("^[^[]*[[]", "[", attr1) - sub("^[^[]*[[]", "[", attr2) - sub("label=\".*\"", "", attr1) - sub("label=\".*\"", "", attr2) - sub("[[]", "[arrowhead=none ", attr1) - - print tmp, tmp_attr - print $1, "->", tmp, attr1 - print tmp, "->", $3, attr2 - next -} -{ print $0 } -' \ No newline at end of file Property changes on: trunk/doc-rnd/hacking/hid_remote/fixlab.sh ___________________________________________________________________ Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: trunk/doc-rnd/hacking/plugin_core_simple.html =================================================================== --- trunk/doc-rnd/hacking/plugin_core_simple.html (revision 5606) +++ trunk/doc-rnd/hacking/plugin_core_simple.html (nonexistent) @@ -1,59 +0,0 @@ - - -

pcb-rnd hacking - simple core plugins

- -

Introduction

- -

Setting up a new core plugin

-
    -
  • 1. make up a name for the plugin. There are a few conventions. This document will refer to the name as plg, always replace it with your chosen name. -
  • 2. cd src_plugins; svn mkdir plg -
  • 3. copy Makefile, Plug.tmpasm and README from another, small plugin, for example from the report plugin (the next points will assume you picked this plugin as the source of the copy) -
  • 4. edit Makefile: replace report to plg -
  • 5. edit README; there should be short summary about the purpose of the plugin then "#key: value" pairs for statistics: -
      -
    • #state: either works or disabled -
    • #lstate: if state is disabled, add a new line #lstate: with a few words on why the plugin is disabled -
    • #default: disabled or builtin or plugin (this field might be removed later because of redundancy) -
    • #implements: the same as the plugin name prefix (see conventions. ) or (feature) for feature plugins; it's redundant but is kept for supporting external plugins -
    -
  • 6. edit Plug.tmpasm: -
    -put /local/pcb/mod {plg}
    -put /local/pcb/mod/OBJS [@ $(PLUGDIR)/plg/foo.o $(PLUGDIR)/plg/bar.o @]
    -put /local/pcb/mod/CONF {$(PLUGDIR)/plg/foo_conf.h}
    -put /local/pcb/mod/YACC [@ $(PLUGDIR)/plg/bary @]
    -put /local/pcb/mod/LEX  [@ $(PLUGDIR)/plg/barl @]
    -		
    - -
      -
    • /local/pcb/mod: the name of the module we are compiling -
    • /local/pcb/mod/OBJS: a space separated list of object files to compile -
    • /local/pcb/mod/CONF: optional: the name of the conf struct header - if the plugin doesn't have runtime configuration settings, remove this line -
    • /local/pcb/mod/YACC: optional: if you have files for yacc-processing, list them without the .y suffix here (space separated) -
    • /local/pcb/mod/LEX: optional: if you have files for lex-processing, list them without the .l suffix here (space separated) -
    • Leave the switch part on the bottom intact. -
    -
  • 7. create your C sources and headers in src_plugins/plg/ -
  • 8. edit scconfig/plugins.h: copy an existing line and edit it: -
    -plugin_def("plg",       "short description",       default)
    -
    - Default is one of: -
      -
    • sbuildin - unless the user requests otherwise, your plugin is linked into the executable -
    • sdisable - unless the user requests otherwise, your plugin is not compiled (recommended until the plugin gets some user testing) -
    • splugin - unless the user requests otherwise, your plugin is dynamically linked; not recommended: the policy is to let users explicitly request dynamic linking -
    - The order of entries in the file is the same as the order in the summary table - at the end of ./configure; insert your plugin in the right group! -
  • 9. add your plugin to the build list in one of the src_plugins/plugins_*.tmpasm files; choose the file that lists plugins similar to yours. -
  • 10. run ./configure --buildin-plg -
  • 11. run make to see if it compiles and test -
  • (12. while developing, you can run make from src_plugins/plg - if - your plugin is a builtin, it will recompile pcb-rnd. For some of us it's convenient - to run make in the same directory where all the source files are.) -
- - - Index: trunk/doc-rnd/hacking/indent.html =================================================================== --- trunk/doc-rnd/hacking/indent.html (revision 5606) +++ trunk/doc-rnd/hacking/indent.html (nonexistent) @@ -1,15 +0,0 @@ - - -

pcb-rnd - indentation

- -As of r1022 all old code is converted using indent(1) with the following -command line: - -
-indent --line-length128 -brs -br -nce --tab-size2 -ut -npsl  -npcs -hnl $*
-
-

-Contributors are kindly asked to follow this style or run the above commandline -on their code before sending a patch or commiting to svn. - - Index: trunk/doc-rnd/hacking/c89.html =================================================================== --- trunk/doc-rnd/hacking/c89.html (revision 5606) +++ trunk/doc-rnd/hacking/c89.html (nonexistent) @@ -1,14 +0,0 @@ - - -

pcb-rnd - C89

- -The code is written in C, namely C89 for most parts with a few exceptions -written in C99. It's not yet decided whether the code will be C89 or C99 -long term. If it'll be C89, the C99 parts will be rewritten. If it'll be -C99, new code can use C99 features freely. Until the decision, keep -new code C89. Especlially watch out for these: -
    -
  • commengt: always use /* */, never // -
  • don't mix variable declaration with code - open a new {} block, which will also scope your new variables, or better yet, split up the function into smaller, static functions, the compiler will inline them anyway -
  • try to avoid vararg macros, use vararg functions instead -
Index: trunk/doc-rnd/hacking/releasing.txt =================================================================== --- trunk/doc-rnd/hacking/releasing.txt (revision 5606) +++ trunk/doc-rnd/hacking/releasing.txt (nonexistent) @@ -1,11 +0,0 @@ -release check list - -0. test compile and test run a clean checkout on a clean system - configure with --debug --all=buildin, then without -1. check next version number and previous revision in tags/ -2. update the changelog -3. rewrite the release notes -4. modify version number in scconfig -5. update changelog in debian/ -6. commit trunk -7. svn tag using URLs Index: trunk/doc-rnd/hacking/src/data1.dot =================================================================== --- trunk/doc-rnd/hacking/src/data1.dot (revision 5606) +++ trunk/doc-rnd/hacking/src/data1.dot (nonexistent) @@ -1,59 +0,0 @@ -digraph pcb_data { - PCBType_misc [label="misc fields:\nID\nName\nFileName\ncolors\ndrc settings\ncursor coords\ngrid\nlayergroups\nroute styles\n..."] - PCBType_flags [label="flags:\nChanged\nViaOn (vias drawn?)\n..."] - pcb_board_t -> PCBType_misc - pcb_board_t -> PCBType_flags - pcb_board_t -> pcb_data_t - pcb_board_t [shape=box] - - PCB [label="extern pcb_board_t PCB\nglobal variable\nholding the current\nboard" shape=diamond] - PCB -> pcb_board_t - - Buffers [label="extern pcb_buffer_t Buffers[]\nglobal variable holding\nall paste buffers" shape=diamond] - Buffers -> pcb_buffer_t - - BufferType_misc [label="misc fields:\nbounding box\noffset"] - pcb_buffer_t -> BufferType_misc - pcb_buffer_t -> pcb_data_t - pcb_buffer_t [shape=box] - - DataType_lists [label="layer-independent lists:\nrats\nvias\nelements"] - DataType_rtrees [label="layer-independent rtrees"] - DataType_LayerN [label="LayerN: number of\nlayers in use"] - DataType_layers [label="an array of layers"] - DataType_misc [label="misc fields"] - - pcb_data_t -> DataType_misc - pcb_data_t -> DataType_LayerN - pcb_data_t -> DataType_layers - pcb_data_t -> DataType_lists - pcb_data_t -> DataType_rtrees - pcb_data_t [shape=box] - - DataType_layers -> pcb_layer_t - - - LayerType_lines [label="list and rtree of lines"] - LayerType_arcs [label="list and rtree of arcs"] - LayerType_texts [label="list and rtree of text objects"] - LayerType_polygons [label="list and rtree of polygons"] - LayerType_misc [label="misc fields:\nflags\ncolors"] - - pcb_layer_t -> LayerType_misc - pcb_layer_t -> LayerType_lines - pcb_layer_t -> LayerType_arcs - pcb_layer_t -> LayerType_texts - pcb_layer_t -> LayerType_polygons - pcb_layer_t [shape=box] - - subgraph "cluster_1" { - label="LEGEND" - style=filled - bgcolor=grey - round [label="round:\nstruct field"] - struct [label="box:\nstruct" shape=box] - diamond [label="diamond:\nglobal variable" shape=diamond] - } - - LayerType_misc -> struct [style=invis] -} Index: trunk/doc-rnd/hacking/src/Makefile =================================================================== --- trunk/doc-rnd/hacking/src/Makefile (revision 5606) +++ trunk/doc-rnd/hacking/src/Makefile (nonexistent) @@ -1,2 +0,0 @@ -../data1.png: data1.dot - dot -Tpng $^ > $@ Index: trunk/doc-rnd/hacking/plugin_naming.html =================================================================== --- trunk/doc-rnd/hacking/plugin_naming.html (revision 5606) +++ trunk/doc-rnd/hacking/plugin_naming.html (nonexistent) @@ -1,12 +0,0 @@ - - -

pcb-rnd hacking - plugin naming conventions

-
    -
  • export plugins start with export_; these render to a non-native format that can not be then loaded -
  • native formats are prefixed with io_; even if your plugin can now only load or save, if it's possible to do a load-save-load round-trip without data loss, it's an io_ -
  • interactive, often GUI, frontends are prefixed with hid_ -
  • footprint access plugins start with fp_ -
  • anything else is considered a feature plugin and has no specific prefix. -
- - Index: trunk/doc-rnd/hacking/renames =================================================================== --- trunk/doc-rnd/hacking/renames (revision 5606) +++ trunk/doc-rnd/hacking/renames (nonexistent) @@ -1,1516 +0,0 @@ -Name differences between mainline -> pcb_rnd -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -#types: - -PCBTypePtr -> pcb_board_t * -PCBType -> pcb_board_t -DataTypePtr -> pcb_data_t * -DataType -> pcb_data_t -LayerGroupTypePtr -> pcb_layer_group_t * -LayerGroupType -> pcb_layer_group_t -LayerTypePtr -> pcb_layer_t * -LayerType -> pcb_layer_t -BufferTypePtr -> pcb_buffer_t * -BufferType -> pcb_buffer_t -NetTypePtr -> pcb_net_t * -NetType -> pcb_net_t -ConnectionTypePtr -> pcb_connection_t * -ConnectionType -> pcb_connection_t -BoxTypePtr -> pcb_box_t * -BoxType -> pcb_box_t -BoxListTypePtr -> pcb_box_list_t * -BoxListType -> pcb_box_list_t -FontTypePtr -> pcb_font_t * -FontType -> pcb_font_t -LineTypePtr -> pcb_line_t * -LineType -> pcb_line_t -AttachedObjectTypePtr -> pcb_attached_obj_t * -AttachedObjectType -> pcb_attached_obj_t -AttachedLineTypePtr -> pcb_attached_line_t * -AttachedLineType -> pcb_attached_line_t -CrosshairTypePtr -> pcb_crosshair_t * -CrosshairType -> pcb_crosshair_t -MarkTypePtr -> pcb_mark_t * -MarkType -> pcb_mark_t -ArcTypePtr -> pcb_arc_t * -ArcType -> pcb_arc_t -PointTypePtr -> pcb_point_t * -PointType -> pcb_point_t -RatTypePtr -> pcb_rat_t * -RatType -> pcb_rat_t -PolygonTypePtr -> pcb_polygon_t * -PolygonType -> pcb_polygon_t -PadTypePtr -> pcb_pad_t * -PadType -> pcb_pad_t -PinTypeType -> pcb_pin_t * -PinType -> pcb_pin_t -ElementTypeHandle -> pcb_element_t ** -ElementTypePtr -> pcb_element_t * -ElementType -> pcb_element_t -TextTypePtr -> pcb_text_t * -TextType -> pcb_text_t -AttributeListTypePtr -> pcb_attribute_list_t * -AttributeListType -> pcb_attribute_list_t -AttributeTypePtr -> pcb_attribute_t * -AttributeType -> pcb_attribute_t -OutputTypePtr -> pcb_output_t * -OutputType -> pcb_output_t -DrcViolationTypePtr -> pcb_drc_violation_t * -DrcViolationType -> pcb_drc_violation_t -FlagBitsTypePtr -> pcb_flag_bits_t * -FlagBitsType -> pcb_flag_bits_t -FlagTypePtr -> pcb_flag_t * -FlagType -> pcb_flag_t -SymbolTypePtr -> pcb_symbol_t * -SymbolType -> pcb_symbol_t -FunctionID -> pcb_function_id_t -EndCapStyle -> pcb_cap_style_t -hidval -> pcb_hidval_t -HID_Action -> pcb_hid_action_t -PCBWatchFlags -> pcb_watch_flags_t -HID_DRC_GUI -> pcb_hid_drc_gui_t -HID -> pcb_hid_t -hid_gc_struct -> hid_gc_s -hidGC -> pcb_hid_gc_t -HID_Attr_Val -> pcb_hid_attr_val_t -HID_Attribute -> pcb_hid_attribute_t -HID_AttrNode -> pcb_hid_attr_node_t -LibraryEntryTypePtr -> pcb_lib_entry_t * -LibraryEntryType -> pcb_lib_entry_t -LibraryMenuTypePtr -> pcb_lib_menu_t * -LibraryMenuType -> pcb_lib_menu_t -LibraryTypePtr -> pcb_lib_t * -LibraryType -> pcb_lib_t -UnitList -> pcb_unit_list_t -unitflags -> pcb_unit_flags_e -UnitList -> pcb_unit_list_t -NetListTypePtr -> pcb_netlist_t * -NetListType -> pcb_netlist_t -NetListListTypePtr -> pcb_netlist_list_t * -NetListListType -> pcb_netlist_list_t -AnyObjectTypePtr -> pcb_any_obj_t * -AnyObjectType -> pcb_any_obj_t -AnyLineObjectTypePtr -> pcb_any_line_t * -AnyLineObjectType -> pcb_any_line_t -AttachedLineTypePtr -> pcb_attached_line_t -AttachedLineType -> pcb_attached_line_t * -Vector -> pcb_vector_t -vertex -> pcb_vertex_t -CVCList -> pcb_cvc_list_t -VNODE -> pcb_vnode_t -PLINE -> pcb_pline_t -POLYAREA -> pcb_polyarea_t -PolygonBooleanOperation -> pcb_poly_bool_op_e -RubberbandType -> pcb_rubberband_t -Unit -> pcb_unit_t -Increments -> pcb_increments_t -Angle -> pcb_angle_t -Coord -> pcb_coord_t -RouteStyleTypePtr -> pcb_route_style_t * -RouteStyleType -> pcb_route_style_t -heap_t -> pcb_heap_t -cost_t -> pcb_cost_t - -# functions: -EventMoveCrosshair -> pcb_event_move_crosshair -AdjustAttachedObjects -> pcb_adjust_attached_objects - -warpNoWhere -> pcb_warp_nowhere -get_style_size -> pcb_get_style_size -NotifyLine -> pcb_notify_line -NotifyBlock -> pcb_notify_block -NotifyMode -> pcb_notify_mode -ClearWarnings -> pcb_clear_warnings -ReleaseMode -> pcb_release_mode -AFAIL -> PCB_AFAIL -ACTION_ARG -> PCB_ACTION_ARG -AttributeGetFromList -> pcb_attribute_get -AttributePutToList -> pcb_attribute_put -AttributeRemoveFromList -> pcb_attribute_remove -FreeAttributeListMemory -> pcb_attribute_free -AttributeGet -> pcb_attrib_get -AttributePut -> pcb_attrib_put -AttributeRemove -> pcb_attrib_remove -FreePCBMemory -> pcb_board_free -CreateNewPCB_ -> pcb_board_new_ -CreateNewPCB -> pcb_board_new -CreateNewPCBPost -> pcb_board_new_postproc -CountHoles -> pcb_board_count_holes -SWAP_X -> PCB_SWAP_X -SWAP_Y -> PCB_SWAP_Y -ROTATEBOX_CW -> PCB_BOX_ROTATE_CW -ROTATEBOX_TO_NORTH -> PCB_BOX_ROTATE_TO_NORTH -ROTATEBOX_FROM_NORTH -> PCB_BOX_ROTATE_FROM_NORTH -CENTER_X -> PCB_BOX_CENTER_X -CENTER_Y -> PCB_BOX_CENTER_Y -MOVE_BOX_LOWLEVEL -> PCB_BOX_MOVE_LOWLEVEL -point_in_box -> pcb_point_in_box -point_in_closed_box -> pcb_point_in_closed_box -box_is_good -> pcb_box_is_good -box_intersect -> pcb_box_intersect -closest_pcb_point_in_box -> pcb_closest_pcb_point_in_box -box_in_box -> pcb_box_in_box -clip_box -> pcb_clip_box -shrink_box -> pcb_shrink_box -bloat_box -> pcb_bloat_box -box_center -> pcb_box_center -box_corner -> pcb_box_corner -point_box -> pcb_point_box -close_box -> pcb_close_box -dist2_to_box -> pcb_dist2_to_box -GetBoxMemory -> pcb_box_new -FreeBoxListMemory -> pcb_box_free -SetPointBoundingBox -> pcb_set_point_bounding_box -SwapBuffer -> pcb_swap_buffer -SetBufferBoundingBox -> pcb_set_buffer_bbox -ClearBuffer -> pcb_buffer_clear -pcb_swap_buffer -> pcb_buffer_swap -pcb_buffer_set_bbox -> -AddSelectedToBuffer -> pcb_buffer_add_selected -LoadLayoutToBuffer -> pcb_buffer_load_layout -RotateBuffer -> pcb_buffer_rotate -SelectPasteBuffer -> pcb_buffer_select_paste -MirrorBuffer -> pcb_buffer_mirror -InitBuffers -> pcb_init_buffers -UninitBuffers -> pcb_uninit_buffers -MoveObjectToBuffer -> pcb_move_obj_to_buffer -CopyObjectToBuffer -> pcb_copy_obj_to_buffer -LoadFootprint -> pcb_load_footprint -CreateNewBuffer -> pcb_buffer_new -PASTEBUFFER -> PCB_PASTEBUFFER -QuitApplication -> pcb_quit_app -GetInfoString -> pcb_get_infostr -ChangeLayoutName -> pcb_board_change_name -ChangeLayerName -> pcb_layer_change_name -ChangeSelectedSize -> pcb_chg_selected_size -ChangeSelectedClearSize -> pcb_chg_selected_clear_size -ChangeSelected2ndSize -> pcb_chg_selected_2nd_size -ChangeSelectedMaskSize -> pcb_chg_selected_mask_size -ChangeSelectedJoin -> pcb_chg_selected_join -SetSelectedJoin -> pcb_set_selected_join -ClrSelectedJoin -> pcb_clr_selected_join -ChangeSelectedNonetlist -> pcb_chg_selected_nonetlist -ChangeSelectedSquare -> pcb_chg_selected_square -SetSelectedSquare -> pcb_set_selected_square -ClrSelectedSquare -> pcb_clr_selected_square -ChangeSelectedThermals -> pcb_chg_selected_thermals -ChangeSelectedHole -> pcb_chg_selected_hole -ChangeSelectedPaste -> pcb_chg_selected_paste -ChangeSelectedOctagon -> pcb_chg_selected_octagon -SetSelectedOctagon -> pcb_set_selected_octagon -ClrSelectedOctagon -> pcb_clr_selected_octagon -ChangeObjectSize -> pcb_chg_obj_size -ChangeObject1stSize -> pcb_chg_obj_1st_size -ChangeObjectThermal -> pcb_chg_obj_thermal -ChangeObjectClearSize -> pcb_chg_obj_clear_size -ChangeObject2ndSize -> pcb_chg_obj_2nd_size -ChangeObjectMaskSize -> pcb_chg_obj_mask_size -ChangeObjectJoin -> pcb_chg_obj_join -SetObjectJoin -> pcb_set_obj_join -ClrObjectJoin -> pcb_clr_obj_join -ChangeObjectNonetlist -> pcb_chg_obj_nonetlist -ChangeObjectSquare -> pcb_chg_obj_square -SetObjectSquare -> pcb_set_obj_square -ClrObjectSquare -> pcb_clr_obj_square -ChangeObjectOctagon -> pcb_chg_obj_octagon -SetObjectOctagon -> pcb_set_obj_octagon -ClrObjectOctagon -> pcb_clr_obj_octagon -ChangeObjectName -> pcb_chg_obj_name -QueryInputAndChangeObjectName -> pcb_chg_obj_name_query -ChangeObjectPinnum -> pcb_chg_obj_pinnum -ChangeObjectRadius -> pcb_chg_obj_radius -ChangeObjectAngle -> pcb_chg_obj_angle -ChangeSelectedAngle -> pcb_chg_selected_angle -ChangeSelectedRadius -> pcb_chg_selected_radius -QueryInputAndpcb_chg_obj_name -> pcb_chg_obj_name_query -ChangePCBSize -> pcb_board_resize -ClipLine -> pcb_line_clip -GetWorkingDirectory -> pcb_get_wd -tempfile_name_new -> pcb_tempfile_name_new -tempfile_unlink -> pcb_tempfile_unlink -lrealpath -> pcb_lrealpath -get_user_name -> pcb_get_user_name -CopyPastebufferToLayout -> pcb_buffer_copy_to_layout -CopyObject -> pcb_copy_obj -GridFit -> pcb_grid_fit -notify_crosshair_change -> pcb_notify_crosshair_change -notify_mark_change -> pcb_notify_mark_change -HideCrosshair -> pcb_crosshair_hide -RestoreCrosshair -> pcb_crosshair_restore -DrawAttached -> pcb_draw_attached -DrawMark -> pcb_draw_mark -MoveCrosshairRelative -> pcb_crosshair_move_relative -MoveCrosshairAbsolute -> pcb_crosshair_move_absolute -SetCrosshairRange -> pcb_crosshair_set_range -InitCrosshair -> pcb_crosshair_init -DestroyCrosshair -> pcb_crosshair_uninit -FitCrosshairIntoGrid -> pcb_crosshair_grid_fit -CenterDisplay -> pcb_center_display -FreeDataMemory -> pcb_data_free -IsDataEmpty -> pcb_data_is_empty -GetDataBoundingBox -> pcb_data_bbox -Draw -> pcb_draw -Redraw -> pcb_redraw -DrawObject -> pcb_draw_obj -DrawLayer -> pcb_draw_layer -EraseObject -> pcb_erase_obj -LightenColor -> pcb_lighten_color -Message -> pcb_message -OpenErrorpcb_messag -> pcb_open_error_message -PopenErrorpcb_message -> pcb_popen_error_message -OpendirErrorpcb_message -> pcb_opendir_error_message -ChdirErrorpcb_message -> ocb_chdir_error_message -OpenErrorpcb_message -> pcb_open_error_message -CatchSignal -> pcb_catch_signal -events_init -> pcb_events_init -events_uninit -> pcb_events_uninit -event_bind -> pcb_event_bind -event_unbind -> pcb_event_unbind -event_unbind_cookie -> pcb_event_unbind_cookie -event_unbind_allcookie -> pcb_event_unbind_allcookie -event -> pcb_event -LineLineIntersect -> pcb_intersect_line_line -LineArcIntersect -> pcb_intersect_line_arc -PinLineIntersect -> pcb_intersect_line_pin -LinePadIntersect -> pcb_intersect_line_pad -ArcPadIntersect -> pcb_intersect_arc_pad -IsPolygonInPolygon -> pcb_is_poly_in_poly -LookupElementConnections -> pcb_lookup_element_conns -LookupConnectionsToAllElements -> pcb_lookup_conns_to_all_elements -LookupConnection -> pcb_lookup_conn -LookupConnectionByPin -> pcb_lookup_conn_by_pin -LookupUnusedPins -> pcb_lookup_unused_pins -ResetFoundLinesAndPolygons -> pcb_reset_found_lines_polys -ResetFoundPinsViasAndPads -> pcb_reset_found_pins_vias_pads -ResetConnections -> pcb_reset_conns -InitConnectionLookup -> pcb_conn_lookup_init -InitComponentLookup -> pcb_component_lookup_init -InitLayoutLookup -> pcb_layout_lookup_init -FreeConnectionLookupMemory -> pcb_conn_lookup_uninit -FreeComponentLookupMemory -> pcb_component_lookup_uninit -FreeLayoutLookupMemory -> pcb_layout_lookup_uninit -RatFindHook -> pcb_rat_find_hook -SaveFindFlag -> pcb_save_find_flag -RestoreFindFlag -> pcb_restore_find_flag -DRCAll -> pcb_drc_all -IsLineInPolygon -> pcb_is_line_in_poly -IsArcInPolygon -> pcb_is_arc_in_poly -IsPadInPolygon -> pcb_is_pad_in_poly -ClearFlagOnPinsViasAndPads -> pcb_clear_flag_on_pins_vias_pads -ClearFlagOnLinesAndPolygons -> pcb_clear_flag_on_lines_polys -ClearFlagOnAllObjects -> pcb_clear_flag_on_all_objs -MakeFlags -> pcb_flag_make -OldFlags -> pcb_flag_old -AddFlags -> pcb_flag_add -MaskFlags -> pcb_flag_mask -EraseFlags -> pcb_flag_erase -NoFlags -> pcb_no_flags -mem_any_set -> pcb_mem_any_set -SET_FLAG -> PCB_FLAG_SET -CLEAR_FLAG -> PCB_FLAG_CLEAR -TEST_FLAG -> PCB_FLAG_TEST -TOGGLE_FLAG -> PCB_FLAG_TOGGLE -ASSIGN_FLAG -> PCB_FLAG_ASSIGN -TEST_FLAGS -> PCB_FLAGS_TEST -CHANGE_FLAG -> PCB_FLAG_CHANGE -FLAGS_EQUAL -> PCB_FLAG_EQ -THERMFLAG -> PCB_FLAG_THERM -TEST_THERM -> PCB_FLAG_THERM_TEST -GET_THERM -> PCB_FLAG_THERM_GET -CLEAR_THERM -> PCB_FLAG_THERM_CLEAR -ASSIGN_THERM -> PCB_FLAG_THERM_ASSIGN -GET_SQUARE -> PCB_FLAG_SQUARE_GET -CLEAR_SQUARE -> PCB_FLAG_SQUARE_CLEAR -ASSIGN_SQUARE -> PCB_FLAG_SQUARE_ASSIGN -GET_INTCONN -> PCB_FLAG_INTCONN_GET -TEST_ANY_THERMS -> PCB_FLAG_THERM_TEST_ANY -common_string_to_flags -> pcb_strflg_common_s2f -common_flags_to_string -> pcb_strflg_common_f2s -uninit_strflags_buf -> pcb_strflg_uninit_buf -uninit_strflags_layerlist -> pcb_strflg_uninit_layerlist -pcbflags_to_string -> pcb_strflg_board_f2s -string_to_pcbflags -> pcb_strflg_board_s2f -string_to_flags -> pcb_strflg_s2f -flags_to_string -> pcb_strflg_f2s -CreateDefaultFont -> pcb_font_create_default -SetFontInfo -> pcb_font_set_info -CreateNewLineInSymbol -> pcb_font_new_line_in_sym -leaky_init -> pcb_leaky_init -leaky_uninit -> pcb_leaky_uninit -leaky_malloc -> pcb_leaky_malloc -leaky_calloc -> pcb_leaky_calloc -leaky_realloc -> pcb_leaky_realloc -leaky_strdup -> pcb_leaky_strdup -funchash_get -> pcb_funchash_get -funchash_set -> pcb_funchash_set -funchash_set_table -> pcb_funchash_set_table -funchash_remove_cookie -> pcb_funchash_remove_cookie -funchash_init -> pcb_funchash_init -funchash_uninit -> pcb_funchash_uninit -heap_create -> pcb_heap_create -heap_destroy -> pcb_heap_destroy -heap_free -> pcb_heap_free -heap_insert -> pcb_heap_insert -heap_remove_smallest -> pcb_heap_remove_smallest -heap_replace -> pcb_heap_replace -heap_is_empty -> pcb_heap_is_empty -heap_size -> pcb_heap_size -hid_register_action -> pcb_hid_register_action -hid_register_actions -> pcb_hid_register_actions -REGISTER_ACTIONS -> PCB_REGISTER_ACTIONS -HIDCONCAT -> PCB_HIDCONCAT -hid_expose_callback -> pcb_hid_expose_callback -hid_actions_init -> pcb_hid_actions_init -hid_actions_uninit -> pcb_hid_actions_uninit -REGISTER_ATTRIBUTES -> PCB_REGISTER_ATTRIBUTES -print_actions -> pcb_print_actions -dump_actions -> pcb_dump_actions -hid_find_action -> pcb_hid_find_action -hid_remove_actions -> pcb_hid_remove_actions -hid_remove_action -> pcb_hid_remove_action -hid_remove_actions_by_cookie -> pcb_hid_remove_actions_by_cookie -hid_action -> pcb_hid_action -hid_actionl -> pcb_hid_actionl -hid_actionv -> pcb_hid_actionv -hid_actionv_ -> pcb_hid_actionv_ -hid_parse_command -> pcb_hid_parse_command -hid_parse_actions -> pcb_hid_parse_actions -hid_register_attributes -> pcb_hid_register_attributes -hid_remove_attributes_by_cookie -> pcb_hid_remove_attributes_by_cookie -hid_attributes_uninit -> pcb_hid_attributes_uninit -hid_usage -> pcb_hid_usage -hid_usage_option -> pcb_hid_usage_option -hid_cfg_create_menu -> pcb_hid_cfg_create_menu -hid_cfg_remove_menu -> pcb_hid_cfg_remove_menu -hid_cfg_load -> pcb_hid_cfg_load -hid_cfg_load_lht -> pcb_hid_cfg_load_lht -hid_cfg_load_str -> pcb_hid_cfg_load_str -hid_cfg_get_menu -> pcb_hid_cfg_get_menu -hid_cfg_get_menu_at -> pcb_hid_cfg_get_menu_at -hid_cfg_menu_field_path -> pcb_hid_cfg_menu_field_path -hid_cfg_menu_field_str -> pcb_hid_cfg_menu_field_str -hid_cfg_menu_field -> pcb_hid_cfg_menu_field -hid_cfg_has_submenus -> pcb_hid_cfg_has_submenus -hid_cfg_create_hash_node -> pcb_hid_cfg_create_hash_node -hid_cfg_extend_hash_nodev -> pcb_hid_cfg_extend_hash_nodev -hid_cfg_extend_hash_node -> pcb_hid_cfg_extend_hash_node -hid_cfg_dfs -> pcb_hid_cfg_dfs -hid_cfg_error -> pcb_hid_cfg_error -hid_cfg_action -> pcb_hid_cfg_action -hid_cfg_keys_init -> pcb_hid_cfg_keys_init -hid_cfg_keys_uninit -> pcb_hid_cfg_keys_uninit -hid_cfg_keys_add_under -> pcb_hid_cfg_keys_add_under -hid_cfg_keys_add_by_desc -> pcb_hid_cfg_keys_add_by_desc -hid_cfg_keys_add_by_strdesc -> pcb_hid_cfg_keys_add_by_strdesc -hid_cfg_keys_gen_accel -> pcb_hid_cfg_keys_gen_accel -hid_cfg_keys_input -> pcb_hid_cfg_keys_input -hid_cfg_keys_action -> pcb_hid_cfg_keys_action -hid_cache_color -> pcb_hid_cache_color -common_fill_pcb_polygon -> pcb_dhlp_fill_pcb_polygon -common_thindraw_pcb_polygon -> pcb_dhlp_thindraw_pcb_polygon -common_fill_pcb_pad -> pcb_dhlp_fill_pcb_pad -common_thindraw_pcb_pad -> pcb_dhlp_thindraw_pcb_pad -common_fill_pcb_pv -> pcb_dhlp_fill_pcb_pv -common_thindraw_pcb_pv -> pcb_dhlp_thindraw_pcb_pv -common_draw_helpers_init -> pcb_dhlp_draw_helpers_init -hid_get_extents -> pcb_hid_get_extents -hid_save_and_show_layer_ons -> pcb_hid_save_and_show_layer_ons -hid_restore_layer_ons -> pcb_hid_restore_layer_ons -hid_get_flag -> pcb_hid_get_flag -derive_default_filename -> pcb_derive_default_filename -layer_type_to_file_name -> pcb_layer_type_to_file_name -hid_init -> pcb_hid_init -hid_uninit -> pcb_hid_uninit -hid_find_gui -> pcb_hid_find_gui -hid_find_printer -> pcb_hid_find_printer -hid_find_exporter -> pcb_hid_find_exporter -hid_enumerate -> pcb_hid_enumerate -hid_parse_command_line -> pcb_hid_parse_command_line -hid_register_hid -> pcb_hid_register_hid -hid_remove_hid -> pcb_hid_remove_hid -common_nogui_init -> pcb_hid_nogui_init -hid_nogui_get_hid -> pcb_hid_nogui_get_hid -InsertPointIntoObject -> pcb_insert_point_in_object -AdjustInsertPoint -> pcb_adjust_insert_point -ComputeIntersectionArea -> pcb_intersect_box_box -ComputeUnionArea -> pcb_union_box_box -GetLibraryMenuMemory -> pcb_lib_menu_new -GetLibraryEntryMemory -> pcb_lib_entry_new -FreeLibraryMemory -> pcb_lib_free -DeleteLibraryMenuMemory -> pcb_lib_menu_free -CreateNewNet -> pcb_lib_net_new -CreateNewConnection -> pcb_lib_conn_new -ENTRIES -> PCB_ENTRIES -UNKNOWN -> PCB_UNKNOWN -NSTRCMP -> PCB_NSTRCMP -EMPTY -> PCB_EMPTY -EMPTY_STRING_P -> PCB_EMPTY_STRING_P -XOR -> PCB_XOR -SQUARE -> PCB_SQUARE -OBJECT_ID -> PCB_OBJECT_ID -FRONT -> PCB_FRONT -ON_SIDE -> PCB_ON_SIDE -TO_RADIANS -> PCB_TO_RADIANS -MAKEMIN -> PCB_MAKE_MIN -MAKEMAX -> PCB_MAKE_MAX -SGNZ -> PCB_SGNZ -SWAP_SIGN_X -> PCB_SWAP_SIGN_X -SWAP_SIGN_Y -> PCB_SWAP_SIGN_Y -Distance2 -> pcb_distance2 -Distance -> pcb_distance -GetValue -> pcb_get_value -GetValueEx -> pcb_get_value_ex -GetNum -> pcb_get_num -Concat -> pcb_concat -StripWhiteSpaceAndDup -> pcb_strdup_strip_wspace -MoveLayer -> pcb_layer_move -MOVE -> PCB_MOVE -MoveObject -> pcb_move_obj -MoveObjectToLayer -> pcb_move_obj_to_layer -MoveObjectAndRubberband -> pcb_move_obj_and_rubberband -MoveSelectedObjectsToLayer -> pcb_move_selected_objs_to_layer -GetNetMemory -> pcb_net_new -GetNetListMemory -> pcb_netlist_new -FreeNetListListMemory -> pcb_netlist_list_free -FreeNetListMemory -> pcb_netlist_free -FreeNetMemory -> pcb_net_free -NETLIST_LOOP -> PCB_NETLIST_LOOP -NET_LOOP -> PCB_NET_LOOP -GetArcMemory -> pcb_arc_new -GetElementArcMemory -> pcb_element_arc_new -RemoveFreeArc -> pcb_arc_free -GetElementMemory -> pcb_element_new -RemoveFreeElement -> pcb_element_free -FreeElementMemory -> pcb_element_free_fields -GetElementLineMemory -> pcb_element_line_new -GetLineMemory -> pcb_line_new -RemoveFreeLine -> pcb_line_free -CreateNewLineOnLayer -> pcb_line_new_on_layer -CreateDrawnLineOnLayer -> pcb_line_new_on_layer_merge -GetPadMemory -> pcb_pad_new -RemoveFreePad -> pcb_pad_free -CreateNewPad -> pcb_pad_new_in_element -SetPadBoundingBox -> pcb_pad_bbox -GetViaMemory -> pcb_via_new -RemoveFreeVia -> pcb_via_free -GetPinMemory -> pcb_pin_new -RemoveFreePin -> pcb_pin_free -CreateNewVia -> pcb_via_new_on_board -CreateNewPin -> pcb_pin_new_in_element -SetPinBoundingBox -> pcb_pin_bbox -GetPolygonMemory -> pcb_poly_alloc -RemoveFreePolygon -> pcb_poly_free -GetPointMemoryInPolygon -> pcb_poly_point_alloc -GetHoleIndexMemoryInPolygon -> pcb_poly_holeidx_new -FreePolygonMemory -> pcb_poly_free_fields -SetPolygonBoundingBox -> pcb_poly_bbox -CreateNewPolygonFromRectangle -> pcb_poly_new_from_rectangle -CreateNewPolygon -> pcb_poly_new -CreateNewPointInPolygon -> pcb_poly_point_new -CreateNewHoleInPolygon -> pcb_poly_hole_new -RemovePolygon -> pcb_poly_remove -GetRatMemory -> pcb_rat_alloc -RemoveFreeRat -> pcb_rat_free -CreateNewRat -> pcb_rat_new -DeleteRats -> pcb_rats_delete -GetTextMemory -> pcb_text_alloc -RemoveFreeText -> pcb_text_free -CreateNewText -> pcb_text_new -pcb_arc_new -> pcb_arc_alloc -CreateNewArcOnLayer -> pcb_arc_new -RemoveArc -> pcb_arc_destroy -pcb_element_arc_new -> pcb_element_arc_alloc -pcb_element_new -> pcb_element_alloc -pcb_element_free_fields -> pcb_element_destroy -pcb_line_new -> pcb_line_alloc -pcb_line_new_on_layer_merge -> pcb_line_new_merge -pcb_line_new_on_layer -> pcb_line_new -RemoveLine -> pcb_line_destroy -pcb_pad_new -> pcb_pad_alloc -pcb_pad_new_in_element -> pcb_element_pad_new -pcb_via_new -> pcb_via_alloc -pcb_pin_new -> pcb_pin_alloc -pcb_via_new_on_board -> pcb_via_new -pcb_pin_new_in_element -> pcb_element_pin_new -pcb_rats_delete -> pcb_rats_destroy -RemoveText -> pcb_text_destroy -SetArcBoundingBox -> pcb_arc_bbox -SetElementBoundingBox -> pcb_element_bbox -SetLineBoundingBox -> pcb_line_bbox -SetTextBoundingBox -> pcb_text_bbox -RotateArcLowLevel -> pcb_arc_rotate90 -RotateElementLowLevel -> pcb_element_rotate90 -RotateLineLowLevel -> pcb_line_rotate90 -RotatePolygonLowLevel -> pcb_poly_rotate90 -RotateTextLowLevel -> pcb_text_rotate90 -Freepcb_element_rotate90 -> pcb_element_rotate -Freepcb_element_rotate90 -> pcb_element_rotate -Freepcb_buffer_rotate -> pcb_buffer_free_rotate -GetArcEnds -> pcb_arc_get_ends -ChangeArcAngles -> pcb_arc_set_angles -ChangeArcRadii -> pcb_arc_set_radii -ChangeElementSide -> pcb_element_change_side -ChangeSelectedElementSide -> pcb_selected_element_change_side -ElementOrientation -> pcb_element_get_orientation -ChangePaste -> pcb_pad_change_paste -ChangeHole -> pcb_pin_change_hole -CreateNewElement -> pcb_element_new -CreateNewArcInElement -> pcb_element_arc_new -CreateNewLineInElement -> pcb_element_line_new -RemoveElement -> pcb_element_remove -MoveElementLowLevel -> pcb_element_move -MirrorElementCoordinates -> pcb_element_mirror -MovePolygonLowLevel -> pcb_poly_move -CopyPolygonLowLevel -> pcb_poly_copy -MOVE_TEXT_LOWLEVEL -> pcb_text_move -TEXT_IS_VISIBLE -> pcb_text_is_visible -MOVE_ARC_LOWLEVEL -> pcb_arc_move -MOVE_LINE_LOWLEVEL -> pcb_line_move -MOVE_PAD_LOWLEVEL -> pcb_pad_move -MOVE_PIN_LOWLEVEL -> pcb_pin_move -MOVE_VIA_LOWLEVEL -> pcb_via_move -ALLARC_LOOP -> PCB_ARC_ALL_LOOP -COPPERARC_LOOP -> PCB_ARC_COPPER_LOOP -SILKARC_LOOP -> PCB_ARC_SILK_LOOP -VISIBLEARC_LOOP -> PCB_ARC_VISIBLE_LOOP -ARC_LOOP -> PCB_ARC_LOOP -ELEMENTTEXT_LOOP -> PCB_ELEMENT_TEXT_LOOP -ELEMENTNAME_LOOP -> PCB_ELEMENT_NAME_LOOP -ELEMENTLINE_LOOP -> PCB_ELEMENT_LINE_LOOP -ELEMENTPCB_ARC_LOOP -> PCB_ELEMENT_ARC_LOOP -ELEMENT_LOOP -> PCB_ELEMENT_LOOP -ALLLINE_LOOP -> PCB_LINE_ALL_LOOP -COPPERLINE_LOOP -> PCB_LINE_COPPER_LOOP -SILKLINE_LOOP -> PCB_LINE_SILK_LOOP -VISIBLELINE_LOOP -> PCB_LINE_VISIBLE_LOOP -LINE_LOOP -> PCB_LINE_LOOP -ALLPAD_LOOP -> PCB_PAD_ALL_LOOP -PAD_LOOP -> PCB_PAD_LOOP -ALLPIN_LOOP -> PCB_PIN_ALL_LOOP -VIA_LOOP -> PCB_VIA_LOOP -PIN_LOOP -> PCB_PIN_LOOP -POLYGONPOINT_LOOP -> PCB_POLY_POINT_LOOP -ALLPOLYGON_LOOP -> PCB_POLY_ALL_LOOP -COPPERPOLYGON_LOOP -> PCB_POLY_COPPER_LOOP -SILKPOLYGON_LOOP -> PCB_POLY_SILK_LOOP -VISIBLEPOLYGON_LOOP -> PCB_POLY_VISIBLE_LOOP -POLYGON_LOOP -> PCB_POLY_LOOP -ALLTEXT_LOOP -> PCB_TEXT_ALL_LOOP -VISIBLETEXT_LOOP -> PCB_TEXT_VISIBLE_LOOP -TEXT_LOOP -> PCB_TEXT_LOOP -LoadElementToBuffer -> pcb_element_load_to_buffer -LoadFootprintByName -> pcb_element_load_footprint_by_name -SmashBufferElement -> pcb_element_smash_buffer -ConvertBufferToElement -> pcb_element_convert_from_buffer -CopyElementLowLevel -> pcb_element_copy -UniqueElementName -> pcb_element_uniq_name -AddTextToElement -> pcb_element_text_set -ChangeElementText -> pcb_element_text_change -resolve_path -> pcb_path_resolve -resolve_path_inplace -> pcb_path_resolve_inplace -resolve_paths -> pcb_paths_resolve -resolve_all_paths -> pcb_paths_resolve_all -fp_fopen -> pcb_fp_fopen -fp_fclose -> pcb_fp_fclose -fp_dupname -> pcb_fp_dupname -fp_tagname -> pcb_fp_tagname -fp_uninit -> pcb_fp_uninit -fp_tag -> pcb_fp_tag -fp_init -> pcb_fp_init -get_library_memory -> pcb_get_library_memory -fp_free_children -> pcb_fp_free_children -fp_sort_children -> pcb_fp_sort_children -fp_rmdir -> pcb_fp_rmdir -fp_mkdir_p -> pcb_fp_mkdir_p -fp_mkdir_len -> pcb_fp_mkdir_len -fp_lib_search -> pcb_fp_lib_search -fp_append_entry -> pcb_fp_append_entry -fp_read_lib_all -> pcb_fp_read_lib_all -fp_default_search_path -> pcb_fp_default_search_path -fp_host_uninit -> pcb_fp_host_uninit -fp_rehash -> pcb_fp_rehash -ImportNetlist -> pcb_import_netlist -ParsePCB -> pcb_parse_pcb -ParseElement -> pcb_parse_element -ParseFont -> pcb_parse_font -WriteBuffer -> pcb_write_buffer -WriteElementData -> pcb_write_element_data -CheckAndOpenFile -> pcb_check_and_open_file -OpenConnectionDataFile -> pcb_open_connection_file -SavePCB -> pcb_save_pcb -LoadPCB -> pcb_load_pcb -EnableAutosave -> pcb_enable_autosave -Backup -> pcb_backup -SaveInTMP -> pcb_save_in_tmp -EmergencySave -> pcb_emergency_save -DisableEmergencySave -> pcb_disable_emergency_save -RevertPCB -> pcb_revert_pcb -SaveBufferElements -> pcb_save_buffer_elements -PrintQuotedString -> pcb_print_quoted_string -sort_library -> pcb_library_sort -set_some_route_style -> pcb_set_some_route_style -WritePCBFile -> pcb_write_pcb_file -WritePipe -> pcb_write_pipe -SaveTMPData -> pcb_tmp_data_save -RemoveTMPData -> pcb_tmp_data_remove -plugins_init -> pcb_plugins_init -plugins_uninit -> pcb_plugins_uninit -plugin_register -> pcb_plugin_register -HOOK_CALL_DO -> PCB_HOOK_CALL_DO -HOOK_CALL_ALL -> PCB_HOOK_CALL_ALL -HOOK_UNREGISTER -> PCB_HOOK_UNREGISTER -HOOK_CALL -> PCB_HOOK_CALL -HOOK_REGISTER -> PCB_HOOK_REGISTER -poly_NewContour -> pcb_poly_contour_new -poly_IniContour -> pcb_poly_contour_init -poly_ClrContour -> pcb_poly_contour_clear -poly_DelContour -> pcb_poly_contour_del -poly_CopyContour -> pcb_poly_contour_copy -poly_PreContour -> pcb_poly_contour_pre -poly_InvContour -> pcb_poly_contour_inv -poly_CreateNode -> pcb_poly_node_create -poly_InclVertex -> pcb_poly_vertex_include -poly_ExclVertex -> pcb_poly_vertex_exclude -poly_M_Copy0 -> pcb_poly_m_copy0 -poly_M_Incl -> pcb_poly_m_include -poly_Copy0 -> pcb_poly_copy0 -poly_Copy1 -> pcb_poly_copy1 -poly_InclContour -> pcb_poly_contour_include -poly_ExclContour -> pcb_poly_contour_exclide -poly_ChkContour -> pcb_poly_contour_check -poly_CheckInside -> pcb_poly_contour_inside -Touching -> pcb_poly_touching -pcb_poly_m_copy0 -> pcb_polyarea_m_copy0 -pcb_poly_m_include -> pcb_polyarea_m_include -pcb_poly_copy0 -> pcb_polyarea_copy0 -pcb_poly_copy1 -> pcb_polyarea_copy1 -pcb_poly_contour_include -> pcb_polyarea_contour_include -pcb_poly_contour_exclide -> pcb_polyarea_contour_exclide -pcb_poly_contour_check -> pcb_polyarea_contour_check -pcb_poly_contour_inside -> pcb_polyarea_contour_inside -pcb_poly_touching -> pcb_polyarea_touching -poly_InsideContour -> pcb_poly_contour_inside -poly_ContourInContour -> pcb_poly_contour_in_contour -poly_Create -> pcb_polyarea_create -poly_Free -> pcb_polyarea_free -poly_Init -> pcb_polyarea_init -poly_FreeContours -> pcb_poly_contours_free -poly_Valid -> pcb_poly_valid -vect_dist2 -> pcb_vect_dist2 -vect_det2 -> pcb_vect_det2 -vect_len2 -> pcb_vect_len2 -vect_inters2 -> pcb_vect_inters2 -poly_Boolean -> pcb_polyarea_boolean -poly_Boolean_free -> pcb_polyarea_boolean_free -poly_AndSubtract_free -> pcb_polyarea_and_subtract_free -poly_bbox -> pcb_polyarea_bbox -Savepcb_polyarea_t -> pcb_polyarea_save -polygon_init -> pcb_polygon_init -polygon_point_idx -> pcb_poly_point_idx -polygon_point_contour -> pcb_poly_contour_point -prev_contour_point -> pcb_poly_contour_prev_point -next_contour_point -> pcb_poly_contour_next_point -GetLowestDistancePolygonPoint -> pcb_poly_get_lowest_distance_point -RemoveExcessPolygonPoints -> pcb_poly_remove_excess_points -GoToPreviousPoint -> pcb_polygon_go_to_prev_point -ClosePolygon -> pcb_polygon_close_poly -CopyAttachedPolygonToLayer -> pcb_polygon_copy_attached_to_layer -PolygonHoles -> pcb_poly_holes -PlowsPolygon -> pcb_poly_plows -ComputeNoHoles -> pcb_poly_compute_no_holes -ContourToPoly -> pcb_poly_from_contour -PolygonToPoly -> pcb_poly_from_poly -RectPoly -> pcb_poly_from_rect -CirclePoly -> pcb_poly_from_circle -OctagonPoly -> pcb_poly_from_octagon -LinePoly -> pcb_poly_from_line -ArcPoly -> pcb_poly_from_arc -PinPoly -> pcb_poly_from_pin -BoxPolyBloated -> pcb_poly_from_box_bloated -ContourToPoly -> pcb_poly_from_contour -PolygonToPoly -> pcb_poly_from_poly -RectPoly -> pcb_poly_from_rect -CirclePoly -> pcb_poly_from_circle -OctagonPoly -> pcb_poly_from_octagon -LinePoly -> pcb_poly_from_line -ArcPoly -> pcb_poly_from_arc -PinPoly -> pcb_poly_from_pin -BoxPolyBloated -> pcb_poly_from_box_bloated -frac_circle -> pcb_poly_frac_cicle -InitClip -> pcb_poly_init_clip -RestoreToPolygon -> pcb_poly_restore_to_poly -ClearFromPolygon -> pcb_poly_clear_from_poly -IsPointInPolygon -> pcb_poly_is_point_in_p -IsPointInPolygonIgnoreHoles -> pcb_poly_is_point_in_p_ignore_holes -IsRectangleInPolygon -> pcb_poly_is_rect_in_p -isects -> pcb_poly_isects_poly -MorphPolygon -> pcb_poly_morph -NoHolesPolygonDicer -> pcb_poly_no_holes_dicer -PolyToPolygonsOnLayer -> pcb_poly_to_polygons_on_layer -square_pin_factors -> pcb_poly_square_pin_factors -AddNet -> pcb_rat_add_net -ConnectionName -> pcb_connection_name -AddAllRats -> pcb_rat_add_all -SeekPad -> pcb_rat_seek_pad -ProcNetlist -> pcb_rat_proc_netlist -CollectSubnets -> pcb_rat_collect_subnets -GetConnectionMemory -> pcb_rat_connection_alloc -CONNECTION_LOOP -> PCB_CONNECTION_LOOP -RAT_LOOP -> PCB_RAT_LOOP -rats_patch_append -> pcb_ratspatch_append -rats_patch_destroy -> pcb_ratspatch_destroy -rats_patch_append_optimize -> pcb_ratspatch_append_optimize -rats_patch_make_edited -> pcb_ratspatch_make_edited -rats_patch_apply -> pcb_ratspatch_apply -rats_patch_fexport -> pcb_ratspatch_fexport -RemovePCB -> pcb_board_remove -RemoveSelected -> pcb_remove_selected -RemoveObject -> pcb_remove_object -DestroyObject -> pcb_destroy_object -ROTATE -> PCB_ROTATE90 -PIN_ROTATE -> PCB_PIN_ROTATE_SHAPE -ROTATE_VIA_LOWLEVEL -> PCB_VIA_ROTATE90 -ROTATE_PIN_LOWLEVEL -> PCB_PIN_ROTATE90 -ROTATE_PAD_LOWLEVEL -> PCB_PAD_ROTATE90 -RotateBoxLowLevel -> pcb_box_rotate90 -RotateObject -> pcb_obj_rotate90 -RotateScreenObject -> pcb_screen_obj_rotate90 -RotatePointLowLevel -> pcb_point_rotate90 -free_rotate -> pcb_rotate -PCB_ROTATE90 -> PCB_COORD_ROTATE90 -ParseRoutingString1 -> pcb_route_string_parse1 -ParseRouteString -> pcb_route_string_parse -make_route_string -> pcb_route_string_make -r_create_tree -> pcb_r_create_tree -r_destroy_tree -> pcb_r_destroy_tree -r_delete_entry -> pcb_r_delete_entry -r_insert_entry -> pcb_r_insert_entry -r_search -> pcb_r_search -r_region_is_empty -> pcb_r_region_is_empty -__r_dump_tree -> pcb_r_dump_tree -LookupRubberbandLines -> pcb_rubber_band_lookup_lines -LookupRatLines -> pcb_rubber_band_lookup_rat_lines -GetRubberbandMemory -> pcb_rubber_band_alloc -CreateNewRubberbandEntry -> pcb_rubber_band_create -IsPointOnLine -> pcb_is_point_on_line -IsPointOnPin -> pcb_is_point_in_pin -IsPointOnArc -> pcb_is_point_on_arc -IsPointOnLineEnd -> pcb_is_point_on_line_end -IsLineInRectangle -> pcb_is_line_in_rectangle -IsLineInQuadrangle -> pcb_is_line_in_quadrangle -IsArcInRectangle -> pcb_is_arc_in_rectangle -IsPointInPad -> pcb_is_point_in_pad -IsPointInBox -> pcb_is_point_in_box -lines_intersect -> pcb_lines_intersect -POINT_IN_BOX -> PCB_POINT_IN_BOX -VIA_OR_PIN_IN_BOX -> PCB_VIA_OR_PIN_IN_BOX -LINE_IN_BOX -> PCB_LINE_IN_BOX -PAD_IN_BOX -> PCB_PAD_IN_BOX -BOX_IN_BOX -> PCB_BOX_IN_BOX -TEXT_IN_BOX -> PCB_TEXT_IN_BOX -POLYGON_IN_BOX -> PCB_POLYGON_IN_BOX -ELEMENT_IN_BOX -> PCB_ELEMENT_IN_BOX -ARC_IN_BOX -> PCB_ARC_IN_BOX -POINT_IN_CIRCLE -> PCB_POINT_IN_CIRCLE -CIRCLE_TOUCHES_BOX -> PCB_CIRCLE_TOUCHES_BOX -VIA_OR_PIN_TOUCHES_BOX -> PCB_VIA_OR_PIN_TOUCHES_BOX -LINE_TOUCHES_BOX -> PCB_LINE_TOUCHES_BOX -PAD_TOUCHES_BOX -> PCB_PAD_TOUCHES_BOX -BOX_TOUCHES_BOX -> PCB_BOX_TOUCHES_BOX -TEXT_TOUCHES_BOX -> PCB_TEXT_TOUCHES_BOX -POLYGON_TOUCHES_BOX -> PCB_POLYGON_TOUCHES_BOX -ELEMENT_TOUCHES_BOX -> PCB_ELEMENT_TOUCHES_BOX -ARC_TOUCHES_BOX -> PCB_ARC_TOUCHES_BOX -IS_BOX_NEGATIVE -> PCB_IS_BOX_NEGATIVE -BOX_NEAR_BOX -> PCB_BOX_NEAR_BOX -VIA_OR_PIN_NEAR_BOX -> PCB_VIA_OR_PIN_NEAR_BOX -LINE_NEAR_BOX -> PCB_LINE_NEAR_BOX -PAD_NEAR_BOX -> PCB_PAD_NEAR_BOX -TEXT_NEAR_BOX -> PCB_TEXT_NEAR_BOX -POLYGON_NEAR_BOX -> PCB_POLYGON_NEAR_BOX -ELEMENT_NEAR_BOX -> PCB_ELEMENT_NEAR_BOX -ARC_NEAR_BOX -> PCB_ARC_NEAR_BOX -SearchObjectByLocation -> pcb_search_obj_by_location -SearchScreen -> pcb_search_screen -SearchScreenGridSlop -> pcb_search_grid_slop -SearchObjectByID -> pcb_search_obj_by_id -SearchElementByName -> pcb_search_elem_by_name -SelectObject -> pcb_select_object -SelectBlock -> pcb_select_block -ListBlock -> pcb_list_block -ObjectOperation -> pcb_object_operation -SelectedOperation -> pcb_selected_operation -SelectConnection -> pcb_select_connection -SelectObjectByName -> pcb_select_object_by_name -SetTextScale -> pcb_text_set_scale -SetGrid -> pcb_board_set_grid -SetLineSize -> pcb_line_set_size -SetViaSize -> pcb_via_set_size -SetViaDrillingHole -> pcb_via_set_drilling_hole -SetClearanceWidth -> pcb_conf_set_clearance_width -SetChangedFlag -> pcb_board_set_changed_flag -SetBufferNumber -> pcb_buffer_set_number -SetMode -> pcb_crosshair_set_mode -SetCrosshairRangeToBuffer -> pcb_crosshair_range_to_buffer -SetLocalRef -> pcb_crosshair_set_local_ref -SaveMode -> pcb_crosshair_save_mode -RestoreMode -> pcb_crosshair_restore_mode -pcb_text_set_scale -> pcb_board_set_text_scale -pcb_line_set_size -> pcb_board_set_line_width -pcb_via_set_size -> pcb_board_set_via_size -pcb_via_set_drilling_hole -> pcb_board_set_via_drilling_hole -pcb_conf_set_clearance_width -> pcb_board_set_clearance -stub_DrawFab_overhang -> pcb_stub_draw_fab_overhang -stub_DrawFab -> pcb_stub_draw_fab -stub_rat_found_short -> pcb_stub_rat_found_short -stub_rat_proc_shorts -> pcb_stub_rat_proc_shorts -Undo -> pcb_undo -Redo -> pcb_redo -IncrementUndoSerialNumber -> pcb_undo_inc_serial -SaveUndoSerialNumber -> pcb_undo_save_serial -RestoreUndoSerialNumber -> pcb_undo_restore_serial -ClearUndoList -> pcb_undo_clear_list -LockUndo -> pcb_undo_lock -UnlockUndo -> pcb_undo_unlock -Undoing -> pcb_undoing -MoveObjectToRemoveUndoList -> pcb_undo_move_obj_to_remove -AddObjectToRemovePointUndoList -> pcb_undo_add_obj_to_remove_point -AddObjectToInsertPointUndoList -> pcb_undo_add_obj_to_insert_point -AddObjectToRemoveContourUndoList -> pcb_undo_add_obj_to_remove_contour -AddObjectToInsertContourUndoList -> pcb_undo_add_obj_to_insert_contour -AddObjectToMoveUndoList -> pcb_undo_add_obj_to_move -AddObjectToChangeNameUndoList -> pcb_undo_add_obj_to_change_name -AddObjectToChangePinnumUndoList -> pcb_undo_add_obj_to_change_pinnum -AddObjectToRotateUndoList -> pcb_undo_add_obj_to_rotate -AddObjectToCreateUndoList -> pcb_undo_add_obj_to_create -AddObjectToMirrorUndoList -> pcb_undo_add_obj_to_mirror -AddObjectToMoveToLayerUndoList -> pcb_undo_add_obj_to_move_to_layer -AddObjectToFlagUndoList -> pcb_undo_add_obj_to_flag -AddObjectToSizeUndoList -> pcb_undo_add_obj_to_size -AddObjectTo2ndSizeUndoList -> pcb_undo_add_obj_to_2nd_size -AddObjectToClearSizeUndoList -> pcb_undo_add_obj_to_clear_size -AddObjectToMaskSizeUndoList -> pcb_undo_add_obj_to_mask_size -AddObjectToChangeAnglesUndoList -> pcb_undo_add_obj_to_change_angles -AddObjectToChangeRadiiUndoList -> pcb_undo_add_obj_to_change_radii -AddObjectToClearPolyUndoList -> pcb_undo_add_obj_to_clear_poly -AddLayerChangeToUndoList -> pcb_undo_add_layer_change -AddNetlistLibToUndoList -> pcb_undo_add_netlist_lib -get_n_units -> pcb_get_n_units -coord_to_unit -> pcb_coord_to_unit -unit_to_factor -> pcb_unit_to_factor -unit_to_coord -> pcb_unit_to_coord -get_increments_struct -> pcb_get_increments_struct -NormalizeAngle -> pcb_normalize_angle -initialize_units -> pcb_units_init -UNDO_CHANGENAME -> PCB_UNDO_CHANGENAME -UNDO_MOVE -> PCB_UNDO_MOVE -UNDO_REMOVE -> PCB_UNDO_REMOVE -UNDO_REMOVE_POINT -> PCB_UNDO_REMOVE_POINT -UNDO_INSERT_POINT -> PCB_UNDO_INSERT_POINT -UNDO_REMOVE_CONTOUR -> PCB_UNDO_REMOVE_CONTOUR -UNDO_INSERT_CONTOUR -> PCB_UNDO_INSERT_CONTOUR -UNDO_ROTATE -> PCB_UNDO_ROTATE -UNDO_CREATE -> PCB_UNDO_CREATE -UNDO_MOVETOLAYER -> PCB_UNDO_MOVETOLAYER -UNDO_FLAG -> PCB_UNDO_FLAG -UNDO_CHANGESIZE -> PCB_UNDO_CHANGESIZE -UNDO_CHANGE2NDSIZE -> PCB_UNDO_CHANGE2NDSIZE -UNDO_MIRROR -> PCB_UNDO_MIRROR -UNDO_CHANGECLEARSIZE -> PCB_UNDO_CHANGECLEARSIZE -UNDO_CHANGEMASKSIZE -> PCB_UNDO_CHANGEMASKSIZE -UNDO_CHANGEANGLES -> PCB_UNDO_CHANGEANGLES -UNDO_LAYERCHANGE -> PCB_UNDO_LAYERCHANGE -UNDO_CLEAR -> PCB_UNDO_CLEAR -UNDO_NETLISTCHANGE -> PCB_UNDO_NETLISTCHANGE -UNDO_CHANGEPINNUM -> PCB_UNDO_CHANGEPINNUM -UNDO_CHANGERADII -> PCB_UNDO_CHANGERADII -ROTATE_TYPES -> PCB_ROTATE_TYPES -CHANGENAME_TYPES -> PCB_CHANGENAME_TYPES -CHANGESIZE_TYPES -> PCB_CHANGESIZE_TYPES -CHANGE2NDSIZE_TYPES -> PCB_CHANGE2NDSIZE_TYPES -CHANGECLEARSIZE_TYPES -> PCB_CHANGECLEARSIZE_TYPES -CHANGENONETLIST_TYPES -> PCB_CHANGENONETLIST_TYPES -CHANGESQUARE_TYPES -> PCB_CHANGESQUARE_TYPES -CHANGEOCTAGON_TYPES -> PCB_CHANGEOCTAGON_TYPES -CHANGEJOIN_TYPES -> PCB_CHANGEJOIN_TYPES -CHANGETHERMAL_TYPES -> PCB_CHANGETHERMAL_TYPES -CHANGEMASKSIZE_TYPES -> PCB_CHANGEMASKSIZE_TYPES -SELECT_TYPES -> PCB_SELECT_TYPES -MOVE_TYPES -> PCB_MOVE_TYPES -MOVETOLAYER_TYPES -> PCB_MOVETOLAYER_TYPES -INSERT_TYPES -> PCB_INSERT_TYPES -COPY_TYPES -> PCB_COPY_TYPES -REMOVE_TYPES -> PCB_REMOVE_TYPES -NETLIST_INPUT -> PCB_NETLIST_INPUT -NETLIST_EDITED -> PCB_NETLIST_EDITED -NUM_NETLISTS -> PCB_NUM_NETLISTS -ATTRIBUTE_UNUSED -> PCB_ATTRIBUTE_UNUSED -UNLIKELY -> PCB_UNLIKELY -LIKELY -> PCB_LIKELY -STATE_FIRST -> PCB_CH_STATE_FIRST -STATE_SECOND -> PCB_CH_STATE_SECOND -STATE_THIRD -> PCB_CH_STATE_THIRD -Basic_Crosshair_Shape -> pcb_ch_shape_basic -Union_Jack_Crosshair_Shape -> pcb_ch_shape_union_jack -Dozen_Crosshair_Shape -> pcb_ch_shape_dozen -Crosshair_Shapes_Number -> pcb_ch_shape_NUM -Crosshair -> pcb_crosshair -Marked -> pcb_marked -max_group -> pcb_max_group -max_copper_layer -> pcb_max_copper_layer -solder_silk_layer -> pcb_solder_silk_layer -component_silk_layer -> pcb_component_silk_layer -Buffers -> pcb_buffers -addedLines -> pcb_added_lines -LayerStack -> pcb_layer_stack -Bumped -> pcb_bumped -STATUS_OK -> 0 -STATUS_ERROR -> -1 -EVENT_GUI_INIT -> PCB_EVENT_GUI_INIT -EVENT_CLI_ENTER -> PCB_EVENT_CLI_ENTER -EVENT_SAVE_PRE -> PCB_EVENT_SAVE_PRE -EVENT_SAVE_POST -> PCB_EVENT_SAVE_POST -EVENT_LOAD_PRE -> PCB_EVENT_LOAD_PRE -EVENT_LOAD_POST -> PCB_EVENT_LOAD_POST -EVENT_last -> PCB_EVENT_last -ARG_INT -> PCB_EVARG_INT -ARG_DOUBLE -> PCB_EVARG_DOUBLE -ARG_STR -> PCB_EVARG_STR -LOOKUP_FIRST -> PCB_LOOKUP_FIRST -LOOKUP_MORE -> PCB_LOOKUP_MORE -SILK_TYPE -> PCB_SILK_TYPE -FCT_COPPER -> PCB_FCT_COPPER -FCT_INTERNAL -> PCB_FCT_INTERNAL -FCT_RAT -> PCB_FCT_RAT -FCT_ELEMENT -> PCB_FCT_ELEMENT -FCT_START -> PCB_FCT_START -find_callback_t -> pcb_find_callback_t -find_callback -> pcb_find_callback -SHOWNUMBERFLAG -> PCB_SHOWNUMBERFLAG -LOCALREFFLAG -> PCB_LOCALREFFLAG -CHECKPLANESFLAG -> PCB_CHECKPLANESFLAG -SHOWPCB_FLAG_DRC -> PCB_SHOWPCB_FLAG_DRC -RUBBERBANDFLAG -> PCB_RUBBERBANDFLAG -DESCRIPTIONFLAG -> PCB_DESCRIPTIONFLAG -NAMEONPCBFLAG -> PCB_NAMEONPCBFLAG -AUTOPCB_FLAG_DRC -> PCB_AUTOPCB_FLAG_DRC -ALLDIRECTIONFLAG -> PCB_ALLDIRECTIONFLAG -SWAPSTARTDIRFLAG -> PCB_SWAPSTARTDIRFLAG -UNIQUENAMEFLAG -> PCB_UNIQUENAMEFLAG -CLEARNEWFLAG -> PCB_CLEARNEWFLAG -SNAPPCB_FLAG_PIN -> PCB_SNAPPCB_FLAG_PIN -SHOWMASKFLAG -> PCB_SHOWMASKFLAG -THINDRAWFLAG -> PCB_THINDRAWFLAG -ORTHOMOVEFLAG -> PCB_ORTHOMOVEFLAG -LIVEROUTEFLAG -> PCB_LIVEROUTEFLAG -THINDRAWPOLYFLAG -> PCB_THINDRAWPOLYFLAG -LOCKNAMESFLAG -> PCB_LOCKNAMESFLAG -ONLYNAMESFLAG -> PCB_ONLYNAMESFLAG -NEWPCB_FLAG_FULLPOLY -> PCB_NEWPCB_FLAG_FULLPOLY -HIDENAMESFLAG -> PCB_HIDENAMESFLAG -ENABLEPCB_FLAG_MINCUT -> PCB_ENABLEPCB_FLAG_MINCUT -GROUNDPLANEFRAME -> PCB_GROUNDPLANEFRAME -MASKFRAME -> PCB_MASKFRAME -LARGE_VALUE -> PCB_LARGE_VALUE -MAX_LAYER -> PCB_MAX_LAYER -MIN_LINESIZE -> PCB_MIN_LINESIZE -MAX_LINESIZE -> PCB_MAX_LINESIZE -MIN_ARCSIZE -> PCB_MIN_ARCSIZE -MAX_ARCSIZE -> PCB_MAX_ARCSIZE -MIN_TEXTSCALE -> PCB_MIN_TEXTSCALE -MAX_TEXTSCALE -> PCB_MAX_TEXTSCALE -MIN_PINORVIASIZE -> PCB_MIN_PINORVIASIZE -MIN_PINORVIAHOLE -> PCB_MIN_PINORVIAHOLE -MAX_PINORVIASIZE -> PCB_MAX_PINORVIASIZE -MIN_PINORVIACOPPER -> PCB_MIN_PINORVIACOPPER -MIN_PADSIZE -> PCB_MIN_PADSIZE -MAX_PADSIZE -> PCB_MAX_PADSIZE -MIN_DRC_VALUE -> PCB_MIN_DRC_VALUE -MAX_DRC_VALUE -> PCB_MAX_DRC_VALUE -MIN_DRC_SILK -> PCB_MIN_DRC_SILK -MAX_DRC_SILK -> PCB_MAX_DRC_SILK -MIN_DRC_DRILL -> PCB_MIN_DRC_DRILL -MAX_DRC_DRILL -> PCB_MAX_DRC_DRILL -MIN_DRC_RING -> PCB_MIN_DRC_RING -MAX_DRC_RING -> PCB_MAX_DRC_RING -MIN_GRID -> PCB_MIN_GRID -MAX_GRID -> PCB_MAX_GRID -MAX_FONTPOSITION -> PCB_MAX_FONTPOSITION -MAX_COORD -> PCB_MAX_COORD -MIN_SIZE -> PCB_MIN_SIZE -MAX_SIZE -> PCB_MAX_SIZE -MAX_BUFFER -> PCB_MAX_BUFFER -DEFAULT_DRILLINGHOLE -> PCB_DEFAULT_DRILLINGHOLE -MAXPATHLEN -> PCB_PATH_MAX -MAX_LINE_POINT_DISTANCE -> PCB_MAX_LINE_POINT_DISTANCE -MAX_POLYGON_POINT_DISTANCE -> PCB_MAX_POLYGON_POINT_DISTANCE -MAX_ELEMENTNAMES -> PCB_MAX_ELEMENTNAMES -MAX_NETLIST_LINE_LENGTH -> PCB_MAX_NETLIST_LINE_LENGTH -MAX_MODESTACK_DEPTH -> PCB_MAX_MODESTACK_DEPTH -MIN_GRID_DISTANCE -> PCB_MIN_GRID_DISTANCE -EMARK_SIZE -> PCB_EMARK_SIZE -FONT_CAPHEIGHT -> PCB_FONT_CAPHEIGHT -DEFAULT_CELLSIZE -> PCB_DEFAULT_CELLSIZE -next_gui -> pcb_next_gui -current_action -> pcb_current_action -pixel_slop -> pcb_pixel_slop -MF_ACCELERATOR -> PCB_MF_ACCELERATOR -MF_MNEMONIC -> PCB_MF_MNEMONIC -MF_SUBMENU -> PCB_MF_SUBMENU -MF_CHECKED -> PCB_MF_CHECKED -MF_UPDATE_ON -> PCB_MF_UPDATE_ON -MF_SENSITIVE -> PCB_MF_SENSITIVE -MF_TIP -> PCB_MF_TIP -MF_ACTIVE -> PCB_MF_ACTIVE -MF_ACTION -> PCB_MF_ACTION -MF_FOREGROUND -> PCB_MF_FOREGROUND -MF_BACKGROUND -> PCB_MF_BACKGROUND -MF_FONT -> PCB_MF_FONT -M_Shift -> PCB_M_Shift -M_Ctrl -> PCB_M_Ctrl -M_Alt -> PCB_M_Alt -M_Mod1 -> PCB_M_Mod1 -M_Release -> PCB_M_Release -MB_LEFT -> PCB_MB_LEFT -MB_MIDDLE -> PCB_MB_MIDDLE -MB_RIGHT -> PCB_MB_RIGHT -MB_SCROLL_UP -> PCB_MB_SCROLL_UP -MB_SCROLL_DOWN -> PCB_MB_SCROLL_DOWN -MB_SCROLL_LEFT -> PCB_MB_SCROLL_LEFT -MB_SCROLL_RIGHT -> PCB_MB_SCROLL_RIGHT -MB_ANY -> PCB_MB_ANY -M_ANY -> PCB_M_ANY -hid_list -> pcb_hid_list -hid_num_hids -> pcb_hid_num_hids -MENU_LOOP -> PCB_MENU_LOOP -ENTRY_LOOP -> PCB_ENTRY_LOOP -SWAP_IDENT -> PCB_SWAP_IDENT -END_LOOP -> PCB_END_LOOP -ENDALL_LOOP -> PCB_ENDALL_LOOP -pcb_create_be_lenient -> pcb_create_being_lenient -CreateBeLenient -> pcb_create_be_lenient -CreateIDBump -> pcb_create_ID_bump -CreateIDReset -> pcb_create_ID_reset -CreateIDGet -> pcb_create_ID_get -DESCRIPTION_INDEX -> PCB_ELEMNAME_IDX_DESCRIPTION -NAMEONPCB_INDEX -> PCB_ELEMNAME_IDX_REFDES -VALUE_INDEX -> PCB_ELEMNAME_IDX_VALUE -NAME_INDEX -> PCB_ELEMNAME_IDX_VISIBLE -ELEMENT_NAME -> PCB_ELEM_NAME_VISIBLE -DESCRIPTION_NAME -> PCB_ELEM_NAME_DESCRIPTION -NAMEONPCB_NAME -> PCB_ELEM_NAME_REFDES -VALUE_NAME -> PCB_ELEM_NAME_VALUE -ELEMENT_TEXT -> PCB_ELEM_TEXT_VISIBLE -DESCRIPTION_TEXT -> PCB_ELEM_TEXT_DESCRIPTION -NAMEONPCB_TEXT -> PCB_ELEM_TEXT_REFDES -VALUE_TEXT -> PCB_ELEM_TEXT_VALUE -AdjustAttachedLine -> pcb_line_adjust_attached -AdjustTwoLine -> pcb_line_adjust_attached_2lines -FortyFiveLine -> pcb_line_45 -EnforceLineDRC -> pcb_line_enforce_drc -library -> pcb_library -gui -> pcb_gui -exporter -> pcb_exporter -plug_fp_chain -> pcb_plug_fp_chain -plug_import_chain -> pcb_plug_import_chain -plug_io_chain -> pcb_plug_io_chain -PLF_DIR -> PCB_PLF_DIR -PLF_INV -> PCB_PLF_INV -PLF_MARK -> PCB_PLF_MARK -VertexEqu -> pcb_vertex_equ -VertexCpy -> pcb_vertex_cpy -err_no_memory -> pcb_err_no_memory -err_bad_parm -> pcb_err_bad_parm -err_ok -> pcb_err_ok -PBO_UNITE -> PCB_PBO_UNITE -PBO_ISECT -> PCB_PBO_ISECT -PBO_SUB -> PCB_PBO_SUB -PBO_XOR -> PCB_PBO_XOR -POLY_CIRC_SEGS -> PCB_POLY_CIRC_SEGS -POLY_CIRC_SEGS_F -> PCB_POLY_CIRC_SEGS_F -POLY_CIRC_RADIUS_ADJ -> PCB_POLY_CIRC_RADIUS_ADJ -POLY_ARC_MAX_DEVIATION -> PCB_POLY_ARC_MAX_DEVIATION -R_DIR_NOT_FOUND -> PCB_R_DIR_NOT_FOUND -R_DIR_FOUND_CONTINUE -> PCB_R_DIR_FOUND_CONTINUE -R_DIR_CANCEL -> PCB_R_DIR_CANCEL -SLOP -> PCB_SLOP -SM_REGEX -> PCB_SM_REGEX -SM_LIST -> PCB_SM_LIST -SWAP_ANGLE -> PCB_SWAP_ANGLE -SWAP_DELTA -> PCB_SWAP_DELTA -METRIC -> PCB_UNIT_METRIC -IMPERIAL -> PCB_UNIT_IMPERIAL -NO_SUFFIX -> PCB_UNIT_NO_SUFFIX -SUFFIX -> PCB_UNIT_SUFFIX -FILE_MODE -> PCB_UNIT_FILE_MODE -NO_PRINT -> PCB_UNIT_NO_PRINT -ALLOW_NM -> PCB_UNIT_ALLOW_NM -ALLOW_UM -> PCB_UNIT_ALLOW_UM -ALLOW_MM -> PCB_UNIT_ALLOW_MM -ALLOW_CM -> PCB_UNIT_ALLOW_CM -ALLOW_M -> PCB_UNIT_ALLOW_M -ALLOW_KM -> PCB_UNIT_ALLOW_KM -ALLOW_CMIL -> PCB_UNIT_ALLOW_CMIL -ALLOW_MIL -> PCB_UNIT_ALLOW_MIL -ALLOW_IN -> PCB_UNIT_ALLOW_IN -ALLOW_DMIL -> PCB_UNIT_ALLOW_DMIL -ALLOW_METRIC -> PCB_UNIT_ALLOW_METRIC -ALLOW_IMPERIAL -> PCB_UNIT_ALLOW_IMPERIAL -ALLOW_READABLE -> PCB_UNIT_ALLOW_READABLE -ALLOW_NATURAL -> PCB_UNIT_ALLOW_NATURAL -ALLOW_ALL -> PCB_UNIT_ALLOW_ALL -ActionExecuteFile -> pcb_act_ExecuteFile -executefile_help -> pcb_acth_ExecuteFile -executefile_syntax -> pcb_acts_ExecuteFile -ActionChangeAngle -> pcb_act_ChangeAngle -changeangle_help -> pcb_acth_ChangeAngle -changeangle_syntax -> pcb_acts_ChangeAngle -ActionChangeClearSize -> pcb_act_ChangeClearSize -changeclearsize_help -> pcb_acth_ChangeClearSize -changeclearsize_syntax -> pcb_acts_ChangeClearSize -ActionChange2ndSize -> pcb_act_Change2ndSize -change2ndsize_help -> pcb_acth_Change2ndSize -change2ndsize_syntax -> pcb_acts_Change2ndSize -ActionChangeHole -> pcb_act_ChangeHole -changehole_help -> pcb_acth_ChangeHole -changehole_syntax -> pcb_acts_ChangeHole -ActionChangeJoin -> pcb_act_ChangeJoin -changejoin_help -> pcb_acth_ChangeJoin -changejoin_syntax -> pcb_acts_ChangeJoin -ActionChangeName -> pcb_act_ChangeName -changename_help -> pcb_acth_ChangeName -changename_syntax -> pcb_acts_ChangeName -ActionChangePaste -> pcb_act_ChangePaste -changepaste_help -> pcb_acth_ChangePaste -changepaste_syntax -> pcb_acts_ChangePaste -ActionChangePinName -> pcb_act_ChangePinName -changepinname_help -> pcb_acth_ChangePinName -changepinname_syntax -> pcb_acts_ChangePinName -ActionChangeRadius -> pcb_act_ChangeRadius -changeradius_help -> pcb_acth_ChangeRadius -changeradius_syntax -> pcb_acts_ChangeRadius -ActionChangeSize -> pcb_act_ChangeSize -changesize_help -> pcb_acth_ChangeSize -changesize_syntax -> pcb_acts_ChangeSize -ActionChangeSizes -> pcb_act_ChangeSizes -changesizes_help -> pcb_acth_ChangeSizes -changesizes_syntax -> pcb_acts_ChangeSizes -ActionChangeNonetlist -> pcb_act_ChangeNonetlist -changenonetlist_help -> pcb_acth_ChangeNonetlist -changenonetlist_syntax -> pcb_acts_ChangeNonetlist -ActionChangeSquare -> pcb_act_ChangeSquare -changesquare_help -> pcb_acth_ChangeSquare -changesquare_syntax -> pcb_acts_ChangeSquare -ActionChangeOctagon -> pcb_act_ChangeOctagon -changeoctagon_help -> pcb_acth_ChangeOctagon -changeoctagon_syntax -> pcb_acts_ChangeOctagon -ActionChangeFlag -> pcb_act_ChangeFlag -changeflag_help -> pcb_acth_ChangeFlag -changeflag_syntax -> pcb_acts_ChangeFlag -ActionClearSquare -> pcb_act_ClearSquare -clearsquare_help -> pcb_acth_ClearSquare -clearsquare_syntax -> pcb_acts_ClearSquare -ActionClearOctagon -> pcb_act_ClearOctagon -clearoctagon_help -> pcb_acth_ClearOctagon -clearoctagon_syntax -> pcb_acts_ClearOctagon -ActionSetSquare -> pcb_act_SetSquare -setsquare_help -> pcb_acth_SetSquare -setsquare_syntax -> pcb_acts_SetSquare -ActionSetOctagon -> pcb_act_SetOctagon -setoctagon_help -> pcb_acth_SetOctagon -setoctagon_syntax -> pcb_acts_SetOctagon -ActionSetThermal -> pcb_act_SetThermal -setthermal_help -> pcb_acth_SetThermal -setthermal_syntax -> pcb_acts_SetThermal -ActionSetValue -> pcb_act_SetValue -setvalue_help -> pcb_acth_SetValue -setvalue_syntax -> pcb_acts_SetValue -ActionSetFlag -> pcb_act_SetFlag -setflag_help -> pcb_acth_SetFlag -setflag_syntax -> pcb_acts_SetFlag -ActionClrFlag -> pcb_act_ClrFlag -clrflag_help -> pcb_acth_ClrFlag -clrflag_syntax -> pcb_acts_ClrFlag -ActionExecCommand -> pcb_act_ExecCommand -execcommand_help -> pcb_acth_ExecCommand -execcommand_syntax -> pcb_acts_ExecCommand -ActionLoadFrom -> pcb_act_LoadFrom -loadfrom_help -> pcb_acth_LoadFrom -loadfrom_syntax -> pcb_acts_LoadFrom -ActionNew -> pcb_act_New -new_help -> pcb_acth_New -new_syntax -> pcb_acts_New -ActionSaveTo -> pcb_act_SaveTo -saveto_help -> pcb_acth_SaveTo -saveto_syntax -> pcb_acts_SaveTo -ActionQuit -> pcb_act_Quit -quit_help -> pcb_acth_Quit -quit_syntax -> pcb_acts_Quit -ActionDRCheck -> pcb_act_DRCheck -drcheck_help -> pcb_acth_DRCheck -drcheck_syntax -> pcb_acts_DRCheck -ActionDisplay -> pcb_act_Display -display_help -> pcb_acth_Display -display_syntax -> pcb_acts_Display -ActionCycleDrag -> pcb_act_CycleDrag -cycledrag_help -> pcb_acth_CycleDrag -cycledrag_syntax -> pcb_acts_CycleDrag -FullScreen -> pcb_act_FullScreen -fullscreen_help -> pcb_acth_FullScreen -fullscreen_syntax -> pcb_acts_FullScreen -ActionMarkCrosshair -> pcb_act_MarkCrosshair -markcrosshair_help -> pcb_acth_MarkCrosshair -markcrosshair_syntax -> pcb_acts_MarkCrosshair -ActionMessage -> pcb_act_Message -message_help -> pcb_acth_Message -message_syntax -> pcb_acts_Message -ActionMode -> pcb_act_Mode -mode_help -> pcb_acth_Mode -mode_syntax -> pcb_acts_Mode -ActionToggleHideName -> pcb_act_ToggleHideName -togglehidename_help -> pcb_acth_ToggleHideName -togglehidename_syntax -> pcb_acts_ToggleHideName -ActionSetSame -> pcb_act_SetSame -setsame_help -> pcb_acth_SetSame -setsame_syntax -> pcb_acts_SetSame -ActionRouteStyle -> pcb_act_RouteStyle -routestyle_help -> pcb_acth_RouteStyle -routestyle_syntax -> pcb_acts_RouteStyle -ActionCreateMenu -> pcb_act_CreateMenu -createmenu_help -> pcb_acth_CreateMenu -createmenu_syntax -> pcb_acts_CreateMenu -ActionRemoveMenu -> pcb_act_RemoveMenu -removemenu_help -> pcb_acth_RemoveMenu -removemenu_syntax -> pcb_acts_RemoveMenu -ActionSwitchHID -> pcb_act_SwitchHID -switchhid_help -> pcb_acth_SwitchHID -switchhid_syntax -> pcb_acts_SwitchHID -ActionPrintActions -> pcb_act_PrintActions -printactions_help -> pcb_acth_PrintActions -printactions_syntax -> pcb_acts_PrintActions -ActionDumpActions -> pcb_act_DumpActions -dumpactions_help -> pcb_acth_DumpActions -dumpactions_syntax -> pcb_acts_DumpActions -ActionPrintUsage -> pcb_act_PrintUsage -printusage_help -> pcb_acth_PrintUsage -printusage_syntax -> pcb_acts_PrintUsage -ActionPrintVersion -> pcb_act_PrintVersion -printversion_help -> pcb_acth_PrintVersion -printversion_syntax -> pcb_acts_PrintVersion -ActionPrintCopyright -> pcb_act_PrintCopyright -printcopyright_help -> pcb_acth_PrintCopyright -printcopyright_syntax -> pcb_acts_PrintCopyright -ActionPrintPaths -> pcb_act_PrintPaths -printpaths_help -> pcb_acth_PrintPaths -printpaths_syntax -> pcb_acts_PrintPaths -ActionNetlist -> pcb_act_Netlist -netlist_help -> pcb_acth_Netlist -netlist_syntax -> pcb_acts_Netlist -ActionNetlist -> pcb_act_Netlist -netlist_help -> pcb_acth_Netlist -netlist_syntax -> pcb_acts_Netlist -ActionAttributes -> pcb_act_Attributes -attributes_help -> pcb_acth_Attributes -attributes_syntax -> pcb_acts_Attributes -ActionDisperseElements -> pcb_act_DisperseElements -disperseelements_help -> pcb_acth_DisperseElements -disperseelements_syntax -> pcb_acts_DisperseElements -ActionFlip -> pcb_act_Flip -flip_help -> pcb_acth_Flip -flip_syntax -> pcb_acts_Flip -ActionListRotations -> pcb_act_ListRotations -listrotations_help -> pcb_acth_ListRotations -listrotations_syntax -> pcb_acts_ListRotations -ActionMoveObject -> pcb_act_MoveObject -moveobject_help -> pcb_acth_MoveObject -moveobject_syntax -> pcb_acts_MoveObject -ActionMoveToCurrentLayer -> pcb_act_MoveToCurrentLayer -movetocurrentlayer_help -> pcb_acth_MoveToCurrentLayer -movetocurrentlayer_syntax -> pcb_acts_MoveToCurrentLayer -ActionElementList -> pcb_act_ElementList -elementlist_help -> pcb_acth_ElementList -elementlist_syntax -> pcb_acts_ElementList -ActionElementSetAttr -> pcb_act_ElementSetAttr -elementsetattr_help -> pcb_acth_ElementSetAttr -elementsetattr_syntax -> pcb_acts_ElementSetAttr -ActionRipUp -> pcb_act_RipUp -ripup_help -> pcb_acth_RipUp -ripup_syntax -> pcb_acts_RipUp -ActionMinMaskGap -> pcb_act_MinMaskGap -minmaskgap_help -> pcb_acth_MinMaskGap -minmaskgap_syntax -> pcb_acts_MinMaskGap -ActionMinClearGap -> pcb_act_MinClearGap -mincleargap_help -> pcb_acth_MinClearGap -mincleargap_syntax -> pcb_acts_MinClearGap -MoveLayerAction -> pcb_act_MoveLayerAction -movelayeraction_help -> pcb_acth_MoveLayerAction -movelayeraction_syntax -> pcb_acts_MoveLayerAction -Action_fp_rehash -> pcb_act__fp_rehash -_fp_rehash_help -> pcb_acth__fp_rehash -_fp_rehash_syntax -> pcb_acts__fp_rehash -ActionMorphPolygon -> pcb_act_MorphPolygon -morphpolygon_help -> pcb_acth_MorphPolygon -morphpolygon_syntax -> pcb_acts_MorphPolygon -ActionPolygon -> pcb_act_Polygon -polygon_help -> pcb_acth_Polygon -polygon_syntax -> pcb_acts_Polygon -ActionAddRats -> pcb_act_AddRats -addrats_help -> pcb_acth_AddRats -addrats_syntax -> pcb_acts_AddRats -ActionConnection -> pcb_act_Connection -connection_help -> pcb_acth_Connection -connection_syntax -> pcb_acts_Connection -ActionDeleteRats -> pcb_act_DeleteRats -deleterats_help -> pcb_acth_DeleteRats -deleterats_syntax -> pcb_acts_DeleteRats -ActionDelete -> pcb_act_Delete -delete_help -> pcb_acth_Delete -delete_syntax -> pcb_acts_Delete -ActionRemoveSelected -> pcb_act_RemoveSelected -removeselected_help -> pcb_acth_RemoveSelected -removeselected_syntax -> pcb_acts_RemoveSelected -ActionSelect -> pcb_act_Select -select_help -> pcb_acth_Select -select_syntax -> pcb_acts_Select -ActionUnselect -> pcb_act_Unselect -unselect_help -> pcb_acth_Unselect -unselect_syntax -> pcb_acts_Unselect -ActionAtomic -> pcb_act_Atomic -atomic_help -> pcb_acth_Atomic -atomic_syntax -> pcb_acts_Atomic -ActionUndo -> pcb_act_Undo -undo_help -> pcb_acth_Undo -undo_syntax -> pcb_acts_Undo -ActionRedo -> pcb_act_Redo -redo_help -> pcb_acth_Redo -redo_syntax -> pcb_acts_Redo -ActionReplaceFootprint -> pcb_act_ReplaceFootprint -replacefootprint_help -> pcb_acth_ReplaceFootprint -replacefootprint_syntax -> pcb_acts_ReplaceFootprint -ActionSavePatch -> pcb_act_SavePatch -savepatch_help -> pcb_acth_SavePatch -savepatch_syntax -> pcb_acts_SavePatch -ActionManagePlugins -> pcb_act_ManagePlugins -manageplugins_help -> pcb_acth_ManagePlugins -manageplugins_syntax -> pcb_acts_ManagePlugins -ActionConf -> pcb_act_Conf -conf_help -> pcb_acth_Conf -conf_syntax -> pcb_acts_Conf -ActionGetStyle -> pcb_act_GetStyle -getstyle_help -> pcb_acth_GetStyle -getstyle_syntax -> pcb_acts_GetStyle -ActionChkMode -> pcb_act_ChkMode -chkmode_help -> pcb_acth_ChkMode -chkmode_syntax -> pcb_acts_ChkMode -ActionChkGridSize -> pcb_act_ChkGridSize -chkgridsize_help -> pcb_acth_ChkGridSize -chkgridsize_syntax -> pcb_acts_ChkGridSize -ActionChkElementName -> pcb_act_ChkElementName -chkelementname_help -> pcb_acth_ChkElementName -chkelementname_syntax -> pcb_acts_ChkElementName -ActionChkGridUnits -> pcb_act_ChkGridUnits -chkgridunits_help -> pcb_acth_ChkGridUnits -chkgridunits_syntax -> pcb_acts_ChkGridUnits -ActionChkBuffer -> pcb_act_ChkBuffer -chkbuffer_help -> pcb_acth_ChkBuffer -chkbuffer_syntax -> pcb_acts_ChkBuffer -ActionFreeRotateBuffer -> pcb_act_FreeRotateBuffer -freerotatebuffer_help -> pcb_acth_FreeRotateBuffer -freerotatebuffer_syntax -> pcb_acts_FreeRotateBuffer -ActionPasteBuffer -> pcb_act_PasteBuffer -pastebuffer_help -> pcb_acth_PasteBuffer -pastebuffer_syntax -> pcb_acts_PasteBuffer -ActionDumpLibrary -> pcb_act_DumpLibrary -dumplibrary_help -> pcb_acth_DumpLibrary -dumplibrary_syntax -> pcb_acts_DumpLibrary -ActionBell -> pcb_act_Bell -bell_help -> pcb_acth_Bell -bell_syntax -> pcb_acts_Bell -ActionToggleVendor -> pcb_act_ToggleVendor -togglevendor_help -> pcb_acth_ToggleVendor -togglevendor_syntax -> pcb_acts_ToggleVendor -ActionEnableVendor -> pcb_act_EnableVendor -enablevendor_help -> pcb_acth_EnableVendor -enablevendor_syntax -> pcb_acts_EnableVendor -ActionDisableVendor -> pcb_act_DisableVendor -disablevendor_help -> pcb_acth_DisableVendor -disablevendor_syntax -> pcb_acts_DisableVendor -ActionImport -> pcb_act_Import -import_help -> pcb_acth_Import -import_syntax -> pcb_acts_Import -ActionLoadhypFrom -> pcb_act_LoadhypFrom -loadhypfrom_help -> pcb_acth_LoadhypFrom -loadhypfrom_syntax -> pcb_acts_LoadhypFrom -ActionRenumber -> pcb_act_Renumber -renumber_help -> pcb_acth_Renumber -renumber_syntax -> pcb_acts_Renumber -ActionRenumberBlock -> pcb_act_RenumberBlock -renumberblock_help -> pcb_acth_RenumberBlock -renumberblock_syntax -> pcb_acts_RenumberBlock -ActionRenumberBuffer -> pcb_act_RenumberBuffer -renumberbuffer_help -> pcb_acth_RenumberBuffer -renumberbuffer_syntax -> pcb_acts_RenumberBuffer -ActionLoadDsnFrom -> pcb_act_LoadDsnFrom -loaddsnfrom_help -> pcb_acth_LoadDsnFrom -loaddsnfrom_syntax -> pcb_acts_LoadDsnFrom -ActionDumpConf -> pcb_act_DumpConf -dumpconf_help -> pcb_acth_DumpConf -dumpconf_syntax -> pcb_acts_DumpConf -ActionDumpLayers -> pcb_act_DumpLayers -dumplayers_help -> pcb_acth_DumpLayers -dumplayers_syntax -> pcb_acts_DumpLayers -ActionEvalConf -> pcb_act_EvalConf -evalconf_help -> pcb_acth_EvalConf -evalconf_syntax -> pcb_acts_EvalConf -ActionPSCalib -> pcb_act_PSCalib -pscalib_help -> pcb_acth_PSCalib -pscalib_syntax -> pcb_acts_PSCalib -ActionApplyVendor -> pcb_act_ApplyVendor -applyvendor_help -> pcb_acth_ApplyVendor -applyvendor_syntax -> pcb_acts_ApplyVendor -ActionUnloadVendor -> pcb_act_UnloadVendor -unloadvendor_help -> pcb_acth_UnloadVendor -unloadvendor_syntax -> pcb_acts_UnloadVendor -ActionLoadVendorFrom -> pcb_act_LoadVendorFrom -loadvendorfrom_help -> pcb_acth_LoadVendorFrom -loadvendorfrom_syntax -> pcb_acts_LoadVendorFrom -ActionAutoRoute -> pcb_act_AutoRoute -autoroute_help -> pcb_acth_AutoRoute -autoroute_syntax -> pcb_acts_AutoRoute -GlobalPuller -> pcb_act_GlobalPuller -globalpuller_help -> pcb_acth_GlobalPuller -globalpuller_syntax -> pcb_acts_GlobalPuller -Puller -> pcb_act_Puller -puller_help -> pcb_acth_Puller -puller_syntax -> pcb_acts_Puller -ActionAutoPlaceSelected -> pcb_act_AutoPlaceSelected -autoplaceselected_help -> pcb_acth_AutoPlaceSelected -autoplaceselected_syntax -> pcb_acts_AutoPlaceSelected -ActionDJopt -> pcb_act_DJopt -djopt_help -> pcb_acth_DJopt -djopt_syntax -> pcb_acts_DJopt -h_str -> pcb_hash_str -h_coordox -> pcb_hash_element_ox -h_coordoy -> pcb_hash_element_oy -h_coord -> pcb_hash_coord -pcb_buffer_swap -> pcb_buffer_flip_side -pcb_swap_buffers -> pcb_buffers_flip_side -LAYER_IS_PCB_EMPTY -> PCB_LAYER_IS_EMPTY -LAYER_IS_PCB_EMPTY -> PCB_LAYER_IS_EMPTY -IsLayerEmpty -> pcb_layer_is_empty_ -IsLayerNumEmpty -> pcb_layer_is_empty -IsLayerGroupEmpty -> pcb_is_layergrp_empty -ParseGroupString -> pcb_layer_parse_group_string -GetLayerNumber -> pcb_layer_id -GetGroupOfLayer -> pcb_layer_get_group -GetLayerGroupNumberByPointer -> pcb_layer_get_group_ -GetLayerGroupNumberByNumber -> pcb_layer_get_group -IsPasteEmpty -> pcb_layer_is_paste_empty -SOLDER_LAYER -> PCB_SOLDER_SIDE -COMPONENT_LAYER -> PCB_COMPONENT_SIDE -LayerStringToLayerStack -> pcb_layervis_parse_string -ChangeGroupVisibility -> pcb_layervis_change_group_vis -ResetStackAndVisibility -> pcb_layervis_reset_stack -SaveStackAndVisibility -> pcb_layervis_save_stack -RestoreStackAndVisibility -> pcb_layervis_restore_stack Index: trunk/doc-rnd/hacking/data.html =================================================================== --- trunk/doc-rnd/hacking/data.html (revision 5606) +++ trunk/doc-rnd/hacking/data.html (nonexistent) @@ -1,103 +0,0 @@ - - - -

pcb-rnd internals

- -

concepts

- -Convention: typedef'd types are called pcb_*_t - the corresponding struct -is pcb_*_s. - -

board

-There is only one board being edited. A board is the model of the whole world -for pcb-rnd - any other, auxiliary data is only a partial description of a board. -The data struct for board is pcb_board_t. As of now, pcb-rnd edits only one -board at a time, and it is stored in a global variable called PCB. -The code is single threaded and is not reentrant. -

-Half of the board structure describes global board properties: -

    -
  • layer stack -
  • netlist -
  • editor settings (e.g. routing styles, which layers are visible) -
  • metadata (such as name of the author, size of the board). -
-The other half is the actual board data, stored in a pcb_data_t field. -

-Relevant structs, variables and functions are in board.[ch]. - -

data

-A pcb_data_t contains everything to describe a "subcircuit" related -to an existing board: -
    -
  • per-layer objects (e.g. lines, arcs, polygons) -
  • global objects (e.g. elements, vias) -
  • temporary logical connections (rat lines) -
-

-Relevant structs, variables and functions are in data.[ch]. - -

buffers

-Paste buffers are pcb_buffer_t; the main field is pcb_data_t. -

-Relevant structs, variables and functions are in buffer.[ch]. - -

terminology: layers and layer groups

-Layers are abstract canvases also serving as a logical grouping -of drawing primitives. Every layer is part of exactly one layer -group. A layer group is close to what a physical layer is on -the FR4. -

-Limitations: -

    -
  • as of now pcb-rnd does not have Z-coordinate: layers have no thickness; -
  • substrate is not represented at all in the layers stack. -
-

-The location of a layer group on of: -

    -
  • top (component) side -
  • bottom (solder) side -
  • inner (signal) -
  • global (affects all locations, e.g. the outline layer for routing) -
-

-In pcb-rnd only copper layers and the outline layer are fully explicit. -There are two hardwired silk layers, one for the top and one for the bottom side. -The silk layers are semi-explicit: they are existing layers in all structs -but: -

    -
  • they are not part of the layer group system -
  • unlike explicit layers they have fixed index (+1 and +2 beyond the last explicit layer) -
  • created an moved by the core automatically -
  • can not be removed -
-

-The outline layer is a hack: it's really an internal copper layer. If -the code detects the name of the layer is "outline" anywhere, it branches. -

-There are a few virtual layers: -

    -
  • solder mask - no layer struct, calculated on-the-fly from pad data -
  • paste - no layer struct, calculated on-the-fly from pad data -
  • fab - no layer struct, calculated on-the-fly from drill/hole data -
- -

pcb_data_t: global data

-Global data affect all layers. The most trivial example is via: -it has a hole and the same copper ring on all layers. The other global -object pcb_data_t holds is an element. An element can have pads -on two copper layers and pins that affect all layers the same way as vias. - -

pcb_data_t: layer-local data

-The data struct has a pcb_layer_t for each logical layer, to host -the per layer objects (drawing primitives). - -

the layer struct

-Layer data is stored in struct pcb_layer_t. A layer has a list -for each object type (drawing primitive type): arcs, lines, polygons, etc. -

-Relevant structs, variables and functions are in layer.[ch]. - -

map

- Index: trunk/doc-rnd/hacking/obj_func_naming.txt =================================================================== --- trunk/doc-rnd/hacking/obj_func_naming.txt (revision 5606) +++ trunk/doc-rnd/hacking/obj_func_naming.txt (nonexistent) @@ -1,83 +0,0 @@ -obj_* function naming conventions - - -High level (new/destroy): - - This is the recommended way of creating new objects. - - pcb_*_new(): - Calls pcb_*_alloc(), fills in fields from parameters and calls the post - processing (pcb_add_*_on_layer()) function as needed. Makes sanity checks - on the parameters and may fail upon that. - - pcb_*_new_*(): - Same as pcb_*_new(), but may do clever things so the object created may - not be 1:1 what was reqested or may not even be a new object (e.g. - overlapping line merging) - - pcb_element_*_new(): - same as pcb_*_new(), parent being an element - - pcb_*_destroy() - free all fields of an object and properly remove it from the parent - (including rtree removal) - -Low level (alloc/free): - - Use this in some special cases (like loading a file) when the extra checks - of a _new may interfere. - - pcb_*_alloc(): - allocate a new objects within a parent (as of now: layer). Allocates - the struct of a new objects with all fields clean and links the object - in the parent list. Returns a pointer to the object. NOTE: some post - processing may be needed after filling in the fields - (see also: pcb_add_*_on_layer()) - - pcb_element_*_alloc(): - same, but parent is an element - will be removed once elements are - generalized. - - pcb_*_free(): - free the struct memory (but not the fields!) of an object and remove - it from the parent list. - - pcb_add_*_on_layer(): - Postprocessing: call this after a new object is allocated and fields are - filled in. It mainly updates the rtree. - - pcb_*_copy(): - copy fields of a complex obj to a pre-allocated target obj - - -Accessors: - pcb_*_get_*(): - Return data that are not directly accessible as object struct fields but - require some sort of calculation - - pcb_*_set_*(): - Set object fields that require postprocessing because of side effects. - Use these instead of direct writes to the fields to get side effects - properly executed. - - pcb_*_change_*(): - Similar to pcb_*_set_*(), but instead of setting a field to a value - specified as a parameter, change the field to comply with some global - state, e.g. "change side" would move the object to the currently viewed - side. - -Trasformations: - pcb_*_move(): - move the object within its parent (x;y); it's often implemented as a - macro - - pcb_*_mirror(): - mirror the object within its parent (x;y) - - -Misc: - pcb_*_bbox(): - calculate and update the bounding box of an object - - pcb_*_rotate90() - Rotate the object by n*90 degrees Index: trunk/doc-rnd/hacking/import.html =================================================================== --- trunk/doc-rnd/hacking/import.html (revision 5606) +++ trunk/doc-rnd/hacking/import.html (nonexistent) @@ -1,64 +0,0 @@ - - -

pcb-rnd hacking - how importers work

- -

Introduction

-This document describes the common aspects of import code, be it an -import_ plugin or the load part of an io_plugin, importing a footprint, -loading a board or a netlist. - -

Data structures

- -The board is stored in PCBType *. Some import code, like the one -that loads a design (an io plugin's ->parse_pcb function), gets the -target in an argument. (Other, non-import code usually operate on -the global variable that represents the current board: -PCBType *PCB.). -

-In either case, PCBType's most important field is PCBDataType *data, -which holds lists and vectors to store all objects on the board. When -the target is a buffer (e.g. io plugin's ->parse_element function), it's -a DataType *buf which also have a PCBDataType *data containing -the same data a board could. -

-A PCBDataType struct in turn has three sets of important fields: -

    -
  • lists for layer-independent objects (e.g. rat lines, vias, elements) -
  • number of layers in use (LayerN) and an array of layers (see later) -
  • rtree structures - these are used for looking up objects for locations -
-Each layer is a LayerType structure. A layer has the following fields: -
    -
  • lists for lines, texts, arcs, polygons -
  • some generic layer attributes (colors, flags, key-value pairs) -
  • an rtree struct for each object type. -
-

-Any code that needs to create objects should use the functions in create.[ch]. -The functions that operate layer-independently usually get a destination as -PCBDataType, so they can operate both on boards and buffers. A typical -example is PinTypePtr CreateNewVia(DataTypePtr Data, ...) that returns -NULL or the pointer to the new via that is already added to the corresponding list -of Data and in the rtree. -

-Layer object creation is done referencing the layer as LayerType *. A -typical example is LineTypePtr CreateDrawnLineOnLayer(LayerTypePtr Layer, ...) -which returns NULL on error or a pointer to the new line object created (inserted -in the layer's line list, added to the rtree). -

-Code should avoid manipulating the lists and rtree structures directly. - -
-
-Figure 1. simplified map of object related data structures -
-diamond: variable; rectangle: struct; round: struct field -
- - -

Extra steps around creating a new board

-TODO: postproc, post*, other setup - - - - Index: trunk/doc-rnd/hacking/data1.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/hacking/data1.png =================================================================== --- trunk/doc-rnd/hacking/data1.png (revision 5606) +++ trunk/doc-rnd/hacking/data1.png (nonexistent) Property changes on: trunk/doc-rnd/hacking/data1.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/myfeature.html =================================================================== --- trunk/doc-rnd/myfeature.html (revision 5606) +++ trunk/doc-rnd/myfeature.html (nonexistent) @@ -1,69 +0,0 @@ - - - pcb-rnd - my feature - - - - - - - - - -
Main - News - People - Events & timeline - pcb-rnd -
- - -

pcb-rnd - how to get my favorite feature implemented

- -The list below is sorted: top items have higher priority, but you -are free to choose any. - -

1. If you are a programmer with free time to spend

-Read the contribution howto and join the project. -You are welcome to work only on the feature you are interested in. You get -all the support (e.g. for understending the API, to get a blank plugin -set up so you need to fill in only the feature-specific parts, etc.). Success -rate shoudl be near to 100%. - -

2. If you are not a programmer and have free time

-You can join and work on things you don't need that much, but others do. -This will build your reputation in the community which in turns encourages -others to implement your favorite feature even if they wouldn't do it for -themselves. The success rate is somewhat more random, obviously. - -

3. If you don't have free time

-Consider donation: buy someone else's time. To do so, contact me -(see the contribution howto page). Since -you don't need to cover all costs and the hourly rates are much lower -on a pet project, and your feature may be simpler than it looks, and -someone who already knows the code also saves the learning cureve, it may -all be cheaper than you think. The success rate should be close to 100%. -

-However, this is a last resort solution, the above ones are clearly preferred. - - -

4. If you don't have anything to contribute with

-[DEL:Vote for it in the -feature poll. If your feature is not there, ask on the mailing list. -Chance for success: if it's a popular demand on the feature poll, chances -are somewhat good. Else chances are very low, but not zero.:DEL] -

-Because of 100% passivity of the geda community, I decided not to spend more -time on community-related tasks. The poll is there, you can use it, -but you will have to orgnaize at least 5 active, capable users who are -commited enough to spend significant time on testing/supporting development. -I will consider implementing your feature only if you can bring and keep -those people motivated and active. - -

5. If you tried everything, even point 4. and all failed...

-Complain loudly on the mailing list, advertise your opinion, try pushing -the thing - a.k.a. go trolling. Success rate is exactly 0%, -you make a lot of good friends enemies that will make it harder -to ask or contribute later for another feature, but it may make you feel -better. </irony>. - Index: trunk/doc-rnd/distros.txt =================================================================== --- trunk/doc-rnd/distros.txt (revision 5606) +++ trunk/doc-rnd/distros.txt (nonexistent) @@ -1,47 +0,0 @@ -How to request packaging (distros sorted by popularity, 2016): - -Ubuntu: - easiest is to get in Debian, Ubuntu picks up packages from sid - alternative: ubuntu-devel-discuss@lists.ubuntu.com (pending) - alternative: https://bugs.launchpad.net/ubuntu/+filebug?no-redirect&field.tag=needs-packaging - -linux mint - https://blueprints.launchpad.net/linuxmint - (same maintainer as debian?) - -slackware: - Promised (AFK, ask again in 3rd week of sept) - geda/pcb maintainer: pfeifer[dot]felix[at]googlemail[dot]com (sent mail) - https://slackbuilds.org/guidelines/ - needs an existing package - since the slackbuild needs slackware's pkgtools usually at the end of a ./configure --prefix=/usr --extrastuff..make.. make install DESTDIR=/tmp/NAMEOFPACKAGE..cd /tmp/NAMEOFPACKAGE..makepkg -l y -c n ../NAMEOFPACKAGE-123.txz - installwatch can build a package - check out #slackbuilds - -Debian: - Bdale? - (alternative: pkg-electronics-devel@lists.alioth.debian.org - pending) - (alternative: RFP through reportbug) - -fedora: - https://fedoraproject.org/wiki/Package_maintainers_wishlist?rd=PackageMaintainers/WishList - (wrote mail to cicku) - -OpenSuse: - adrian [at] suse.de (mail sent) - -Arch: - DONE! needs to be modularized - Kyle Keen (mail sent) - -Manjaro: - Same as arch - ----- -FreeBSD: - hrs [at] freebsd.org (Hiroki Sato - mail sent) - -OpenBSD: - andreas.bihlmaier [at] gmx.de -> ENOTIME, he suggests ports@openbsd.org - - Index: trunk/doc-rnd/query/tutor_cli.html =================================================================== --- trunk/doc-rnd/query/tutor_cli.html (revision 5606) +++ trunk/doc-rnd/query/tutor_cli.html (nonexistent) @@ -1,168 +0,0 @@ - - - -

advanced search, command line tutorial: query language

- -

scope

- -pcb-rnd from version 1.1.3 features a flexible advnced search that helps -the user selecting/unselecting objects that match a given logical expression. -The core of the feature is the pcb-rnd query language. The same language -is used in the programmable DRC (see also: -a more formal description of the language). -

-The current document is a walk through of the practical aspects of the -language. It starts with the simplest examples while working towards more -complex cases. -

-A limited version of the functionality is accessible through a GUI -wizard when using the GTK HID. A separate -tutorial is dealing with that feature. - -

Actions

-The query(act, expr) action creates the list called "@", which contains all -objects of the design. Then it iterates over this list (if needed) and -evaluates the query expression on each object. For each evaluation "act" -is performed; "act" is one of: -
    -
  • select - add the matching object to the selections if expr evaluated to true -
  • unselect - remove the matching object from the selections if expr evaluated to true -
  • eval - print the result of the expression to stdout -
  • dump - this inhibits evaluating; it compiles the expression and dumps the parse tree (useful for debugging) -
-

-The symbol @ in the query represents the iterator, or in other words, -the current object we are checking. The engine iterates over all -copper objects, silk objects, pins, holes, layers and nets. A simple query -that selects all objects looks like this: -

-query(select, '@')
-
-The actual query experssion was a single @ in this case. This made -the iteration happen, got the expression evaluated one each object. The -result of each evaluation was the given object. Since these objects -were all existing, valid objects, they were taken as logical value TRUE, -thus for each the add-to-selection was performed. -

-Note: it's usually a good idea to write the expression in single quotes, because -it may contain commas, double quotes and parenthesis that pcb-rnd's action parser may -take as action syntax. -

-The same expression can ran with eval would print the result of each -evaluation: -

-query(eval, '@')
-
-This is visible on the terminal pcb-rnd was started from - on X, it's a good -idea to start a terminal and run pcb-rnd from that instead from a menu or -icon. The rest of this tutorial will use the eval query because it's easier -to include the result of an eval than of a selection. Most examples will -specify the query expression only, without quotes - the reader should -add the query(eval, ' ') part. - -

iteration vs. evaluate once

-If an expression does not reference the @ object, no iteration is performed -and the expression is ran only once: -
-query(eval, '1')
-
-This will calculate the value of 1 and prints it to the standard output. Since -theres no iteration, this can not result in changes in selection. However, -it makes it easy to demonstrate some basic concepts of the query language. -

-Note: if @ is present multiple times in the expression, it's still only -one loop over all objects. When evaluating the expression for a given object, -all instances of @ are substituted with the same object in that iteration. - - -

grammar: arithmetics and logics

-For example the integer and floating point numbers and the usual -arithmetic and logical operators work as expected: - - -
expression result explanation -
42 42 the integer value 42 -
3.14 3.14 the floating point value 3.14 -
10 mil 254000 a number with a unit suffix is converted to pcb-rnd's internal coordinate unit (nanometers) -
1+2 3 sum of 1 and 2 -
2*4 8 multiplication -
47/4 11 integer division (because both operands were integers) -
47/4.0 11.75 floating point division (because at least one of the operands was a float) -
(1+2)*5 15 parenthesis works as usual -
1 && 0 0 logical AND - the result is 1 if both operands were TRUE, 0 else -
1 || 0 1 logical OR - the result is 1 if either operand was TRUE, 0 else -
!2 0 logical NOT - 2 is non-zero, so it is TRUE, negate this to get the result (FALSE, which is 0) -
4 > 2 1 because four is greater than two; all the usual relational operats work: == is equal, != is not-equal, <, <=, > and >=. -
- -

grammar: object properties

-Object have named properties, e.g. the thickness of a line (or arc, or -trace in general) is called ".thickness", so the thickness of -the current object is: -
-	@.thickness
-
-

-Next, we can already select all traces thicker than 10 mil: -

-	query(select, '@.thickness > 10 mil')
-
-

-Because logical expressions are available, it's easy to select all medium-thick -lines: -

-	(@.thickness >= 10 mil) && (@.thickness <= 30 mil)
-
-

-or any trace that's too thin or too thick: -

-	(@.thickness < 10 mil) || (@.thickness > 30 mil)
-
-

-or traces that don't match our preferred 8, 10 and 15 mil thicnkess values: -

-	(@.thickness != 8 mil) && (@.thickness != 10 mil) && (@.thickness != 15 mil)
-
- -

grammar: invalid value

-But how comes an expression like '@.thickness > 10 mil' works while -@ iterates over non-trace objects, like layers, nets or elements that -clearly have no thickness? -

-The answer is the invalid value, which is neither true nor false. If -a property does not exist in a given object, the result is the invalid value -or invalid for short. The invalid is treated specially: -

    -
  • in arithmetic operations it propagates: if either operand is invalid, the result is invalid, e.g. 1+invalid = invalid; this affects +, -, *, / and all the relational operators -
  • in binary logic operations (&& and ||), it is ignored: it is assumed to be true in a && and false in a || so the outcome depends on the other operand -
  • in logical NOT (!), TODO -
-When @ refers to a non-trace object, @.thickness is invalid and -'@.thickness > 10 mil' is evaluated t invalid. If the result is not TRUE, -the requested action is not performed. -

-The invalid value is generated only when the expression is valid but the -actual object doesn't have the feature needed. If the expression is wrong, -an error is generated and the expression stops evaluating immediately. - -

grammar: more properties

-Some properties are a single numeric value, like thickness, or the -.name of a layer (which is a string) but others are objects. For -example the .layer property of a line or arc refers to the layer -object the given line or arc is drawn on. These in turn can be combined, -and the "name of the layer the current object is on": -
-	@.layer.name
-
-

-Referencing non-existing properties yields an error, e.g. @.thickness.layer -is an error - in contrast with @.layer, which may evaluate to the -invalid value (e.g. for vias or nets, because they don't have layers). -The difference is that tickness can not have a layer ever (thus is an error) -while @.layer is either applicable or not, but potentially could work, this -when it doesn't, it's only an invalid value. -

-Further useful property combinatons: -TODO -

-There is a full list of all properties. Index: trunk/doc-rnd/windows.txt =================================================================== --- trunk/doc-rnd/windows.txt (revision 5606) +++ trunk/doc-rnd/windows.txt (nonexistent) @@ -1,38 +0,0 @@ -State on windows -~~~~~~~~~~~~~~~~ - -Does not work yet. This file documents how far we got. The situation -is constantly improving. - -1. Cross compilation from Linux to win32 -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -(developers may need this, if you are an user, skip to 2.) - -TODO: deps with mpk - -Use mingw and wine: - - ./configure --emu="wine cmd /c" --target=i586-mingw32msvc "$@" - -(Replace i586- with whatever toolchain prefix you have) - -2. download the binary pack -~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Temporary URL: http://igor2.repo.hu/tmp/pcb-rnd-pack.zip - -Download, unpack, run setup.bat then pcb-rnd.bat - -All binaries in the pack are cross-compiled from source, using mingw and -mpk. All binaries are 32-bit. The pack is self-contained, no gtk or other -external dependencies. - -Known bugs: - - inserting elements fail (even static ones) - - no shell and awk in the pack -> parametric footprints fail - - text (including menu text) doesn't appear on XP - - no exporters that depend on libgd (png, jpeg, gif, nelma) - -Worked on systems: - - Windows 8.1 pro, Hungarian, 32 bit - - Windows 7 pro, Hungarian, 64 bit - - Windows 7 pro, English, 64 bit Index: trunk/doc-rnd/man/pcb-rnd.1 =================================================================== --- trunk/doc-rnd/man/pcb-rnd.1 (revision 5606) +++ trunk/doc-rnd/man/pcb-rnd.1 (nonexistent) @@ -1,47 +0,0 @@ -.\" pcb-rnd - manual -.\" Copyright (C) 2016 Tibor 'Igor2' Palinkas -.\" -.\" 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: pcb-rnd[removethis]@igor2.repo.hu -.TH pcb-rnd 1 2016-10-29 "" "pcb-rnd manual" -.SH NAME -pcb-rnd - Printed Circuit Board editor -.SH SYNPOSIS -.nf -.sp -\fBpcb-rnd [\fIoptions\fB] [\fIinputfile\fB] -.fi -.SH DECSRIPTION - -.BR pcb-rnd -is a modular PCB editor. The main use is interactive editing. If no \fI-x\fR is specified on the command line, the graphical editor mode is initiated. Automated, headless processing is also possible with \fI-x\fR or \fI--gui batch\fR. -.SH OPTIONS - - -.TP - -.B -x \fIexporter\fR [\fIexportflags] \fIinputfile\fR\fR -Instead of interactive editing, export the design (loaded from \fIinputfile\fR) to a file using the specified \fIexporter\fR plugin. A list of exporter-specific parameters may follow to control the details of the process. -.TP - -.B --gui \fIhid\fR -Use the \fIhid\fR plugin for the "gui" frontend. Common choices are "gtk" or "lesstif" for graphical user intrfaces and "batch" for a headless command-line interface (or automated batch processing). -.TP - -.B -c \fIpath=val\fR -Set a config node in role CFR_CLI. The path of the node is \fIpath\fR (e.g. editor/grid) and the new value is \fIval\fR (e.g. 5mm). -.PP - Index: trunk/doc-rnd/man/pcb-rnd.1.html =================================================================== --- trunk/doc-rnd/man/pcb-rnd.1.html (revision 5606) +++ trunk/doc-rnd/man/pcb-rnd.1.html (nonexistent) @@ -1,79 +0,0 @@ - - - - -
pcb-rnd 1 - 2016-10-29 - pcb-rnd manual -
- - - -

NAME

-
-pcb-rnd - Printed Circuit Board editor -
- -

SYNPOSIS

-
-

-pcb-rnd [options] [inputfile] - - - -

- -

DESCRIPTION

-
-pcb-rnd is a modular PCB editor. The main use is interactive editing. If no -x is specified on the command line, the graphical editor mode is initiated. Automated, headless processing is also possible with -x or --gui batch. -
- - -

OPTIONS

-
- - - - - - - - - -
-x exporter [exportflags] inputfile - Instead of interactive editing, export the design (loaded from inputfile) to a file using the specified exporter plugin. A list of exporter-specific parameters may follow to control the details of the process. -
--gui hid - Use the hid plugin for the "gui" frontend. Common choices are "gtk" or "lesstif" for graphical user intrfaces and "batch" for a headless command-line interface (or automated batch processing). -
-c path=val - Set a config node in role CFR_CLI. The path of the node is path (e.g. editor/grid) and the new value is val (e.g. 5mm). -
-
-

- - -
pcb-rnd 1 - 2016-10-29 - pcb-rnd manual -
- - - Index: trunk/doc-rnd/man/pcb-rnd.1.mml =================================================================== --- trunk/doc-rnd/man/pcb-rnd.1.mml (revision 5606) +++ trunk/doc-rnd/man/pcb-rnd.1.mml (nonexistent) @@ -1,38 +0,0 @@ -pcb-rnd -1 -2016-10-29 - - pcb-rnd - Printed Circuit Board editor - pcb-rnd [options] [inputfile] - - -pcb-rnd is a modular PCB editor. The main use is interactive -editing. If no -x is specified on the command line, the -graphical editor mode is initiated. Automated, headless processing -is also possible with -x or --gui batch. - - - - - - -x exporter [exportflags] inputfile - Instead of interactive editing, export the design (loaded from - inputfile) to a file using the specified - exporter plugin. A list of exporter-specific parameters - may follow to control the details of the process. - - - --gui hid - Use the hid plugin for the "gui" frontend. Common - choices are "gtk" or "lesstif" for graphical user intrfaces - and "batch" for a headless command-line interface (or automated - batch processing). - - - -c path=val - Set a config node in role CFR_CLI. The path of the node is - path (e.g. editor/grid) and the new value is - val (e.g. 5mm). - - - Index: trunk/doc-rnd/man/index.html =================================================================== --- trunk/doc-rnd/man/index.html (revision 5606) +++ trunk/doc-rnd/man/index.html (nonexistent) @@ -1,3 +0,0 @@ - -

  • pcb-rnd (1) -- pcb-rnd - Printed Circuit Board editor - Index: trunk/doc-rnd/man/gsch2pcb-rnd.1 =================================================================== --- trunk/doc-rnd/man/gsch2pcb-rnd.1 (revision 5606) +++ trunk/doc-rnd/man/gsch2pcb-rnd.1 (nonexistent) @@ -1,134 +0,0 @@ -.TH gsch2pcb-rnd 1 "September 25th, 2013" "gEDA Project" 1.8.2.20130925 -.SH NAME -gsch2pcb-rnd - Update pcb-rnd layouts from gEDA/gaf schematics -.SH SYNOPSIS -\fBgsch2pcb-rnd\fR [\fIOPTION\fR ...] {\fIPROJECT\fR | \fIFILE\fR ...} -.SH DESCRIPTION -.PP -\fBgsch2pcb-rnd\fR is a frontend to \fBgnetlist\fR(1) which aids in -creating and updating \fBpcb-rnd\fR(1) printed circuit board layouts based -on a set of electronic schematics created with \fBgschem\fR(1). - -.PP -Instead of specifying all options and input gEDA schematic \fIFILE\fRs -on the command line, \fBgsch2pcb-rnd\fR can use a \fIPROJECT\fR file -instead. - -.PP -\fBgsch2pcb-rnd\fR first runs \fBgnetlist\fR(1) with the `PCB' backend to -create a `.net' file containing a \fBpcb-rnd\fR(1) formatted netlist for -the design. - -.PP -The second step is to run \fBgnetlist\fR(1) again with the `gsch2pcb-rnd' -backend to find any \fBM4\fR(1) elements required by the schematics. -Any missing elements are found by searching a set of file element -directories. If no `.pcb' file exists for the design yet, it is -created with the required elements; otherwise, any new elements -are output to a `.new.pcb' file. - -.PP -If a `.pcb' file exists, it is searched for elements with a -non-empty element name with no matching schematic symbol. These -elements are removed from the `.pcb' file, with a backup in a -`.pcb.bak' file. - -.PP -Finally, \fBgnetlist\fR(1) is run a third time with the `pcbpins' -backend to create a `.cmd' file. This can be loaded into -\fBpcb-rnd\fR(1) to rename all pin names in the PCB layout to match the -schematic. - -.SH OPTIONS -.TP 8 -\fB-o\fR, \fB--output-name\fR=\fIBASENAME\fR -Use output filenames `\fIBASENAME\fR.net', `\fIBASENAME\fR.pcb', and -`\fIBASENAME\fR.new.pcb'. By default, the basename of the first -schematic file in the list of input files is used. -.TP 8 -\fB-d\fR, \fB--elements-dir\fR=\fIDIRECTORY\fR -Add \fIDIRECTORY\fR to the list of directories to search for PCB file -elements. -.TP 8 -\fB-r\fR, \fB--remove-unfound\fR -Don't include references to unfound elements in the generated `.pcb' -files. Use if you want \fBpcb-rnd\fR(1) to be able to load the -(incomplete) `.pcb' file. This is enabled by default. -.TP 8 -\fB-k\fR, \fB--keep-unfound\fR -Keep include references to unfound elements in the generated `.pcb' -files. Use if you want to hand edit or otherwise preprocess the -generated `.pcb' file before running \fBpcb\fR(1). -.TP 8 -\fB-p\fR, \fB--preserve\fR -Preserve elements in PCB files which are not found in the schematics. -Since elements with an empty element name (schematic "refdes") are -never deleted, this option is rarely useful. -.TP 8 -\fB--gnetlist\fR \fIBACKEND\fR -In addition to the default backends, run \fBgnetlist\fR(1) with `\-g -\fIBACKEND\fR', with output to `.\fIBACKEND\fR'. -.TP 8 -\fB--gnetlist-arg\fR \fIARG\fR -Pass \fIARG\fR as an additional argument to \fBgnetlist\fR(1). -.TP 8 -\fB--empty-footprint\fR \fINAME\fR -If \fINAME\fR is not `none', \fBgsch2pcb-rnd\fR will not add elements for -components with that name to the PCB file. Note that if the omitted -components have net connections, they will still appear in the netlist -and \fBpcb-rnd\fR(1) will warn that they are missing. -.TP 8 -\fB--fix-elements\fR -If a schematic component's `footprint' attribute is not equal to the -`Description' of the corresponding PCB element, update the -`Description' instead of replacing the element. -.TP 8 -\fB-q\fR, \fB--quiet\fR -Don't output information on steps to take after running \fBgsch2pcb-rnd\fR. -.TP 8 -\fB-v\fR, \fB--verbose\fR -Output extra debugging information. This option can be specified -twice (`\-v \-v') to obtain additional debugging for file elements. -.TP 8 -\fB-h\fR, \fB--help\fR -Print a help message. -.TP 8 -\fB-V\fR, \fB--version\fR -Print \fBgsch2pcb-rnd\fR version information. - -.SH PROJECT FILES -.PP -A \fBgsch2pcb-rnd\fR project file is a file (not ending in `.sch') -containing a list of schematics to process and some options. Any -long-form command line option can appear in the project file with the -leading `\-\-' removed, with the exception of `\-\-gnetlist-arg', -`\-\-fix-elements', `\-\-verbose', and `\-\-version'. Schematics should be -listed on a line beginning with `schematics'. -.PP -An example project file might look like: - -.nf - schematics partA.sch partB.sch - output-name design -.ad b - -.SH ENVIRONMENT -.TP 8 -.B GNETLIST -specifies the \fBgnetlist\fR(1) program to run. The default is -`gnetlist'. - -.SH AUTHORS -See the `AUTHORS' file included with this program. - -.SH COPYRIGHT -.nf -Copyright \(co 1999-2011 gEDA Contributors. License GPLv2+: GNU GPL -version 2 or later. Please see the `COPYING' file included with this -program for full details. -.PP -This is free software: you are free to change and redistribute it. -There is NO WARRANTY, to the extent permitted by law. - -.SH SEE ALSO -\fBgschem\fR(1), \fBgnetlist\fR(1), \fBpcb-rnd\fR(1) Index: trunk/doc-rnd/man/copyright.mml =================================================================== --- trunk/doc-rnd/man/copyright.mml (revision 5606) +++ trunk/doc-rnd/man/copyright.mml (nonexistent) @@ -1,21 +0,0 @@ - -pcb-rnd - manual\n -Copyright (C) 2016 Tibor 'Igor2' Palinkas\n -\n -This program is free software; you can redistribute it and/or modify\n -it under the terms of the GNU General Public License as published by\n -the Free Software Foundation; either version 2 of the License, or\n -(at your option) any later version.\n -\n -This program is distributed in the hope that it will be useful,\n -but WITHOUT ANY WARRANTY; without even the implied warranty of\n -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n -GNU General Public License for more details.\n -\n -You should have received a copy of the GNU General Public License along\n -with this program; if not, write to the Free Software Foundation, Inc.,\n -51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n -\n -Contact: pcb-rnd[removethis]@igor2.repo.hu - -pcb-rnd manual Index: trunk/doc-rnd/man/README =================================================================== --- trunk/doc-rnd/man/README (revision 5606) +++ trunk/doc-rnd/man/README (nonexistent) @@ -1,10 +0,0 @@ -Manual pages are written in the manual markup format and are compiled into -manual and html using mml. Do not edit the generated manual or html pages. - -The generated files are commited in the repository so dependencies are not -required for casual users to build the project. - -The required tools and dependencies are: - svn://repo.hu/libmawk/trunk - svn://repo.hu/web3.0/trunk - svn://repo.hu/shscripts/trunk/manmarkup Index: trunk/doc-rnd/man/Makefile =================================================================== --- trunk/doc-rnd/man/Makefile (revision 5606) +++ trunk/doc-rnd/man/Makefile (nonexistent) @@ -1,58 +0,0 @@ -# This Makefile is a plain old hand written one; all configuration settings -# are included from ../../Makefile.conf which is scconfig generated - -IN=pcb-rnd.1.mml -OUT_HTML = pcb-rnd.1.html -OUT_MAN1 = pcb-rnd.1 -OUT_LINT = pcb-rnd.1.lint - -OUTPUT = $(OUT_HTML) $(OUT_MAN1) index.html -MML = /usr/bin/mml - -all: $(OUTPUT) - -lint: pcb-rnd.1.lint - -.SUFFIXES: .html .mml .lint - -.mml.html: .mml_linkmap - $(MML) -i copyright.mml -f html $< > $@ - -.mml: - $(MML) -i copyright.mml -f man $< > $@ - -.mml_linkmap: - $(MML) -i copyright.mml -f linkmap $(IN) > $@ - -index.html: - @echo "" > $@ - $(MML) -i copyright.mml -f indexhtml $(IN) >> $@ - @echo "" >> $@ - -clean: - -distclean: - -genclean: - rm $(OUTPUT) 2>/dev/null ; true - -.mml.lint: - $(MML) -i copyright.mml -f lint $< - -install_: - $(MKDIR) "$(MAN1DIR)" - $(CPC) "`pwd`/pcb-rnd.1" "$(MAN1DIR)/pcb-rnd.1" - $(CPC) "`pwd`/gsch2pcb-rnd.1" "$(MAN1DIR)/gsch2pcb-rnd.1" - -uninstall: - $(RM) "$(MAN1DIR)/pcb-rnd.1" - $(RM) "$(MAN1DIR)/gsch2pcb-rnd.1" - -install: - make install_ CPC="$(CP)" - -linstall: - make install_ CPC="$(LN)" - -include ../../Makefile.conf - Index: trunk/doc-rnd/ddrc/requirements.txt =================================================================== --- trunk/doc-rnd/ddrc/requirements.txt (revision 5606) +++ trunk/doc-rnd/ddrc/requirements.txt (nonexistent) @@ -1,23 +0,0 @@ -The Dynamic DRC should be able to solve at least these tasks: - - check start grounding - - require element placement on same layer - - specify element proximity to each other on same layer - - specify element proximity to the edge - - specify element proximity to network or other copper feature - on the same layer - - perform copper vs. copper checks - - minimal gap between an object or network and anything else - - minimal gap between high voltage and low voltage networks - - perform copper geometry checks - - detect minimal width (high current) - - detect poly hairpin - - number and length of stubs (hight freq) - - "via cage": a given network needs to be sorrounded by a set of gnd vias - - network related copper checks - - matched length lines (e.g. fast dram bus) - - balanced transmission line (distance between the tracks) - - match and/or limit number of vias - - limit layer usage - - require layer stackup properties, e.g. microstrip, stripline - - e.g. require ground poly on the next layer - - e.g. number of gaps in the ground poly the line jumps Index: trunk/doc-rnd/ddrc/examples1.txt =================================================================== --- trunk/doc-rnd/ddrc/examples1.txt (revision 5606) +++ trunk/doc-rnd/ddrc/examples1.txt (nonexistent) @@ -1,54 +0,0 @@ -# Example 1: Sensitive RF elements should be close -# -# e1 is the list of elements that have the user tag RF -# e2 is a copy of e1; it's needed to get two loops (e1 vs. e2 objects form pairs) -# Assert that any two components are closer than 25 mm to each other - -rule sensitive RF elements - let e1 (type(@, element)) && (@.a.group == "RF") - let e2 e1 - assert (distance(e1, e2) < 25 mm) - -# Example 2: matched trace lengths on dram data 0 -# -# e1 is the list of dram traces -# e2 is a copy of e1 (see Example 1) -# Assert that any two net lengths are matched within 2 mm - -rule matched length dram traces - let e1 (type(@, net)) && (@.a.group == "dram_data_0") - let e2 e1 - assert abs(netlen(e1) - netlen(e2)) < 2 mm - -# Example 3: check if isolation gap is maintained between any HV and LV nets -# (Lazy: assume any copper is part of a network, compare net-to-net only) -# -# hv is the list of high voltage nets -# lv is a list of non-hv networks -# - -rule isolation gap 1 - let hv (type(@, net)) && (@.a.high_voltage) - let lv (type(@, net)) && !(@.a.high_voltage) - assert !is_closer(lv, hv, 4 mm) - -# Example 4: check if isolation gap is maintained between any HV and LV nets -# (Proper way: do not forget about copper not part of any network!) -# -# hv is the list of high voltage nets -# hvo is a list of all objects found in hv -# cp is a list of all copper object -# There are two iterators in the assert: cp (all copper objects) and hv. -# For each hv and cp pair: -# - lcomplement returns a cp object if the cp object is not in hv (i.e. -# the object is low voltage); else the return value is empty and is_closer -# returns invalid which is not a violation -# - hvo is required because cp is an object while hv is a list of nets -# (so cp is never on the hv list) -# - if there was a valid (low voltage) cp object found, - -rule isolation gap 2 - let hv (type(@, net)) && (@.a.high_voltage) - let hvo lobjs(hv) - let cp (type(@, copper)) - assert !is_closer(lcomplement(cp, hvo), hv, 4 mm) Index: trunk/doc-rnd/ddrc/proposal1.txt =================================================================== --- trunk/doc-rnd/ddrc/proposal1.txt (revision 5606) +++ trunk/doc-rnd/ddrc/proposal1.txt (nonexistent) @@ -1,242 +0,0 @@ -Dynamic DRC proposal 1: a Declarative DRC language. - -P0 A DRC program is an unordered list of rules. Rules are evaluated and - violations reported. The advantage of a declarative language is that - intermediate results can be cached and reused. - -P1 The language is intended to be human readable and human writable, but - the main goal is to let programs and scripts (e.g. netlisters) to - generate it. - -P2 A rule consists of three parts: - - the rule keyword; syntax: rule NAME - - build variables (lists) using search statements - - state assertions about those lists. - - comments, empty lines - -P3 Variables are named by the user and are local to the rule (TODO) - -P4 Lists are ordered. - -P5 A list is consists of zero or more objects. An object is: -P6 - the board -P7 - a layer -P8 - a board drawing primitive (line, arc, polygon, via, text) -P9 - an element primitive (element line, element arc(?), pin, pad, element name) -P10 - an element as a whole -P11 - a net -P61 - a 2D coordinate with or without layer information - -P12 Objects have named properties (or fields): -P13 - core attributes: for each object type a predefined set of key=value - pairs that always exist (e.g. thickness of a line, start angle of - an arc); these field names starts with "p." -P14 - user attributes: free-form key=value pairs optionally assigned by - the user; these field names start with "a." - -P15 Note: the language is case sensitive with keywords and builtins using - lowercase only. For better readability, in syntax description in this - document uppercase words are user chosen identifiers or fields. Whitespace - character sequences are usually treated as a single whitespace. (This - does not mean identifiers have to be uppercase in a program.) - - The syntax of a search statement is: - -P16 let LISTNAME EXPR - -P17 It creates a list called LISTNAME and evaluates expression EXPR to all - available objects and adds the objects that match EXPR to the list. Each - matching object is added only once. The particular order of objects on - the list is random. Object "matches EXPR" when the EXPR evaluated on - the object yields true. - -P18 The current object used in the iteration during the search is called - @. - -P19 An expression returns a value. A value can be: -P20 - an object -P21 - a list -P22 - scalar: a number or string (might be suffixed, like "42 mm") -P23 - void (empty, also known as false) - -P23 A value is considered true if: -P24 - it is an existing object -P25 - it is a non-empty list -P26 - it is a non-zero number or non-empty string -P69 - it is a valid coordinate - - An expression is one of: - - syntax meaning - ---------------------------------------------------------------- -P27 (EXPR) change precedence -P28 EXPR || EXPR logical OR (result: number) -P29 EXPR && EXPR logical AND (result: number) -P30 EXPR + EXPR add (number only) -P31 EXPR - EXPR subtract (number only) -P32 EXPR * EXPR multiply or ... (number only) -P32 EXPR / EXPR multiply or ... (number only) -P32 EXPR == EXPR the two values are equal -P33 EXPR != EXPR the two values are not equal -P71 EXPR ~ string regex match left EXPR using pattern right string -P34 EXPR > EXPR left EXPR is greater than right EXPR (number only) -P35 EXPR >= EXPR left EXPR is greater than or equal to right EXPR (number only) -P36 EXPR < EXPR left EXPR is less than right EXPR (number only) -P37 EXPR <= EXPR left EXPR is less than or equal to right EXPR (number only) -P38 !EXPR logical NOT (result: number, 0 or 1) -P39 FUNC(EXPR, EXPR, ...) call a function with 0 or more arguments -P40 EXPR.field evaluated to the value of an object field (see P45, P46) - - The syntax of an assertion is: - -P41 assert EXPR - -P42 If the EXPR in an assert evaluates to false, a DRC violation is generated. - -P43 If an assert EXPR is a list anywhere else than in a function argument, it is - evaluated for all valid members of the list (see P45, P46). For example - if there is a variable called FOO, which is a list of objects - (built using a search statement), expression - - FOO.p.thickness - - is evaluated as many times as many objects are on the list, and the - full assert is checked each case. If there is another similar list - called BAR, an expression: - - (FOO.p.thickness < BAR.p.thickness) - - will compare each possible pair of FOO and BAR objects. That is, if - FOO has 4 objects and BAR has 15 objects, that is 4*15 = 60 comparisons. - -P44 However, each list is iterated only once, even if it is referenced multiple - times in the same expression. For example, with the above lists: - - (FOO.p.clearance > 10 mil) && (FOO.p.thickness < BAR.p.thickness) - - the potential number of iterations is still 4*15, and not 4*4*15. In - practice the engine leverages lazy evaluation so if FOO.p.clearance - is smaller than 10 mil, the right size is not evaluated. See also: P45, P46. - -P45 A field reference is valid if the field exists. For example a line object - has a thickness attribute, thus the .p.thickness is valid, but a polygon - object does not have a thickness and .p.thickness on a polygon is invalid. - An user attribute reference (e.g. field .a.baz) is valid if the attribute - key exists in the given object. - -P46 Invalid fields are skipped in iterations. Thus if variable BLOBB is a list - that consists of 3 line, 2 arc and a layer objects, the following assert - will result in 2 comparisons only: - - (BLOBB.p.width >= 10 mm) - - (because only arc objects have valid .p.width field). - -P47. An invalid field in an expression is never considered an - error. In an assert statement it causes skipping an iteration. In a - search statement it evaluates to void. - -P48. A void value is never equal to anything. A void value is not equal - even to another void value. - -P49. Comments are lines starting with # - - - BUILTIN FUNCTIONS - -P70 list(LISTNAME) - Within an expression, a reference to a list may become an iterator and - refer to a single object. In case the expression needs the listm the - list() function protects LISTNAME from becoming an iterator. For - example llen(list(@)) is the number of all objects the design consists. - -P50 llen(EXPR) - Returns to the number of items of a list (an integer number >= 0). - -P51 lvalid(EXPR, field) - Returns a list of items on the list for which field is valid. - EXPR can be a list or an object. - -P52 lunion(EXPR1, EXPR2) - A new list is created; items of EXPR1 are copied to the new list in order. - Those items from EXPR2 that are not on the list already are appended, - keeping their order. The new list is returned. - - Both EXPR1 and EXPR2 can be either a list or an object. - - Note: order of arguments does matter (affects order of objects on the - resulting list). - -P53 lintersect(EXPR1, EXPR2) - A new list is created; items that are present on both EXPR1 and EXPR2 - are copied onto the new list. The new list is returned. - - Both EXPR1 and EXPR2 can be either a list or an object. - - Note 1: this function can be used as "is this object on the list" query: - list_intersection(LIST, OBJ) will result an empty list (which means false) - if OBJ is not on the list. - - Note 2: similarly, if both argument are objects, the result is false - if the two arguments are not the same object. - -P54 lcomplement(EXPR1, EXPR2) - Creates a new list with all items that are present in EXPR1 but not in - EXPR2. The new list is returned. - - Both EXPR1 and EXPR2 can be either a list or an object. - - -P55 ldiff(EXPR1, EXPR2) - Creates a new list with all items that are present either in EXPR1 or in - EXPR2 but not in both. The new list is returned. - - -P56 distance(EXPR1, EXPR2) - Calculates the shortest distance between two objects. Returns a number. - - Note: if any expression is a layer, the stack distance is calculated - (which will be 0 for now, as pcb-rnd doesn't yet know about layer thickness). - If the expression is a net, the whole shape of the net is used - (expensive! use is_closer() instead) - If the expression is the board, the operation is invalid (see P46). - -P57 is_closer(EXPR1, EXPR2, NUMBER) - Checks if EXPR1 and EXPR2 are closer to each-other than NUMBER. It uses - the classic bloat-and-find algorithm originally used by the classic DRC, - thus it is much cheaper than distance(EXPR1, EXPR2) < NUMBER. - -P58 netlen(EXPR) - Network length of EXRP1: sum of all non-overlapping trace/arc lengths that - make up a network; polygons are approximated with their average diameter - (TODO). If EXPR is an object, its length is returned. - -P59 netobjs(EXPR) - Creates and returns a list of objects consists of a net. - -P60 type(EXPR, TYPENAME) - EXPR is an object. Returns the object if it's type matches TYPENAME, else - returns void (a.k.a. false). This call is useful to decide whether an - object is of a specific type. TYPENAME is one of: - - drawing primitive type: arc, line, polygon, text, via, element - - element primitive type: element_line, element_name, pin, pad - - misc type: layer, net - - meta-type, or a group: - - copper: primitive that results in copper (arc, line, polygon, text (on copper), via, pin, pad) - - drilled: anything that drills the board (via, pin) - -P62 gridup(EXPR, NUM1, NUM2) - If expression is an object, return a list of coordinates that are on - the object, evenly spaced: -P63 - for lines and arcs, the points are evenly spaced on the centerlane with - a gap of NUM1, starting from both endpoints, having the corner case in - the middle; if NUM2 is 0, the gap at the middle may be larger than NUM1, - else it may be smaller than NUM1. -P64 - for polygons take a grid of NUM1*NUM2 spacing (NUM1 is always axis - aligned to X, NUM2 to Y). The offset of the grid is unspecified -P65 - element and text are ignored -P66 - a pad or pin is approximated with a polygon -P67 - for networks, iterate over all objects and append unique coordinates on - the resulting list -P68 There's no guarantee on the particular order of the list. - Index: trunk/doc-rnd/Makefile =================================================================== --- trunk/doc-rnd/Makefile (revision 5606) +++ trunk/doc-rnd/Makefile (nonexistent) @@ -1,32 +0,0 @@ -MENU_RES=../src/pcb-menu-gtk.lht ../src/pcb-menu-lesstif.lht -MENU_RES_MKEY=../src/pcb-menu-mkey.lht -KEYLIST=../util/keylist.sh -DEBLIST=../util/devhelpers/deblist.sh - -all: keys.html keys_mkey.html features/debian_list.html - ./Autostyle.sh *.html features/*.html - -keys.html: $(MENU_RES) $(KEYLIST) - $(KEYLIST) $(MENU_RES) > keys.html - -keys_mkey.html: $(MENU_RES_MKEY) $(KEYLIST) - $(KEYLIST) $(MENU_RES_MKEY) > keys_mkey.html - -features/debian_list.html: ../debian/control - $(DEBLIST) < ../debian/control > features/debian_list.html - ./Autostyle.sh features/debian_list.html - -install: - cd man && make install - -linstall: - cd man && make linstall - -uninstall: - cd man && make uninstall - -clean: - cd man && make clean - -distclean: - cd man && make distclean Index: trunk/doc-rnd/mac.txt =================================================================== --- trunk/doc-rnd/mac.txt (revision 5606) +++ trunk/doc-rnd/mac.txt (nonexistent) @@ -1,22 +0,0 @@ -State on MacOSX -~~~~~~~~~~~~~~~ - -Source releases starting from 1.1.0 should compile and run out-of-the-box. - -Requirements for GUI: x11 and gtk+ - - X11 server and client libraries for OS X are available from the XQuartz - download and install - - gtk+ is available from brew - * brew install dependencies (gtk+ and libgd) with the following commands - brew install libgd - brew install gtk+ - * if you want to use gEDA with PCB-RND you may want to install it as well - via brew - brew install homebrew/science/geda-gaf - -Known issues: - - application window opens behind other windows; it seems to be a gtk bug - that can not be worked around from the application - - slow rendering and error messages about invalid numerics on the console - -Considerations listed in ../INSTALL apply. Index: trunk/doc-rnd/logo256.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/logo256.png =================================================================== --- trunk/doc-rnd/logo256.png (revision 5606) +++ trunk/doc-rnd/logo256.png (nonexistent) Property changes on: trunk/doc-rnd/logo256.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/djopt/vianudge.txt =================================================================== --- trunk/doc-rnd/djopt/vianudge.txt (revision 5606) +++ trunk/doc-rnd/djopt/vianudge.txt (nonexistent) @@ -1,3 +0,0 @@ -Looks for vias where all traces leave in the same direction. Tries to -move via in that direction to eliminate one of the traces (and thus a -corner). Index: trunk/doc-rnd/djopt/orthopull.out.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/djopt/orthopull.out.png =================================================================== --- trunk/doc-rnd/djopt/orthopull.out.png (revision 5606) +++ trunk/doc-rnd/djopt/orthopull.out.png (nonexistent) Property changes on: trunk/doc-rnd/djopt/orthopull.out.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/djopt/unjaggy.txt =================================================================== --- trunk/doc-rnd/djopt/unjaggy.txt (revision 5606) +++ trunk/doc-rnd/djopt/unjaggy.txt (nonexistent) @@ -1,2 +0,0 @@ -Looks for corners which could be flipped to eliminate one or more -corners (i.e. jaggy lines become simpler). Index: trunk/doc-rnd/djopt/debumpify.pcb =================================================================== --- trunk/doc-rnd/djopt/debumpify.pcb (revision 5606) +++ trunk/doc-rnd/djopt/debumpify.pcb (nonexistent) @@ -1,89 +0,0 @@ -# release: pcb-rnd 1.0.7 - -# To read pcb files, the pcb version (or the git source date) must be >= the file version -FileVersion[20070407] - -PCB["" 140000 67500] - -Grid[2500.0 0 0 1] -Cursor[0 5000 0.000000] -PolyArea[3100.006200] -Thermal[0.500000] -DRC[1200 900 1000 700 1500 1000] -Flags("nameonpcb,clearnew,snappin") -Groups("1,3,4,c:2,5,6,s:7:8") -Styles["Signal,1000,7874,3150,2000:Power,2000,8661,3937,2000:Fat,8000,13780,4724,2500:Sig-tight,1000,6400,3150,1200"] - -Attribute("PCB::grid::unit" "mm") - -Element["" "Standard SMT resistor, capacitor etc" "R101" "1206" 17500 32500 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) - -Element["" "Standard SMT resistor, capacitor etc" "R102" "1206" 117500 32500 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) -Layer(1 "component") -( - Line[23405 32500 30000 32500 1000 4000 "clearline"] - Line[92500 32500 111595 32500 1000 4000 "clearline"] - Line[30000 32500 30000 22500 1000 4000 "clearline"] - Line[30000 22500 37500 22500 1000 4000 "clearline"] - Line[37500 22500 37500 32500 1000 4000 "clearline"] - Line[37500 32500 47500 32500 1000 4000 "clearline"] - Line[47500 32500 57500 22500 1000 4000 "clearline"] - Line[57500 22500 67500 22500 1000 4000 "clearline"] - Line[67500 22500 77500 32500 1000 4000 "clearline"] - Line[77500 32500 82500 32500 1000 4000 "clearline"] - Line[82500 32500 85000 22500 1000 4000 "clearline"] - Line[90000 22500 92500 32500 1000 4000 "clearline"] - Line[85000 22500 90000 22500 1000 4000 "clearline"] -) -Layer(2 "solder") -( -) -Layer(3 "comp-GND") -( -) -Layer(4 "comp-power") -( -) -Layer(5 "sold-GND") -( -) -Layer(6 "sold-power") -( -) -Layer(7 "signal3") -( -) -Layer(8 "outline") -( -) -Layer(9 "silk") -( -) -Layer(10 "silk") -( - Text[30000 5000 0 105 "90" "clearline"] - Text[60000 5000 0 105 "45" "clearline"] - Text[82500 5000 0 105 "rand" "clearline"] -) -NetList() -( - Net("GND" "(unknown)") - ( - Connect("R101-1") - Connect("R102-2") - ) -) Index: trunk/doc-rnd/djopt/Post.html =================================================================== --- trunk/doc-rnd/djopt/Post.html (revision 5606) +++ trunk/doc-rnd/djopt/Post.html (nonexistent) @@ -1,4 +0,0 @@ -
  • autorun all the above except miter; run them multiple times until there's no more change possible     -
    - - Index: trunk/doc-rnd/djopt/viatrim.txt =================================================================== --- trunk/doc-rnd/djopt/viatrim.txt (revision 5606) +++ trunk/doc-rnd/djopt/viatrim.txt (nonexistent) @@ -1,2 +0,0 @@ -Looks for traces that go from via to via, where moving that trace to a -different layer eliminates one or both vias. Index: trunk/doc-rnd/djopt/miter.out.pcb =================================================================== --- trunk/doc-rnd/djopt/miter.out.pcb (revision 5606) +++ trunk/doc-rnd/djopt/miter.out.pcb (nonexistent) @@ -1,75 +0,0 @@ -# release: pcb-rnd 1.0.7 - -# To read pcb files, the pcb version (or the git source date) must be >= the file version -FileVersion[20070407] - -PCB["" 140000 67500] - -Grid[500.0 0 0 1] -Cursor[500 0 0.000000] -PolyArea[3100.006200] -Thermal[0.500000] -DRC[1200 900 1000 700 1500 1000] -Flags("nameonpcb,clearnew,snappin") -Groups("1,3,4,c:2,5,6,s:7:8") -Styles["Signal,1000,7874,3150,2000:Power,2000,8661,3937,2000:Fat,8000,13780,4724,2500:Sig-tight,1000,6400,3150,1200"] - - -Element["" "Standard SMT resistor, capacitor etc" "R101" "1206" 45000 15000 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) - -Element["" "Standard SMT resistor, capacitor etc" "R102" "1206" 80000 47500 -4350 -5650 3 100 ""] -( - Pad[-1181 5905 1181 5905 5118 2000 5718 "1" "1" "square"] - Pad[-1181 -5905 1181 -5905 5118 2000 5718 "2" "2" "square"] - ElementLine [-3740 -2362 -3740 2362 800] - ElementLine [3740 -2362 3740 2362 800] - - ) -Layer(1 "component") -( - Line[50905 15000 53405 15000 1000 4000 "clearline"] - Line[80000 41595 80000 41595 1000 4000 "clearline"] - Line[53405 15000 80000 41595 1000 4000 "clearline"] -) -Layer(2 "solder") -( -) -Layer(3 "comp-GND") -( -) -Layer(4 "comp-power") -( -) -Layer(5 "sold-GND") -( -) -Layer(6 "sold-power") -( -) -Layer(7 "signal3") -( -) -Layer(8 "outline") -( -) -Layer(9 "silk") -( -) -Layer(10 "silk") -( -) -NetList() -( - Net("GND" "(unknown)") - ( - Connect("R101-1") - Connect("R102-2") - ) -) Index: trunk/doc-rnd/djopt/Pre.html =================================================================== --- trunk/doc-rnd/djopt/Pre.html (revision 5606) +++ trunk/doc-rnd/djopt/Pre.html (nonexistent) @@ -1,14 +0,0 @@ - - -

    Action djopt()

    - -The different types of optimizations change your board in order to -reduce the total trace length and via count. Each optimization is accessible -using an argument, e.g. djopt(miter). The basic actions have to be run multiple -times as each iteration will change the design making new changes possible for -subsequent iterations with the same or other actions. -

    -Click on the images to download the example .pcb design. - - -
    argument name description example in example out after 1st iteration Index: trunk/doc-rnd/djopt/vianudge.out.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/djopt/vianudge.out.png =================================================================== --- trunk/doc-rnd/djopt/vianudge.out.png (revision 5606) +++ trunk/doc-rnd/djopt/vianudge.out.png (nonexistent) Property changes on: trunk/doc-rnd/djopt/vianudge.out.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/djopt/unjaggy.out.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/djopt/unjaggy.out.png =================================================================== --- trunk/doc-rnd/djopt/unjaggy.out.png (revision 5606) +++ trunk/doc-rnd/djopt/unjaggy.out.png (nonexistent) Property changes on: trunk/doc-rnd/djopt/unjaggy.out.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/djopt/orthopull.out.pcb =================================================================== --- trunk/doc-rnd/djopt/orthopull.out.pcb (revision 5606) +++ trunk/doc-rnd/djopt/orthopull.out.pcb (nonexistent) @@ -1,99 +0,0 @@ -# release: pcb-rnd 1.0.7 - -# To read pcb files, the pcb version (or the git source date) must be >= the file version -FileVersion[20070407] - -PCB["" 140000 67500] - -Grid[2500.0 0 0 1] -Cursor[47500 32500 0.000000] -PolyArea[3100.006200] -Thermal[0.500000] -DRC[1200 900 1000 700 1500 1000] -Flags("nameonpcb,clearnew,snappin") -Groups("1,3,4,c:2,5,6,s:7:8") -Styles["Signal,1000,7874,3150,2000:Power,2000,8661,3937,2000:Fat,8000,13780,4724,2500:Sig-tight,1000,6400,3150,1200"] - - -Element["" "Standard SMT resistor, capacitor etc" "R102" "1206" 52500 10000 4350 5650 1 100 ""] -( - Pad[-1181 -5905 1181 -5905 5118 2000 5718 "1" "1" "square"] - Pad[-1181 5905 1181 5905 5118 2000 5718 "2" "2" "square"] - ElementLine [3740 -2362 3740 2362 800] - ElementLine [-3740 -2362 -3740 2362 800] - - ) - -Element["" "Standard SMT resistor, capacitor etc" "R103" "1206" 72500 10000 4350 5650 1 100 ""] -( - Pad[-1181 -5905 1181 -5905 5118 2000 5718 "1" "1" "square"] - Pad[-1181 5905 1181 5905 5118 2000 5718 "2" "2" "square"] - ElementLine [3740 -2362 3740 2362 800] - ElementLine [-3740 -2362 -3740 2362 800] - - ) - -Element["" "Standard SMT resistor, capacitor etc" "R104" "1206" 62500 52500 -4350 -5650 3 100 ""] -( - Pad[-1181 5905 1181 5905 5118 2000 5718 "1" "1" "square"] - Pad[-1181 -5905 1181 -5905 5118 2000 5718 "2" "2" "square"] - ElementLine [-3740 -2362 -3740 2362 800] - ElementLine [3740 -2362 3740 2362 800] - - ) - -Element["" "Standard SMT resistor, capacitor etc" "R101" "1206" 35000 10000 -4350 -5650 3 100 ""] -( - Pad[-1181 5905 1181 5905 5118 2000 5718 "1" "1" "square"] - Pad[-1181 -5905 1181 -5905 5118 2000 5718 "2" "2" "square"] - ElementLine [-3740 -2362 -3740 2362 800] - ElementLine [3740 -2362 3740 2362 800] - - ) -Layer(1 "component") -( - Line[52500 15905 52500 22500 1000 4000 "clearline"] - Line[72500 15905 72500 22500 1000 4000 "clearline"] - Line[62500 46595 62500 22500 1000 4000 "clearline"] - Line[35000 22500 52500 22500 1000 4000 "clearline"] - Line[35000 22500 35000 15905 1000 4000 "clearline"] - Line[62500 22500 72500 22500 1000 4000 "clearline"] - Line[52500 22500 62500 22500 1000 4000 "clearline"] -) -Layer(2 "solder") -( -) -Layer(3 "comp-GND") -( -) -Layer(4 "comp-power") -( -) -Layer(5 "sold-GND") -( -) -Layer(6 "sold-power") -( -) -Layer(7 "signal3") -( -) -Layer(8 "outline") -( -) -Layer(9 "silk") -( -) -Layer(10 "silk") -( -) -NetList() -( - Net("GND" "(unknown)") - ( - Connect("R101-1") - Connect("R102-2") - Connect("R103-2") - Connect("R104-2") - ) -) Index: trunk/doc-rnd/djopt/debumpify.txt =================================================================== --- trunk/doc-rnd/djopt/debumpify.txt (revision 5606) +++ trunk/doc-rnd/djopt/debumpify.txt (nonexistent) @@ -1,2 +0,0 @@ -Looks for U-shaped traces (with 90 degree corners) that can be shortened -or eliminated. Index: trunk/doc-rnd/djopt/miter.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/djopt/miter.png =================================================================== --- trunk/doc-rnd/djopt/miter.png (revision 5606) +++ trunk/doc-rnd/djopt/miter.png (nonexistent) Property changes on: trunk/doc-rnd/djopt/miter.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/djopt/viatrim.out.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/djopt/viatrim.out.png =================================================================== --- trunk/doc-rnd/djopt/viatrim.out.png (revision 5606) +++ trunk/doc-rnd/djopt/viatrim.out.png (nonexistent) Property changes on: trunk/doc-rnd/djopt/viatrim.out.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/djopt/vianudge.out.pcb =================================================================== --- trunk/doc-rnd/djopt/vianudge.out.pcb (revision 5606) +++ trunk/doc-rnd/djopt/vianudge.out.pcb (nonexistent) @@ -1,79 +0,0 @@ -# release: pcb-rnd 1.0.7 - -# To read pcb files, the pcb version (or the git source date) must be >= the file version -FileVersion[20070407] - -PCB["" 140000 67500] - -Grid[2500.0 0 0 1] -Cursor[17500 22500 0.000000] -PolyArea[3100.006200] -Thermal[0.500000] -DRC[1200 900 1000 700 1500 1000] -Flags("nameonpcb,clearnew,snappin") -Groups("1,3,4,c:2,5,6,s:7:8") -Styles["Signal,1000,7874,3150,2000:Power,2000,8661,3937,2000:Fat,8000,13780,4724,2500:Sig-tight,1000,6400,3150,1200"] - -Via[85000 27500 8661 4000 0 3937 "" ""] - -Element["" "Standard SMT resistor, capacitor etc" "R101" "1206" 57500 10000 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) - -Element["onsolder" "Standard SMT resistor, capacitor etc" "R102" "1206" 10000 10000 5650 4350 2 100 "auto"] -( - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "1" "1" "onsolder,square"] - Pad[5905 -1181 5905 1181 5118 2000 5718 "2" "2" "onsolder,square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) -Layer(1 "component") -( - Line[63405 10000 85000 10000 1000 4000 "clearline"] - Line[85000 10000 85000 27500 1000 4000 "clearline"] -) -Layer(2 "solder") -( - Line[15905 10000 30000 10000 2000 4000 "clearline"] - Line[30000 10000 30000 27500 2000 4000 "clearline"] - Line[30000 27500 85000 27500 2000 4000 "clearline"] - Line[85000 27500 85000 27500 2000 4000 "clearline"] -) -Layer(3 "comp-GND") -( -) -Layer(4 "comp-power") -( -) -Layer(5 "sold-GND") -( -) -Layer(6 "sold-power") -( -) -Layer(7 "signal3") -( -) -Layer(8 "outline") -( -) -Layer(9 "silk") -( -) -Layer(10 "silk") -( -) -NetList() -( - Net("GND" "(unknown)") - ( - Connect("R101-1") - Connect("R102-2") - ) -) Index: trunk/doc-rnd/djopt/orthopull.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/djopt/orthopull.png =================================================================== --- trunk/doc-rnd/djopt/orthopull.png (revision 5606) +++ trunk/doc-rnd/djopt/orthopull.png (nonexistent) Property changes on: trunk/doc-rnd/djopt/orthopull.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/djopt/debumpify.out.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/djopt/debumpify.out.png =================================================================== --- trunk/doc-rnd/djopt/debumpify.out.png (revision 5606) +++ trunk/doc-rnd/djopt/debumpify.out.png (nonexistent) Property changes on: trunk/doc-rnd/djopt/debumpify.out.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/djopt/unjaggy.out.pcb =================================================================== --- trunk/doc-rnd/djopt/unjaggy.out.pcb (revision 5606) +++ trunk/doc-rnd/djopt/unjaggy.out.pcb (nonexistent) @@ -1,79 +0,0 @@ -# release: pcb-rnd 1.0.7 - -# To read pcb files, the pcb version (or the git source date) must be >= the file version -FileVersion[20070407] - -PCB["" 140000 67500] - -Grid[2500.0 0 0 1] -Cursor[12500 10000 0.000000] -PolyArea[3100.006200] -Thermal[0.500000] -DRC[1200 900 1000 700 1500 1000] -Flags("nameonpcb,clearnew,snappin") -Groups("1,3,4,c:2,5,6,s:7:8") -Styles["Signal,1000,7874,3150,2000:Power,2000,8661,3937,2000:Fat,8000,13780,4724,2500:Sig-tight,1000,6400,3150,1200"] - - -Element["" "Standard SMT resistor, capacitor etc" "R101" "1206" 17500 32500 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) - -Element["" "Standard SMT resistor, capacitor etc" "R102" "1206" 65000 12500 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) -Layer(1 "component") -( - Line[23405 32500 37500 32500 1000 4000 "clearline"] - Line[37500 32500 37500 15000 1000 4000 "clearline"] - Line[37500 15000 37500 15000 1000 4000 "clearline"] - Line[37500 32500 37500 32500 1000 4000 "clearline"] - Line[37500 15000 45000 15000 1000 4000 "clearline"] - Line[45000 15000 45000 10000 1000 4000 "clearline"] - Line[45000 10000 59095 10000 1000 4000 "clearline"] -) -Layer(2 "solder") -( -) -Layer(3 "comp-GND") -( -) -Layer(4 "comp-power") -( -) -Layer(5 "sold-GND") -( -) -Layer(6 "sold-power") -( -) -Layer(7 "signal3") -( -) -Layer(8 "outline") -( -) -Layer(9 "silk") -( -) -Layer(10 "silk") -( -) -NetList() -( - Net("GND" "(unknown)") - ( - Connect("R101-1") - Connect("R102-2") - ) -) Index: trunk/doc-rnd/djopt/Makefile =================================================================== --- trunk/doc-rnd/djopt/Makefile (revision 5606) +++ trunk/doc-rnd/djopt/Makefile (nonexistent) @@ -1,50 +0,0 @@ -PCB=../../src/pcb-rnd -HTML=index.html -CASES = \ - debumpify.$(TARGET) \ - miter.$(TARGET) \ - orthopull.$(TARGET) \ - unjaggy.$(TARGET) \ - vianudge.$(TARGET) \ - viatrim.$(TARGET) - -all: - make conv TARGET=out.png - make conv TARGET=png - make index - -index: - make index.html TARGET=txt - -index.html: Pre.html Post.html $(CASES) Makefile - cat Pre.html > $(HTML) - make conv TARGET=tbl - cat Post.html >>$(HTML) - -conv: $(CASES) - -.SUFFIXES: .pcb .out.pcb .png .out.png .tbl -.PRECIOUS: %.pcb %.out.pcb %.png %.out.png - -.pcb.out.pcb: - echo "OptAutoOnly(); djopt($*); SaveTo(LayoutAs, $*.out.pcb.tmp);"| $(PCB) --gui batch $*.pcb - awk '/Symbol.. . 1800./,/^Attribute/ { next } { print $$0 }' < $*.out.pcb.tmp > $*.out.pcb - rm $*.out.pcb.tmp - -.pcb.tbl: - echo '
    $*'>>$(HTML) - cat $*.txt >>$(HTML) - echo ' '>>$(HTML) - -.pcb.png: - $(PCB) -x png --dpi 300 $*.pcb - -out.pcb.out.png: - $(PCB) -x png --dpi 300 $*.out.pcb - -clean: - rm *.out.pcb *.png index.html 2>/dev/null; true - - - - Index: trunk/doc-rnd/djopt/miter.pcb =================================================================== --- trunk/doc-rnd/djopt/miter.pcb (revision 5606) +++ trunk/doc-rnd/djopt/miter.pcb (nonexistent) @@ -1,80 +0,0 @@ -# release: pcb-rnd 1.0.7 - -# To read pcb files, the pcb version (or the git source date) must be >= the file version -FileVersion[20070407] - -PCB["" 140000 67500] - -Grid[500.0 0 0 1] -Cursor[500 0 0.000000] -PolyArea[3100.006200] -Thermal[0.500000] -DRC[1200 900 1000 700 1500 1000] -Flags("nameonpcb,clearnew,snappin") -Groups("1,3,4,c:2,5,6,s:7:8") -Styles["Signal,1000,7874,3150,2000:Power,2000,8661,3937,2000:Fat,8000,13780,4724,2500:Sig-tight,1000,6400,3150,1200"] - - -Attribute("PCB::grid::unit" "mil") - -Element["" "Standard SMT resistor, capacitor etc" "R101" "1206" 45000 15000 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) - -Element["" "Standard SMT resistor, capacitor etc" "R102" "1206" 80000 47500 -4350 -5650 3 100 ""] -( - Pad[-1181 5905 1181 5905 5118 2000 5718 "1" "1" "square"] - Pad[-1181 -5905 1181 -5905 5118 2000 5718 "2" "2" "square"] - ElementLine [-3740 -2362 -3740 2362 800] - ElementLine [3740 -2362 3740 2362 800] - - ) -Layer(1 "component") -( - Line[50905 15000 80000 15000 1000 4000 "clearline"] - Line[80000 15000 80000 41595 1000 4000 "clearline"] - Line[81181 41595 80000 41595 1000 4000 "clearline"] - Line[80000 41595 78819 41595 1000 4000 "clearline"] - Line[50905 16181 50905 15000 1000 4000 "clearline"] - Line[50905 15000 50905 13819 1000 4000 "clearline"] -) -Layer(2 "solder") -( -) -Layer(3 "comp-GND") -( -) -Layer(4 "comp-power") -( -) -Layer(5 "sold-GND") -( -) -Layer(6 "sold-power") -( -) -Layer(7 "signal3") -( -) -Layer(8 "outline") -( -) -Layer(9 "silk") -( -) -Layer(10 "silk") -( -) -NetList() -( - Net("GND" "(unknown)") - ( - Connect("R101-1") - Connect("R102-2") - ) -) Index: trunk/doc-rnd/djopt/viatrim.out.pcb =================================================================== --- trunk/doc-rnd/djopt/viatrim.out.pcb (revision 5606) +++ trunk/doc-rnd/djopt/viatrim.out.pcb (nonexistent) @@ -1,80 +0,0 @@ -# release: pcb-rnd 1.0.7 - -# To read pcb files, the pcb version (or the git source date) must be >= the file version -FileVersion[20070407] - -PCB["" 140000 67500] - -Grid[2500.0 0 0 1] -Cursor[37500 10000 0.000000] -PolyArea[3100.006200] -Thermal[0.500000] -DRC[1200 900 1000 700 1500 1000] -Flags("nameonpcb,clearnew,snappin") -Groups("1,3,4,c:2,5,6,s:7:8") -Styles["Signal,1000,7874,3150,2000:Power,2000,8661,3937,2000:Fat,8000,13780,4724,2500:Sig-tight,1000,6400,3150,1200"] - -Via[60000 32500 7874 4000 0 3150 "" ""] -Via[92500 32500 7874 4000 0 3150 "" ""] -Via[75000 32500 7874 4000 0 3150 "" ""] - -Element["" "Standard SMT resistor, capacitor etc" "R101" "1206" 17500 32500 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) - -Element["" "Standard SMT resistor, capacitor etc" "R102" "1206" 117500 32500 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) -Layer(1 "component") -( - Line[23405 32500 60000 32500 1000 4000 "clearline"] - Line[92500 32500 111595 32500 1000 4000 "clearline"] - Line[60000 32500 60000 32500 1000 4000 "clearline"] - Line[60000 32500 75000 32500 1000 4000 "clearline"] -) -Layer(2 "solder") -( - Line[75000 32500 92500 32500 1000 4000 "clearline"] -) -Layer(3 "comp-GND") -( -) -Layer(4 "comp-power") -( -) -Layer(5 "sold-GND") -( -) -Layer(6 "sold-power") -( -) -Layer(7 "signal3") -( -) -Layer(8 "outline") -( -) -Layer(9 "silk") -( -) -Layer(10 "silk") -( -) -NetList() -( - Net("GND" "(unknown)") - ( - Connect("R101-1") - Connect("R102-2") - ) -) Index: trunk/doc-rnd/djopt/vianudge.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/djopt/vianudge.png =================================================================== --- trunk/doc-rnd/djopt/vianudge.png (revision 5606) +++ trunk/doc-rnd/djopt/vianudge.png (nonexistent) Property changes on: trunk/doc-rnd/djopt/vianudge.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/djopt/unjaggy.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/djopt/unjaggy.png =================================================================== --- trunk/doc-rnd/djopt/unjaggy.png (revision 5606) +++ trunk/doc-rnd/djopt/unjaggy.png (nonexistent) Property changes on: trunk/doc-rnd/djopt/unjaggy.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/djopt/orthopull.pcb =================================================================== --- trunk/doc-rnd/djopt/orthopull.pcb (revision 5606) +++ trunk/doc-rnd/djopt/orthopull.pcb (nonexistent) @@ -1,98 +0,0 @@ -# release: pcb-rnd 1.0.7 - -# To read pcb files, the pcb version (or the git source date) must be >= the file version -FileVersion[20070407] - -PCB["" 140000 67500] - -Grid[2500.0 0 0 1] -Cursor[47500 32500 0.000000] -PolyArea[3100.006200] -Thermal[0.500000] -DRC[1200 900 1000 700 1500 1000] -Flags("nameonpcb,clearnew,snappin") -Groups("1,3,4,c:2,5,6,s:7:8") -Styles["Signal,1000,7874,3150,2000:Power,2000,8661,3937,2000:Fat,8000,13780,4724,2500:Sig-tight,1000,6400,3150,1200"] - -Attribute("PCB::grid::unit" "mm") - -Element["" "Standard SMT resistor, capacitor etc" "R102" "1206" 52500 10000 4350 5650 1 100 ""] -( - Pad[-1181 -5905 1181 -5905 5118 2000 5718 "1" "1" "square"] - Pad[-1181 5905 1181 5905 5118 2000 5718 "2" "2" "square"] - ElementLine [3740 -2362 3740 2362 800] - ElementLine [-3740 -2362 -3740 2362 800] - - ) - -Element["" "Standard SMT resistor, capacitor etc" "R103" "1206" 72500 10000 4350 5650 1 100 ""] -( - Pad[-1181 -5905 1181 -5905 5118 2000 5718 "1" "1" "square"] - Pad[-1181 5905 1181 5905 5118 2000 5718 "2" "2" "square"] - ElementLine [3740 -2362 3740 2362 800] - ElementLine [-3740 -2362 -3740 2362 800] - - ) - -Element["" "Standard SMT resistor, capacitor etc" "R104" "1206" 62500 52500 -4350 -5650 3 100 ""] -( - Pad[-1181 5905 1181 5905 5118 2000 5718 "1" "1" "square"] - Pad[-1181 -5905 1181 -5905 5118 2000 5718 "2" "2" "square"] - ElementLine [-3740 -2362 -3740 2362 800] - ElementLine [3740 -2362 3740 2362 800] - - ) - -Element["" "Standard SMT resistor, capacitor etc" "R101" "1206" 35000 10000 -4350 -5650 3 100 ""] -( - Pad[-1181 5905 1181 5905 5118 2000 5718 "1" "1" "square"] - Pad[-1181 -5905 1181 -5905 5118 2000 5718 "2" "2" "square"] - ElementLine [-3740 -2362 -3740 2362 800] - ElementLine [3740 -2362 3740 2362 800] - - ) -Layer(1 "component") -( - Line[52500 15905 52500 37500 1000 4000 "clearline"] - Line[72500 15905 72500 37500 1000 4000 "clearline"] - Line[62500 46595 62500 37500 1000 4000 "clearline"] - Line[35000 37500 72500 37500 1000 4000 "clearline"] - Line[35000 37500 35000 15905 1000 4000 "clearline"] -) -Layer(2 "solder") -( -) -Layer(3 "comp-GND") -( -) -Layer(4 "comp-power") -( -) -Layer(5 "sold-GND") -( -) -Layer(6 "sold-power") -( -) -Layer(7 "signal3") -( -) -Layer(8 "outline") -( -) -Layer(9 "silk") -( -) -Layer(10 "silk") -( -) -NetList() -( - Net("GND" "(unknown)") - ( - Connect("R101-1") - Connect("R102-2") - Connect("R103-2") - Connect("R104-2") - ) -) Index: trunk/doc-rnd/djopt/debumpify.out.pcb =================================================================== --- trunk/doc-rnd/djopt/debumpify.out.pcb (revision 5606) +++ trunk/doc-rnd/djopt/debumpify.out.pcb (nonexistent) @@ -1,88 +0,0 @@ -# release: pcb-rnd 1.0.7 - -# To read pcb files, the pcb version (or the git source date) must be >= the file version -FileVersion[20070407] - -PCB["" 140000 67500] - -Grid[2500.0 0 0 1] -Cursor[0 5000 0.000000] -PolyArea[3100.006200] -Thermal[0.500000] -DRC[1200 900 1000 700 1500 1000] -Flags("nameonpcb,clearnew,snappin") -Groups("1,3,4,c:2,5,6,s:7:8") -Styles["Signal,1000,7874,3150,2000:Power,2000,8661,3937,2000:Fat,8000,13780,4724,2500:Sig-tight,1000,6400,3150,1200"] - - -Element["" "Standard SMT resistor, capacitor etc" "R101" "1206" 17500 32500 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) - -Element["" "Standard SMT resistor, capacitor etc" "R102" "1206" 117500 32500 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) -Layer(1 "component") -( - Line[23405 32500 30000 32500 1000 4000 "clearline"] - Line[92500 32500 111595 32500 1000 4000 "clearline"] - Line[30000 32500 30000 32500 1000 4000 "clearline"] - Line[30000 32500 37500 32500 1000 4000 "clearline"] - Line[37500 32500 37500 32500 1000 4000 "clearline"] - Line[37500 32500 47500 32500 1000 4000 "clearline"] - Line[47500 32500 57500 22500 1000 4000 "clearline"] - Line[57500 22500 67500 22500 1000 4000 "clearline"] - Line[67500 22500 77500 32500 1000 4000 "clearline"] - Line[77500 32500 82500 32500 1000 4000 "clearline"] - Line[82500 32500 85000 22500 1000 4000 "clearline"] - Line[90000 22500 92500 32500 1000 4000 "clearline"] - Line[85000 22500 90000 22500 1000 4000 "clearline"] -) -Layer(2 "solder") -( -) -Layer(3 "comp-GND") -( -) -Layer(4 "comp-power") -( -) -Layer(5 "sold-GND") -( -) -Layer(6 "sold-power") -( -) -Layer(7 "signal3") -( -) -Layer(8 "outline") -( -) -Layer(9 "silk") -( -) -Layer(10 "silk") -( - Text[30000 5000 0 105 "90" "clearline"] - Text[60000 5000 0 105 "45" "clearline"] - Text[82500 5000 0 105 "rand" "clearline"] -) -NetList() -( - Net("GND" "(unknown)") - ( - Connect("R101-1") - Connect("R102-2") - ) -) Index: trunk/doc-rnd/djopt/miter.txt =================================================================== --- trunk/doc-rnd/djopt/miter.txt (revision 5606) +++ trunk/doc-rnd/djopt/miter.txt (nonexistent) @@ -1,2 +0,0 @@ -Replaces 90 degree corners with a pair of 45 degree corners, to reduce -RF losses and trace length. Index: trunk/doc-rnd/djopt/viatrim.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/djopt/viatrim.png =================================================================== --- trunk/doc-rnd/djopt/viatrim.png (revision 5606) +++ trunk/doc-rnd/djopt/viatrim.png (nonexistent) Property changes on: trunk/doc-rnd/djopt/viatrim.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/djopt/vianudge.pcb =================================================================== --- trunk/doc-rnd/djopt/vianudge.pcb (revision 5606) +++ trunk/doc-rnd/djopt/vianudge.pcb (nonexistent) @@ -1,81 +0,0 @@ -# release: pcb-rnd 1.0.7 - -# To read pcb files, the pcb version (or the git source date) must be >= the file version -FileVersion[20070407] - -PCB["" 140000 67500] - -Grid[2500.0 0 0 1] -Cursor[17500 22500 0.000000] -PolyArea[3100.006200] -Thermal[0.500000] -DRC[1200 900 1000 700 1500 1000] -Flags("nameonpcb,clearnew,snappin") -Groups("1,3,4,c:2,5,6,s:7:8") -Styles["Signal,1000,7874,3150,2000:Power,2000,8661,3937,2000:Fat,8000,13780,4724,2500:Sig-tight,1000,6400,3150,1200"] - - -Attribute("PCB::grid::unit" "mm") -Via[85000 50000 8661 4000 0 3937 "" ""] - -Element["" "Standard SMT resistor, capacitor etc" "R101" "1206" 57500 10000 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) - -Element["onsolder" "Standard SMT resistor, capacitor etc" "R102" "1206" 10000 10000 5650 4350 2 100 "auto"] -( - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "1" "1" "onsolder,square"] - Pad[5905 -1181 5905 1181 5118 2000 5718 "2" "2" "onsolder,square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) -Layer(1 "component") -( - Line[63405 10000 85000 10000 1000 4000 "clearline"] - Line[85000 10000 85000 50000 1000 4000 "clearline"] -) -Layer(2 "solder") -( - Line[15905 10000 30000 10000 2000 4000 "clearline"] - Line[30000 10000 30000 27500 2000 4000 "clearline"] - Line[30000 27500 85000 27500 2000 4000 "clearline"] - Line[85000 50000 85000 27500 2000 4000 "clearline"] -) -Layer(3 "comp-GND") -( -) -Layer(4 "comp-power") -( -) -Layer(5 "sold-GND") -( -) -Layer(6 "sold-power") -( -) -Layer(7 "signal3") -( -) -Layer(8 "outline") -( -) -Layer(9 "silk") -( -) -Layer(10 "silk") -( -) -NetList() -( - Net("GND" "(unknown)") - ( - Connect("R101-1") - Connect("R102-2") - ) -) Index: trunk/doc-rnd/djopt/orthopull.txt =================================================================== --- trunk/doc-rnd/djopt/orthopull.txt (revision 5606) +++ trunk/doc-rnd/djopt/orthopull.txt (nonexistent) @@ -1,4 +0,0 @@ -Looks for chains of traces all going in one direction, with more -traces orthogonal on one side than on the other. Moves the chain in -that direction, causing a net reduction in trace length, possibly -eliminating traces and/or corners. Index: trunk/doc-rnd/djopt/debumpify.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/djopt/debumpify.png =================================================================== --- trunk/doc-rnd/djopt/debumpify.png (revision 5606) +++ trunk/doc-rnd/djopt/debumpify.png (nonexistent) Property changes on: trunk/doc-rnd/djopt/debumpify.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/djopt/unjaggy.pcb =================================================================== --- trunk/doc-rnd/djopt/unjaggy.pcb (revision 5606) +++ trunk/doc-rnd/djopt/unjaggy.pcb (nonexistent) @@ -1,81 +0,0 @@ -# release: pcb-rnd 1.0.7 - -# To read pcb files, the pcb version (or the git source date) must be >= the file version -FileVersion[20070407] - -PCB["" 140000 67500] - -Grid[2500.0 0 0 1] -Cursor[12500 10000 0.000000] -PolyArea[3100.006200] -Thermal[0.500000] -DRC[1200 900 1000 700 1500 1000] -Flags("nameonpcb,clearnew,snappin") -Groups("1,3,4,c:2,5,6,s:7:8") -Styles["Signal,1000,7874,3150,2000:Power,2000,8661,3937,2000:Fat,8000,13780,4724,2500:Sig-tight,1000,6400,3150,1200"] - - -Attribute("PCB::grid::unit" "mm") - -Element["" "Standard SMT resistor, capacitor etc" "R101" "1206" 17500 32500 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) - -Element["" "Standard SMT resistor, capacitor etc" "R102" "1206" 65000 12500 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) -Layer(1 "component") -( - Line[23405 32500 30000 32500 1000 4000 "clearline"] - Line[30000 22500 37500 22500 1000 4000 "clearline"] - Line[37500 22500 37500 15000 1000 4000 "clearline"] - Line[30000 32500 30000 22500 1000 4000 "clearline"] - Line[37500 15000 45000 15000 1000 4000 "clearline"] - Line[45000 15000 45000 10000 1000 4000 "clearline"] - Line[45000 10000 56595 10000 1000 4000 "clearline"] -) -Layer(2 "solder") -( -) -Layer(3 "comp-GND") -( -) -Layer(4 "comp-power") -( -) -Layer(5 "sold-GND") -( -) -Layer(6 "sold-power") -( -) -Layer(7 "signal3") -( -) -Layer(8 "outline") -( -) -Layer(9 "silk") -( -) -Layer(10 "silk") -( -) -NetList() -( - Net("GND" "(unknown)") - ( - Connect("R101-1") - Connect("R102-2") - ) -) Index: trunk/doc-rnd/djopt/miter.out.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/djopt/miter.out.png =================================================================== --- trunk/doc-rnd/djopt/miter.out.png (revision 5606) +++ trunk/doc-rnd/djopt/miter.out.png (nonexistent) Property changes on: trunk/doc-rnd/djopt/miter.out.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/djopt/index.html =================================================================== --- trunk/doc-rnd/djopt/index.html (revision 5606) +++ trunk/doc-rnd/djopt/index.html (nonexistent) @@ -1,45 +0,0 @@ - - -

    Action djopt()

    - -The different types of optimizations change your board in order to -reduce the total trace length and via count. Each optimization is accessible -using an argument, e.g. djopt(miter). The basic actions have to be run multiple -times as each iteration will change the design making new changes possible for -subsequent iterations with the same or other actions. -

    -Click on the images to download the example .pcb design. - - -
    argument name description example in example out after 1st iteration -
    debumpify -Looks for U-shaped traces (with 90 degree corners) that can be shortened -or eliminated. - -
    miter -Replaces 90 degree corners with a pair of 45 degree corners, to reduce -RF losses and trace length. - -
    orthopull -Looks for chains of traces all going in one direction, with more -traces orthogonal on one side than on the other. Moves the chain in -that direction, causing a net reduction in trace length, possibly -eliminating traces and/or corners. - -
    unjaggy -Looks for corners which could be flipped to eliminate one or more -corners (i.e. jaggy lines become simpler). - -
    vianudge -Looks for vias where all traces leave in the same direction. Tries to -move via in that direction to eliminate one of the traces (and thus a -corner). - -
    viatrim -Looks for traces that go from via to via, where moving that trace to a -different layer eliminates one or both vias. - -
    autorun all the above except miter; run them multiple times until there's no more change possible     -
    - - Index: trunk/doc-rnd/djopt/viatrim.pcb =================================================================== --- trunk/doc-rnd/djopt/viatrim.pcb (revision 5606) +++ trunk/doc-rnd/djopt/viatrim.pcb (nonexistent) @@ -1,87 +0,0 @@ -# release: pcb-rnd 1.0.7 - -# To read pcb files, the pcb version (or the git source date) must be >= the file version -FileVersion[20070407] - -PCB["" 140000 67500] - -Grid[2500.0 0 0 1] -Cursor[37500 10000 0.000000] -PolyArea[3100.006200] -Thermal[0.500000] -DRC[1200 900 1000 700 1500 1000] -Flags("nameonpcb,clearnew,snappin") -Groups("1,3,4,c:2,5,6,s:7:8") -Styles["Signal,1000,7874,3150,2000:Power,2000,8661,3937,2000:Fat,8000,13780,4724,2500:Sig-tight,1000,6400,3150,1200"] - - -Attribute("PCB::grid::unit" "mm") -Via[60000 32500 7874 4000 0 3150 "" ""] -Via[92500 32500 7874 4000 0 3150 "" ""] -Via[75000 32500 7874 4000 0 3150 "" ""] -Via[40000 32500 7874 4000 0 3150 "" ""] - -Element["" "Standard SMT resistor, capacitor etc" "R101" "1206" 17500 32500 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) - -Element["" "Standard SMT resistor, capacitor etc" "R102" "1206" 117500 32500 -5650 4350 0 100 ""] -( - Pad[5905 -1181 5905 1181 5118 2000 5718 "1" "1" "square"] - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "2" "2" "square"] - ElementLine [-2362 3740 2362 3740 800] - ElementLine [-2362 -3740 2362 -3740 800] - - ) -Layer(1 "component") -( - Line[23405 32500 40000 32500 1000 4000 "clearline"] - Line[92500 32500 111595 32500 1000 4000 "clearline"] - Line[111595 33681 111595 32500 1000 4000 "clearline"] - Line[111595 32500 111595 31319 1000 4000 "clearline"] - Line[23405 33681 23405 32500 1000 4000 "clearline"] - Line[23405 32500 23405 31319 1000 4000 "clearline"] - Line[40000 32500 60000 32500 1000 4000 "clearline"] -) -Layer(2 "solder") -( - Line[60000 32500 75000 32500 1000 4000 "clearline"] - Line[75000 32500 92500 32500 1000 4000 "clearline"] -) -Layer(3 "comp-GND") -( -) -Layer(4 "comp-power") -( -) -Layer(5 "sold-GND") -( -) -Layer(6 "sold-power") -( -) -Layer(7 "signal3") -( -) -Layer(8 "outline") -( -) -Layer(9 "silk") -( -) -Layer(10 "silk") -( -) -NetList() -( - Net("GND" "(unknown)") - ( - Connect("R101-1") - Connect("R102-2") - ) -) Index: trunk/doc-rnd/devlog/20160101_cschem.html =================================================================== --- trunk/doc-rnd/devlog/20160101_cschem.html (revision 5606) +++ trunk/doc-rnd/devlog/20160101_cschem.html (nonexistent) @@ -1,68 +0,0 @@ - - -

    pcb-rnd devlog

    - -

    cschem

    - -Cschem is a project I plan to start within the next few years. It's goals -and some design concepts are similar to gschem's and geda's, while it -also breaks some traditions to fix shortcomings in the design of geda. It's -named after gschem, not after geda, to emphasize that the editor needs to -be connected more to the rest of the system (see details later). -

    -Some concepts cschem will try to follow (marking with * where there's major -difference to geda): -

      -
    • 1. design -
        -
      • 1.1. modularity, aka. toolkit approach -
      • 1.2. flexibility (trough attributes) -
      • 1.3. one schematics file is one sheet -
      • 1.4. multi page projects (hierarchic, flat) -
      • 1.5. data is in structured text files (no builtin sql support in core) -
      • 1.6. * the concept of a "project"; it's optional, tools can work on a set of schematics files _or_ on a complete project -
      • 1.7. * nets and components are uniquely identifiable using the same identifiers by all projects -
      • 1.8. * no excess "smartness" in the GUI editor: no slotting, no pin numbering, no auto renumbering, etc; these all should be done in the netlist layer and results fed back to the editor -
      • 1.9. * direct, bidirectional communication between the editor (GUI) and the netlist layer without any integration of the two, through simple and clean API, keeping both parts replaceable; attributes cschem got back from the netlister are "volatile": not saved, do not override attributes provided by the user -
      • 1.10. * less format-specific tricks built into the GUI code, more generic approaches (e.g. a search is a search, not a search-for-text-attribute and results on the result lists are any object of the design) -
      • 1.11. * slotting, pin mapping, device mapping are in backends -
      • 1.12. * back annotation should not be any harder than forward annotation -
      • 1.13. * since a lot of info is invented in backends, not in the GUI (e.g. pin numbers, when slotting), the GUI needs to be able to switch between "views": what (combination of) backend(s) to get these info from; Note: this would also provide an interactive DRC on the GUI with the DRC still implemented in the netlister! -
      • 1.14. * the scriptable plugin system is based on GPMI from the start to guarantee the tool is not tied to any one specific scripting engine or scripting language -
      -
    • 2. implementation -
        -
      • 2.1. a core library that does common things like figuring what objects are connected with net lines -
      • 2.2. the simple GUI editor should provide the frame; exotic functions should come from user plugins -
      • 2.3. a simple netlister that provides only generic (* absolutely no backend specific) queries; actual backends are implemented as plugins -
      • 2.4. * the core library and the netlister and the GUI core are all implemented in plain C: -
          -
        • 2.4.1. * no dependency on any specific scripting engine or scripting language; no core functionality implemented in anything else but C -
        • 2.4.2. * no dependency on big "solves-everything" libraries (e.g. no glib or cairo dependency) -
        • 2.4.3. * the actual GUI is behind the plugin system (like PCB's HIDs) -
        • 2.4.4. * the first gui, in accordance with the no big libraries, will not be gtk or qt but sdl2 based; this would guarantee to have a front end that doesn't need to be rewritten every 5 years just for the sake of the rewrite -
        • 2.4.5. * scconfig instead of autotools: smaller, easier to maintain, works better outside of the gnu-win32 world -
        -
      -
    • 3. project management -
        -
      • 3.1. automatic tests wherever possible, as early as possible -
      • 3.2. * VCS: simple, centralized svn with straight linear developement, actively trying to avoid branching -
      • 3.3. * near-zero-administration releases with svn commits -
      • 3.4. * users should be able to submit bug reports anonymously, without having to register, without having to run javascript, java applet, flash, etc. -
      -
    - - -

    -There are a lot of open questions: -

      -
    • q1. how buses should work -
    • q2. how slotting should work (but at least we can have alternatives here) -
    • q3. how hierarchical design should work -
    • q4. * how the GUI should display large amount of attributes without making the whole page an unreadable mess -
    • q5. flat vs. non-flat netlists - if turns out it's not just an implementation detail in a netlister backend -
    • q6. * whether project file format is a custom format or just a top sch page referencing other sch pages - pcb-rnd is leading here, there is an optional project file format already defined, so this is more or less decided -
    • q7. attribute conventions -
    - Index: trunk/doc-rnd/devlog/20150821a_parametric_requirements.html =================================================================== --- trunk/doc-rnd/devlog/20150821a_parametric_requirements.html (revision 5606) +++ trunk/doc-rnd/devlog/20150821a_parametric_requirements.html (nonexistent) @@ -1,32 +0,0 @@ - - -

    pcb-rnd devlog

    -

    requirements for parametric footprint generation

    - -It's appealing to write parametric footprint generators for new footprint -families: invest some time once, and have a tool that can spit out -dozens of footprints. However, it is not always worth having a generator -instead of static footprints. The minimal requirements for a generator are: - -
      - -
    • the footprint family is a series of footprints that can be generated -using the same code, with changing some base properties (e.g. number of -pins) - -
    • dimensions and other properties can be calculated from the base -properties with reasonable formulas and conditional code; e.g. sot* is not -a good candidate for generation, as sot23 or sot89 can not be generated -from some common anestor by varying one or two parameters, but would need -a large table that translates package name to a pattern - easier to keep -those in static footprint files - -
    • has a reasonable amount of existing variations; e.g. it is not worth -writing a generator for the dsub family because there are only a few of -them in common use (db9, db15, db25, and maybe db37). - -
    • preferably a link to a datasheet that shows at least 3 members of the -family; if that's not possible, separate datasheets describing at least 3 -members of the family. - -
    Index: trunk/doc-rnd/devlog/20150901a_back_ann.html =================================================================== --- trunk/doc-rnd/devlog/20150901a_back_ann.html (revision 5606) +++ trunk/doc-rnd/devlog/20150901a_back_ann.html (nonexistent) @@ -1,87 +0,0 @@ - - -

    pcb-rnd devlog

    - -

    back annotation

    - - -

    Conclusions of the first thread

    -DJ has another
    model -where back annotation is only a subset of a bigger mechanism. -

    -Many other users commented the thread, but no one else presented a -plan that formed a complete system. -

    -While there were some useful feedback about some details, no one explicitly -said he'd be contributing the gschem part (... for any of the ideas floating -around). -

    -The thread is swamped in a chaotic set of random ideas and opinions - the -same way as previous related threads usually did. - - -

    Second thread

    -In the second thread I will focus on actual contribution. For this, -I'm narrowing down what exactly needs to be contributed: - - -
      -
    • 1. minor UI changes, most probably in the C part of the gschem code. -somehow ending up in the official repo; I'd prefer to avoid maintaining a -fork of gschem (no, having the fork in git doesn't help). - -
    • 2. a scheme script that can be plugged into gschem and do real simple -things like toggling flags for point 1, counting how many flags are -toggled, warn the user about the counter is being non-zero; this script -doesn't need to get into the official repo - -
    • 3. depending on whether we (me and my actual contributor who contributes -code) go for push or pull, we need: a new action or menu or whatever that -can trigger a pull or some means that can collect a change list pushed and -then indicate that something's happened. It's not really a third piece of -code, just a third piece of concept that is spread across 1 and 2. -
    -

    -First, I seek a contributor for exactly these 3 things. Alternatively if -there's someone who is really willing to contribute actual code and spend -time on this, I'm open to change parts of my plan if he has better ideas -as long as the new approach still solves the actual problems I have. - - -

    Preparing for the third phase (3rd sep)

    -Options are being eliminated slowly. I couldn't find out who are currently the -maintainers of gschem, so I couldn't ask their opinion about my back annotation -plan directly. Last stable release is about 2 years old, last unstable is more -than a year old. -

    -The main options currently are: -

      -
    • 1. Evan offered contribution on the gschem side; Markus offered him write - access to the official git repo. We could have a branch there. We'd - aim for a merge, so minimal changes and a lot of scheme hacking (... - that still none of us want to do, afaik). - Without positive feedback from maintainers, I believe this branch - has a very low chance to get merged in mainline. If it doesn't get - merged, all the extra effort on scheme, git, and trying to - do things in the gschem-way are just energy wasted. - -
    • 2. I start an svn repo and implement the stuff the better way (no - scheme, bigger change, no worries about whether it gets merged). Keep - changes on-topic and small, so later on if someone wants to merge, - there's a chance to get it into a branch in the git repo first then - do the merge. Has even lower chance to get merged, but certainly - speeds up development and is much easier to work on, distribute and - use than a bitrotting git branch. If it doesn't get merged, - only a small amount of efforts wasted on trying to keep changes - merge-friendly. - -
    • 3. I start an svn repo and implement the stuff the best I can - without - considering any merging aspects. This is the option that'd grant - the most development speed and efficiency. It doesn't get merged, - but no energy is wasted at all and the resulting code is better. -
    -There are some other options, but those are just variants of the above three. -Currently I think option 1 is unlikely to work, for I don't touch git, -and noone wants to touch scheme. Both 2 or 3 could work, but the total lack -of gschem maintainer feedback doesn't make option 2 look too good. - Index: trunk/doc-rnd/devlog/20150830b_back_ann.html =================================================================== --- trunk/doc-rnd/devlog/20150830b_back_ann.html (revision 5606) +++ trunk/doc-rnd/devlog/20150830b_back_ann.html (nonexistent) @@ -1,304 +0,0 @@ - - -

    pcb-rnd devlog

    - -

    back annotation

    - -

    netlists, annotations

    - -Pcb-rnd (and mainline pcb) maintains a netlist as part of the design. Pcb -doesn't modify the netlist. The netlist is imported from an external source, -typically from gschem. This process is called forward annotation. -

    -Sometimes there are a set of connections which contain pin pairs that could -be swapped. For example the data lines of an external parallel SRAM interface -to an MCU: it doesn't matter if data bit 1 at the MCU is wired to data bit -1 or 5 of the SRAM, as there is an 1:1 mapping and no one else is using the -same bus wires. In this case connections should be swapped during pcb routing -and annotated back to gschem so that the schematics can be updated. Both -paths are illustrated below. -

    -annotation paths -

    -Forward annotation passes on complete netlists along arrows forward1 and -forward2. Back annotation would pass back netlists, changes or modification -requests on the back1, back2 path. Gnetlist takes sch files to extract -and build a netlist in whatever format the receiver needs. There should be a -glue layer, called foo on the drawing, that does the reverse: receives -whatever format the sender has and generates something that gschem will -understand. - -

    Support in pcb-rnd: core

    -Pcb-rnd gets a complete netlist. If the user could change the netlist directly, -there should be some sort of diff tool in foo that can explain the -changes to gschem, or a diff tool in gschem. What is worse, forward annotation -happens much more often than back annotation and pcb-rnd would need to be able -to merge a new netlist with local changes. The simple "gsch2pcb overwrites the -netlist in pcb from whatever gnetlist produced" approach would not work. -

    -An alternative is to keep the netlist as-is, and maintain a separate list of -changes. The form proposed hereby is a table of "operation,pinID,net" or -"operation,args...". Netlist operation is one of "del_conn", "add_conn" and "net_info". The table is called the netlist patch. -

    -For example assume two components with pins A1, A2 and B1, B2, with connections -n1=A1-B1 and n2=A2-B2. While routing the designer decides changing them to -n1=A1-B2 and n2=A2-B1 would be easier and is acceptable by the design. The -table of changes would contain this: - -
    op pinID net -
    del_conn B1 n1 -
    del_conn B2 n2 -
    add_conn B2 n1 -
    add_conn B1 n2 -
    -The first two lines would remove pins B1 and B2 from n1 and n2. The last -two would put them back, swapped. New nets could be created or unused nets -could be removed using the add_net and del_net commands that have empty pinID. -The table is ordered, rows are strictly executed from top to bottom. -

    -Pcb-rnd would store this table in memory. When some code calls the netlist -code to find out the members of a net, or which net a given pin is connected to, -after running the original netlist code, the result would be adjusted by the table. -

    -The table would be normalized after operations. For example: - -
    op pinID net -
    del_conn B1 n1 -
    add_conn B1 n2 -
    add_conn B1 n3 -
    del_conn B1 n2 -
    -would be reduced to - -
    op pinID net -
    del_conn B1 n1 -
    add_conn B1 n3 -
    -Simple linear crawls on the table seems sufficient: it is expected that -pcb designers will make netlist modifications rarely and they will back -annotate them ASAP. In extreme cases there may be 64 bit wide bus systems that -need total reordering; even a 4 such reorders will introduce about 1024 items -on the list which seems not too big for O(1) algorithms. See section TODO -for better approaches. -

    -Pcb-rnd would save the normalized table in the pcb file in a new section. -Upon a netlist change in pcb (import/load netlist or load the pcb), pcb-rnd -would check each row of the table: it is easy to decide whether that row -has been implemented in the netlist or not. Obsolete rows of the table would -be deleted. -

    -A corner case is when B1 is removed from n1 and then added to n2 by the table, -while a new forward annotation removes B1 from n1 and adds it to n3. In this -case the first row of the table is deleted, as B1 is already removed from n1, -but pcb-rnd has no chance to decide if netlist adding B1 to n3 should affect -the table adding B1 to n2, so that rule is kept. -

    -net_info is used to describe the original members of a net, in -the state they were before any change on the netlist occured. - -

    Support in pcb-rnd: GUI

    -A trivial idea is to extend the netlist window so that pins can be moved in -between nets or deleted or assigned to nets. Changes should be marked. This -is not the preferred way of editing the netlist, tho: not much more convenient -than making changes in gschem and doing forward annotation. -

    -There should be a separate dialog box or a separate region of the netlist box -showing the netlist patch with edit capabilities. -

    -Finally, the most important feature would be new actions resolving shorts. -Using the above example (n1=A1-B1 and n2=A2-B2 changed to n1=A1-B2 and n2=A2-B1), -I believe the user would: - -
    action screenshot patch list after the actions -
    • look at initial rats
    (empty) -
    • first connect A1 to B1
    (empty) - -
      -
    • then realize it's very hard to connect A2 to B2 while the previous connection is there -
    • he would then revert the first connection -
    • and connect A1 to B2 -
    • which would cause shorts -
    - (empty) - -
      -
    • then he would use the "approve netlist change" hotkey/action on the network; - this would add netlist patch commands for the A1-B2 connection, - but would also keep the A1-B1 connection, which remains a rat; because - of the new connection there'd be a rat between A1 and A2 or B1 and B2 too - (all 4 pins connected together on the patched netlist at the moment!) -
    - -
    -net_info n1 A1 B1
    -net_info n2 A2 B2
    -del_conn B1 n1
    -add_conn B1 n2
    -
    - -
      -
    • the user would then use an action (maybe the same one?) on the rat line - so that pcb-rnd would understand that rat is not needed anymore and - would add a patch to remove the A1-B1 connection -
    • the same thing would need to happen to the A2-B2 rat -
    - -
    -net_info n1 A1 B1
    -net_info n2 A2 B2
    -del_conn B1 n1
    -add_conn B1 n2
    -del_conn B2 n2
    -
    - - -
    • the user then would connect A2 to B1, which again is a short
    -
      -
    • the user would approve it as a new connection -
    • we have exactly 2 del_conn and 2 add_conn patches. -
    - -
    -net_info n1 A1 B1
    -net_info n2 A2 B2
    -del_conn B1 n1
    -add_conn B1 n2
    -del_conn B2 n2
    -add_conn B2 n1
    -
    - -
    -An experienced user may think a few steps in advance and -chose to first remove the A1-B1 and A2-B2 rats and then create the A1-B2 -and A2-B1 connections and then approve the two new connections. -

    -An alternative is drag&drop ratline endpoint onto snap points; it may -be tricky to convert that to net/pin relations if a rat line is between two -line segments, tho. -

    -These changes would live immediately, leaving the board free of shorts and -rats. There should be, however, some warning in the "congratulation" message -that tells the user a back annotation is still required. - -

    Support in gschem

    -Ideally there should be a very small change in gschem and an optional -plugin script could do the rest. The plugin script would be in contant -with foo. -

    -There are multiple ways pins can be connected to a net in gschem. It's -probably not a good idea to have too much automatism in the gschem's side, -trying to actually removing connections and adding new ones using the patch -(or whatever info foo converted the patch into). -

    -However, gschem should support four things natively: -

      -
    • it should have a concept of an unwanted pin-network connection; a connection - becomes unwanted only when the back annotation says so -
    • it should be able to mark unwanted connections on the active schematic page -
    • it should be able to tell the user if there are unwanted connections on - any of the pages open -
    • it should be able to refresh its idea of unwanted connections while - schematic pages are open -
    -

    -Displaying unwanted connections happen at: -

      -
    • a pin of a component is connected to a net using a "blue line" net: mark the pin-net connection point -
    • a pin is directly connected to another pin, no net line in between: mark the connection point -
    • a pin is connected to a net using a pin attribute: mark the pin -
    • TODO: are there more? -
    -

    -TODO: there are a lot to think over about special cases related to -multipage schematics, hierarchies, slots, split symbols. - -

    What foo does exactly

    -... is not clear yet. It depends on what sort of support gschem would provide. - -

    Amendment 1: other parameters (1st sep)

    -I originally forgot to mention my other intentions in the above document: -back annotate non-netlist properites. It probably happened because netlist -related stuff are the hardest to solve. -

    -There are other parameters that sometimes change during routing. A common case -for my 1 or 2 layer boards is when I originally intend to use 0603 parts but -during routing I figure I need to pass a trace between the pads. I need to -change the part to 0805 or 1206 (for two traces). I'd like to be able to -do this in-place in pcb with an action that replaces the footprint -but keeps the origin in place. This obviously still requires some manual -fiddling afterwards, but would remove the long, tedious chain I have now: -

      -
    • 1. remember or note down which parts to change footprints for -
    • 2. go back to gschem and change them -
    • 3. get the changes in pcb (I use gsch2pcb and Makefiles, one step; the import menu is one step too, just another one) -
    • 4. disperse the new elements -
    • 5. find where they used to be -
    • 6. and then do the fiddling to fit them in -
    -

    -The new process would be: -

      -
    • 1. get the footprint replaced, in-place; this would already approve the - change and there'd be a command for it in the patch table -
    • 2. do the fiddling to fit the new part in -
    • 3. do a back annotation -
    • (4. optionally, if we go for non-automatic change of attributes in gschem, - change them manually in gschem, cycling through the affected - items using some UI feature) -
    -

    -The same thing could work for values, which is the other attribute PCB also -sees. The same mechanism could work from other programs as well, e.g. tuning -the values of some parts in a simulator and then back annotating the changes -to the schematics. The patch table format foo handles would be in the -simplest plain text form. - - -

    Amendment 2: examples from gschem's point of view (3rd Sep)

    -

    netlist change

    -
      -
    • The user creates the schematics and imports it in pcb; the original - netlist contains a line "netname1 U1-1 CONN1-2" -
    • The user, as part of some pin swapping, decides that U1-1 should be - connected to net "netname2" instead of "netname1". Changes are - done in pcb-rnd as described above. -
    • The netlist patch generated for this single change by pcb-rnd would be: -
      -del_conn netname1 U1-1
      -add_conn netname2 U1-1
      -	
      -
    • the user may need to load the netlist patch in ghscem -
    • In gschem there would be an indication that highlights any U1-1 pin or - U1 symbol that makes a connection to netname 1, graphically or using - attributes. When asked, gschem UI would also tell the user that U1-1 is - now connected to netname1 but should be connected to netname2 instead. -
    • The user would find this indication and would resolve the situation - by whatever changes he finds appropriate -
    • gschem would rerun the patch commands and would figure that the del_conn - fails to run because U1-1 is no longer connected to netname1 and the add_conn - fails too because U1-1 is connected to netname2. This leaves U1-1 without - any known issue, so the indication on U1-1 would be gone. -
    - -

    attribute change: footprint change

    -
      -
    • The user creates the schematics and imports it in pcb; originally - U1 has an attribute footprint=DIP(8). -
    • during the layout the user figures using the footpritn SO(8) is - more appropriate. He does the change in pcb-rnd. -
    • pcb-rnd emits the following netlist patch for this: -
      -change_attrib U1 footprint=DIP(8) footprint=SO(8)
      -	
      -

      - (or it could be a del_attrib and add_attrib pair, like with connections) -

    • the user may need to load the netlist patch in ghscem -
    • In gschem there would be an indication that highlights any U1 instances - that has footprint=DIP(8) -
    • The user would find this indication and would resolve the situation - by whatever changes he finds appropriate (e.g. change the attribute) -
    • gschem would rerun the patch commands and would figure the change is - no longer requred and would remove the indication -
    - Index: trunk/doc-rnd/devlog/20150801a_events.html =================================================================== --- trunk/doc-rnd/devlog/20150801a_events.html (revision 5606) +++ trunk/doc-rnd/devlog/20150801a_events.html (nonexistent) @@ -1,22 +0,0 @@ - - -

    pcb-rnd devlog

    -

    events

    -PCB has a nice action infrastructure: most user actions are -implemented in smallish functions taking (int argc, char *argv[]). Menu -items, hotkeys, the command line and batch processing just call these -actions. This is the user->pcb_core direction of commands. -

    -Before adding scripting to pcb-rnd, the other direction (pcb_core->user) has -to be implemented: an event infrastructure. Random parts of the core -or the HID code will yield events using a simple vararg event() function. -Other parts of PCB, especially plugins, can bind (sign up to) events with -function pointers. When an event is triggered, all functions signed up to -the event are called (in random order). -

    -Passing arguments to events is similar to the arguments of actions, except -argv[] is not a char *[], but an event_arg_t *[]. event_arg_t has an enum -field for argument type and an union for the argument value. This means the -API is binary: integers are passed as integers, not as strings. - - Index: trunk/doc-rnd/devlog/20160921_gl.html =================================================================== --- trunk/doc-rnd/devlog/20160921_gl.html (revision 5606) +++ trunk/doc-rnd/devlog/20160921_gl.html (nonexistent) @@ -1,56 +0,0 @@ - - -

    pcb-rnd devlog

    - -

    what's missing for: opengl

    -

    -What we don't have: -

      -
    • rendering with opengl -
    • utilizing the 2d or 3d hardware acceleration of the GPU in drawing -
    • transparent copper layers -
    • on some CPU+GPU combination the current software rendering is slower than mainline's opengl rendering -
    -

    -Why we don't have it: -

      -
    • I don't have a hardware+driver combination where opengl rendering works at acceptable speed -
    • I have no experience with opengl programming -
    • I am not much interested in changing any of the above two -
    -

    -What's needed: -

      -
    • 1. split the gtk hid into: -
        -
      • a generic gtk UI feature plugin (menu, widgets, controls, no drawing) -
      • a gtk-gdk (software render) HID plugin that depends on the gtk feature plugin -
      • an gtk-opengl HID plugin that depends on the gtk feature plugin and on the opengl utility plugin -
      -
    • 2. get scconfig to detect opengl headers/libs -
    • 3. resurrect the opengl utility plugin -
    • 4. resurrect the opengl drawing code -
    -

    -How we could have it, gtk+gl: -

      -
    • A. contribute: I can do 1. and 2. so you need to concentrate only on the opengl part (3. and 4.); -
    • B. or donation/sponsoration: -
        -
      • buy the time of a random developer for point 3. and 4.; I can still do 1. and 2. in free time, scheduled with the other pcb-rnd duties -
      • buy my time so I don't need to sit in my regular job but have a few days off to do all four points -
      -
    -

    -How we could have it, long term: -

      -
    • I plan to write an SDL2 based HID -
    • SDL2 has transparent render support for both software and accelerated drawing, the latter probably means 2d hardware acceleration which is probably as good as direct opengl drawing would be -
    -

    -What we can't do: -

      -
    • make transparent layers with the current gtk/gdk software render (too much effort) -
    • make transparent layers with lesstif (too much effort) -
    • speed up the software render -
    Index: trunk/doc-rnd/devlog/res/20150830b_s6.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/devlog/res/20150830b_s6.png =================================================================== --- trunk/doc-rnd/devlog/res/20150830b_s6.png (revision 5606) +++ trunk/doc-rnd/devlog/res/20150830b_s6.png (nonexistent) Property changes on: trunk/doc-rnd/devlog/res/20150830b_s6.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/devlog/res/20150830b_annot.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/devlog/res/20150830b_annot.png =================================================================== --- trunk/doc-rnd/devlog/res/20150830b_annot.png (revision 5606) +++ trunk/doc-rnd/devlog/res/20150830b_annot.png (nonexistent) Property changes on: trunk/doc-rnd/devlog/res/20150830b_annot.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/devlog/res/20150830b_annot.dot =================================================================== --- trunk/doc-rnd/devlog/res/20150830b_annot.dot (revision 5606) +++ trunk/doc-rnd/devlog/res/20150830b_annot.dot (nonexistent) @@ -1,19 +0,0 @@ -digraph annot { - - - gnetlist [shape=box] - - {rank=same pcb gschem spacer1} - - spacer1 [style=invisible] - - foo [shape=box] - - gschem -> gnetlist [label="forward1"] - pcb -> foo [label="back1"] - - gschem->spacer1->pcb [style=invisible arrowhead=none] - - gnetlist -> pcb [label="forward2"] - foo -> gschem [label="back2"] -} Index: trunk/doc-rnd/devlog/res/20150830b_s0.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/devlog/res/20150830b_s0.png =================================================================== --- trunk/doc-rnd/devlog/res/20150830b_s0.png (revision 5606) +++ trunk/doc-rnd/devlog/res/20150830b_s0.png (nonexistent) Property changes on: trunk/doc-rnd/devlog/res/20150830b_s0.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/devlog/res/20150830b_s1.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/devlog/res/20150830b_s1.png =================================================================== --- trunk/doc-rnd/devlog/res/20150830b_s1.png (revision 5606) +++ trunk/doc-rnd/devlog/res/20150830b_s1.png (nonexistent) Property changes on: trunk/doc-rnd/devlog/res/20150830b_s1.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/devlog/res/20150830b_s2.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/devlog/res/20150830b_s2.png =================================================================== --- trunk/doc-rnd/devlog/res/20150830b_s2.png (revision 5606) +++ trunk/doc-rnd/devlog/res/20150830b_s2.png (nonexistent) Property changes on: trunk/doc-rnd/devlog/res/20150830b_s2.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/devlog/res/20150830b_s3.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/devlog/res/20150830b_s3.png =================================================================== --- trunk/doc-rnd/devlog/res/20150830b_s3.png (revision 5606) +++ trunk/doc-rnd/devlog/res/20150830b_s3.png (nonexistent) Property changes on: trunk/doc-rnd/devlog/res/20150830b_s3.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/devlog/res/20150830b_s4.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/devlog/res/20150830b_s4.png =================================================================== --- trunk/doc-rnd/devlog/res/20150830b_s4.png (revision 5606) +++ trunk/doc-rnd/devlog/res/20150830b_s4.png (nonexistent) Property changes on: trunk/doc-rnd/devlog/res/20150830b_s4.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/devlog/res/Makefile =================================================================== --- trunk/doc-rnd/devlog/res/Makefile (revision 5606) +++ trunk/doc-rnd/devlog/res/Makefile (nonexistent) @@ -1,4 +0,0 @@ -all: 20150830b_annot.png - -%.png: %.dot - dot -Tpng < $^ > $@ Index: trunk/doc-rnd/devlog/res/20150830b_s5.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/devlog/res/20150830b_s5.png =================================================================== --- trunk/doc-rnd/devlog/res/20150830b_s5.png (revision 5606) +++ trunk/doc-rnd/devlog/res/20150830b_s5.png (nonexistent) Property changes on: trunk/doc-rnd/devlog/res/20150830b_s5.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/devlog/20150731a_menu.html =================================================================== --- trunk/doc-rnd/devlog/20150731a_menu.html (revision 5606) +++ trunk/doc-rnd/devlog/20150731a_menu.html (nonexistent) @@ -1,59 +0,0 @@ - - -

    pcb-rnd devlog

    -

    Dynamic menus

    -

    Background

    -Before integrating gpmi scripting, pcb-rnd needs to be prepared to -interface with the scripts. The engine is pretty much ready since ages: -the action interface is ideal for scripts to register their actions or -execute existing actions. This also means the command line and batch -UI are instantly connected with scripts. -

    -The only largely visible remaining portion is the GUI. pcb-gpmi supports -building dialog boxes using the current HID (so called attribute dialogs, -originally invented for exporter settings) and calling some simpler predefined -dialogs like a progress bar or alert. -

    -What's really missing is a way to create new menus on the fly. The user -loads a script and the script makes up a menu with submenus, all bound to -the proper actions. -

    -This introduces a nice dilemma, tho: there is a real cool menu configuration -file that makes the user able to reconfigure the menu system, hot keys, tool -tips and whatnot (I wish more applications had this feature!). What if a script -comes in and trolls the whole thing creating random menus at surprising -places in the menu system? How the user can control what the script could do -with his preciously crafted menu setup tailored to his own preferences? -

    -I believe in sharp tools and careful users. I indeed plan to allow scripts to -do whatever they want with the menu system but I invent some conventions too. -As long as scripts stick to these conventions, the user retain control over -the menu layout. - -

    How it works

    - -PCB reads *menu.res and builds the gui on startup; the menu system is -static after that point. pcb-rnd does the same on startup but also -stores all menus (referenced by their paths, like "/File/Save as") in a -hash table. Later on a call to a new hid function (create_menu()) can -create new menus or submenus, extending the menu tree at any point. -

    -When a new menu "/File/foo" is created, using the hash create_menu() -finds out that /File already exists and doesn't create it but use the -existing widget from the hash. This means if the user creates menus from -the res file that are also created by the script, the res file sort of -overrides the script's later actions as all those menus will already exist -by the time the script tries to create them. -

    -And here comes the conventions part: -

      -
    • there will be a new menu, called "/Plugins" -
    • each plugin should have its own submenu there (gpmi for scripting: "/Plugins/GPMI scripting") -
    • each script is just a child of the gpmi plugin so it should have its submenus under "Plugins/GPMI scripting/scriptname" -
    - -As long as plugins and scripts stick to this convention, the user can -create all the menus for all the plugins and scripts in advance. Stock -menu res files will have the /Plugin menu at least, so its place is fixed. - - Index: trunk/doc-rnd/devlog/20160808_model.html =================================================================== --- trunk/doc-rnd/devlog/20160808_model.html (revision 5606) +++ trunk/doc-rnd/devlog/20160808_model.html (nonexistent) @@ -1,101 +0,0 @@ - - -

    pcb-rnd devlog

    - -

    How to represent the world in pcb-rnd

    - -

    Proper implementation

    - -<daydreaming> -

    -In a proper model there's no element/footprint. There are a few simple -primitives and there are groups, like the ones in svg: groups contain -metadata, primitives and groups. -

    -An element is just a group. The whole design may contain groups of groups -of groups. A stereo amplifier may be a group for a PSU and two instances -of a single-channel amp group that match square-unit to square-unit. -

    -What makes up an element now is a refdes, its pins/pads we can identify -(for the netlist-related things) and the feature that you can drag the -whole thing as one. A group could do all these as well: refdes is just -metadata, silk lines are just primitives, pins/pads are just small groups -of primitives and metadata. -

    -There could be "group types" and type-specific code handling them. In such -a setup you probably don't need to have a text object: just a group that -consists of mostly lines (or polygons) and some metadata (the string -version of the text); the group type would assigns the text-handling code -with to the group. So for the rest of the code, text is not a special -thing, not a bounding box, but just a set of primitives. When you edit it, -you can edit it either line-by-line or as text with the assigned code. -

    -This would allow us to have a very small amount of primitives: line, arc, -poly, hole (without a ring - a via is just a group of a few primitives). -Each primitive would have a layer-span field; this would solve the -blind/buried via question for good. (In theory line and arc could be one -thing, spline oslt, but I don't think performance penalty is worth that.) -

    -However, this means a total rewrite as almost every non-trivial piece of -the code depends on the object model, from find/search/drc to the whole -polygon code, just to name two huge ones. The file format thing is the -smallest of this all. The only major parts I think we could keep are the -GUI and the new conf system. At the current rate of development this would -take more than a year to have a mostly working version and probably yet -another year to get everything tested out and reach current level of -service again. -

    -I am not against such a rewrite, but it would really need a very strong -user/tester backing and maybe more developers than the current amount. -

    -Also, Imagine we'd have a pcb program you couldn't trust on -anything: e.g. losing your data, generating broken gerber, etc. for a very -long time... -

    -So I generally agree that we should do this, but for practical reasons I -am a bit skeptic whether this would work out in the current situation. -It'd kill any cschem plans for years, and because of the long development -cycle it would most probably kill pcb-rnd too. -

    -</daydreaming> - -

    Improper implementation

    - -However, I see an alternative that is not as good as the real thing, but -might be good enough that users don't see much difference. It's -possible to implement it step by step, without long years of "nothing -works as used to" phases. The alternative is: -

    -

      -
    • 1. Add io_lihata, first as a second native file format option, but long -term as the primary file format; it's because we can't really extend the -code without breaking compatibility with mainline on the .pcb format. In -other words, we either _pretend_ we are compatible, but using any new -feature would break compatibility (current state) or we admit that new -features are implemented only in the lihata syntax and when you save to -.pcb it's like saving png from gimp, losing some extra layer info. This -step will happen either way, for other reasons. - -
    • 2. rearrange some internals; the core is currently split per operation -(e.g. there's create.c for creating all sort of objects and remove.c -for removing them). The new setup should be per object type (e.g. arc.c -that knows how to create or remove arcs). - -
    • 3. Once lihata is in place, we can extend/rewrite some parts. An option -is to rewrite footprint support to allow them to be sort of a small pcb -design. So objects on arbitrary layers, footprint-in-footprint, etc. - -
    • 4. When 3. is done, we could extend element handling so that pcb-rnd knows -which element is there for why. So you could have some real elements, with -refdes, part of the netlist, etc, but you could also do a panelization as -a matrix of full pcb designs place like if they were elements. -
    -

    -This 3.,4. would not be the same as building up everything from generic -atoms, but would be close to it and would be much simpler to implement -(still a big one, tho). I believe in practice, for end users, it would -probably be 99% the same as the proper solution. -

    -I believe 3.,4. would be more or less the pcb-rnd equivalent of gschem's -implementation of schematics and symbols with about the same level of -generalism. Not perfect, but maybe good enough. Index: trunk/doc-rnd/devlog/20150820b_qf.html =================================================================== --- trunk/doc-rnd/devlog/20150820b_qf.html (revision 5606) +++ trunk/doc-rnd/devlog/20150820b_qf.html (nonexistent) @@ -1,27 +0,0 @@ - - -

    pcb-rnd devlog

    -

    qf()

    -The next group of footprints I decided to generate are qfn(), tqfp(), lqfp(). -The generic set of rules for these footprints is: -
      -
    • there is a virtual rectangle that forms rows of pads -
    • pads are evenly spaced among the edges of that rectangle -
    • pin numbering is counter-clockwise -
    • the body of the part may be inside of the rectangle or may extend over the pads -
    - -

    low level flexibility vs. high level comfort

    -qf() currently has 14 arguments. It is flexible enough to generate qfn, tqfp, -lqfp, and anything similar I've seen in the package datasheet of a major -vendor. However, it is not straight forward to convert datasheet tables -into qf() parameters. -

    -On the other hand, in practice we need qfn() and tqfp(), which are special -cases of qf(). To nail the common use cases, qfn() and tqfp() narrows down -the number of parameters to 3..4. Even better, these parameters are exactly -those that are in the name of a typical QFN or TQFP footprint or in the first -few lines of the dimensions table. I call these scripts frontends to qf(). -

    -This makes the common footprints very easy to produce using frontends while -leaves a (bit more complicated) plan B, qf(), for special cases. Index: trunk/doc-rnd/devlog/20150820a_dimensions.html =================================================================== --- trunk/doc-rnd/devlog/20150820a_dimensions.html (revision 5606) +++ trunk/doc-rnd/devlog/20150820a_dimensions.html (nonexistent) @@ -1,24 +0,0 @@ - - -

    pcb-rnd devlog

    -

    fp2anim dimensions

    -After attacking the qfn()/qfp() parametric footprint problem today, -I realized fp2anim lacked a very important feature: dimension lines. -The footprint being generated is to match the datasheet. Checking the match -requires visible dimensions. -

    -The new feature of fp2anim is to optionally display custom dimensions on -the preview. Generator scripts print #dimension comments in the footprint -file (not breaking the file format). The generator passes on a dimension -name along with the value. As a first attempt my conventions are: -

      -
    • add dimension lines for dimension type input parameters -
    • add dimension lines for calculated dimensions if they are likely to be informative and be included in the datasheet -
    - -

    fp2anim vector font

    -While working on the dimensions, I realized I had to switch to vector fonts: -the built-in pixel font of animator can not be rotated. The size of a vector -font text can be calculated, which also enables fp2anim to optionally place -semi-transparent bars behind the text to make it more visible on dark background -(like pads). Index: trunk/doc-rnd/devlog/20160826_virtusers.html =================================================================== --- trunk/doc-rnd/devlog/20160826_virtusers.html (revision 5606) +++ trunk/doc-rnd/devlog/20160826_virtusers.html (nonexistent) @@ -1,65 +0,0 @@ - - -

    pcb-rnd devlog

    - -

    Offer vs. pull (virtual users vs. active users)

    -Pcb-rnd has an pulled-by-users policy on deciding what features to implement. -Below I try to explain how we ended up using this policy. - -

    Past: offer, virtual users

    - -When I started pcb-rnd, although I published it, I didn't think anyone else -would use it. It was just about having mainline with different default -settings. -

    -Later on I added a few features, and pcb-rnd slowly became much more than -just different defaults. I felt other users may find the new features useful, -so I had put it on offer: advertised the repository. I thought users -would download and try the software. Judging from the feedback, they didn't. I -didn't mind, becuase I was working on features I needed, to get pcb-rnd do what -I wanted: I was my own target audience and anyone else trying pcb-rnd could -only be a side effect. Until when I ran out of features because it already -had everything I needed. -

    -The next step was to implement features for other users. Between summer -of 2015 and summer of 2016, I tried to be a bit more proactive: made -public polls to map what users needed and tried to focus implementing -those features. This did not bring too many users either. -

    -This was when I realized what was really happening: I was offering -features for virtual users, addressing my communication to the wide -auidence. Noone really felt it was for him. Even if he was complaining about -a missing feature in pcb and a few days later I announced the fix in pcb-rnd, it -was not specifically for him, but for the Greater Good. -

    -Virtual users nearly never became real users. My conclusion was that there -was no point in implementing features for virtual users as noone ever would -use those features. - -

    Present: pull, active users

    -Mid summer 2016, I switched strategy. Instead of polling the crowd, I picked -a few users with known feature requests and asked them if they were willing to -test pcb-rnd if I implemented their feature. More than half of them said yes -and many of them got hooked up. They all became productive, active members -of the pcb-rnd community. -

    -Learning from this experiece, the new strategy of pcb-rnd is as follows: -

      -
    • pull instead of offer: do not hope a new feature would attract users, - rather arrange active users who then pull the project with their - feature requests; -
    • do not invest too much time in anything that is not currently pulled - by actual, existing, active users; rather invest that time in fulfilling - the needs of already existing users -
    • reaching 100 users with an average of 0.1% activity will result in - 0 active useres whereas reaching only 10 users with 30% activity - will result in 3 active users; thus a small active communit around - pcb-rnd is more efficient than the much larger geda community; -
    • users really appreciate fast response on bugreports and feature requests. - Instead of trying to impress virtual users, rather keep already interested - users happy. -
    - - - - Index: trunk/doc-rnd/devlog/20162601/poll.csv =================================================================== --- trunk/doc-rnd/devlog/20162601/poll.csv (revision 5606) +++ trunk/doc-rnd/devlog/20162601/poll.csv (nonexistent) @@ -1,10 +0,0 @@ -0,50,yes,yes,no,no,no,1,2,Linux -10,40,no,n/a,no,yes,n/a,20,2,Linux -0,5,n/a,no,no,no,no,20,4,Linux -5,20,no,no,no,yes,no,5,20,Linux -0,0,n/a,n/a,no,no,no,10,0,Linux -0,80,yes,yes,no,no,no,15,0,Linux -50,80,no,no,no,yes,n/a,30,100,OSX -20,75,no,no,no,yes,yes,15,3,Linux -0,8,yes,yes,yes,yes,no,2,1,Linux -0,2,yes,yes,no,no,no,8,4,Linux Index: trunk/doc-rnd/devlog/20162601/poll.tsv =================================================================== --- trunk/doc-rnd/devlog/20162601/poll.tsv (revision 5606) +++ trunk/doc-rnd/devlog/20162601/poll.tsv (nonexistent) @@ -1,10 +0,0 @@ -0 50 yes yes no no no 1 2 Linux -10 40 no n/a no yes n/a 20 2 Linux -0 5 n/a no no no no 20 4 Linux -5 20 no no no yes no 5 20 Linux -0 0 n/a n/a no no no 10 0 Linux -0 80 yes yes no no no 15 0 Linux -50 80 no no no yes n/a 30 100 OSX -20 75 no no no yes yes 15 3 Linux -0 8 yes yes yes yes no 2 1 Linux -0 2 yes yes no no no 8 4 Linux Index: trunk/doc-rnd/devlog/20162601/header.csv =================================================================== --- trunk/doc-rnd/devlog/20162601/header.csv (revision 5606) +++ trunk/doc-rnd/devlog/20162601/header.csv (nonexistent) @@ -1 +0,0 @@ -1. How many of your boards REQUIRE burried or blind vias? [percentage],2. How many of your boards could BENEFIT burried or blind vias? [percentage],3. When your board REQUIRED them, do you more often find a workaround to stick with pcb instead of switching to another design tool? [yes/no],4. When your board could BENEFIT using them, do you more often find a workaround to stick with pcb instead of switching to another design tool? [yes/no],5. Have you ever tried pcb-rnd? [yes/no],6. Would you try pcb-rnd if it offered blind/burried vias? [yes/no],7. Would you consider switching to pcb-rnd if it offered blind/burried vias? [yes/no],8. Approximately how many boards have you done so far with pcb (pcb mainline/branches/forks included, using gschem/gnetlist not required)? "1 board done" means you had one or more physical copies of the board. [rough estimation, positive integer],9. Approximately how many boards have you done with other packages? [rough estimation, positive integer],10. What OS would you prefer to do your pcb layouts on (assuming your favorite layout tool is/would be available on it)? [one of: (GNU/)Linux, *BSD, OSX, windows, other; if you like more, select the one you would spend most time on!],, \ No newline at end of file Index: trunk/doc-rnd/devlog/20162601/header =================================================================== --- trunk/doc-rnd/devlog/20162601/header (revision 5606) +++ trunk/doc-rnd/devlog/20162601/header (nonexistent) @@ -1,11 +0,0 @@ -1. How many of your boards REQUIRE burried or blind vias? [percentage] -2. How many of your boards could BENEFIT burried or blind vias? [percentage] -3. When your board REQUIRED them, do you more often find a workaround to stick with pcb instead of switching to another design tool? [yes/no] -4. When your board could BENEFIT using them, do you more often find a workaround to stick with pcb instead of switching to another design tool? [yes/no] -5. Have you ever tried pcb-rnd? [yes/no] -6. Would you try pcb-rnd if it offered blind/burried vias? [yes/no] -7. Would you consider switching to pcb-rnd if it offered blind/burried vias? [yes/no] -8. Approximately how many boards have you done so far with pcb (pcb mainline/branches/forks included, using gschem/gnetlist not required)? "1 board done" means you had one or more physical copies of the board. [rough estimation, positive integer] -9. Approximately how many boards have you done with other packages? [rough estimation, positive integer] -10. What OS would you prefer to do your pcb layouts on (assuming your favorite layout tool is/would be available on it)? [one of: (GNU/)Linux, *BSD, OSX, windows, other; if you like more, select the one you would spend most time on!] - Index: trunk/doc-rnd/devlog/20162601/poll.html =================================================================== --- trunk/doc-rnd/devlog/20162601/poll.html (revision 5606) +++ trunk/doc-rnd/devlog/20162601/poll.html (nonexistent) @@ -1,24 +0,0 @@ - - -
    1. How many of your boards REQUIRE burried or blind vias? [percentage] -2. How many of your boards could BENEFIT burried or blind vias? [percentage] -3. When your board REQUIRED them, do you more often find a workaround to stick with pcb instead of switching to another design tool? [yes/no] -4. When your board could BENEFIT using them, do you more often find a workaround to stick with pcb instead of switching to another design tool? [yes/no] -5. Have you ever tried pcb-rnd? [yes/no] -6. Would you try pcb-rnd if it offered blind/burried vias? [yes/no] -7. Would you consider switching to pcb-rnd if it offered blind/burried vias? [yes/no] -8. Approximately how many boards have you done so far with pcb (pcb mainline/branches/forks included, using gschem/gnetlist not required)? "1 board done" means you had one or more physical copies of the board. [rough estimation, positive integer] -9. Approximately how many boards have you done with other packages? [rough estimation, positive integer] -10. What OS would you prefer to do your pcb layouts on (assuming your favorite layout tool is/would be available on it)? [one of: (GNU/)Linux, *BSD, OSX, windows, other; if you like more, select the one you would spend most time on!] - -
    050yesyesnonono12Linux -
    1040non/anoyesn/a202Linux -
    05n/anononono204Linux -
    520nononoyesno520Linux -
    00n/an/anonono100Linux -
    080yesyesnonono150Linux -
    5080nononoyesn/a30100OSX -
    2075nononoyesyes153Linux -
    08yesyesyesyesno21Linux -
    02yesyesnonono84Linux -
    Index: trunk/doc-rnd/devlog/20160313_unglib.html =================================================================== --- trunk/doc-rnd/devlog/20160313_unglib.html (revision 5606) +++ trunk/doc-rnd/devlog/20160313_unglib.html (nonexistent) @@ -1,49 +0,0 @@ - - -

    pcb-rnd devlog

    - -

    unglib: glib removal

    - -

    glib problems

    - -As mentioned in a previous post, glib is -sometimes dangerous. Even if it was not, it's still huge and contradicts -the UNIX philosophy: Do One Thing and Do It Well. Glib tries to do a lot -of things. I do not doubt it is trying to do each of these things well, but as -a combination it's pretty much impossible to Keep It Simple, Stupid. -While glib is modular in design, from the viewpoint of an application it is -not modular: it's highly unlikely that the application can replace a part -of glib while keeping the rest. -

    -The source of these problems is that glib is a "megalib" that tries to solve -a host of problems as a package. - -

    The solution

    - -The solution is to replace the megalib with -a set of independent minilibs. Each minilib: -
      -
    • tries to do one thing - e.g. linked lists, without coupling it with a custom memory allocator -
    • is simple - the API is so small that it's easy to learn it in minutes -
    • is small - so that if anything breaks it's very easy to find and fix the bug (when did you last debug internals of glib?) -
    • is replaceable - since they are independent, if one doesn't work up to expectations, it's real easy to replace it without affecting any other part; e.g. replacing linked lists without replacing hash tables -
    -

    -The minilibs are imported as svn externals in trunk/src_3rd. They are small -enough so that they can be distributed together with pcb sources. - -

    Current state

    - -The "unglib" patch is mostly done. All references of glib are removed -from the core and the lesstif hid. There are a three components that -still depend on glib, but they each can be disabled: -
      -
    • the GTK HID: because gtk is already coupled with glib, it doesn't make much sense to remove glib from the gtk HID code -
    • the toporouter plugin: the code is huge and will be potentially deprecated anyway (lack of developer resources/user interest) -
    • the puller: glib should be removed from the puller long term but the code is big and there's no much user need for it in pcb-rnd -
    -

    -This means pcb-rnd can be compiled with lesstif (or a compatible motif) -on a UNIX box without depending on glib. Together with the earlier effort -that removed autotools, it means a UNIX box without any "GNU infection" -should be able to compile and run pcb-rnd. Index: trunk/doc-rnd/devlog/20151028_glib.html =================================================================== --- trunk/doc-rnd/devlog/20151028_glib.html (revision 5606) +++ trunk/doc-rnd/devlog/20151028_glib.html (nonexistent) @@ -1,65 +0,0 @@ - - -

    pcb-rnd devlog

    - -

    why glib is a bad idea

    - -Levente tried to compile pcb-rnd on bsd and used a different c compiler -than gcc. For this in the first step I fixed the build system so that it -doesn't have gcc --std=gnu99 but gcc --std=c99. -

    -And then everything broke. A minilib I use for hashing, -genht, failed to -link against hid/common/action.c. I first thought it was a bug in genht: -genht was compiled without --std while the rest of the code compiled with ---std=gnu99 or --std=c99. Genht heavily depends on static inline -functions for performance, maybe that's why. -

    -So I tried to reproduce the situation in a hello-world like program and -tried all combinaton of --std, -DNDEBUG, -rdynamic and all build flags -used in pcb-rnd for the genht lib and the test program, but all combination -worked. It looked like it broke only in pcb-rnd. -

    -I gave up on the minimal test case and went back to pcb-rnd. I realized if -the build is the same, the only way it may break is that some header -included before genht's headers change some global state. I started to -shuffle the #includes. Long story short, it turned out if <glib.h> is -included before genht's headers, it breaks. -

    -Some more tracing showed it was because glib over-#defines the keyword -inline in a public header that gets included from glib.h. It's all wrapped -in a complicated tree of #ifdefs, so it behaves differently depending on -the --std setting. -

    -The morale of the story is... Well, I have multiple conclusions. -

      -
    • glib is not a lib that tries to solve something, it is a prorgamming -environment that tries to supersede C. - -
    • As such, it feels free to mess with the environment, redefine C -keywords as it sees fit, because once you use glib, why would you use -anything else? And once you use glib, you are programming in glib, not in -"plain C". - -
    • Grepping through the pcb-rnd code, I see that pcb-rnd does not try to -use glib as a programming environment, but needs only 2 and a half -features: hash, list and rarely dynamic strings. Any other glib call is -just a must that had to be done that way to get hashes and lists working. - -
    • genht is 510 sloc. I have a generic list implementation (which, by the -way, is more efficient than glib's) It costs 256 sloc. So having -type-independent hashes and lists in C89 costs less than 800 lines of code -if you pick the right libs. Glib's include/ alone is over 24000 sloc! -And in return glib breaks inline... -
    - -

    -In a nuthsell this is why I don't believe in glib-like solve-all megalibs. I -don't say size alone determines this, but size is a good indication of -potential problems. -

    -If I need hash and lists and the offer is longer than 5k sloc, I know it -will bring a lot of unneeded bloat that likely to break things. - - - \ No newline at end of file Index: trunk/doc-rnd/devlog/20160126.html =================================================================== --- trunk/doc-rnd/devlog/20160126.html (revision 5606) +++ trunk/doc-rnd/devlog/20160126.html (nonexistent) @@ -1,59 +0,0 @@ - - -

    pcb-rnd devlog

    - -

    Burried/blind via poll

    - -

    Results

    - -I received 10 full answers to the poll - thanks everyone who -answered. This is a small sample, but this is the best I could get -(I can't reach more pcb users). -

    -Raw results are available in html, tsv and -csv format. - -

    My interpretation

    - -(User obviously means "those users who answered the poll") - -
      -
    • 1. only half of the users would consider even trying pcb-rnd for blind/burried vias -
    • 2. there was only one user who'd consider switching to pcb-rnd for blind-burried vias - this feature doesn't seem to be valuable enough to attract users (details below) -
    • 3. about half of the users need blind/burried via; when they do, they don't use pcb -
    • 4. 9 out of 10 users runs PCB on Linux -
    - -

    My conclusions

    -Because of 1. and 2., pcb-rnd doesn't seem to need blind/burried vias. The -purpose of question 7 was to find out whether users value this feature high -enough to actually consider investing time/effort in return, compared to -question 6. This pair of questions was designed to avoid noise that comes -from the fact that we, on the list tend to express our opinions in vast -crowds while only a few invest more time than talking and do actual work. -According to the result of line 7, my conclusion is that it's absolutely -not blind/burried vias that potential pcb-rnd users need. Thus -my decision is that I won't spend time on this feature in the near future. -

    -The situation for pcb might be different, tho. I worded the first 4 questions -to find out how strong the need is among the users of mainline pcb and whether -they are devoted to pcb or choose the tool according to the design requirements. -There seems to be a correlation between having to use blind/burried vias -and using other layout tools. Or in other words: those who are happy with pcb -usually don't need or want blind/burried vias anyway and those who do have -already switched to another tool. -

    -This suggests mainline pcb could benefit from burried/blind vias. However, -the demand is much lower than "every new design needs this" or "no new -user would consider pcb because of this missing feature". -

    -Linux: it seems pcb power users mostly use Linux. I am not sure if it's -because PCB works well on Linux and is a bit harder to compile on -anything else - or the other way around (Linux users are more attracted -to PCB). - - - - - - Index: trunk/doc-rnd/devlog/20160802.html =================================================================== --- trunk/doc-rnd/devlog/20160802.html (revision 5606) +++ trunk/doc-rnd/devlog/20160802.html (nonexistent) @@ -1,25 +0,0 @@ - - -

    pcb-rnd devlog

    - -

    Languages and libs

    - -Reflecting to (but not joining) the annual geda-user language/libs debate, -the policy of pcb-rnd (and later cschem) on this: -
      -
    • the core part of the code is in C - not in C++, C#, cobol, ada, haskell, etc. -
    • external dependencies are minimized, especially core shouldn't depend on too many external libs and tools (e.g. core shouldn't depend on glib) -
    • core doesn't know anything about [turing complete] scripting languages, user scripting is provided by a plugin -
    • the scripting plugin does not attempt to restrict the user to My Favorite Language - it rather supports 10+ different languages, from ruby through awk through python to lua; it even supports an older version of guile; all languages are options. -
    -The above set of rules is crafted so that compiling core functionality is easy -and excess external libs (gtk, glib) are needed only for optional features -(such as the gtk hid in pcb-rnd). However, it's equally important not to -restrict users in optional extras that may require more dependencies. This is -solved by minimizing core and moving functionality behind APIs in a plugin -system. -

    -This policy is very unlikely to change in the future - if you believe -the core should be rewritten in your favorite language, please fork the -project or start a new one. - Index: trunk/doc-rnd/devlog/20160409/pie_col_3.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/devlog/20160409/pie_col_3.png =================================================================== --- trunk/doc-rnd/devlog/20160409/pie_col_3.png (revision 5606) +++ trunk/doc-rnd/devlog/20160409/pie_col_3.png (nonexistent) Property changes on: trunk/doc-rnd/devlog/20160409/pie_col_3.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/devlog/20160409/poll.csv =================================================================== --- trunk/doc-rnd/devlog/20160409/poll.csv (revision 5606) +++ trunk/doc-rnd/devlog/20160409/poll.csv (nonexistent) @@ -1,9 +0,0 @@ -a,a,a,-,-,-,c -d,a,c,f,a,-,d -b,a,b,-,c,-,c -d,c,d,a+f,c,-,e -d,b,c,a+f,b,-,b -d,a,a,a,d,-,c --,a,c,-,a,-,- -c,a,b,f,a,-,c -c,a,c,-,a,-,- Index: trunk/doc-rnd/devlog/20160409/pie_col_4.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/devlog/20160409/pie_col_4.png =================================================================== --- trunk/doc-rnd/devlog/20160409/pie_col_4.png (revision 5606) +++ trunk/doc-rnd/devlog/20160409/pie_col_4.png (nonexistent) Property changes on: trunk/doc-rnd/devlog/20160409/pie_col_4.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/devlog/20160409/poll.tsv =================================================================== --- trunk/doc-rnd/devlog/20160409/poll.tsv (revision 5606) +++ trunk/doc-rnd/devlog/20160409/poll.tsv (nonexistent) @@ -1,9 +0,0 @@ -a a a - - - c -d a c f a - d -b a b - c - c -d c d a+f c - e -d b c a+f b - b -d a a a d - c -- a c - a - - -c a b f a - c -c a c - a - - Index: trunk/doc-rnd/devlog/20160409/pie_col_5.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/devlog/20160409/pie_col_5.png =================================================================== --- trunk/doc-rnd/devlog/20160409/pie_col_5.png (revision 5606) +++ trunk/doc-rnd/devlog/20160409/pie_col_5.png (nonexistent) Property changes on: trunk/doc-rnd/devlog/20160409/pie_col_5.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/devlog/20160409/header.csv =================================================================== --- trunk/doc-rnd/devlog/20160409/header.csv (revision 5606) +++ trunk/doc-rnd/devlog/20160409/header.csv (nonexistent) @@ -1 +0,0 @@ -1. Do you use the lesstif HID?,2. If there were different menu resources files distributed with PCB, would you try them?,3. Do you customize your menu resource file?,4. If you do not costumize your menu resource file, it's because,5. Do you miss multi-key sequences from the GTK hid?,6. If the GTK hid supported multi-key sequences, would that change any of your previous answers?,7. Vendor (drill) mapping also uses a resource file., \ No newline at end of file Index: trunk/doc-rnd/devlog/20160409/pie_col_7.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/devlog/20160409/pie_col_7.png =================================================================== --- trunk/doc-rnd/devlog/20160409/pie_col_7.png (revision 5606) +++ trunk/doc-rnd/devlog/20160409/pie_col_7.png (nonexistent) Property changes on: trunk/doc-rnd/devlog/20160409/pie_col_7.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/devlog/20160409/header =================================================================== --- trunk/doc-rnd/devlog/20160409/header (revision 5606) +++ trunk/doc-rnd/devlog/20160409/header (nonexistent) @@ -1,7 +0,0 @@ -1. Do you use the lesstif HID? -2. If there were different menu resources files distributed with PCB, would you try them? -3. Do you customize your menu resource file? -4. If you do not costumize your menu resource file, it's because -5. Do you miss multi-key sequences from the GTK hid? -6. If the GTK hid supported multi-key sequences, would that change any of your previous answers? -7. Vendor (drill) mapping also uses a resource file. Index: trunk/doc-rnd/devlog/20160409/poll.html =================================================================== --- trunk/doc-rnd/devlog/20160409/poll.html (revision 5606) +++ trunk/doc-rnd/devlog/20160409/poll.html (nonexistent) @@ -1,98 +0,0 @@ - - - -
    1. Do you use the lesstif HID? -2. If there were different menu resources files distributed with PCB, would you try them? -3. Do you customize your menu resource file? -4. If you do not costumize your menu resource file, it's because -5. Do you miss multi-key sequences from the GTK hid? -6. If the GTK hid supported multi-key sequences, would that change any of your previous answers? -7. Vendor (drill) mapping also uses a resource file. -
    aaa---c -
    dacfa-d -
    bab-c-c -
    dcda+fc-e -
    dbca+fb-b -
    daaad-c -
    -ac-a-- -
    cabfa-c -
    cac-a-- -
    - - - - -  - -
    -

    -

    Legend

    -
    -1. Do you use the lesstif HID? (select one)
    -a. yes, exclusively
    -b. yes, often
    -c. sometimes, rarely
    -d. never
    -
    -
    -2. If there were different menu resources files distributed with PCB, 
    -would you try them? (select one)
    -a. yes, I'd give each variant a try before deciding which one to use
    -b. no, I'm fine with the default
    -c. I don't know what a menu resource file is
    -
    -
    -3. Do you customize your menu resource file? (select one)
    -a. yes, always (e.g. I have an own variant I use with all installation of 
    -PCB)
    -b. yes, sometimes, rarely (e.g. I once had to do something repeatedly and 
    -added a key binding for that)
    -c. never, I know where I'd perform the changes if I ever needed 
    -them but defalts are good enough for now
    -d. never, I don't know what a menu resource file is
    -
    -
    -4. If you do not costumize your menu resource file, it's because (select 
    -zero or more):
    -a. I don't need to
    -b. the file is too long
    -c. too many keys are taken, it's hard to find a free one
    -d. I don't like the format of the file
    -e. I don't like the idea of editing text config files, I want a GUI for 
    -this
    -f. I don't want to diverge from the default settings (e.g. because of 
    -potetial hassle at a later upgrade)
    -
    -
    -5. Do you miss multi-key sequences from the GTK hid? (select one)
    -a. yes, I'd prefer to use them over modifiers (ctrl, alt, shift)
    -b. yes, I'd use them together with the modifiers
    -c. maybe I'd use some
    -d. no, I prefer modifiers
    -e. I hate the idea so much that I'd even disable it compile time if that 
    -was possible
    -f. N/A, don't know
    -
    -
    -6. If the GTK hid supported multi-key sequences, would that change any of 
    -your previous answers? (fill in zero or more with a letter)
    -a. my new choice for 2. would be:
    -b. my new choice for 3. would be:
    -
    -7. slightly off-topic: vendor (drill) mapping also uses a resource file. 
    -Do you use this feature? (select one)
    -a. yes, often, many of my boards rely on vendor mapping and I maintain 
    -my own resource files per vendor
    -b. yes, sometimes, rarely (e.g. I needed it once...)
    -c. no, I know how to use it but never needed it
    -d. no, I know the feature exists and I know where to look it up but I 
    -don't really know what exactly it can do or why I should bother
    -e. no, I never heard about this feature
    -
    -

    Downloads

    -
    $bn$code_size" - awk ' - /^#/ { - key=$1 - sub("#", "", key) - sub("[:=]", "", key) - $1="" - DB[key]=$0 - next - } - { desc = desc " " $0 } - - function strip(s) { - sub("^[ \t]*", "", s) - sub("[ \t]*$", "", s) - return s - } - - END { - st = DB["state"] - if (st ~ "partial") - clr = "bgcolor=\"yellow\"" - else if (st ~ "works") - clr = "bgcolor=\"lightgreen\"" - else if ((st ~ "fail") || (st ~ "disable")) - clr = "bgcolor=\"red\"" - else - clr="" - - clr2 = clr - if (clr2 != "") { - sub("bgcolor=\"", "", clr2) - sub("\"", "", clr2) - print "@color" >> "mods.pie" - print clr2 >> "mods.pie" - } - - print "" st - if (DB["lstate"] != "") - print "
    (" strip(DB["lstate"]) ")" - - dfl = DB["default"] - if (dfl ~ "buildin") - clr = "bgcolor=\"lightgreen\"" - else if (dfl ~ "plugin") - clr = "bgcolor=\"yellow\"" - else if ((dfl ~ "fail") || (dfl ~ "disable")) - clr = "bgcolor=\"red\"" - else - clr="" - - print "
    " dfl - if (DB["ldefault"] != "") - print "
    (" strip(DB["ldefault"]) ")" - print "
    " desc - } - ' < $n/README - fi -done -cat post.html -gen_pie "plugins" "$total" "#0088ff" >> after.pie -) > index.html - -for n in mods after -do - animpie < $n.pie | animator -H -d $n - pngtopnm ${n}0000.png | pnmcrop | pnmtopng > $n.png - rm ${n}0000.png -done - Property changes on: trunk/doc-rnd/mods2/gen.sh ___________________________________________________________________ Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: trunk/doc-rnd/mods2/after.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods2/after.png =================================================================== --- trunk/doc-rnd/mods2/after.png (revision 5606) +++ trunk/doc-rnd/mods2/after.png (nonexistent) Property changes on: trunk/doc-rnd/mods2/after.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods2/before.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods2/before.png =================================================================== --- trunk/doc-rnd/mods2/before.png (revision 5606) +++ trunk/doc-rnd/mods2/before.png (nonexistent) Property changes on: trunk/doc-rnd/mods2/before.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods2/mods.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods2/mods.png =================================================================== --- trunk/doc-rnd/mods2/mods.png (revision 5606) +++ trunk/doc-rnd/mods2/mods.png (nonexistent) Property changes on: trunk/doc-rnd/mods2/mods.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods2/post.html =================================================================== --- trunk/doc-rnd/mods2/post.html (revision 5606) +++ trunk/doc-rnd/mods2/post.html (nonexistent) @@ -1,3 +0,0 @@ -
    - - Index: trunk/doc-rnd/mods2/pre.html =================================================================== --- trunk/doc-rnd/mods2/pre.html (revision 5606) +++ trunk/doc-rnd/mods2/pre.html (nonexistent) @@ -1,60 +0,0 @@ - - -

    pcb-rnd modularization

    -

    Why bother...

    -I believe good software should be modular. This is especially important in -the context of large software, such as CAD applications. There should be -a thin core that can model the world and provide the basic operations defined -on it but anything else should go in separate modules. -

    -Fortunately PCB already had a strong infrastructure supporting this idea. -It has dynamic loadable plugins and the GUI and exporters are in separate -HID modules. While working on pcb-gpmi and later pcb-rnd, I added the -gpmi module as a separate plugin. -

    -In version 1.0.8 and 1.0.9 a cosiderable chunk of core code has been moved into -core plugins. A core plugin is just a plugin that is -maintained together with the core, in the same repository, still the code is -somewhat detached from the core. More importantly, the user can choose, for -each plugin, separately: -

    -

    -I believe such modularization has benefits on multiple levels: -

    - -

    Progress in charts

    -

    Before-after

    -All numbers are in SLOC -and are acquired running sloccount on the given directory. While lines of -code alone is not a true measure of complexity, it's a good estimation. The -slices of pie charts are the major components of the pcb-rnd executable. -
    - -
            -
    Before modularization: pcb-rnd version 1.0.7 -
    Note: gpmi was already a plugin -
    - After modularization: pcb-rnd version 1.0.9 -
    Note: gpmi is part of the "plugins" slice -
    -
    -

    Zooming on to the plugins

    -

    - -

    -(Red means the plugin doesn't really work). - -

    Progress in numbers

    -Below is a table with the summary of core plugins. - -
    module size [sloc] status configure
    default
    description - - Index: trunk/doc-rnd/mods2/index.html =================================================================== --- trunk/doc-rnd/mods2/index.html (revision 5606) +++ trunk/doc-rnd/mods2/index.html (nonexistent) @@ -1,159 +0,0 @@ - - -

    pcb-rnd modularization

    -

    Why bother...

    -I believe good software should be modular. This is especially important in -the context of large software, such as CAD applications. There should be -a thin core that can model the world and provide the basic operations defined -on it but anything else should go in separate modules. -

    -Fortunately PCB already had a strong infrastructure supporting this idea. -It has dynamic loadable plugins and the GUI and exporters are in separate -HID modules. While working on pcb-gpmi and later pcb-rnd, I added the -gpmi module as a separate plugin. -

    -In version 1.0.8 and 1.0.9 a cosiderable chunk of core code has been moved into -core plugins. A core plugin is just a plugin that is -maintained together with the core, in the same repository, still the code is -somewhat detached from the core. More importantly, the user can choose, for -each plugin, separately: -

      -
    • to compile it as a buildin (static-link it into the pcb executable) -
    • to compile it as a plugin (dynamic-link it runtime, if the .so is installed in the plugins/ directory) -
    • to disable the plugin, so it is not compiled at all -
    -

    -I believe such modularization has benefits on multiple levels: -

      -
    • it is possible to compiler smaller, potentially faster executables by omitting features the specific user would never use anyway -
    • in a distribution dynamic-link plugins can be distributed as separate packages providing the user with the option to decide what features to install -
    • such plugins have to have some sort of APIs if they want to reference eachother or if the code needs to reference them; such an API may not (and often did not) exist when the code is part of the core -
    - -

    Progress in charts

    -

    Before-after

    -All numbers are in SLOC -and are acquired running sloccount on the given directory. While lines of -code alone is not a true measure of complexity, it's a good estimation. The -slices of pie charts are the major components of the pcb-rnd executable. -
    - -
            -
    Before modularization: pcb-rnd version 1.0.7 -
    Note: gpmi was already a plugin -
    - After modularization: pcb-rnd version 1.0.9 -
    Note: gpmi is part of the "plugins" slice -
    -
    -

    Zooming on to the plugins

    -

    - -

    -(Red means the plugin doesn't really work). - -

    Progress in numbers

    -Below is a table with the summary of core plugins. - -
    module size [sloc] status configure
    default
    description - - -
    autoplace612 - works - buildin - Automatically place elements. -
    autoroute4337 - works - buildin - Automatically route selected or all rats. This is the original autorouter. -
    dbus438 - disabled -
    (TODO: needs scconfig support) -
    disabled - Remote control PCB using DBUS. -
    djopt2320 - works - buildin - Various board optimization algorithms. -
    export_bom374 - works - buildin - Export bom (Bill of Materials) -
    export_gcode2452 - works - buildin - Export to gcode -
    export_gerber972 - works - buildin - Export to gerber -
    export_lpr96 - works - buildin - Export to lpr (using export_ps to generate postscript) -
    export_nelma685 - works - buildin - Export to nelma (Numerical capacitance calculator) -
    export_png1107 - works - buildin - Export to png, gif and jpeg -
    export_ps1613 - works - buildin - Export postscript or embedded postscript. -
    fontmode163 - works - buildin - Font editing actions. -
    gpmi3003 - works - buildin -
    (if gpmi is installed) -
    Scriptable plugin system with about 10 scripting languages supported and dynamic load/unload of scripts that can manipulate the GUI, the board, can implement exporters, etc. -
    import_edif3578 - works - buildin - Import code for netlists in the EDIF format. -
    import_sch259 - works - buildin - Imports element and netlist data from the schematics (or some other source). -
    legacy_func72 - works - buildin - Random collection of old/obsolete (legacy) functions. 3rd party plugins may depend on them. This module implements C functions and variables and does not register actions or flags. -
    mincut886 - works - buildin - Use the minimal cut algorithm to indicate shorts: instead of highlighting two random pins/pads, try to highlight the least number of objects that connect the two networks. -
    oldactions57 - works - disabled - Random collection of old/obsolete actions. Bell(): audible feedback; DumpLibrary(): print footprint library on stdout -
    puller1884 - works - buildin - Pull traces to minimize their length. -
    renumber222 - works - buildin - Renumber elements (renaming them) and generate a text file for back annotation. -
    stroke124 - partially works (doesn't work with lesstif; works with the gtk hid, but there's no zoom bindings) - disabled -
    (requires libstroke installed) -
    Gesture recognition with libstroke. -
    toporouter6165 - fails -
    (infinite loop in gts) -
    disabled - Automatically route selected or all rats using a topological algorithm. This is the new autorouter from 2009. -
    vendordrill572 - works - buildin - Vendor drill mapping. -
    - - Index: trunk/doc-rnd/wishlist.txt =================================================================== --- trunk/doc-rnd/wishlist.txt (revision 5606) +++ trunk/doc-rnd/wishlist.txt (nonexistent) @@ -1,34 +0,0 @@ -Active user wishes: - W1: cschem [Chris] - W2: (BLOCKED: lihata testing) proper primitives [Chris] - W3: (BLOCKED: lihata testing) more generic footprints [Chris, Evan] - W4: user doc [Miloh] - W5: (BLOCKED: lihata testing) 3d modeller export [Miloh, Evan] - W7: (BLOCKED: lihata testing) programmable drc (star grounding) [James] - W8: (BLOCKED: need resources) gl support [Erich, Evan] - W9: push & shove [Erich, Evan] - -User wishes fulfilled: - W6: GUI access to object attributes: gtk editor, find/select by attrib [James] - -Plan (parallel threads of development): - - A. file format and model - Steps: - 1. (done) lihata persistency - 2. (done) native lihata file format - 3. (done) extend the file format - - everything should have an attribute hash -> W6 - - footprints should have optional attachments (e.g. 3d models) -> W5 - This helps us testing out the persistent-lihata idea that'd be - later used in chscem from the start -> W1 - This is also needed for more generic footprint implementation -> W3 - - B. visible attribute support - Steps: - 1. (done) GTK dialog box for attribute edition - 2. (done) search & select should work by attribute - 3. (done) extend the routing style system to auto-add attributes - (this needs A., the new file format) - Allows the user to manage properties like "50 ohm net" in attributes, - to group objects by property, and to select them by property. -> W6 Index: trunk/doc-rnd/mods3/gen.sh =================================================================== --- trunk/doc-rnd/mods3/gen.sh (revision 5606) +++ trunk/doc-rnd/mods3/gen.sh (nonexistent) @@ -1,152 +0,0 @@ -#!/bin/sh - -path=../../src_plugins - -sloc() -{ - (cd "$1" && sloccount .) | awk '/^Total Phys/ { size=$9; sub(",", "", size); print size }' -} - -gen_pie() -{ - local bn=$1 code_size=$2 color=$3 - echo "" - echo "@slice" - echo "$code_size" - echo "@label" - echo "$bn ($code_size)" - if test ! -z "$color" - then - echo "@color" - echo "$color" - fi -} - -rm -f *.pie *.lines - -echo "#autogenerated by gen.sh" > mods.pie -echo "#autogenerated by gen.sh" > after.pie - -echo Core >&2 -tmp=/tmp/pcb-mods-stat -mkdir $tmp -cp -r ../../src/*.c ../../src/*.h ../../src/Makefile* $tmp -code_size=`sloc $tmp` -gen_pie "core" $code_size "#00ff88" >> after.pie - -#echo 3rd >&2 -#code_size=`sloc ../../src_3rd` -#gen_pie "3rd" $code_size >> after.pie - -echo "" > classes - -( -cat pre.html -for n in $path/* -do - if test -d "$n" - then - echo $n >&2 - bn=`basename $n` - code_size=`sloc $n` - total=$(($total + $code_size)) - class=`sed ' - /^#implements:/ { - s/#implements: *// - s/[()]//g - p - } - { d } - ' < $n/README` - echo "$class" >> classes - - echo "$code_size" >> $class.lines - gen_pie $bn $code_size >> $class.pie - -# case $bn in -# gpmi) echo "@pull" >> mods.pie; echo "0.1" >> mods.pie;; -# esac - - echo "
    $bn$code_size" - awk ' - /^#/ { - key=$1 - sub("#", "", key) - sub("[:=]", "", key) - $1="" - DB[key]=$0 - next - } - { desc = desc " " $0 } - - function strip(s) { - sub("^[ \t]*", "", s) - sub("[ \t]*$", "", s) - return s - } - - END { - st = DB["state"] - if (st ~ "partial") - clr = "bgcolor=\"yellow\"" - else if (st ~ "works") - clr = "bgcolor=\"lightgreen\"" - else if ((st ~ "fail") || (st ~ "disable")) - clr = "bgcolor=\"red\"" - else - clr="" - - clr2 = clr - if (clr2 != "") { - sub("bgcolor=\"", "", clr2) - sub("\"", "", clr2) - print "@color" >> "mods.pie" - print clr2 >> "mods.pie" - } - - print "" st - if (DB["lstate"] != "") - print "
    (" strip(DB["lstate"]) ")" - - dfl = DB["default"] - if (dfl ~ "buildin") - clr = "bgcolor=\"lightgreen\"" - else if (dfl ~ "plugin") - clr = "bgcolor=\"yellow\"" - else if ((dfl ~ "fail") || (dfl ~ "disable")) - clr = "bgcolor=\"red\"" - else - clr="" - - print "
    " dfl - if (DB["ldefault"] != "") - print "
    (" strip(DB["ldefault"]) ")" - print "
    " DB["implements"] - print "" desc - } - ' < $n/README - fi -done -cat post.html -gen_pie "plugins" "$total" "#0088ff" >> after.pie -) > index.html - -for n in *.lines -do - lines=`awk '{ sum += $1 } END { print sum }' < $n` - bn=${n%%.lines} - gen_pie $bn $lines >> mods.pie -done - - -classes=`sort < classes | uniq` - -for n in $classes after mods -do - animpie < $n.pie | animator -H -d $n - pngtopnm ${n}0000.png | pnmcrop | pnmtopng > $n.png - rm ${n}0000.png -done - - -rm classes Property changes on: trunk/doc-rnd/mods3/gen.sh ___________________________________________________________________ Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: trunk/doc-rnd/mods3/export.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods3/export.png =================================================================== --- trunk/doc-rnd/mods3/export.png (revision 5606) +++ trunk/doc-rnd/mods3/export.png (nonexistent) Property changes on: trunk/doc-rnd/mods3/export.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods3/after.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods3/after.png =================================================================== --- trunk/doc-rnd/mods3/after.png (revision 5606) +++ trunk/doc-rnd/mods3/after.png (nonexistent) Property changes on: trunk/doc-rnd/mods3/after.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods3/before.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods3/before.png =================================================================== --- trunk/doc-rnd/mods3/before.png (revision 5606) +++ trunk/doc-rnd/mods3/before.png (nonexistent) Property changes on: trunk/doc-rnd/mods3/before.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods3/mods.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods3/mods.png =================================================================== --- trunk/doc-rnd/mods3/mods.png (revision 5606) +++ trunk/doc-rnd/mods3/mods.png (nonexistent) Property changes on: trunk/doc-rnd/mods3/mods.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods3/hid.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods3/hid.png =================================================================== --- trunk/doc-rnd/mods3/hid.png (revision 5606) +++ trunk/doc-rnd/mods3/hid.png (nonexistent) Property changes on: trunk/doc-rnd/mods3/hid.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods3/fp.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods3/fp.png =================================================================== --- trunk/doc-rnd/mods3/fp.png (revision 5606) +++ trunk/doc-rnd/mods3/fp.png (nonexistent) Property changes on: trunk/doc-rnd/mods3/fp.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods3/post.html =================================================================== --- trunk/doc-rnd/mods3/post.html (revision 5606) +++ trunk/doc-rnd/mods3/post.html (nonexistent) @@ -1,17 +0,0 @@ -
    - -

    Classes

    -Each plugin implements a class (rarely a set of classes). Classes are: - -
    name description -
    (feature) random features directly accessible for the user, usually actions -
    (lib) support code library for other plugins (core doesn't depend on these); functionality not directly accessible for the user but other plugins may depend on it -
    hid Human Interface Device: interactive user interface, usually GUI -
    import load alien formats into the design space -
    export save (parts of) the design space in alien formats -
    fp footprint (element) library implementation -
    io native file format (save & load) implementation -
    - - - Index: trunk/doc-rnd/mods3/pre.html =================================================================== --- trunk/doc-rnd/mods3/pre.html (revision 5606) +++ trunk/doc-rnd/mods3/pre.html (nonexistent) @@ -1,85 +0,0 @@ - - -

    pcb-rnd modularization

    -

    Why bother...

    -I believe good software should be modular. This is especially important in -the context of large software, such as CAD applications. There should be -a thin core that can model the world and provide the basic operations defined -on it but anything else should go in separate modules. -

    -Fortunately PCB already had a strong infrastructure supporting this idea. -It has dynamic loadable plugins and the GUI and exporters are in separate -HID modules. While working on pcb-gpmi and later pcb-rnd, I added the -gpmi module as a separate plugin. -

    -In version 1.0.8 to 1.1.0 a cosiderable chunk of core code has been moved into -core plugins. A core plugin is just a plugin that is -maintained together with the core, in the same repository, still the code is -somewhat detached from the core. More importantly, the user can choose, for -each plugin, separately: -

    -

    -I believe such modularization has benefits on multiple levels: -

    - -

    Progress in charts

    -

    Before-after

    -All numbers are in SLOC -and are acquired running sloccount on the given directory. While lines of -code alone is not a true measure of complexity, it's a good estimation. The -slices of pie charts are the major components of the pcb-rnd executable. -
    - -
            -
    Before modularization: pcb-rnd version 1.0.7 -
    Note: gpmi was already a plugin -
    - After modularization: pcb-rnd version 1.1.3 -
    Note: gpmi is part of the "plugins" slice -
    -
    -

    Zooming on to the plugins

    -

    - - - -
    total size per class
    -
    IO plugins
    -
    - - - - -
    feature plugins
    -
    export plugins
    -
    - - - -
    HID plugins
    -
    import plugins
    -
    - - - -
    library plugins
    -
    footprint plugins
    -
    - -

    -(Red means the plugin doesn't really work). - -

    Progress in numbers

    -Below is a table with the summary of core plugins. - -
    module size [sloc] status configure
    default
    class description - - Index: trunk/doc-rnd/mods3/lib.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods3/lib.png =================================================================== --- trunk/doc-rnd/mods3/lib.png (revision 5606) +++ trunk/doc-rnd/mods3/lib.png (nonexistent) Property changes on: trunk/doc-rnd/mods3/lib.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods3/index.html =================================================================== --- trunk/doc-rnd/mods3/index.html (revision 5606) +++ trunk/doc-rnd/mods3/index.html (nonexistent) @@ -1,428 +0,0 @@ - - -

    pcb-rnd modularization

    -

    Why bother...

    -I believe good software should be modular. This is especially important in -the context of large software, such as CAD applications. There should be -a thin core that can model the world and provide the basic operations defined -on it but anything else should go in separate modules. -

    -Fortunately PCB already had a strong infrastructure supporting this idea. -It has dynamic loadable plugins and the GUI and exporters are in separate -HID modules. While working on pcb-gpmi and later pcb-rnd, I added the -gpmi module as a separate plugin. -

    -In version 1.0.8 to 1.1.0 a cosiderable chunk of core code has been moved into -core plugins. A core plugin is just a plugin that is -maintained together with the core, in the same repository, still the code is -somewhat detached from the core. More importantly, the user can choose, for -each plugin, separately: -

      -
    • to compile it as a buildin (static-link it into the pcb executable) -
    • to compile it as a plugin (dynamic-link it runtime, if the .so is installed in the plugins/ directory) -
    • to disable the plugin, so it is not compiled at all -
    -

    -I believe such modularization has benefits on multiple levels: -

      -
    • it is possible to compiler smaller, potentially faster executables by omitting features the specific user would never use anyway -
    • in a distribution dynamic-link plugins can be distributed as separate packages providing the user with the option to decide what features to install -
    • such plugins have to have some sort of APIs if they want to reference eachother or if the code needs to reference them; such an API may not (and often did not) exist when the code is part of the core -
    - -

    Progress in charts

    -

    Before-after

    -All numbers are in SLOC -and are acquired running sloccount on the given directory. While lines of -code alone is not a true measure of complexity, it's a good estimation. The -slices of pie charts are the major components of the pcb-rnd executable. -
    - -
            -
    Before modularization: pcb-rnd version 1.0.7 -
    Note: gpmi was already a plugin -
    - After modularization: pcb-rnd version 1.1.3 -
    Note: gpmi is part of the "plugins" slice -
    -
    -

    Zooming on to the plugins

    -

    - - - -
    total size per class
    -
    IO plugins
    -
    - - - - -
    feature plugins
    -
    export plugins
    -
    - - - -
    HID plugins
    -
    import plugins
    -
    - - - -
    library plugins
    -
    footprint plugins
    -
    - -

    -(Red means the plugin doesn't really work). - -

    Progress in numbers

    -Below is a table with the summary of core plugins. - -
    module size [sloc] status configure
    default
    class description - - -
    autocrop157 - works - buildin - (feature) - Reduce the board dimensions to just enclose the elements. -
    autoplace617 - works - buildin - (feature) - Automatically place elements. -
    autoroute4341 - works - buildin - (feature) - Automatically route selected or all rats. This is the original autorouter. -
    boardflip132 - WIP -
    (doesn't update rtrees) -
    disabled - (feature) - All objects on the board are up-down flipped. -
    dbus486 - WIP -
    (needs to install the xml?) -
    disabled - (feature) - Remote control PCB using DBUS. -
    diag167 - works - disabled - (feature) - Actions for pcb-rnd core diagnostics, intended for developers. These are not in core because end users normally don't need these. As a plugin, due to dynamic loading, it can be dropped on an existing pcb-rnd installation with minimal risk of scaring away a reproducible bug. -
    distalign426 - works - buildin - (feature) - Introducing Align() and Distribute(), which work much like the similarly named functions in Visio. Given that PCB does not have the concept of "first selected object" to draw on, the reference points can be selected by arguments. -
    distaligntext465 - works - buildin - (feature) - Same as distalign, operates on text objects. -
    djopt2320 - works - buildin - (feature) - Various board optimization algorithms. -
    draw_fab257 - works - buildin - (feature) - Draw the fab layer (for various exporters). -
    export_bboard419 - WIP - disabled - export - Export breadboard -
    export_bom230 - works - buildin - export - Export bom (Bill of Materials) -
    export_dsn447 - Work-in-progress - disable - export - Export specctra .dsn files -
    export_dxf3999 - WIP - disabled - export - Export dxf -
    export_gcode2468 - works - buildin - export - Export to gcode -
    export_gerber989 - works - buildin - export - Export to gerber -
    export_ipcd356467 - Work-in-progress - disable - export - IPC-D-356 Netlist export. -
    export_lpr104 - works - buildin - export - Export to lpr (using export_ps to generate postscript) -
    export_nelma678 - works - buildin - export - Export to nelma (Numerical capacitance calculator) -
    export_openscad1379 - WIP - disabled - export - Export openscad -
    export_png1119 - works - buildin - export - Export to png, gif and jpeg -
    export_ps1638 - works - buildin - export - Export postscript or embedded postscript. -
    export_stat258 - works - buildin - export - Export various board statistics in lihata format -
    export_svg566 - works - buildin - export - Scalable Vector Graphics (SVG) exporter -
    export_test257 - disabled -
    (work in progress) -
    buildin - export - A thin layer of code to dump exporter calls for testing the HID exporter API. -
    export_xy272 - works - buildin - export - Export XY centroid element data for pick & place. -
    fontmode165 - works - buildin - (feature) - Font editing actions. -
    fp_fs380 - works - buildin - fp - Footprint: file system based implementation. Used to be called Newlib: load footprints from directories. Run external processes for the parametric footprints. -
    fp_wget303 - works - buildin - fp - Footprint: get static (file) footprints from the web, e.g. from http://gedasymbols.org -
    gl588 - disabled -
    (pcb-rnd has no support for opengl.) -
    disabled - (feature) - Common gl functions for hids. -
    gpmi3056 - works - buildin -
    (if gpmi is installed) -
    (feature) - Scriptable plugin system with about 10 scripting languages supported and dynamic load/unload of scripts that can manipulate the GUI, the board, can implement exporters, etc. -
    hid_batch317 - works - buildin - hid - HID without GUI; read actions from stdin. -
    hid_gtk16254 - works - buildin - hid - GUI: the GTK HID. -
    hid_lesstif6917 - works - buildin - hid - GUI: the lesstif HID. -
    hid_remote1116 - WIP - disable - hid - Remote access HID: implement a protocol and use it to relay between a core and a remote HID implementation. -
    import_dsn115 - Work-in-progress - disable - import - Import specctra .dsn files -
    import_edif3624 - works - buildin - import - Import plugin for netlists in the EDIF format. -
    import_hyp1547 - WIP - disable - import - Import plugin for hyperlynx geometry. -
    import_netlist136 - works - buildin - import - Import plugin for netlists in the classic pcb netlist format. -
    import_sch302 - works - buildin - import - Imports element and netlist data from the schematics (or some other source). -
    io_kicad2971 - works - buildin - io - Load and save the design and elements in Kicad's s-expression format - this is the new, currently preferred format in Kicad. -
    io_kicad_legacy944 - works - buildin - io - Export the design and elements in Kicad's legacy format. -
    io_lihata1935 - works - buildin - io - Load and save the design and elements in the lihata board format. -
    io_pcb2172 - works - buildin - io - Load and save the design and elements in the original pcb text format. -
    jostle445 - works - buildin - (feature) - Pushes lines out of the way. -
    lib_gensexpr6 - works - disabled - (lib) - S-expression parser lib -
    lib_legacy_func63 - works - buildin - (lib) - Random collection of old/obsolete (legacy) functions. 3rd party plugins may depend on them. This module implements C functions and variables and does not register actions or flags. -
    loghid272 - WIP - disabled - (feature) - Sits between a HID (or exporter) and the core and logs all core->plugin calls made through the HID structure. -
    mincut904 - works - buildin - (feature) - Use the minimal cut algorithm to indicate shorts: instead of highlighting two random pins/pads, try to highlight the least number of objects that connect the two networks. -
    oldactions154 - works - disabled - (feature) - Random collection of old/obsolete actions. Bell(): audible feedback; DumpLibrary(): print footprint library on stdout; a set of debug actions useful for writing pcb scripts: Debug(), DebugXY(), Return(). Old plugin actions to toggle or set settings that are now accessible via the unified config system (vendordrill, djopt) -
    polycombine207 - works - buildin - (feature) - The selected polygons are combined together according to the ordering of their points. -
    polystitch184 - segfaults - disable - (feature) - The polygon under the cursor (based on closest-corner) is stitched together with the polygon surrounding it on the same layer. Use with pstoedit conversions where there's a "hole" in the shape - select the hole. -
    propedit772 - works - buildin - (feature) - List and edit properties of a group of objects. -
    puller1887 - works - buildin - (feature) - Pull traces to minimize their length. -
    query1834 - works - buildin - (feature) - pcb-rnd query language: execute expressions on objects and rules for the programmed drc. -
    renumber308 - works - buildin - (feature) - Renumber elements (renaming them) and generate a text file for back annotation. -
    report1019 - works - buildin - (feature) - Report() and ReportObject() actions - print a report about design objects. -
    rubberband_orig599 - works - buildin - (feature) - The original rubberband code. -
    shand_cmd211 - works - buildin - (feature) - vi-like command shorthands (1..3 character long commands) -
    smartdisperse172 - works - buildin - (feature) - Improve the initial dispersion of elements by choosing an order based on the netlist, rather than the arbitrary element order. This isn't the same as a global autoplace, it's more of a linear autoplace. It might make some useful local groupings. For example, you should not have to chase all over the board to find the resistor that goes with a given LED. -
    stroke135 - partially works (doesn't work with lesstif; works with the gtk hid, but there's no zoom bindings) - disabled - (feature) - Gesture recognition with libstroke. -
    teardrops226 - works - buildin - (feature) - Draw teardrops on pins. -
    toporouter6161 - fails -
    (infinite loop in gts) -
    disabled - (feature) - Automatically route selected or all rats using a topological algorithm. This is the new autorouter from 2009. -
    vendordrill516 - works - buildin - (feature) - Vendor drill mapping. -
    - -

    Classes

    -Each plugin implements a class (rarely a set of classes). Classes are: - -
    name description -
    (feature) random features directly accessible for the user, usually actions -
    (lib) support code library for other plugins (core doesn't depend on these); functionality not directly accessible for the user but other plugins may depend on it -
    hid Human Interface Device: interactive user interface, usually GUI -
    import load alien formats into the design space -
    export save (parts of) the design space in alien formats -
    fp footprint (element) library implementation -
    io native file format (save & load) implementation -
    - - - Index: trunk/doc-rnd/mods3/io.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods3/io.png =================================================================== --- trunk/doc-rnd/mods3/io.png (revision 5606) +++ trunk/doc-rnd/mods3/io.png (nonexistent) Property changes on: trunk/doc-rnd/mods3/io.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods3/import.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods3/import.png =================================================================== --- trunk/doc-rnd/mods3/import.png (revision 5606) +++ trunk/doc-rnd/mods3/import.png (nonexistent) Property changes on: trunk/doc-rnd/mods3/import.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/mods3/feature.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/mods3/feature.png =================================================================== --- trunk/doc-rnd/mods3/feature.png (revision 5606) +++ trunk/doc-rnd/mods3/feature.png (nonexistent) Property changes on: trunk/doc-rnd/mods3/feature.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/misc/install_cgi.html =================================================================== --- trunk/doc-rnd/misc/install_cgi.html (revision 5606) +++ trunk/doc-rnd/misc/install_cgi.html (nonexistent) @@ -1,45 +0,0 @@ - - -

    Installation of the footprint CGIs

    -

    system requirements, 3rd party software

    - The following software needs to be installed on the system - that will host the scripts: -
      -
    • /bin/bash (did not test with POSIX shell) -
    • awk (tested with gawk, may work with other modern implementation) -
    • common binutils, e.g. ls, find -
    • animator, the svn HEAD version; NOTE: it is possible to manually compile animator into a static executable (useful on dedicated web servers) -
    • a web server that can execute plain old CGI scripts -
    • a full checkout of pcb-rnd/trunk from svn://repo.hu/pcb-rnd/trunk -
    - -

    Installation

    -Since the CGIs are just demo scripts for repo.hu and are not really installed -anywhere else normally, there is no install script but a manual installation -process. For both the parametric and the static footprint CGI: -
      -
    1. check out pcb-rnd/trunk in a directory readable (but not writable) by www-data (or whatever user the CGI will run with) -
    2. copy the config file pcblib.cgi.conf from pcb-rnd/trunk/util to /etc -
    3. edit the config file; ignore setting sdir for now -
    4. hardlink, copy, or wrap the cgi files from under pcb-rnd/trunk/util into the web server's CGI directory -
    -

    -For the static footprint CGI (set up the map cache): -

      -
    1. cd to trunk/util/pcblib-map in the checkout and run make - NOTE: some awk scripts have hardwired CGI paths yet (TODO) -
    2. copy this directory to a web-accessible directory -
    3. set sdir to the absolute path of the web-accessible copy in /etc/pcblib.cgi.conf -
    - -

    Tips and tricks

    -

    cgi wrapping

    -Making the checkout directly into the cgi-bin dir is not a good idea. Using -a hard link on each CGI between the checkout and the cgi-bin dir is better, -but an svn up will silently break the link leaving the old version live. -The most stable solution is placing a wrapper script in the cgi-bin dir: -
    -#!/bin/bash
    -. /full/path/to/the/checkout/util/pcblib-param.cgi
    -
    - - Index: trunk/doc-rnd/screenshot.jpg =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/screenshot.jpg =================================================================== --- trunk/doc-rnd/screenshot.jpg (revision 5606) +++ trunk/doc-rnd/screenshot.jpg (nonexistent) Property changes on: trunk/doc-rnd/screenshot.jpg ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/gpmi_temp_inst.txt =================================================================== --- trunk/doc-rnd/gpmi_temp_inst.txt (revision 5606) +++ trunk/doc-rnd/gpmi_temp_inst.txt (nonexistent) @@ -1,65 +0,0 @@ -GPMI system-wide installation -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - -The installation process is somewhat manual at this early stage. Please -follow the steps below. - -First, you'll need libgpmi - it's a general purpose script glue interface. - -A/1. svn checkout svn://repo.hu/gpmi/trunk gpmi/trunk -A/2. look at doc/languages.txt there; if you have preferred languages, -please install the -dev packages of those. My favorite is mawk, but I -think most of the example pcb scripts would be in lua. Versions should -match; it may be that gpmi works with a newer minor version out of the -box, tho. -A/3. run ./configure -A/4. check if it found the language(s) you wanted; if not, or anything -else breaks, please send me your scconfig/config.log -A/5. make -A/6. make install (as root, but see below) - -There are options to step 6: - -- if you want to check what it'd do, you could run this: - - install_root=/tmp/foo make install - - it's like DESTDIR for autotools: it will do everything but will use - /tmp/foo instead of / so you see what it'd do without using root or - messing with /usr - -- you can use make linstall instead of make install; this creates symlinks -(pointing to the binaries in your user checkout) instead of copying the -files. If gpmi changes and you need to update and recompile, you won't -need to reinstall (until the number of files change). - -- there's a make uninstall, but it's more or less untested (failed once -and worked once for me) - -Second, you'll need pcb-rnd: - -B/1. svn checkout svn://repo.hu/pcb-rnd/trunk pcb-rnd/trunk -B/2. ./configure -B/3. check the output; if anything went wrong, please send me -scconfig/config.log -B/4. make -B/5. you don't need to install it for testing: cd src; ./pcb-rnd - - -There are options in step 2: by default, if gpmi is found, it's compiled -in "buildin" mode, which means script support is compiled into the pcb-rnd -executable. An alternative is to have it as a plugin (dynamic linkable -object). This can be done using the --plugin-gpmi argument for ./configure. - - -GPMI local installation -~~~~~~~~~~~~~~~~~~~~~~~ -GPMI can be installed without root, into a local user directory (typically -under home). To achieve this, follow the above steps with the following -modifications (assuming you want to install gpmi in ~/usr): - -A/3. ./configure --prefix=~/usr -B/2. ./configure --gpmi-prefix=~/usr - -NOTE: you don't need to use install_root; gpmi will install under ~/usr as -if it was /usr. Index: trunk/doc-rnd/gpmi/scripting_intro.html =================================================================== --- trunk/doc-rnd/gpmi/scripting_intro.html (revision 5606) +++ trunk/doc-rnd/gpmi/scripting_intro.html (nonexistent) @@ -1,226 +0,0 @@ - - -

    Scripting intro

    -This document is an introduction to GPMI for pcb-rnd users. It focuses on -scripting pcb-rnd and doesn't discusses GPMI deeper than the minimum necessary. -GPMI is more generic than shown here. -

    -The scope of the document is to describe the relations between pcb-rnd, -hids, GPMI, glue packages and scripts. Details on how specific glue -packages access pcb-rnd internals (or how those internals work) are -described in other documents. - -

    1. pcb-rnd internals

    - -Since scripts are glued to pcb-rnd internals, scripters need to know -the basic concepts of how pcb-rnd is structured. - -

    1.1 pcb-rnd, HIDs, plugins and GPMI

    -pcb-rnd consists of: -
      -
    • a core that handles the file format, data structures, UI and exporter logics -
    • a hid system that is a layer between core and the HIDs -
    • a set of GUI HIDs which are responsible for interactive graphical display of the current design -
    • a set of exporter HIDs which are responsible for exporting offline representation of the current design -
    • a plugin system that can load HIDs from on the fly, from dynamic loadable libraries (.so or .dll) -
    • a buildin system which is the "static link" variant of the plugin system: some plugins can be selected to be statically linked into the pcb-rnd executable so they are "always loaded" -
    -

    -Note 1: at the moment GUI hids can not be plugins or buildins. -
    -Note 2: plugins/buildins are always exporter HIDs technically, but in practice -they do not have to offer exporting. This means such a HID plugin is loaded -and registered as an exporter on paper, but it doesn't really create a -new export facility, just sits there, interacting with pcb-rnd (creating -menus, actions, etc). Most script plugins do this. -

    -When pcb-rnd executable is compiled, the core, the default GUI and exporter HIDs -and buildins are compiled into the executable. Later on -

    -The GPMI hid is an optional plugin that, by compile-time choice -of the user, can be: -

      -
    • left out all-together - pcb-rnd does not have scripting -
    • compiled as a plugin - when the .so (or .dll) is put in the right directory, pcb-rnd loads it during startup and has scripting -
    • compiled as buildin - becomes part of the pcb-rnd executable so that scripting is always available -
    - -

    1.2. Actions, menus, exporters

    -The core implements actions. An action is a command with custom arguments, -e.g. Delete(Selected). These actions are the commands on the default command -line in pcb-rnd. In batch mode the command language uses these actions as well. -Remote controlling pcb-rnd using the --listen switch will read these actions -on the standard input. -

    -GUI menus are configured to execute actions too. This also means it is impossible -to realize an user-accessible functionality that can be triggered from -the GUI command line, menu or batch input without making it an action. -

    -The only exception, where new functionality is not behind a new action is -exporters. An exporter is a structured dialog box of options and a set of -callback functions implementing a drawing API. Exporting works by the following -steps: -

      -
    1. An exporter HID may register one or more exporters. -
    2. When the user tries to export the design, pcb-rnd lists all - registered exporters. -
    3. The user chooses one, and the preconfigured dialog box - with the selected exporter's options are popped up. -
    4. pcb-rnd core runs the dialog and saves the results if the user - clicked on the ok button. -
    5. pcb-rnd starts the exporting process: it calls the callbacks - to draw the design layer by layer, object by object. -
    - -

    1.3. How a script can interact with the user

    -
      -
    • The script may register actions - these actions are instantly accessible from the GUI command line, on stdin with --listen and in batch mode -
    • The script may create menus and bind them to actions - when the menu is selected, the action is executed -
    • The script may bind to events that will be generated asynchronously by pcb-rnd - when such an event is received, the script executes some code -
    • The script may register new exporter(s) - the user will be able to export the design using the script -
    • The script may run arbitrary code "on load" (when the script is loaded) - however, that time the design or even the GUI may not be loaded/initialized yet - this is useful for registering actions, bind to events or set up exporters -
    - - -

    2. GPMI intro

    - -

    2.1. GPMI's place in the pcb-rnd world

    -
    -GPMI is a plugin/buildin HID. Instead of doing actual work, it loads scripts -and provides a glue layer between pcb-rnd and the scripts. The actual work -is performed by the scripts. -The glue layer comes in two kinds: -
      -
    • gpmi module: dynamic lib written in C, knows how to load and interpret a script and how to deliver events to the script -
    • gpmi package: dynamic lib, provides C functions the script can directly call; package functions then know how to deal with PCB internals -
    -Arrows drawn with dashed line represents a slow, string based communication. -
    - -

    2.2. Module, script, script context, packages

    -
    -Each time a script needs to be loaded, first a module is loaded and the name -of the script is passed to the module. During module initialization, the module -sets up a script interpreter and script context and loads the script into the -context. -

    -If there are 3 separate lua scripts running in pcb-rnd, there are 3 separate -lua modules loaded, each dealing with one of the scripts. The process of -loading a script is illustrated by highlighting the relevant paths with red -for step 1 and green for step 2. -

    -Step 0: the GPMI HID finds a script has to be loaded. The idea comes -from the config file (pcb-rnd-gpmi.conf) or from the GUI (manage scripts) -or as a request from a script already loaded. -

    -Step 1: the GPMI HID loads the corresponding module which in turns -loads the script. The script has a "main" part that is run on load. For -most languages this is the global code sections; in some languages it is -a specific function, usually called main. A few basic glue packages -are already loaded before the script. -

    -Step 2: the script can load glue packages. This usually happens -from the on-load main part from the script. The actual mechanism is to -call PkgLoad() from a glue package that was automatically loaded in -Step 1. The green arrows represent this path: the script executes PkgLoad() -which in turns loads other package(s) into the GPMI hid. -

    -Packages are loaded only once and are globally accessible for multiple modules. -

    - -

    2.3. Binding events, registering actions, creating menus

    -
    -Binding an event in a script is done by calling the Bind() function -(this is implemented in a package automatically loaded). The first -argument is the name of the event, the second argument is the name of -the script function that should be called when the event is triggered. Both -arguments are strings. The event binding mechanism is shown in red in the -map to the right. -

    -The script can create new actions using the action_register() function -(the actions package needs to be loaded first). A script may register multiple -actions. This call is marked with green in the above map. -If any of the actions registered by the script is called, the event "ACTE_action" -is generated. This has two implications: -

      -
    • a script that registers actions needs to bind the ACTE_action event to serve the action requests -
    • if a script registers multiple actions, in the event handler it needs to check which action triggered the event (e.g. with a switch()-like construction on the event name) -
    -
    - -
    -Menus are created using the create_menu() call. Menus can be -created only when the GUI is already set up - this may happen only -after some of the scripts are already loaded. Thus scripts shall -create menus from an event handler bound to the ACTE_gui_init event. -This event is triggered right after the GUI has been set up. -On the map to the right the red arrows represent the path of ACTE_gui_init; -the green arrows represent the reaction of the script, creating the new -menu. -

    -

    - -

    2.4. Exporting

    -
    -Exporter scripts first have to set up an exporter hid. This typically -happens from their on-load main part. Related calls are in the hid -package. The following map shows this process with red arrows: -

    -When the user chooses to use the exporter, among the green arrows, -a series of events are triggered and the script can generate output -directly to a file from event handlers bound to these exporting events. -

    - -

    2.5. Making modifications on the design

    -The purpose of a script might be to manipulate the objects in the current design. -Such a script registers actions, and implements the handler of the actions -using the layout package. The layout package provides calls to query, -change and create design objects. - - -

    3. How it works in practice

    - -

    3.1. Loading the GPMI plugin

    -Check the output of ./configure, it will tell if gpmi is compiled as buildin -or plugin (or not at all). -If the gpmi plugin is compiled as a buildin, it is already loaded, no -further steps are required. -

    -If gpmi is a plugin, gpmi_plugin.so (or gpmi_plugin.dll) needs to be -copied in one of the plugin directories pcb-rnd is looking into on startup: - -
    path purpose -
    -
    $prefix/lib/pcb-rnd/plugins/$arch/ system plugins, multihost -
    $prefix/lib/pcb-rnd/plugins/ system plugins -
    ~/.pcb/plugins/$arch/ user plugins, multihost -
    ~/.pcb/plugins/ user plugins -
    ./plugins/$arch/ project plugins, multihost -
    ./plugins/ project plugins -
    -In the above table: -

      -
    • $prefix is the installation prefix (normally /usr) -
    • $arch is the host arch triplet, e.g. i386-unknown-linux; this is useful if multiple architectures share the same NFS mounted plugin dir -
    • ~ is the user home directory, if exists, e.g. /home/jdoe -
    • ./ is the current working directory pcb has been started from; may be useful for project-local scripts -
    - -

    3.2. Loading scripts

    -The gpmi plugin looks for a file called "pcb-rnd-gpmi.conf" in each of the -plugin directories. Wherever the file is found, it is loaded and parsed. -The file is plain text, each line describes a script to be loaded. Empty -lines and lines starting with # are comments and are ignored. -

    -Script load lines contain two words separated by a space: a module name -and a script name. Relative paths in the the script name are relative to -the directory the config file is found in. -

    -Example config: -

    -# load the carc script (written in lua) from next to the config file:
    -lua carc.lua
    -
    -# load foo.awk, whcih is a mawk script, from its installation path
    -mawk /usr/lib/foo/foo.awk
    -
    Index: trunk/doc-rnd/gpmi/rosetta/10_hello/ex.html =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello/ex.html (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello/ex.html (nonexistent) @@ -1,25 +0,0 @@ -Load packages the script depends on: -
      -
    • actions for registering the new action; -
    • dialogs for printing in the message log. -
    -

    -Create a function ev_action that will be called when any of -the actions registered by the script is executed. The script registers -only one action, so it does not need to check which action caused -the function to be called. -

    -When the action event is called, use dialog_log to append -a log message. -

    -In the "main" section of the script, bind event ACTE_action to -our local function ev_action - this gets ev_action to -be called when any of the actions registered by this script is executed. -

    -Finally use action_register to register the action: -

      -
    • first argument is the name of the action -
    • second is the xy query string; it is empty since this action won't need coordinates to operate on -
    • third is the description that shows up in dumps and helps -
    • fourth is the syntax description (also for helps) -
    Index: trunk/doc-rnd/gpmi/rosetta/10_hello/ex.py =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello/ex.py (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello/ex.py (nonexistent) @@ -1,8 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/dialogs", 0); - -def ev_action(id, name, argc, x, y): - dialog_log("Hello world!\n"); - -Bind("ACTE_action", "ev_action"); -action_register("hello", "", "log hello world", "hello()"); Index: trunk/doc-rnd/gpmi/rosetta/10_hello/ex.stt =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello/ex.stt (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello/ex.stt (nonexistent) @@ -1,10 +0,0 @@ -(PkgLoad "pcb-rnd-gpmi/actions" 0) -(PkgLoad "pcb-rnd-gpmi/dialogs" 0) - -(defun ev_action (id name argc x y) - (dialog_log "Hello world!\n")) - -(Bind "ACTE_action" "ev_action") -(action_register "hello" "" "log hello world" "hello()") - - Index: trunk/doc-rnd/gpmi/rosetta/10_hello/ex.pl =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello/ex.pl (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello/ex.pl (nonexistent) @@ -1,10 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/dialogs", 0); - -sub ev_action { - my($id, $name, $argc, $x, $y) = @_; - dialog_log("Hello world!\n"); -} - -Bind("ACTE_action", "ev_action"); -action_register("hello", "", "log hello world", "hello()"); Index: trunk/doc-rnd/gpmi/rosetta/10_hello/ex.bash =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello/ex.bash (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello/ex.bash (nonexistent) @@ -1,18 +0,0 @@ -#!/bin/bash - -function load_packages() -{ - GPMI PkgLoad "pcb-rnd-gpmi/actions" 0 - GPMI PkgLoad "pcb-rnd-gpmi/dialogs" 0 -} - -function ev_action() { - GPMI dialog_log "Hello world!\n" -} - -function main() -{ - load_packages - GPMI Bind "ACTE_action" "ev_action" - GPMI action_register "hello" "" "log hello world" "hello()" -} Index: trunk/doc-rnd/gpmi/rosetta/10_hello/ID.desc =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello/ID.desc (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello/ID.desc (nonexistent) @@ -1,2 +0,0 @@ -Create a new action hello() that prints "Hello world!" in the message log. - Index: trunk/doc-rnd/gpmi/rosetta/10_hello/index.html =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello/index.html (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello/index.html (nonexistent) @@ -1,55 +0,0 @@ - - -<-- back to the index of Rosetta examples -

    hello world (text, log)

    -Create a new action hello() that prints "Hello world!" in the message log. -

    Example implementations

    -awk - | -bash - | -lua - | -pl - | -py - | -rb - | -scm - | -stt - | -tcl -

    Explanation, step by step

    -Load packages the script depends on: -
      -
    • -actions - for registering the new action; -
    • -dialogs - for printing in the message log.
    - -

    Create a function -ev_action - that will be called when any of the actions registered by the script is executed. The script registers only one action, so it does not need to check which action caused the function to be called. -

    When the action event is called, use -dialog_log - to append a log message. -

    In the "main" section of the script, bind event -ACTE_action - to our local function -ev_action - - this gets -ev_action - to be called when any of the actions registered by this script is executed. -

    Finally use -action_register - to register the action: -

      -
    • first argument is the name of the action -
    • second is the xy query string; it is empty since this action won't need coordinates to operate on -
    • third is the description that shows up in dumps and helps -
    • fourth is the syntax description (also for helps)
    - Index: trunk/doc-rnd/gpmi/rosetta/10_hello/ID.name =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello/ID.name (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello/ID.name (nonexistent) @@ -1 +0,0 @@ -hello world (text, log) Index: trunk/doc-rnd/gpmi/rosetta/10_hello/ex.lua =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello/ex.lua (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello/ex.lua (nonexistent) @@ -1,9 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/dialogs", 0); - -function ev_action(id, name, argc, x, y) - dialog_log("Hello world!\n"); -end - -Bind("ACTE_action", "ev_action"); -action_register("hello", "", "log hello world", "hello()"); Index: trunk/doc-rnd/gpmi/rosetta/10_hello/ex.tcl =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello/ex.tcl (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello/ex.tcl (nonexistent) @@ -1,10 +0,0 @@ -PkgLoad pcb-rnd-gpmi/actions 0 -PkgLoad pcb-rnd-gpmi/dialogs 0 - -proc ev_action {id, name, argc, x, y} { - dialog_log "Hello world!\n" -} - -Bind ACTE_action ev_action -action_register "hello" "" "log hello world" "hello()" - Index: trunk/doc-rnd/gpmi/rosetta/10_hello/ex.scm =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello/ex.scm (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello/ex.scm (nonexistent) @@ -1,9 +0,0 @@ -(PkgLoad "pcb-rnd-gpmi/actions" 0) -(PkgLoad "pcb-rnd-gpmi/dialogs" 0) - -(define ev_action (lambda (id name argc x y) - (dialog_log "Hello world!\n"))) - -(Bind "ACTE_action" "ev_action") -(action_register "hello" "" "log hello world" "hello()") - Index: trunk/doc-rnd/gpmi/rosetta/10_hello/ex.awk =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello/ex.awk (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello/ex.awk (nonexistent) @@ -1,14 +0,0 @@ -BEGIN { - PkgLoad("pcb-rnd-gpmi/actions", 0); - PkgLoad("pcb-rnd-gpmi/dialogs", 0); -} - -function ev_action(id, name, argc, x, y) -{ - dialog_log("Hello world!\n"); -} - -BEGIN { - Bind("ACTE_action", "ev_action"); - action_register("hello", "", "log hello world", "hello()"); -} Index: trunk/doc-rnd/gpmi/rosetta/10_hello/ex.rb =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello/ex.rb (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello/ex.rb (nonexistent) @@ -1,9 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/dialogs", 0); - -def ev_action(id, name, argc, x, y) - dialog_log("Hello world!\n"); -end - -Bind("ACTE_action", "ev_action"); -action_register("hello", "", "log hello world", "hello()"); Index: trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.html =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.html (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.html (nonexistent) @@ -1,26 +0,0 @@ -Load packages the script depends on: -
      -
    • actions for registering the new action; -
    • dialogs for creating a dialog box. -
    -

    -Create a function ev_action that will be called when any of -the actions registered by the script is executed. The script registers -only one action, so it does not need to check which action caused -the function to be called. -

    -When the action event is called, use dialog_report to pop -up a report dialog. First argument donates the name (title) of the window, -the second is the text printed in the window. -

    -In the "main" section of the script, bind event ACTE_action to -our local function ev_action - this gets ev_action to -be called when any of the actions registered by this script is executed. -

    -Finally use action_register to register the action: -

      -
    • first argument is the name of the action -
    • second is the xy query string; it is empty since this action won't need coordinates to operate on -
    • third is the description that shows up in dumps and helps -
    • fourth is the syntax description (also for helps) -
    Index: trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.py =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.py (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.py (nonexistent) @@ -1,8 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/dialogs", 0); - -def ev_action(id, name, argc, x, y): - dialog_report("Greeting window", "Hello world!"); - -Bind("ACTE_action", "ev_action"); -action_register("hello", "", "log hello world", "hello()"); Index: trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.stt =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.stt (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.stt (nonexistent) @@ -1,10 +0,0 @@ -(PkgLoad "pcb-rnd-gpmi/actions" 0) -(PkgLoad "pcb-rnd-gpmi/dialogs" 0) - -(defun ev_action (id name argc x y) - (dialog_report "Greeting window" "Hello world!")) - -(Bind "ACTE_action" "ev_action") -(action_register "hello" "" "log hello world" "hello()") - - Index: trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.pl =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.pl (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.pl (nonexistent) @@ -1,10 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/dialogs", 0); - -sub ev_action { - my($id, $name, $argc, $x, $y) = @_; - dialog_report("Greeting window", "Hello world!"); -} - -Bind("ACTE_action", "ev_action"); -action_register("hello", "", "log hello world", "hello()"); Index: trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.bash =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.bash (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.bash (nonexistent) @@ -1,18 +0,0 @@ -#!/bin/bash - -function load_packages() -{ - GPMI PkgLoad "pcb-rnd-gpmi/actions" 0 - GPMI PkgLoad "pcb-rnd-gpmi/dialogs" 0 -} - -function ev_action() { - GPMI dialog_report "Greeting window" "Hello world!" -} - -function main() -{ - load_packages - GPMI Bind "ACTE_action" "ev_action" - GPMI action_register "hello" "" "log hello world" "hello()" -} Index: trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ID.desc =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ID.desc (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ID.desc (nonexistent) @@ -1,3 +0,0 @@ -Create a new action hello() that prints "Hello world!" in a popup window. - - Index: trunk/doc-rnd/gpmi/rosetta/10_hello_gui/index.html =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello_gui/index.html (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello_gui/index.html (nonexistent) @@ -1,55 +0,0 @@ - - -<-- back to the index of Rosetta examples -

    hello world (popup window)

    -Create a new action hello() that prints "Hello world!" in a popup window. -

    Example implementations

    -awk - | -bash - | -lua - | -pl - | -py - | -rb - | -scm - | -stt - | -tcl -

    Explanation, step by step

    -Load packages the script depends on: -
      -
    • -actions - for registering the new action; -
    • -dialogs - for creating a dialog box.
    - -

    Create a function -ev_action - that will be called when any of the actions registered by the script is executed. The script registers only one action, so it does not need to check which action caused the function to be called. -

    When the action event is called, use -dialog_report - to pop up a report dialog. First argument donates the name (title) of the window, the second is the text printed in the window. -

    In the "main" section of the script, bind event -ACTE_action - to our local function -ev_action - - this gets -ev_action - to be called when any of the actions registered by this script is executed. -

    Finally use -action_register - to register the action: -

      -
    • first argument is the name of the action -
    • second is the xy query string; it is empty since this action won't need coordinates to operate on -
    • third is the description that shows up in dumps and helps -
    • fourth is the syntax description (also for helps)
    - Index: trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ID.name =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ID.name (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ID.name (nonexistent) @@ -1 +0,0 @@ -hello world (popup window) Index: trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.lua =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.lua (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.lua (nonexistent) @@ -1,9 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/dialogs", 0); - -function ev_action(id, name, argc, x, y) - dialog_report("Greeting window", "Hello world!"); -end - -Bind("ACTE_action", "ev_action"); -action_register("hello", "", "log hello world", "hello()"); Index: trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.tcl =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.tcl (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.tcl (nonexistent) @@ -1,10 +0,0 @@ -PkgLoad pcb-rnd-gpmi/actions 0 -PkgLoad pcb-rnd-gpmi/dialogs 0 - -proc ev_action {id, name, argc, x, y} { - dialog_report "Greeting window" "Hello world!" -} - -Bind ACTE_action ev_action -action_register "hello" "" "log hello world" "hello()" - Index: trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.scm =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.scm (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.scm (nonexistent) @@ -1,9 +0,0 @@ -(PkgLoad "pcb-rnd-gpmi/actions" 0) -(PkgLoad "pcb-rnd-gpmi/dialogs" 0) - -(define ev_action (lambda (id name argc x y) - (dialog_report "Greeting window" "Hello world!"))) - -(Bind "ACTE_action" "ev_action") -(action_register "hello" "" "log hello world" "hello()") - Index: trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.awk =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.awk (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.awk (nonexistent) @@ -1,14 +0,0 @@ -BEGIN { - PkgLoad("pcb-rnd-gpmi/actions", 0); - PkgLoad("pcb-rnd-gpmi/dialogs", 0); -} - -function ev_action(id, name, argc, x, y) -{ - dialog_report("Greeting window", "Hello world!"); -} - -BEGIN { - Bind("ACTE_action", "ev_action"); - action_register("hello", "", "log hello world", "hello()"); -} Index: trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.rb =================================================================== --- trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.rb (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/10_hello_gui/ex.rb (nonexistent) @@ -1,9 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/dialogs", 0); - -def ev_action(id, name, argc, x, y) - dialog_report("Greeting window", "Hello world!"); -end - -Bind("ACTE_action", "ev_action"); -action_register("hello", "", "log hello world", "hello()"); Index: trunk/doc-rnd/gpmi/rosetta/30_move/ex.html =================================================================== --- trunk/doc-rnd/gpmi/rosetta/30_move/ex.html (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/30_move/ex.html (nonexistent) @@ -1,36 +0,0 @@ -Load packages the script depends on: -
      -
    • actions for registering the new action; -
    • layout for searching selected objects and moving objects. -
    -

    -Create a function ev_action that will be called when any of -the actions registered by the script is executed. The script registers -only one action, so it does not need to check which action caused -the function to be called. -

    -When the action event is called, first set up: -

      -
    • fetch event argument 0 and 1 using action_arg; -
    • resolve the conversion rate from mm to PCB's units using mm2pcb_multiplier; -
    • perform a search for all selected object using layout_search_selected (return value is the number of objects found), name the resulting list "mv_search" -
    -A loop then iterates over the objects on the list: -
      -
    • resolve the Nth element of the list using layout_search_get, referecing the list by name ("mv_search") and specifying which element to get (the Nth); the result is an object pointer; -
    • move the object using layout_obj_move; specify the object pointer, then which part of the object should be moved ("OC_OBJ" means the whole object) and relative offsets (dx and dy calculated earlier) -
    -Finally the search list shall be destroyed to reclaim memory, using layout_search_free. -

    - -In the "main" section of the script, bind event ACTE_action to -our local function ev_action - this gets ev_action to -be called when any of the actions registered by this script is executed. -

    -Finally use action_register to register the action: -

      -
    • first argument is the name of the action -
    • second is the xy query string; it is empty since this action won't need coordinates to operate on -
    • third is the description that shows up in dumps and helps -
    • fourth is the syntax description (also for helps) -
    Index: trunk/doc-rnd/gpmi/rosetta/30_move/ex.py =================================================================== --- trunk/doc-rnd/gpmi/rosetta/30_move/ex.py (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/30_move/ex.py (nonexistent) @@ -1,15 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/layout", 0); - -def ev_action(id, name, argc, x, y): - dx = int(action_arg(0)) * float(mm2pcb_multiplier()) - dy = int(action_arg(1)) * float(mm2pcb_multiplier()) - num_objs = int(layout_search_selected("mv_search", "OM_ANY")) - for n in xrange(0, num_objs): - obj_ptr = layout_search_get("mv_search", n) - layout_obj_move(obj_ptr, "OC_OBJ", dx, dy) - layout_search_free("mv_search") - -Bind("ACTE_action", "ev_action"); -action_register("hello", "", "log hello world", "hello()"); -action_register("mv", "", "move selected objects by dx and dy mm", "mv(dx,dy)"); Index: trunk/doc-rnd/gpmi/rosetta/30_move/ex.stt =================================================================== --- trunk/doc-rnd/gpmi/rosetta/30_move/ex.stt (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/30_move/ex.stt (nonexistent) @@ -1,24 +0,0 @@ -(PkgLoad "pcb-rnd-gpmi/actions" 0) -(PkgLoad "pcb-rnd-gpmi/layout" 0) - -(defun ev_action (id name argc x y) -(let - ( - (dx (* (->num (action_arg 0)) (->num (mm2pcb_multiplier)))) - (dy (* (->num (action_arg 1)) (->num (mm2pcb_multiplier)))) - (num_objs (->num (layout_search_selected "mv_search" "OM_ANY"))) - (obj_ptr 0) - ) - (do ((n 0 (1+ n))) - ((> n num_objs)) - (set! obj_ptr (layout_search_get "mv_search" n)) - (layout_obj_move obj_ptr "OC_OBJ" (->int dx) (->int dy)) - ) -) -) - -(Bind "ACTE_action" "ev_action") -(action_register "mv" "" "move selected objects by dx and dy mm" "mv(dx,dy)") - - - Index: trunk/doc-rnd/gpmi/rosetta/30_move/ex.pl =================================================================== --- trunk/doc-rnd/gpmi/rosetta/30_move/ex.pl (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/30_move/ex.pl (nonexistent) @@ -1,20 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/layout", 0); - -sub ev_action { - my($id, $name, $argc, $x, $y) = @_; - - my $dx = action_arg(0) * mm2pcb_multiplier(); - my $dy = action_arg(1) * mm2pcb_multiplier(); - - my $num_objs = layout_search_selected("mv_search", "OM_ANY"); - for(my $n = 0; $n < $num_objs; $n++) { - $obj_ptr = layout_search_get("mv_search", $n); - layout_obj_move($obj_ptr, "OC_OBJ", $dx, $dy); - } - layout_search_free("mv_search"); - -} - -Bind("ACTE_action", "ev_action"); -action_register("mv", "", "move selected objects by dx and dy mm", "mv(dx,dy)"); Index: trunk/doc-rnd/gpmi/rosetta/30_move/ex.bash =================================================================== --- trunk/doc-rnd/gpmi/rosetta/30_move/ex.bash (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/30_move/ex.bash (nonexistent) @@ -1,41 +0,0 @@ -#!/bin/bash - -function load_packages() -{ - GPMI PkgLoad "pcb-rnd-gpmi/actions" 0 - GPMI PkgLoad "pcb-rnd-gpmi/layout" 0 -} - -function ev_action() { - local dx dy n num_objs - - GPMI action_arg 0 - a0=`bash_int "$result"` - - GPMI action_arg 1 - a1=`bash_int "$result"` - - GPMI mm2pcb_multiplier - conv=`bash_int "$result"` - - dx=$(($a0 * $conv)) - dy=$(($a1 * $conv)) - - GPMI layout_search_selected "mv_search" "OM_ANY" - num_objs=`bash_int "$result"` - - for n in `seq 0 $(($num_objs-1))` - do - GPMI layout_search_get "mv_search" $n - obj_ptr="$result" - GPMI layout_obj_move $obj_ptr "OC_OBJ" $dx $dy - done - GPMI layout_search_free "mv_search" -} - -function main() -{ - load_packages - GPMI Bind "ACTE_action" "ev_action" - GPMI action_register "mv" "" "move selected objects by dx and dy mm" "mv(dx,dy)" -} Index: trunk/doc-rnd/gpmi/rosetta/30_move/ID.desc =================================================================== --- trunk/doc-rnd/gpmi/rosetta/30_move/ID.desc (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/30_move/ID.desc (nonexistent) @@ -1,3 +0,0 @@ -Create a new action mv(dx,dy) that moves selected objects relative by dx and dy mm. - - Index: trunk/doc-rnd/gpmi/rosetta/30_move/index.html =================================================================== --- trunk/doc-rnd/gpmi/rosetta/30_move/index.html (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/30_move/index.html (nonexistent) @@ -1,74 +0,0 @@ - - -<-- back to the index of Rosetta examples -

    action: move selected objects

    -Create a new action mv(dx,dy) that moves selected objects relative by dx and dy mm. -

    Example implementations

    -awk - | -bash - | -lua - | -pl - | -py - | -rb - | -scm - | -stt - | -tcl -

    Explanation, step by step

    -Load packages the script depends on: -
      -
    • -actions - for registering the new action; -
    • -layout - for searching selected objects and moving objects.
    - -

    Create a function -ev_action - that will be called when any of the actions registered by the script is executed. The script registers only one action, so it does not need to check which action caused the function to be called. -

    When the action event is called, first set up: -

      -
    • fetch event argument 0 and 1 using -action_arg -; -
    • resolve the conversion rate from mm to PCB's units using -mm2pcb_multiplier -; -
    • perform a search for all selected object using -layout_search_selected - (return value is the number of objects found), name the resulting list "mv_search"
    - A loop then iterates over the objects on the list: -
      -
    • resolve the Nth element of the list using -layout_search_get -, referecing the list by name ("mv_search") and specifying which element to get (the Nth); the result is an object pointer; -
    • move the object using -layout_obj_move -; specify the object pointer, then which part of the object should be moved ("OC_OBJ" means the whole object) and relative offsets (dx and dy calculated earlier)
    - Finally the search list shall be destroyed to reclaim memory, using -layout_search_free -. -

    In the "main" section of the script, bind event -ACTE_action - to our local function -ev_action - - this gets -ev_action - to be called when any of the actions registered by this script is executed. -

    Finally use -action_register - to register the action: -

      -
    • first argument is the name of the action -
    • second is the xy query string; it is empty since this action won't need coordinates to operate on -
    • third is the description that shows up in dumps and helps -
    • fourth is the syntax description (also for helps)
    - Index: trunk/doc-rnd/gpmi/rosetta/30_move/ID.name =================================================================== --- trunk/doc-rnd/gpmi/rosetta/30_move/ID.name (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/30_move/ID.name (nonexistent) @@ -1 +0,0 @@ -action: move selected objects Index: trunk/doc-rnd/gpmi/rosetta/30_move/ex.lua =================================================================== --- trunk/doc-rnd/gpmi/rosetta/30_move/ex.lua (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/30_move/ex.lua (nonexistent) @@ -1,18 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/layout", 0); - -function ev_action(id, name, argc, x, y) - local dx = action_arg(0) * mm2pcb_multiplier() - local dy = action_arg(1) * mm2pcb_multiplier() - - local num_objs = layout_search_selected("mv_search", "OM_ANY") - for n=0,num_objs+1 - do - obj_ptr = layout_search_get("mv_search", n) - layout_obj_move(obj_ptr, "OC_OBJ", dx, dy) - end - layout_search_free("mv_search") -end - -Bind("ACTE_action", "ev_action"); -action_register("mv", "", "move selected objects by dx and dy mm", "mv(dx,dy)"); \ No newline at end of file Index: trunk/doc-rnd/gpmi/rosetta/30_move/ex.tcl =================================================================== --- trunk/doc-rnd/gpmi/rosetta/30_move/ex.tcl (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/30_move/ex.tcl (nonexistent) @@ -1,17 +0,0 @@ -PkgLoad pcb-rnd-gpmi/actions 0 -PkgLoad pcb-rnd-gpmi/layout 0 - -proc ev_action {id, name, argc, x, y} { - set dx [expr round([action_arg 0] * [mm2pcb_multiplier])] - set dy [expr round([action_arg 1] * [mm2pcb_multiplier])] - - set num_objs [layout_search_selected mv_search OM_ANY] - for {set n 0} {$n < $num_objs} {incr n} { - set obj_ptr [layout_search_get mv_search $n] - layout_obj_move $obj_ptr OC_OBJ $dx $dy - } - layout_search_free mv_search -} - -Bind ACTE_action ev_action -action_register "mv" "" "move selected objects by dx and dy mm" "mv(dx,dy)" Index: trunk/doc-rnd/gpmi/rosetta/30_move/ex.scm =================================================================== --- trunk/doc-rnd/gpmi/rosetta/30_move/ex.scm (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/30_move/ex.scm (nonexistent) @@ -1,20 +0,0 @@ -(PkgLoad "pcb-rnd-gpmi/actions" 0) -(PkgLoad "pcb-rnd-gpmi/layout" 0) - -(define ev_action (lambda (id name argc x y) -(let - ( - (dx (* (string->number (action_arg 0)) (string->number (mm2pcb_multiplier)))) - (dy (* (string->number (action_arg 1)) (string->number (mm2pcb_multiplier)))) - (num_objs (string->number (layout_search_selected "mv_search" "OM_ANY"))) - (obj_ptr 0) - ) - (do ((n 0 (1+ n))) - ((> n num_objs)) - (set! obj_ptr (layout_search_get "mv_search" n)) - (layout_obj_move obj_ptr "OC_OBJ" (inexact->exact dx) (inexact->exact dy)) - ) -))) - -(Bind "ACTE_action" "ev_action") -(action_register "mv" "" "move selected objects by dx and dy mm" "mv(dx,dy)") Index: trunk/doc-rnd/gpmi/rosetta/30_move/ex.awk =================================================================== --- trunk/doc-rnd/gpmi/rosetta/30_move/ex.awk (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/30_move/ex.awk (nonexistent) @@ -1,22 +0,0 @@ -BEGIN { - PkgLoad("pcb-rnd-gpmi/actions", 0); - PkgLoad("pcb-rnd-gpmi/layout", 0); -} - -function ev_action(id, name, argc, x, y ,dx,dy,n,num_objs,obj_ptr) -{ - dx = action_arg(0) * mm2pcb_multiplier() - dy = action_arg(1) * mm2pcb_multiplier() - - num_objs = layout_search_selected("mv_search", "OM_ANY") - for(n = 0; n < num_objs; n++) { - obj_ptr = layout_search_get("mv_search", n) - layout_obj_move(obj_ptr, "OC_OBJ", dx, dy) - } - layout_search_free("mv_search") -} - -BEGIN { - Bind("ACTE_action", "ev_action"); - action_register("mv", "", "move selected objects by dx and dy mm", "mv(dx,dy)"); -} Index: trunk/doc-rnd/gpmi/rosetta/30_move/ex.rb =================================================================== --- trunk/doc-rnd/gpmi/rosetta/30_move/ex.rb (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/30_move/ex.rb (nonexistent) @@ -1,25 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/layout", 0); - -def ev_action(id, name, argc, x, y) -# TODO: how to convert 1e+06 in ruby? -# conv = mm2pcb_multiplier().to_i - conv = 1000000 - - - dx = action_arg(0).to_i * conv.to_i; - dy = action_arg(1).to_i * conv.to_i; - - num_objs = layout_search_selected("mv_search", "OM_ANY").to_i; - - for n in 0..(num_objs-1) - obj_ptr = layout_search_get("mv_search", n); - layout_obj_move(obj_ptr, "OC_OBJ", dx, dy); - n += 1; - end - layout_search_free("mv_search"); - -end - -Bind("ACTE_action", "ev_action"); -action_register("mv", "", "move selected objects by dx and dy mm", "mv(dx,dy)"); Index: trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.html =================================================================== --- trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.html (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.html (nonexistent) @@ -1,33 +0,0 @@ -Load packages the script depends on: -
      -
    • actions for registering the new action; -
    • dialogs for creating a dialog box. -
    -

    -Create a function ev_action that will be called when any of -the actions registered by the script is executed. The script registers -only one action, so it does not need to check which action caused -the function to be called. -

    -When the action event is called, use dialog_report to pop -up a report dialog. First argument donates the name (title) of the window, -the second is the text printed in the window. -

    -Create a function ev_gui_init that will be called when the -gui has been initialized - this is the right moment to register -new menus in the GUI. Put the new menu item in the -"Plugins/GPMI scripting/" menu by convention, and set hot key to ctrl+w. -The menu should execute action hello(). -

    -In the "main" section of the script, bind event ACTE_action to -our local function ev_action - this gets ev_action to -be called when any of the actions registered by this script is executed. -Also bind ev_gui_init so that the new menu can be safely created. -

    -Finally use action_register to register the action: -

      -
    • first argument is the name of the action -
    • second is the xy query string; it is empty since this action won't need coordinates to operate on -
    • third is the description that shows up in dumps and helps -
    • fourth is the syntax description (also for helps) -
    Index: trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.py =================================================================== --- trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.py (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.py (nonexistent) @@ -1,12 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/dialogs", 0); - -def ev_action(id, name, argc, x, y): - dialog_report("Greeting window", "Hello world!"); - -def ev_gui_init(id, argc, argv): - create_menu("/main_menu/Plugins/GPMI scripting/hello", "hello()", "h", "Ctrlw", "tooltip for hello"); - -Bind("ACTE_action", "ev_action"); -Bind("ACTE_gui_init", "ev_gui_init"); -action_register("hello", "", "log hello world", "hello()"); Index: trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.stt =================================================================== --- trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.stt (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.stt (nonexistent) @@ -1,12 +0,0 @@ -(PkgLoad "pcb-rnd-gpmi/actions" 0) -(PkgLoad "pcb-rnd-gpmi/dialogs" 0) - -(defun ev_action (id name argc x y) - (dialog_report "Greeting window" "Hello world!")) - -(defun ev_gui_init (id argc argv) - (create_menu "/main_menu/Plugins/GPMI scripting/hello" "hello()" "h" "Ctrlw" "tooltip for hello")) - -(Bind "ACTE_action" "ev_action") -(Bind "ACTE_gui_init" "ev_gui_init") -(action_register "hello" "" "log hello world" "hello()") Index: trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.pl =================================================================== --- trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.pl (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.pl (nonexistent) @@ -1,17 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/dialogs", 0); - -sub ev_action { - my($id, $name, $argc, $x, $y) = @_; - dialog_report("Greeting window", "Hello world!"); -} - -sub ev_gui_init -{ - my($id, $name, $argc, $argv) = @_; - create_menu("/main_menu/Plugins/GPMI scripting/hello", "hello()", "h", "Ctrlw", "tooltip for hello"); -} - -Bind("ACTE_action", "ev_action"); -Bind("ACTE_gui_init", "ev_gui_init"); -action_register("hello", "", "log hello world", "hello()"); Index: trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.bash =================================================================== --- trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.bash (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.bash (nonexistent) @@ -1,24 +0,0 @@ -#!/bin/bash - -function load_packages() -{ - GPMI PkgLoad "pcb-rnd-gpmi/actions" 0 - GPMI PkgLoad "pcb-rnd-gpmi/dialogs" 0 -} - -function ev_action() { - GPMI dialog_report "Greeting window" "Hello world!" -} - -function ev_gui_init() -{ - GPMI create_menu "/main_menu/Plugins/GPMI scripting/hello" "hello()" "h" "Ctrlw" "tooltip for hello" -} - -function main() -{ - load_packages - GPMI Bind "ACTE_action" "ev_action" - GPMI Bind "ACTE_gui_init" "ev_gui_init" - GPMI action_register "hello" "" "log hello world" "hello()" -} Index: trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ID.desc =================================================================== --- trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ID.desc (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ID.desc (nonexistent) @@ -1,3 +0,0 @@ -Create a new action hello() that prints "Hello world!" in a popup window, create a menu (under "Plugins/GPMI scripting/") that executes the action. - - Index: trunk/doc-rnd/gpmi/rosetta/12_hello_menu/index.html =================================================================== --- trunk/doc-rnd/gpmi/rosetta/12_hello_menu/index.html (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/12_hello_menu/index.html (nonexistent) @@ -1,58 +0,0 @@ - - -<-- back to the index of Rosetta examples -

    hello world (popup window + submenu)

    -Create a new action hello() that prints "Hello world!" in a popup window, create a menu (under "Plugins/GPMI scripting/") that executes the action. -

    Example implementations

    -awk - | -bash - | -lua - | -pl - | -py - | -rb - | -scm - | -stt - | -tcl -

    Explanation, step by step

    -Load packages the script depends on: -
      -
    • -actions - for registering the new action; -
    • -dialogs - for creating a dialog box.
    - -

    Create a function -ev_action - that will be called when any of the actions registered by the script is executed. The script registers only one action, so it does not need to check which action caused the function to be called. -

    When the action event is called, use -dialog_report - to pop up a report dialog. First argument donates the name (title) of the window, the second is the text printed in the window. -

    Create a function -ev_gui_init - that will be called when the gui has been initialized - this is the right moment to register new menus in the GUI. Put the new menu item in the "Plugins/GPMI scripting/" menu by convention, and set hot key to ctrl+w. The menu should execute action hello(). -

    In the "main" section of the script, bind event -ACTE_action - to our local function -ev_action - - this gets -ev_action - to be called when any of the actions registered by this script is executed. Also bind ev_gui_init so that the new menu can be safely created. -

    Finally use -action_register - to register the action: -

      -
    • first argument is the name of the action -
    • second is the xy query string; it is empty since this action won't need coordinates to operate on -
    • third is the description that shows up in dumps and helps -
    • fourth is the syntax description (also for helps)
    - Index: trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ID.name =================================================================== --- trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ID.name (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ID.name (nonexistent) @@ -1 +0,0 @@ -hello world (popup window + submenu) Index: trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.lua =================================================================== --- trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.lua (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.lua (nonexistent) @@ -1,14 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/dialogs", 0); - -function ev_action(id, name, argc, x, y) - dialog_report("Greeting window", "Hello world!"); -end - -function ev_gui_init(id, argc, argv) - create_menu("/main_menu/Plugins/GPMI scripting/hello", "hello()", "h", "Ctrlw", "tooltip for hello"); -end - -Bind("ACTE_action", "ev_action"); -Bind("ACTE_gui_init", "ev_gui_init"); -action_register("hello", "", "log hello world", "hello()"); Index: trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.tcl =================================================================== --- trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.tcl (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.tcl (nonexistent) @@ -1,15 +0,0 @@ -PkgLoad pcb-rnd-gpmi/actions 0 -PkgLoad pcb-rnd-gpmi/dialogs 0 - -proc ev_action {id, name, argc, x, y} { - dialog_report "Greeting window" "Hello world!" -} - -proc ev_gui_init {id, argc, argv} { - create_menu "/main_menu/Plugins/GPMI scripting/hello" "hello()" "h" "Ctrlw" "tooltip for hello" -} - -Bind ACTE_action ev_action -Bind ACTE_gui_init ev_gui_init -action_register "hello" "" "log hello world" "hello()" - Index: trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.scm =================================================================== --- trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.scm (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.scm (nonexistent) @@ -1,12 +0,0 @@ -(PkgLoad "pcb-rnd-gpmi/actions" 0) -(PkgLoad "pcb-rnd-gpmi/dialogs" 0) - -(define ev_action (lambda (id name argc x y) - (dialog_report "Greeting window" "Hello world!"))) - -(define ev_gui_init (lambda (id argc argv) - (create_menu "/main_menu/Plugins/GPMI scripting/hello" "hello()" "h" "Ctrlw" "tooltip for hello"))) - -(Bind "ACTE_action" "ev_action") -(Bind "ACTE_gui_init" "ev_gui_init") -(action_register "hello" "" "log hello world" "hello()") Index: trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.awk =================================================================== --- trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.awk (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.awk (nonexistent) @@ -1,20 +0,0 @@ -BEGIN { - PkgLoad("pcb-rnd-gpmi/actions", 0); - PkgLoad("pcb-rnd-gpmi/dialogs", 0); -} - -function ev_action(id, name, argc, x, y) -{ - dialog_report("Greeting window", "Hello world!"); -} - -function ev_gui_init(id, argc, argv) -{ - create_menu("/main_menu/Plugins/GPMI scripting/hello", "hello()", "h", "Ctrlw", "tooltip for hello"); -} - -BEGIN { - Bind("ACTE_action", "ev_action"); - Bind("ACTE_gui_init", "ev_gui_init"); - action_register("hello", "", "log hello world", "hello()"); -} Index: trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.rb =================================================================== --- trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.rb (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/12_hello_menu/ex.rb (nonexistent) @@ -1,14 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/actions", 0); -PkgLoad("pcb-rnd-gpmi/dialogs", 0); - -def ev_action(id, name, argc, x, y) - dialog_report("Greeting window", "Hello world!"); -end - -def ev_gui_init(id, argc, argv) - create_menu("/main_menu/Plugins/GPMI scripting/hello", "hello()", "h", "Ctrlw", "tooltip for hello"); -end - -Bind("ACTE_action", "ev_action"); -Bind("ACTE_gui_init", "ev_gui_init"); -action_register("hello", "", "log hello world", "hello()"); Index: trunk/doc-rnd/gpmi/rosetta/index.html =================================================================== --- trunk/doc-rnd/gpmi/rosetta/index.html (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/index.html (nonexistent) @@ -1,58 +0,0 @@ - - - -

    pcb-rnd scripting - Rosetta

    -The Rosetta Stone -of pcb-rnd scripting is a collection of example scripts implemented in -various scripting languages. Rosetta has multiple purposes: -
      -
    • to provide examples of using the pcb-rnd API; -
    • to not scare away newcomers by showing the first examples in an unfamiliar language; -
    • to help the user to decide which language to use for a specific task; -
    • to provide examples on how to convert idioms of pcb-rnd scripts from one language to another. -
    -

    -Each example comes with an explanation, written in plain English about what the -scripts do, step by step. Instead of trying to exploit powerful features -of the language, example implementations try to be simple. -

    -The list below is ordered from the least complex to the most complex examples. -Column lvl is the complexity score. The less the score is, the simpler -the example is. - - -

    Index of examples

    - - - - - - - - -
    lvlexample languages description -
    10 - hello world (text, log) - awk bash lua perl python ruby scheme stutter tcl - Create a new action hello() that prints "Hello world!" in the message log. -
    10 - hello world (popup window) - awk bash lua perl python ruby scheme stutter tcl - Create a new action hello() that prints "Hello world!" in a popup window. -
    12 - hello world (popup window + submenu) - awk bash lua perl python ruby scheme stutter tcl - Create a new action hello() that prints "Hello world!" in a popup window, create a menu (under "Plugins/GPMI scripting/") that executes the action. -
    30 - action: move selected objects - awk bash lua perl python ruby scheme stutter tcl - Create a new action mv(dx,dy) that moves selected objects relative by dx and dy mm. -
    35 - drill list exporter - awk lua tcl - Create a new exporter that prints a list of drills in x,y,dia table in CSV, TSV or text format -
    - - - - Index: trunk/doc-rnd/gpmi/rosetta/index.templ.html =================================================================== --- trunk/doc-rnd/gpmi/rosetta/index.templ.html (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/index.templ.html (nonexistent) @@ -1,29 +0,0 @@ - - - -

    pcb-rnd scripting - Rosetta

    -The Rosetta Stone -of pcb-rnd scripting is a collection of example scripts implemented in -various scripting languages. Rosetta has multiple purposes: -
      -
    • to provide examples of using the pcb-rnd API; -
    • to not scare away newcomers by showing the first examples in an unfamiliar language; -
    • to help the user to decide which language to use for a specific task; -
    • to provide examples on how to convert idioms of pcb-rnd scripts from one language to another. -
    -

    -Each example comes with an explanation, written in plain English about what the -scripts do, step by step. Instead of trying to exploit powerful features -of the language, example implementations try to be simple. -

    -The list below is ordered from the least complex to the most complex examples. -Column lvl is the complexity score. The less the score is, the simpler -the example is. - - -

    Index of examples

    - - - - - Index: trunk/doc-rnd/gpmi/rosetta/35_export_drill/ex.html =================================================================== --- trunk/doc-rnd/gpmi/rosetta/35_export_drill/ex.html (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/35_export_drill/ex.html (nonexistent) @@ -1,60 +0,0 @@ - -An exporter is a hid registered. During the export -process, pcb-rnd calls the exporter to draw objects on layers. The GPMI -layer converts these calls to bindable events. An exporter script catches -the drawing events relevant to the output format and draws everything from -event handlers. -

    -An exporter is sort of a drawing backend: pcb-rnd sets up graphic contexts -(gc for short) and draws on them. The first gc set up should open the -output file, the last gc closed should flush/close the file. -

    -


    - -

    Theory of operation

    -Assume only filled circles on the -top assembly layer are holes. Emit a line for each of these -and ignore everything else. - -

    Implementation

    -Load packages the script depends on: -
      -
    • hid for registering the new exporter; -
    • layout for unit conversion; -
    • dialogs for error reporting. -
    -

    -Set up an exporter hid, storing the handle of each object created in -a global variable: -

      -
    • create a hid using hid_create -
    • add two attributes (fields) to the dialog using hid_add_attribute -
    • register the new hid using hid_register - this makes it an exporter -
    -

    -Set up global state variables: -

      -
    • fmt will be a cache for the format selected by the user -
    • conv is the conversion scale between mm and PCB internal coordinate unit -
    • channel specifies a file handle or indicates that the output file is open -
    • green_light indicates that the exporter is drawing the relevant layer -
    -

    -Define a make_gc callback. It is called when a new graphic -context is created (e.g. for layers). An exporter is sort of a drawing -backend: pcb-rnd sets up gc's and draws on them. The first gc set up -should open the output file, the last gc closed should flush/close the file. -Define a destroy_gc callback for the latter. GCs are -destroyed at the end of the export process. Use global variable channel -to make sure the file is open/close only once (see TODO script context). -

    -Define a set_layer callback that sets green_light to true if -layer name is "topasssembly", false otherwise. -

    -Callback fill_circle is the workhorse: check if we have the green -light to emit lines, then convert coordinates and diameter to mm and -decide what format to use for printing a line for each filled circle. -

    -Finally, bind all four callbacks to exporter events. - - Index: trunk/doc-rnd/gpmi/rosetta/35_export_drill/ID.desc =================================================================== --- trunk/doc-rnd/gpmi/rosetta/35_export_drill/ID.desc (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/35_export_drill/ID.desc (nonexistent) @@ -1 +0,0 @@ -Create a new exporter that prints a list of drills in x,y,dia table in CSV, TSV or text format Index: trunk/doc-rnd/gpmi/rosetta/35_export_drill/index.html =================================================================== --- trunk/doc-rnd/gpmi/rosetta/35_export_drill/index.html (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/35_export_drill/index.html (nonexistent) @@ -1,71 +0,0 @@ - - -<-- back to the index of Rosetta examples -

    drill list exporter

    -Create a new exporter that prints a list of drills in x,y,dia table in CSV, TSV or text format -

    Example implementations

    -awk - | -lua - | -tcl -

    Explanation, step by step

    - - An exporter is a hid registered. During the export process, pcb-rnd calls the exporter to draw objects on layers. The GPMI layer converts these calls to bindable events. An exporter script catches the drawing events relevant to the output format and draws everything from event handlers. -

    An exporter is sort of a drawing backend: pcb-rnd sets up graphic contexts (gc for short) and draws on them. The first gc set up should open the output file, the last gc closed should flush/close the file. -

    -


    -

    Theory of operation

    - Assume only -filled circles - on the -top assembly layer - are holes. Emit a line for each of these and ignore everything else. -

    Implementation

    - Load packages the script depends on: -
      -
    • -hid - for registering the new exporter; -
    • -layout - for unit conversion; -
    • -dialogs - for error reporting.
    - -

    Set up an exporter hid, storing the handle of each object created in a global variable: -

    - -

    Set up global state variables: -

      -
    • fmt will be a cache for the format selected by the user -
    • conv is the conversion scale between mm and PCB internal coordinate unit -
    • channel specifies a file handle or indicates that the output file is open -
    • green_light indicates that the exporter is drawing the relevant layer
    - -

    Define a -make_gc - callback. It is called when a new graphic context is created (e.g. for layers). An exporter is sort of a drawing backend: pcb-rnd sets up gc's and draws on them. The first gc set up should open the output file, the last gc closed should flush/close the file. Define a -destroy_gc - callback for the latter. GCs are destroyed at the end of the export process. Use global variable -channel - to make sure the file is open/close only once (see TODO -script context -). -

    Define a -set_layer - callback that sets green_light to true if layer name is "topasssembly", false otherwise. -

    Callback -fill_circle - is the workhorse: check if we have the green light to emit lines, then convert coordinates and diameter to mm and decide what format to use for printing a line for each filled circle. -

    Finally, bind all four callbacks to exporter events. Index: trunk/doc-rnd/gpmi/rosetta/35_export_drill/ID.name =================================================================== --- trunk/doc-rnd/gpmi/rosetta/35_export_drill/ID.name (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/35_export_drill/ID.name (nonexistent) @@ -1 +0,0 @@ -drill list exporter Index: trunk/doc-rnd/gpmi/rosetta/35_export_drill/ex.lua =================================================================== --- trunk/doc-rnd/gpmi/rosetta/35_export_drill/ex.lua (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/35_export_drill/ex.lua (nonexistent) @@ -1,65 +0,0 @@ -PkgLoad("pcb-rnd-gpmi/hid", 0) -PkgLoad("pcb-rnd-gpmi/layout", 0) -PkgLoad("pcb-rnd-gpmi/dialogs", 0) - -hid = hid_create("drill", "drill list export") -attr_path = hid_add_attribute(hid, "filename", "name of the output file", "HIDA_Path", 0, 0, "drill.txt") -attr_format = hid_add_attribute(hid, "format", "file format", "HIDA_Enum", 0, 0, "CSV|TSV|text") -hid_register(hid) - -fmt = 0 -conv = mm2pcb_multiplier() -channel = nil -green_light = 0 - -function make_gc(event_id, hid, gc) - if channel == nil - then - channel = io.open(hid_get_attribute(hid, attr_path), "w") - if channel == nil - then - dialog_report("Error exporting drill", "Could not open file [hid_get_attribute $hid $attr_path] for\nwriting, exporting drill failed.") - return - end - fmt = hid_get_attribute(hid, attr_format) - end -end - -function destroy_gc(event_id, hid, gc) - if channel ~= nil - then - channel:close() - channel = nil - end -end - -function set_layer_group(event_id, hid, group, layer, flags, empty) - if (layer_flag_is_set(flags, "LYT_ASSY") == "1") and (layer_flag_is_set(flags, "LYT_TOP") == "1") - then - green_light = 1 - else - green_light = 0 - end -end - -function fill_circle(event_id, hid, gc, cx, cy, r) - if green_light == 1 - then - cx = cx / conv - cy = cy / conv - local dia = r / conv * 2 - - if fmt == "CSV" then - channel:write(cx .. "," .. cy .. "," .. dia .. "\n") - elseif (fmt == "TSV") then - channel:write(cx .. "\t" .. cy .. "\t" .. dia .. "\n") - elseif (fmt == "text") then - channel:write(cx .. " " .. cy .. " " .. dia .. "\n") - end - end -end - -Bind("HIDE_make_gc", "make_gc") -Bind("HIDE_destroy_gc", "destroy_gc") -Bind("HIDE_set_layer_group", "set_layer_group") -Bind("HIDE_fill_circle", "fill_circle") Index: trunk/doc-rnd/gpmi/rosetta/35_export_drill/ex.tcl =================================================================== --- trunk/doc-rnd/gpmi/rosetta/35_export_drill/ex.tcl (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/35_export_drill/ex.tcl (nonexistent) @@ -1,65 +0,0 @@ -PkgLoad pcb-rnd-gpmi/hid 0 -PkgLoad pcb-rnd-gpmi/layout 0 -PkgLoad pcb-rnd-gpmi/dialogs 0 - -set hid [hid_create "drill" "drill list export"] -set attr_path [hid_add_attribute $hid "filename" "name of the output file" "HIDA_Path" 0 0 "drill.txt"] -set attr_format [hid_add_attribute $hid "format" "file format" "HIDA_Enum" 0 0 "CSV|TSV|text"] -hid_register $hid - -set fmt 0 -set conv [mm2pcb_multiplier] -set channel -1 -set green_light 0 - -proc make_gc {event_id hid gc} { - global channel attr_path attr_format fmt - - if {$channel == -1} { - if {[catch {open [hid_get_attribute $hid $attr_path] "w"} channel]} { - dialog_report "Error exporting drill" "Could not open file [hid_get_attribute $hid $attr_path] for\nwriting, exporting drill failed." - return - } - set fmt [hid_get_attribute $hid $attr_format] - } -} - -proc destroy_gc {event_id hid gc} { - global channel - - if {$channel > -1} { - close $channel - set channel -1 - } -} - -proc set_layer_group {event_id hid group layer flags empty} { - global green_light - - if { [layer_flag_is_set $flags "LYT_ASSY"] && [layer_flag_is_set $flags "LYT_TOP"] } { set green_light 1; puts "!!!!!!!!!!!!!!!"} { set green_light 0 } -} - -proc fill_circle {event_id hid gc cx cy r} { - global channel conv fmt green_light - - if {$green_light} { - set cx [expr $cx / $conv] - set cy [expr $cy / $conv] - set dia [expr $r / $conv * 2] - - if {$fmt eq "CSV"} { - puts $channel "$cx,$cy,$dia" - } elseif {$fmt eq "TSV"} { - puts $channel "$cx $cy $dia" - } elseif {$fmt eq "text"} { - puts $channel "$cx $cy $dia" - } - } -} - -Bind HIDE_make_gc make_gc -Bind HIDE_destroy_gc destroy_gc -Bind HIDE_set_layer_group set_layer_group -Bind HIDE_fill_circle fill_circle - -puts "NA?" Index: trunk/doc-rnd/gpmi/rosetta/35_export_drill/ex.awk =================================================================== --- trunk/doc-rnd/gpmi/rosetta/35_export_drill/ex.awk (revision 5606) +++ trunk/doc-rnd/gpmi/rosetta/35_export_drill/ex.awk (nonexistent) @@ -1,60 +0,0 @@ -BEGIN { - PkgLoad("pcb-rnd-gpmi/hid", 0) - PkgLoad("pcb-rnd-gpmi/layout", 0) - PkgLoad("pcb-rnd-gpmi/dialogs", 0) - - hid = hid_create("drill", "drill list export") - attr_path = hid_add_attribute(hid, "filename", "name of the output file", "HIDA_Path", 0, 0, "drill.txt") - attr_format = hid_add_attribute(hid, "format", "file format", "HIDA_Enum", 0, 0, "CSV|TSV|text") - hid_register(hid) - - fmt = 0 - conv = mm2pcb_multiplier() - channel = "" - green_light = 0 -} - -function make_gc(event_id, hid, gc) { - if (channel == "") { - channel = hid_get_attribute(hid, attr_path) -# awk: can't check whether the file can be open here - fmt = hid_get_attribute(hid, attr_format) - } -} - -function destroy_gc(event_id, hid, gc) { - if (channel != "") { - close(channel) - channel = "" - } -} - -function set_layer(event_id, hid, group, layer, flags, empty) { - if ((layer_flag_is_set(flags, "LYT_ASSY") == "1") && (layer_flag_is_set(flags, "LYT_TOP") == "1")) - green_light = 1 - else - green_light = 0 -} - -function fill_circle(event_id, hid, gc, cx, cy, r ,dia) { - if (green_light) { - cx = cx / conv - cy = cy / conv - dia = r / conv * 2 - - if (fmt == "CSV") { - print cx "," cy "," dia > channel - } else if (fmt == "TSV") { - print cx "\t" cy "\t" dia > channel - } else if (fmt == "text") { - print cx " " cy " " dia > channel - } - } -} - -BEGIN { - Bind("HIDE_make_gc", "make_gc") - Bind("HIDE_destroy_gc", "destroy_gc") - Bind("HIDE_set_layer_group", "set_layer_group") - Bind("HIDE_fill_circle", "fill_circle") -} Index: trunk/doc-rnd/gpmi/gpmi_flow_exp.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/gpmi/gpmi_flow_exp.png =================================================================== --- trunk/doc-rnd/gpmi/gpmi_flow_exp.png (revision 5606) +++ trunk/doc-rnd/gpmi/gpmi_flow_exp.png (nonexistent) Property changes on: trunk/doc-rnd/gpmi/gpmi_flow_exp.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/gpmi/Porting =================================================================== --- trunk/doc-rnd/gpmi/Porting (revision 5606) +++ trunk/doc-rnd/gpmi/Porting (nonexistent) @@ -1,5 +0,0 @@ -Currently the project works on Linux only. GPMI is portable, so we need -only Makefile tweakings on pcb-gpmi to be able to compile it anywhere -where GPMI compiles. However, first I want to see some test results -from Linux users. - Index: trunk/doc-rnd/gpmi/gpmi_flow_exp.dot =================================================================== --- trunk/doc-rnd/gpmi/gpmi_flow_exp.dot (revision 5606) +++ trunk/doc-rnd/gpmi/gpmi_flow_exp.dot (nonexistent) @@ -1,65 +0,0 @@ -digraph g { - rankdir=LR - splines="polyline" -# nodesep=1 -# ranksep=1.5 - - subgraph cluster_0 { - label="pcb-rnd" -# core [label="pcb-rnd core|{{HID system|plugin system}}" shape=record] - core [label="core" shape=box] - hids [label="HID system" shape=box height=2] - plugins [label="plugin system" shape=box height=2] - } - - subgraph cluster_1 { - label="GPMI" - gpmi_hid [label="gpmi HID"] - gpmi_pkg [label="gpmi package\n(host glue layer)"] - gpmi_mod1 [label="gpmi lua module\n(script glue layer)"] - gpmi_scr1 [label="lua script"] - gpmi_mod2 [label="gpmi mawk module\n(script glue layer)"] - gpmi_scr2 [label="awk script"] - outfile [label="export\noutput file" color=green] - } - - - - gui [label="the active\nGUI HID\n(e.g. gtk)"] - exp1 [label="PS exporer"] - exp2 [label="PNG exporer"] - - - exp1 -> hids [label="register"] - exp2 -> hids [label="register"] - - hids -> exp1 [label="drawing"] - hids -> exp2 [label="drawing"] - hids -> gui [label="drawing"] - - plugins -> gpmi_hid [label="load plugin"] - gpmi_hid -> hids [label="register"] - hids -> gpmi_hid [label="drawing" color=green] - core -> gpmi_hid [label="event"] - - gpmi_pkg -> core [label="calls & variables"] - gpmi_pkg -> hids [label="calls & variables" color=red] - gpmi_pkg -> gpmi_hid [label="calls & variables"] - gpmi_pkg -> plugins [label="calls & variables"] - - - gpmi_hid -> gpmi_mod1 [label="load script"] - gpmi_hid -> gpmi_mod1 [label="event" color=green] - gpmi_hid -> gpmi_mod2 [label="load script"] - gpmi_hid -> gpmi_mod2 [label="event"] - - gpmi_mod1 -> gpmi_scr1 [label="load and exec"] - gpmi_mod1 -> gpmi_scr1 [label="event" style=dashed color=green] - gpmi_scr1 -> gpmi_pkg [label="function calls" style=dashed color=red] - gpmi_scr1 -> outfile [label="write" color=green] - - gpmi_mod2 -> gpmi_scr2 [label="load and exec"] - gpmi_mod2 -> gpmi_scr2 [label="event" style=dashed] - gpmi_scr2 -> gpmi_pkg [label="function calls" style=dashed] - -} \ No newline at end of file Index: trunk/doc-rnd/gpmi/gpmi_flow_menu.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/gpmi/gpmi_flow_menu.png =================================================================== --- trunk/doc-rnd/gpmi/gpmi_flow_menu.png (revision 5606) +++ trunk/doc-rnd/gpmi/gpmi_flow_menu.png (nonexistent) Property changes on: trunk/doc-rnd/gpmi/gpmi_flow_menu.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/gpmi/gpmi_flow_menu.dot =================================================================== --- trunk/doc-rnd/gpmi/gpmi_flow_menu.dot (revision 5606) +++ trunk/doc-rnd/gpmi/gpmi_flow_menu.dot (nonexistent) @@ -1,63 +0,0 @@ -digraph g { - rankdir=LR - splines="polyline" -# nodesep=1 -# ranksep=1.5 - - subgraph cluster_0 { - label="pcb-rnd" -# core [label="pcb-rnd core|{{HID system|plugin system}}" shape=record] - core [label="core" shape=box] - hids [label="HID system" shape=box height=2] - plugins [label="plugin system" shape=box height=2] - } - - subgraph cluster_1 { - label="GPMI" - gpmi_hid [label="gpmi HID"] - gpmi_pkg [label="gpmi package\n(host glue layer)"] - gpmi_mod1 [label="gpmi lua module\n(script glue layer)"] - gpmi_scr1 [label="lua script"] - gpmi_mod2 [label="gpmi mawk module\n(script glue layer)"] - gpmi_scr2 [label="awk script"] - } - - - - gui [label="the active\nGUI HID\n(e.g. gtk)"] - exp1 [label="PS exporer"] - exp2 [label="PNG exporer"] - - - exp1 -> hids [label="register"] - exp2 -> hids [label="register"] - - hids -> exp1 [label="drawing"] - hids -> exp2 [label="drawing"] - hids -> gui [label="drawing" color=green] - - plugins -> gpmi_hid [label="load plugin"] - gpmi_hid -> hids [label="register"] - hids -> gpmi_hid [label="drawing"] - core -> gpmi_hid [label="event" color=red] - - gpmi_pkg -> core [label="calls & variables"] - gpmi_pkg -> hids [label="calls & variables" color=green] - gpmi_pkg -> gpmi_hid [label="calls & variables"] - gpmi_pkg -> plugins [label="calls & variables"] - - - gpmi_hid -> gpmi_mod1 [label="load script"] - gpmi_hid -> gpmi_mod1 [label="event" color=red] - gpmi_hid -> gpmi_mod2 [label="load script"] - gpmi_hid -> gpmi_mod2 [label="event"] - - gpmi_mod1 -> gpmi_scr1 [label="load and exec"] - gpmi_mod1 -> gpmi_scr1 [label="event" style=dashed color=red] - gpmi_scr1 -> gpmi_pkg [label="function calls" style=dashed color=green] - - gpmi_mod2 -> gpmi_scr2 [label="load and exec"] - gpmi_mod2 -> gpmi_scr2 [label="event" style=dashed] - gpmi_scr2 -> gpmi_pkg [label="function calls" style=dashed] - -} \ No newline at end of file Index: trunk/doc-rnd/gpmi/Credits =================================================================== --- trunk/doc-rnd/gpmi/Credits (revision 5606) +++ trunk/doc-rnd/gpmi/Credits (nonexistent) @@ -1,11 +0,0 @@ -2006...2009 -~~~~~~~~~~~ -Big thanks to DJ Delorie who added external HID support in PCB and commited -many small patches needed to get this project working in the period -when the whole project was a plugin to vanilla pcb. - -The following people helped the project with their valuable feedbacks -in the early stage: - John Griessen - Carlos Nieves Onega - Index: trunk/doc-rnd/gpmi/History =================================================================== --- trunk/doc-rnd/gpmi/History (revision 5606) +++ trunk/doc-rnd/gpmi/History (nonexistent) @@ -1,32 +0,0 @@ -History -~~~~~~~ -As of October 2006, PCB has native support for external (or dynamic -loadable) HIDs. This project is plugin that provides scripting features. - -For a long time I believe that good applications should be scriptable, -and real good ones should not restrict scripting to one or two languages. -For this reason I have been working on GPMI with various other developers -for years. GPMI provides a general way to split up big applications in -smaller, usually dynamic loadable parts, and encourages that some of these -parts should be written in a script language. For me, the ideal model -of an application is a small core that knows how to manipulate the -internal representation of the task and a lot of dynamic functionality -plugins and support plugins that do all the high-level job for the user. - -PCB is an old and big software, with a stable user base. Restructuring the -whole source to "GPMIize" it is no option. Instead, a nice compromise is -implementing this functionality in a plugin that pcb can load for the users -who are interested in such extras. - -From 2006 to 2009 spring the project was on hold, because I was nagging -PCB developers to add support for customizable dialog boxes. In late March -2009, PCB developers pointed out that the interface I was waiting for had been -there for who-knows-how-long. With the help of DJ Delorie I extended the -action handling of PCB to remember action contexts, which was another showstopper. -After all obstacles removed, I allocated a 24 hour coding session where I -finished the exporter functionality, added action binding, dialog box handling -and layout manipulation functions. - -During the summer of 2015 I merged pcb-gpmi into pcb-rnd and made it -the default scirpting engine for pcb-rnd. - Index: trunk/doc-rnd/gpmi/gpmi_flow_reg.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/gpmi/gpmi_flow_reg.png =================================================================== --- trunk/doc-rnd/gpmi/gpmi_flow_reg.png (revision 5606) +++ trunk/doc-rnd/gpmi/gpmi_flow_reg.png (nonexistent) Property changes on: trunk/doc-rnd/gpmi/gpmi_flow_reg.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/gpmi/gpmi_flow_reg.dot =================================================================== --- trunk/doc-rnd/gpmi/gpmi_flow_reg.dot (revision 5606) +++ trunk/doc-rnd/gpmi/gpmi_flow_reg.dot (nonexistent) @@ -1,64 +0,0 @@ -digraph g { - rankdir=LR - splines="polyline" -# nodesep=1 -# ranksep=1.5 - - subgraph cluster_0 { - label="pcb-rnd" -# core [label="pcb-rnd core|{{HID system|plugin system}}" shape=record] - core [label="core" shape=box] - hids [label="HID system" shape=box height=2] - plugins [label="plugin system" shape=box height=2] - } - - subgraph cluster_1 { - label="GPMI" - gpmi_hid [label="gpmi HID"] - gpmi_pkg [label="gpmi package\n(host glue layer)"] - gpmi_mod1 [label="gpmi lua module\n(script glue layer)"] - gpmi_scr1 [label="lua script"] - gpmi_mod2 [label="gpmi mawk module\n(script glue layer)"] - gpmi_scr2 [label="awk script"] - } - - - - gui [label="the active\nGUI HID\n(e.g. gtk)"] - exp1 [label="PS exporer"] - exp2 [label="PNG exporer"] - - - exp1 -> hids [label="register"] - exp2 -> hids [label="register"] - - hids -> exp1 [label="drawing"] - hids -> exp2 [label="drawing"] - hids -> gui [label="drawing"] - - plugins -> gpmi_hid [label="load plugin"] - gpmi_hid -> hids [label="register"] - hids -> gpmi_hid [label="drawing"] - core -> gpmi_hid [label="event"] - - gpmi_pkg -> core [label="calls & variables" color=green] - gpmi_pkg -> hids [label="calls & variables"] - gpmi_pkg -> gpmi_hid [label="calls & variables" color=red] - gpmi_pkg -> plugins [label="calls & variables"] - - - gpmi_hid -> gpmi_mod1 [label="load script"] - gpmi_hid -> gpmi_mod1 [label="event"] - gpmi_hid -> gpmi_mod2 [label="load script"] - gpmi_hid -> gpmi_mod2 [label="event"] - - gpmi_mod1 -> gpmi_scr1 [label="load and exec"] - gpmi_mod1 -> gpmi_scr1 [label="event" style=dashed] - gpmi_scr1 -> gpmi_pkg [label="function calls" style=dashed color=red] - gpmi_scr1 -> gpmi_pkg [label="function calls" style=dashed color=green] - - gpmi_mod2 -> gpmi_scr2 [label="load and exec"] - gpmi_mod2 -> gpmi_scr2 [label="event" style=dashed] - gpmi_scr2 -> gpmi_pkg [label="function calls" style=dashed] - -} \ No newline at end of file Index: trunk/doc-rnd/gpmi/gpmi_flow_load.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/gpmi/gpmi_flow_load.png =================================================================== --- trunk/doc-rnd/gpmi/gpmi_flow_load.png (revision 5606) +++ trunk/doc-rnd/gpmi/gpmi_flow_load.png (nonexistent) Property changes on: trunk/doc-rnd/gpmi/gpmi_flow_load.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/gpmi/gpmi_flow.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/gpmi/gpmi_flow.png =================================================================== --- trunk/doc-rnd/gpmi/gpmi_flow.png (revision 5606) +++ trunk/doc-rnd/gpmi/gpmi_flow.png (nonexistent) Property changes on: trunk/doc-rnd/gpmi/gpmi_flow.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/gpmi/gpmi_flow_load.dot =================================================================== --- trunk/doc-rnd/gpmi/gpmi_flow_load.dot (revision 5606) +++ trunk/doc-rnd/gpmi/gpmi_flow_load.dot (nonexistent) @@ -1,63 +0,0 @@ -digraph g { - rankdir=LR - splines="polyline" -# nodesep=1 -# ranksep=1.5 - - subgraph cluster_0 { - label="pcb-rnd" -# core [label="pcb-rnd core|{{HID system|plugin system}}" shape=record] - core [label="core" shape=box] - hids [label="HID system" shape=box height=2] - plugins [label="plugin system" shape=box height=2] - } - - subgraph cluster_1 { - label="GPMI" - gpmi_hid [label="gpmi HID"] - gpmi_pkg [label="gpmi package\n(host glue layer)"] - gpmi_mod1 [label="gpmi lua module\n(script glue layer)"] - gpmi_scr1 [label="lua script"] - gpmi_mod2 [label="gpmi mawk module\n(script glue layer)"] - gpmi_scr2 [label="awk script"] - } - - - - gui [label="the active\nGUI HID\n(e.g. gtk)"] - exp1 [label="PS exporer"] - exp2 [label="PNG exporer"] - - - exp1 -> hids [label="register"] - exp2 -> hids [label="register"] - - hids -> exp1 [label="drawing"] - hids -> exp2 [label="drawing"] - hids -> gui [label="drawing"] - - plugins -> gpmi_hid [label="load plugin" color=red] - gpmi_hid -> hids [label="register"] - hids -> gpmi_hid [label="drawing"] - core -> gpmi_hid [label="event"] - - gpmi_pkg -> core [label="calls & variables"] - gpmi_pkg -> hids [label="calls & variables"] - gpmi_pkg -> gpmi_hid [label="calls & variables" color=green] - gpmi_pkg -> plugins [label="calls & variables"] - - - gpmi_hid -> gpmi_mod1 [label="load script" color=red] - gpmi_hid -> gpmi_mod1 [label="event"] - gpmi_hid -> gpmi_mod2 [label="load script"] - gpmi_hid -> gpmi_mod2 [label="event"] - - gpmi_mod1 -> gpmi_scr1 [label="load and exec" color=red] - gpmi_mod1 -> gpmi_scr1 [label="event" style=dashed] - gpmi_scr1 -> gpmi_pkg [label="function calls" style=dashed color=green] - - gpmi_mod2 -> gpmi_scr2 [label="load and exec"] - gpmi_mod2 -> gpmi_scr2 [label="event" style=dashed] - gpmi_scr2 -> gpmi_pkg [label="function calls" style=dashed] - -} \ No newline at end of file Index: trunk/doc-rnd/gpmi/gpmi_flow.dot =================================================================== --- trunk/doc-rnd/gpmi/gpmi_flow.dot (revision 5606) +++ trunk/doc-rnd/gpmi/gpmi_flow.dot (nonexistent) @@ -1,63 +0,0 @@ -digraph g { - rankdir=LR - splines="polyline" -# nodesep=1 -# ranksep=1.5 - - subgraph cluster_0 { - label="pcb-rnd" -# core [label="pcb-rnd core|{{HID system|plugin system}}" shape=record] - core [label="core" shape=box] - hids [label="HID system" shape=box height=2] - plugins [label="plugin system" shape=box height=2] - } - - subgraph cluster_1 { - label="GPMI" - gpmi_hid [label="gpmi HID"] - gpmi_pkg [label="gpmi package\n(host glue layer)"] - gpmi_mod1 [label="gpmi lua module\n(script glue layer)"] - gpmi_scr1 [label="lua script"] - gpmi_mod2 [label="gpmi mawk module\n(script glue layer)"] - gpmi_scr2 [label="awk script"] - } - - - - gui [label="the active\nGUI HID\n(e.g. gtk)"] - exp1 [label="PS exporer"] - exp2 [label="PNG exporer"] - - - exp1 -> hids [label="register"] - exp2 -> hids [label="register"] - - hids -> exp1 [label="drawing"] - hids -> exp2 [label="drawing"] - hids -> gui [label="drawing"] - - plugins -> gpmi_hid [label="load plugin"] - gpmi_hid -> hids [label="register"] - hids -> gpmi_hid [label="drawing"] - core -> gpmi_hid [label="event"] - - gpmi_pkg -> core [label="calls & variables"] - gpmi_pkg -> hids [label="calls & variables"] - gpmi_pkg -> gpmi_hid [label="calls & variables"] - gpmi_pkg -> plugins [label="calls & variables"] - - - gpmi_hid -> gpmi_mod1 [label="load script"] - gpmi_hid -> gpmi_mod1 [label="event"] - gpmi_hid -> gpmi_mod2 [label="load script"] - gpmi_hid -> gpmi_mod2 [label="event"] - - gpmi_mod1 -> gpmi_scr1 [label="load and exec"] - gpmi_mod1 -> gpmi_scr1 [label="event" style=dashed] - gpmi_scr1 -> gpmi_pkg [label="function calls" style=dashed] - - gpmi_mod2 -> gpmi_scr2 [label="load and exec"] - gpmi_mod2 -> gpmi_scr2 [label="event" style=dashed] - gpmi_scr2 -> gpmi_pkg [label="function calls" style=dashed] - -} \ No newline at end of file Index: trunk/doc-rnd/gpmi/index.html =================================================================== --- trunk/doc-rnd/gpmi/index.html (revision 5606) +++ trunk/doc-rnd/gpmi/index.html (nonexistent) @@ -1,32 +0,0 @@ - - -

    pcb-rnd GPMI scripting - TOC

    - -

    Installation, configuration

    - - - -

    High level docs

    - - -

    Glue layer documentation

    - - -

    Authors, credits, misc

    - - - - Index: trunk/doc-rnd/gpmi/util/rosetta_genpages.sh =================================================================== --- trunk/doc-rnd/gpmi/util/rosetta_genpages.sh (revision 5606) +++ trunk/doc-rnd/gpmi/util/rosetta_genpages.sh (nonexistent) @@ -1,171 +0,0 @@ -#!/bin/sh - -clean_id() -{ - tr "\r\n" "~" | sed ' -s/~*$//; -s/|/\&pipe;/g; -s/&/\&/g; -s//\>/g; -s/"/\"/g; -s/'\''/\'/g; -s/~\+/
    /g; -' - echo "" -} - -genpage() -{ - local dir scripts name desc - - dir="$1" - scripts="$2" - - name=`cat $dir/ID.name` - desc=`cat $dir/ID.desc` - ./tags < "$dir/ex.html" | awk -v "fn_ref=../packages/XREF" -v "scripts=$scripts" -v "name=$name" -v "desc=$desc" ' - BEGIN { - while((getline < fn_ref) > 0) { - REF[$2] = $3 - } - print "" - print "" - print "<-- back to the index of Rosetta examples" - print "

    " name "

    " - print desc - - print "

    Example implementations

    " - v = split(scripts, S, "[\r\n]+") - for(n = 1; n <= v; n++) { - lang=S[n] - sub("^ex[.]", "", lang) - if (n != 1) - print " | " - print "" lang "" - } - - print "

    Explanation, step by step

    " - } - /^/ { - gsub("", "", $0) - name=$0 - gsub("[ \t]*", "", name) - if (name in REF) { - link_begin="" - link_end = "" - } - else { - link_begin="" - link_end="" - } - print "" link_begin $0 link_end "" - next - } - - { print $0 } - - ' > "$dir/index.html" -} - -gen_index() -{ - - awk -v "template=$1" ' - BEGIN { - FS="[|]" - q = "\"" - LANGS["rb"] = "ruby" - LANGS["pl"] = "perl" - LANGS["py"] = "python" - LANGS["stt"] = "stutter" - LANGS["scm"] = "scheme" - } - - ($1 == "scripts") { - s = $3 - gsub("ex[.]", "", s) - v = split(s, S, " ") - s = "" - for(n = 1; n <= v; n++) { - if (S[n] in LANGS) - s = s " " LANGS[S[n]] - else - s = s " " S[n] - } - DATA[$2, $1] = s - next - } - - ($1 == "name") { - if (names == "") - names = $2 - else - names = names "|" $2 - } - - - { - # DATA[script, name] = "hello world" - DATA[$2, $1] = $3 - } - - function generate(cmd ,N,n,v,name,level) { - if (cmd == "index") { - print "" - print "" - print "
    lvlexample languages description" - v = split(names, N, "[|]") - for(n = 1; n <= v; n++) { - name = N[n] - level = name - sub("_.*", "", level) - if (level ~ "[^0-9]") - level = "n/a" - print "
    " level - print " " DATA[name, "name"] "" - print " " DATA[name, "scripts"] - print " " DATA[name, "desc"] - } - print "
    " - } - else - print "Do not know how to generate " cmd > "/dev/stderr" - } - - END { - FS="" - while((getline < template) > 0) { - if (match($0, "]*>")) { - print substr($0, 1, RSTART-1) - cmd=substr($0, RSTART+8, RLENGTH-9) - sub("^[ \t]*", "", cmd) - generate(cmd) - print substr($0, RSTART+RLENGTH) - } - else - print $0 - } - } - ' - -} - - -for n in ../rosetta/* -do - if test -d "$n" - then - bn=`basename $n` - scripts=`cd $n && ls ex.* | grep -v ".pyc$\|.html$" ` - genpage "$n" "$scripts" - echo -n "desc|$bn|" - clean_id < $n/ID.desc - echo -n "name|$bn|" - clean_id < $n/ID.name - echo -n "scripts|$bn|" - echo $scripts - fi -done | gen_index ../rosetta/index.templ.html > ../rosetta/index.html - - Property changes on: trunk/doc-rnd/gpmi/util/rosetta_genpages.sh ___________________________________________________________________ Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: trunk/doc-rnd/gpmi/util/Makefile =================================================================== --- trunk/doc-rnd/gpmi/util/Makefile (revision 5606) +++ trunk/doc-rnd/gpmi/util/Makefile (nonexistent) @@ -1 +0,0 @@ -all: Index: trunk/doc-rnd/gpmi/util/tags =================================================================== --- trunk/doc-rnd/gpmi/util/tags (revision 5606) +++ trunk/doc-rnd/gpmi/util/tags (nonexistent) @@ -1,4 +0,0 @@ -#!/bin/sh - -tr "\n" " " | sed "s@\(<[^/]\)@\n\1@g;s@\(]*>\)@\1\n@g" - Property changes on: trunk/doc-rnd/gpmi/util/tags ___________________________________________________________________ Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: trunk/doc-rnd/gpmi/Makefile =================================================================== --- trunk/doc-rnd/gpmi/Makefile (revision 5606) +++ trunk/doc-rnd/gpmi/Makefile (nonexistent) @@ -1,20 +0,0 @@ -DPI_BIG=-Gsize=8,8 -Gdpi=166 -DPI=-Gsize=8,8 -Gdpi=100 - -all: gpmi_flow.png gpmi_flow_load.png gpmi_flow_reg.png gpmi_flow_menu.png gpmi_flow_exp.png - cd rosetta && make - -gpmi_flow.png: gpmi_flow.dot Makefile - dot $(DPI_BIG) -Tpng gpmi_flow.dot >$@ - -gpmi_flow_load.png: gpmi_flow_load.dot Makefile - dot $(DPI) -Tpng gpmi_flow_load.dot >$@ - -gpmi_flow_reg.png: gpmi_flow_reg.dot Makefile - dot $(DPI) -Tpng gpmi_flow_reg.dot >$@ - -gpmi_flow_menu.png: gpmi_flow_menu.dot Makefile - dot $(DPI) -Tpng gpmi_flow_menu.dot >$@ - -gpmi_flow_exp.png: gpmi_flow_exp.dot Makefile - dot $(DPI) -Tpng gpmi_flow_exp.dot >$@ Index: trunk/doc-rnd/gpmi/packages/actions_ref.html =================================================================== --- trunk/doc-rnd/gpmi/packages/actions_ref.html (revision 5606) +++ trunk/doc-rnd/gpmi/packages/actions_ref.html (nonexistent) @@ -1,82 +0,0 @@ - - -

    PCB GPMI

    -

    Reference manual for package actions

    -Automatically generated from actions.h - -

    Events

    -
    -

    Events do not have return value. The first argument is always the even id. Event handlers defined in scripts get all event arguments converted to string (types below are informational). - -

    ACTE_action(int event_id, const char* name, int argc, int x, int y)

    -
    - Generated when an action registered by the script is executed.
    -   Arguments:
    -    name: name of the action (as registed using function action_register())
    -    argc: number of arguments. Arguments can be accessed using function action_arg
    -    x, y: optional coords, if need_xy was not empty at action_register 
    -
    -
    -

    ACTE_gui_init(int event_id, int argc, char** argv)

    -
    - Generated right after gui initialization, before the gui main loop.
    -   Arguments:
    -    argc: number of arguments the gui was initialized with.
    -    argv[]: arguments the gui was initialized with - unaccessible for the scripts. 
    -
    -
    -

    ACTE_unload(int event_id, const char* conffile)

    -
    - Generated right before unloading a script to give the script a chance
    -   to clean up.
    -   Arguments:
    -    conffile: the name of the config file that originally triggered laoding the script, or empty if the script was loaded from the gui. 
    -
    -
    -

    Functions

    -
    -

    The following functions are registered in script context. - -

    int action_register(const char* name, const char* need_xy, const char* description, const char* syntax)

    -
    - Register an action in PCB - when the action is executed, event
    -   ACTE_action is generated with the action name.
    -   Multiple actions can be registered. Any action registered by the script
    -   will trigger an ACTE_event sent to the script.
    -   Arguments:
    -    name: name of the action
    -    need_xy: the question the user is asked when he needs to choose a coordinate; if empty, no coordinate is asked
    -    description: description of the action (for the help)
    -    syntax: syntax of the action (for the help)
    -   Returns 0 on success.
    - 
    -
    -
    -

    const char* action_arg(int argn)

    -
    - extract the (argn)th event argument for the current action (makes sense only in an ACTE_action event handler 
    -
    -
    -

    int action(const char* cmdline)

    -
    - call an existing action using PCB syntax (e.g. foo(1, 2, 3))
    -   Returns non-zero on error; generally returns value of the action
    -   (which is also non-zero on error). 
    -
    -
    -

    void create_menu(const char* path, const char* action, const char* mnemonic, const char* hotkey, const char* tooltip)

    -
    - Create a new menu or submenu at path. Missing parents are created
    -   automatically with empty action, mnemonic, hotkey and tooltip.
    -   Arguments:
    -    path: the full path of the new menu
    -    action: this action is executed when the user clicks on the menu
    -    mnemonic: which letter to underline in the menu text (will be the fast-jump-there key once the menu is open)
    -    hotkey: when this key is pressed in the main gui, the action is also triggered; the format is modifiers<Key>letter, where modifiers is Alt, Shift or Ctrl. This is the same syntax that is used in the .res files.
    -    tooltip: short help text 
    -
    -
    - - - - Index: trunk/doc-rnd/gpmi/packages/layout.html =================================================================== --- trunk/doc-rnd/gpmi/packages/layout.html (revision 5606) +++ trunk/doc-rnd/gpmi/packages/layout.html (nonexistent) @@ -1,58 +0,0 @@ - - -

    layout package

    - -Layout package searches and manipulates the current layout. Dimension units -are in nanometer unless otherwise mentioned. - -

    Page: board dimensions

    - Functions used to query or set width and height of the drawing: -
      -
    • int layout_get_page_width(); -
    • int layout_get_page_height(); -
    • void layout_set_page_size(int width, int height); -
    - -

    Layer manipulation

    -Most functions perform operations similar to user commands affecting -the current layer. -The following few calls can change the current layer. Warning: this is the -same current layer as the user's; the script most probably wants to save -the current layer before changing it and then restore it after the operation. -
      -
    • int layout_resolve_layer(const char *name): resolve layer number by name (case sensitive); returns negative number if not found -
    • int layout_get_current_layer(): returns the number of the current layer -
    • void layout_switch_to_layer(int layer): switch to layer (further actions will take place there) -
    -

    - -

    Object searches

    - Search results are collected on lists identified by their name (search_ID). - If a new search is done with the same name, old search results for that - name are discarded. - Search functions return the number of objects found (size of the list) that can - be then used while querying the results using layout_search_get(). - Results should be freed using layout_search_free() when they are no - longer needed. -

    - TODO: validity of a list in time -

    -Once the search list is ready, the script can iterate over it and resolve -the object handle of each object found, using layout_search_get(). Having -an object handle, The layout_obj_*() functions may be used by the script -to access fields of an object structure. - -

    Create new objects

    - The layour_create_*() calls are used to create new objects on the current - layer (set by layout_switch_to_layer()). - - -

    API reference - page, untis and coordinates

    -(angles are in radian) -TODO - -

    API reference - debug draw

    -TODO - - - Index: trunk/doc-rnd/gpmi/packages/event_id.html =================================================================== --- trunk/doc-rnd/gpmi/packages/event_id.html (revision 5606) +++ trunk/doc-rnd/gpmi/packages/event_id.html (nonexistent) @@ -1,20 +0,0 @@ - - -

    event_id

    - -The first argument passed to an event handler is always the event ID. -It is useful if there are several GPMI events with the same arguments and -the script wants to bind them all to the same event handler. In that case -using event_id the event handler can determine which event triggered the -call. This design is similar to the signal handler documented in -signal(2). - -

    - -The case described above (dispatcher in the event handler) is rare. -Most users will bind one event to one function and can safely ignore this -argument. Nevertheless it must present as the first argument -on the event handler's argument list. - - - Index: trunk/doc-rnd/gpmi/packages/dialogs_ref.html =================================================================== --- trunk/doc-rnd/gpmi/packages/dialogs_ref.html (revision 5606) +++ trunk/doc-rnd/gpmi/packages/dialogs_ref.html (nonexistent) @@ -1,105 +0,0 @@ - - -

    PCB GPMI

    -

    Reference manual for package dialogs

    -Automatically generated from dialogs.h - -

    Enums

    -
    -

    Enum values should be passed on as strings. - -

    dialog_fileselect_e

    -
    - Filter on what files a file select dialog should list 
    -
    - -
    value meaning -
    FS_NONE none of the below -
    FS_READ when the selected file will be read, not written (HID_FILESELECT_READ) -
    FS_NOT_EXIST the function calling hid->fileselect will deal with the case when the selected file already exists. If not given, then the gui will prompt with an "overwrite?" prompt. Only used when writing. (HID_FILESELECT_MAY_NOT_EXIST) -
    FS_TEMPLATE the call is supposed to return a file template (for gerber output for example) instead of an actual file. Only used when writing. (HID_FILESELECT_IS_TEMPLATE) -
    -
    -

    Functions

    -
    -

    The following functions are registered in script context. - -

    void dialog_log(const char* msg)

    -
    - Append a msg to the log (log window and/or stderr). 
    -
    -
    -

    int dialog_confirm(const char* msg, const char* ok, const char* cancel)

    -
    - Ask the user for confirmation (usually using a popup). Returns 0 for
    -   cancel and 1 for ok.
    -   Arguments:
    -     msg: message to the user
    -     ok: label of the OK button
    -     cancel: label of the cancel button
    -  Arguments "ok" and "cancel" may be empty (or NULL) in which
    -  case the GUI will use the default (perhaps localized) labels for
    -  those buttons. 
    -
    -
    -

    void dialog_report(const char* title, const char* msg)

    -
    - Pop up a report dialog.
    -   Arguments:
    -     title: title of the window
    -     msg: message 
    -
    -
    -

    char* dialog_prompt(const char* msg, const char* default_)

    -
    - Ask the user to input a string (usually in a popup).
    -   Arguments:
    -     msg: message or question text
    -     default_: default answer (this may be filled in on start)
    -   Returns the answer. 
    -
    -
    -

    char* dialog_fileselect(const char* title, const char* descr, char* default_file_, char* default_ext, const char* history_tag, dialog_fileselect_t flags)

    -
    - Pops up a file selection dialog.
    -   Arguments:
    -     title: window title
    -     descr: description
    -     default_file_
    -     default_ext: default file name extension
    -     history_tag
    -     flags: one or more flags (see below)
    -   Returns the selected file or NULL (empty). 
    -
    -
    -

    void dialog_beep(void)

    -
    - Audible beep 
    -
    -
    -

    int dialog_progress(int so_far, int total, const char* message)

    -
    - Request the GUI hid to draw a progress bar.
    -   Arguments:
    -     int so_far: achieved state
    -     int total: maximum state
    -     const char *message: informs the users what they are waiting for
    -   If so_far is bigger than total, the progress bar is closed.
    -   Returns nonzero if the user wishes to cancel the operation.
    -
    -
    -
    -

    int dialog_attribute(hid_t* hid, const char* title, const char* descr)

    -
    - Pop up an attribute dialog; content (widgets) of the dialog box are coming
    -   from hid (see the hid package).
    -   Arguments:
    -     hid: widgets
    -     title: title of the window
    -     descr: descripting printed in the dialog 
    -
    -
    - - - - Index: trunk/doc-rnd/gpmi/packages/actions.html =================================================================== --- trunk/doc-rnd/gpmi/packages/actions.html (revision 5606) +++ trunk/doc-rnd/gpmi/packages/actions.html (nonexistent) @@ -1,123 +0,0 @@ - - -

    The actions package

    - -The action package is used to register actions and menus in PCB and -to execute existing actions. In PCB actions -are generated when the user selects a menu, presses a key or issues a -command on the PCB command line. - -

    Registration of new actions

    -The script may register new actions -using arbitrary action names. If any of the registered actions is -detected, an ACTE_action event is sent to the script. If multiple -actions are used in a script, argument name of the event handler -can be used to identify the triggering action. (This may be time consuming -in scripting languages (a series of string comparison) - those scripts -binding to frequent actions should not bind to too many different actions.) -pcb-gpmi guarantees that the event handler of a script is triggered only -when an action is caught that previously was registered by the same script. -

    -The process of binding an action: -

      -
    1. create an event handler for event ACTE_action -
    2. register one or more actions using function action_register -
    3. optional: when the event handler is triggered, check argument name (for scripts with multiple actions registered) -
    4. optional: use argument argc and function action_arg to fetch action arguments -
    5. optional: use arguments x, y to learn the cursor position on the layout. -
    - -Example (written in lua): -
    --- load the package
    -PkgLoad("pcb-gpmi/actions", 0);
    -
    --- action callback
    -function ev_action(id, name, argc, x, y)
    -	if name == "cake" then
    -		size = action_arg(1);
    -		-- put cake drawing code here
    -	else
    -		-- must be candy
    -		amount = action_arg(1);
    -		-- put candy drawing code here
    -	end
    -end
    -
    --- register and bind action
    -action_register("cake",  "cake center xy?", "cake service", "cake(size)", "");
    -action_register("candy", "candy cloud center xy?", "cake service", "candy(amount)", "");
    -Bind("ACTE_action", "ev_action");
    -
    -

    -When the script is unloaded all actions the script registered -are removed from pcb-rnd automatically. - -

    Executing actions

    -An existing action can be executed using the action() call. The only one -argument is a command line string. The syntyax is the same as in pcb -command line. - -Example (written in lua): -
    -PkgLoad("pcb-rnd-gpmi/actions", 0);
    -
    -function ev_action1(id, name, argc, x, y)
    -	action("undo()")
    -	action("undo()")
    -end
    -
    --- register and bind action
    -action_register("untwo", "", "undo twice", "untwo()", "CONTEXT!");
    -
    -

    -The above script registers a new action called untwo(). When untwo() is executed, -it exectues action undo() twice. - - -

    Creating menus

    -It is possible to insert menus and submenus runtime, using the call -create_menu(). The script should do this only after the gui has been initialized. -The most common way is to create all menus from the ACTE_gui_init event, -which is called after the gui finished setting up. -

    -The first argument of create_menu() is the menu path. The path is a list -of visible menu names separated by slashes (e.g. "/main_menu/File/Save as..." means -"File" menu, "Save as..." submenu). -

    -Paths are interpreted as menu paths, which are a slightly simplified version -of lihata paths found in menu.lht. Basically there's a main directory directly -under root that determines the type of the menu: -

    -

      -
    • /main_menu/ is the menubar -
    • /popups/something/ is a popup menu called something; the lesstif HID does - not support popups; popups are popped up by actions. -
    -

    -The simplification compared to lihata paths is that only menu and submenu -names are on the path, so lihata nodes like "li:submenu" should be ignored. -In other words, the path represents how the menus can be reached from the user -interface, plus a "main menu type prefix" as discussed above. -

    -By convention, scripts should -create new menu items under the "/main_menu/Plugins/" menu. -

    -The following example lua script registers a new menu item -

    -PkgLoad("pcb-rnd-gpmi/actions", 0);
    -
    -function ev_gui_init(argc, argv)
    -	create_menu("/main_menu/Plugins/foo", "undo()", "o", "Ctrl<Key>o", "tooltip for foo");
    -end
    -
    --- register and bind action
    -Bind("ACTE_gui_init", "ev_gui_init");
    -
    -

    -When the user clicks on the menu, the action script specified in the second argument -of create_menu() is executed. Thus the script usually registers a new action -first then registers one or more menu items executing those actions. - - - Index: trunk/doc-rnd/gpmi/packages/hid_ref.html =================================================================== --- trunk/doc-rnd/gpmi/packages/hid_ref.html (revision 5606) +++ trunk/doc-rnd/gpmi/packages/hid_ref.html (nonexistent) @@ -1,205 +0,0 @@ - - -

    PCB GPMI

    -

    Reference manual for package hid

    -Automatically generated from hid.h - -

    Enums

    -
    -

    Enum values should be passed on as strings. - -

    hid_attr_type_e

    -
    - Type of an HID attribute (usually a widget on an attribute dialog box) 
    -
    - -
    value meaning -
    HIDA_Label non-editable label displayed on the GUI -
    HIDA_Integer a sugned integer value -
    HIDA_Real a floating point value -
    HIDA_String one line textual input -
    HIDA_Boolean true/false boolean value -
    HIDA_Enum select an item of a predefined list -
    HIDA_Mixed TODO -
    HIDA_Path path to a file or directory -
    HIDA_Unit select a dimension unit -
    HIDA_Coord enter a coordinate -
    -
    -

    EndCapStyle_e

    -
    - Line or arc ending style 
    -
    - -
    value meaning -
    Trace_Cap filled circle (trace drawing) -
    Square_Cap rectangular lines (square pad) -
    Round_Cap round pins or round-ended pads, thermals -
    Beveled_Cap octagon pins or bevel-cornered pads -
    -
    -

    Events

    -
    -

    Events do not have return value. The first argument is always the even id. Event handlers defined in scripts get all event arguments converted to string (types below are informational). - -

    HIDE_get_export_options(int event_id, void* hid)

    -
    - Called before get_exporter_options returns the option list to the GUI hid 
    -
    -
    -

    HIDE_do_export_start(int event_id, void* hid)

    -
    - Called before export redraw starts 
    -
    -
    -

    HIDE_do_export_finish(int event_id, void* hid)

    -
    - Called after export redraw finihsed 
    -
    -
    -

    HIDE_set_layer(int event_id, void* hid, const char* name, int group, int empty)

    -
    - PCB callback events for drawing: change layer 
    -
    -
    -

    HIDE_set_color(int event_id, void* hid, void* gc, const char* name)

    -
    - PCB callback events for drawing: change drawing color 
    -
    -
    -

    HIDE_set_line_cap(int event_id, void* hid, void* gc, EndCapStyle style)

    -
    - PCB callback events for drawing: change drawing line cap style
    -
    -
    -

    HIDE_set_line_width(int event_id, void* hid, void* gc, int width)

    -
    - PCB callback events for drawing: change drawing line width 
    -
    -
    -

    HIDE_set_draw_xor(int event_id, void* hid, void* gc, int xor)

    -
    - PCB callback events for drawing: toggle xor drawing method 
    -
    -
    -

    HIDE_set_draw_faded(int event_id, void* hid, void* gc, int faded)

    -
    - PCB callback events for drawing: toggle faded drawing method 
    -
    -
    -

    HIDE_draw_line(int event_id, void* hid, void* gc, int x1, int y1, int x2, int y2)

    -
    - PCB callback events for drawing: draw a line 
    -
    -
    -

    HIDE_draw_arc(int event_id, void* hid, void* gc, int cx, int cy, int xradius, int yradius, double start_angle, double delta_angle)

    -
    - PCB callback events for drawing: draw an arc from center cx;cy 
    -
    -
    -

    HIDE_draw_rect(int event_id, void* hid, void* gc, int x1, int y1, int x2, int y2)

    -
    - PCB callback events for drawing: draw a rectangle 
    -
    -
    -

    HIDE_fill_circle(int event_id, void* hid, void* gc, int cx, int cy, int radius)

    -
    - PCB callback events for drawing: draw a filled circle 
    -
    -
    -

    HIDE_fill_polygon(int event_id, void* hid, void* gc, int n_coords, int* x, int* y)

    -
    - PCB callback events for drawing: draw a filled ploygon 
    -
    -
    -

    HIDE_fill_rect(int event_id, void* hid, void* gc, int x1, int y1, int x2, int y2)

    -
    - PCB callback events for drawing: draw a filled rectangle 
    -
    -
    -

    HIDE_use_mask(int event_id, void* hid, int use_it)

    -
    - PCB callback events for drawing: TODO 
    -
    -
    -

    HIDE_make_gc(int event_id, void* hid, void* gc)

    -
    - PCB callback events for drawing: create a new graphical context 
    -
    -
    -

    HIDE_destroy_gc(int event_id, void* hid, void* gc)

    -
    - PCB callback events for drawing: destroy a graphical context 
    -
    -
    -

    HIDE_fill_pcb_pv(int event_id, void* hid, void* fg_gc, void* bg_gc, void* pad, int drawHole, int mask)

    -
    - PCB callback events for drawing: TODO 
    -
    -
    -

    HIDE_fill_pcb_pad(int event_id, void* hid, void* pad, int clear, int mask)

    -
    - PCB callback events for drawing: TODO 
    -
    -
    -

    Functions

    -
    -

    The following functions are registered in script context. - -

    hid_t* hid_create(char* hid_name, char* description)

    -
    - Creates a new hid context. Name and description matters only if the hid is
    -registered as an exporter later. 
    -
    -
    -

    int hid_add_attribute(hid_t* hid, char* attr_name, char* help, hid_attr_type_t type, int min, int max, char* default_val)

    -
    - Append an attribute in a hid previously created using hid_create().
    -   Arguments:
    -     hid: hid_t previously created using hid_create()
    -     attr_name: name of the attribute
    -     help: help text for the attribute
    -     type: type of the attribute (input widget type)
    -     min: minimum value of the attribute, if type is integer or real)
    -     max: maximum value of the attribute, if type is integer or real)
    -     default_val: default value of the attribute
    -  Returns an unique ID of the attribute the caller should store for
    -  later reference. For example this ID is used when retrieving the
    -  value of the attribute after the user finished entering data in
    -  the dialog. 
    -
    -
    -

    char* hid_get_attribute(hid_t* hid, int attr_id)

    -
    - Query an attribute from the hid after dialog_attributes() returned.
    -   Arguments:
    -     hid: hid_t previously created using hid_create()
    -     attr_id: the unique ID of the attribute (returned by hid_add_attribute())
    -   Returns the value (converted to string) set by the user. 
    -
    -
    -

    int hid_register(hid_t* hid)

    -
    - Register the hid; call it after a hid is created and its attributes
    -   are all set up 
    -
    -
    -

    void hid_gpmi_data_set(hid_t* h, void* data)

    -
    - For internal use 
    -
    -
    -

    hid_t* hid_gpmi_data_get(HID* h)

    -
    - For internal use 
    -
    -
    -

    HID_Attr_Val hid_string2val(const hid_attr_type_t type, const char* str)

    -
    - For internal use 
    -
    -
    - - - - Index: trunk/doc-rnd/gpmi/packages/XREF =================================================================== --- trunk/doc-rnd/gpmi/packages/XREF (revision 5606) +++ trunk/doc-rnd/gpmi/packages/XREF (nonexistent) @@ -1,85 +0,0 @@ -event ACTE_action ../packages/actions_ref.html#ACTE_action -event ACTE_gui_init ../packages/actions_ref.html#ACTE_gui_init -event ACTE_unload ../packages/actions_ref.html#ACTE_unload -function action_register ../packages/actions_ref.html#action_register -function action_arg ../packages/actions_ref.html#action_arg -function action ../packages/actions_ref.html#action -function create_menu ../packages/actions_ref.html#create_menu -enum dialog_fileselect_e ../packages/dialogs_ref.html#dialog_fileselect_e -function dialog_log ../packages/dialogs_ref.html#dialog_log -function dialog_confirm ../packages/dialogs_ref.html#dialog_confirm -function dialog_report ../packages/dialogs_ref.html#dialog_report -function dialog_prompt ../packages/dialogs_ref.html#dialog_prompt -function dialog_fileselect ../packages/dialogs_ref.html#dialog_fileselect -function dialog_beep ../packages/dialogs_ref.html#dialog_beep -function dialog_progress ../packages/dialogs_ref.html#dialog_progress -function dialog_attribute ../packages/dialogs_ref.html#dialog_attribute -enum hid_attr_type_e ../packages/hid_ref.html#hid_attr_type_e -enum EndCapStyle_e ../packages/hid_ref.html#EndCapStyle_e -event HIDE_get_export_options ../packages/hid_ref.html#HIDE_get_export_options -event HIDE_do_export_start ../packages/hid_ref.html#HIDE_do_export_start -event HIDE_do_export_finish ../packages/hid_ref.html#HIDE_do_export_finish -event HIDE_set_layer ../packages/hid_ref.html#HIDE_set_layer -event HIDE_set_color ../packages/hid_ref.html#HIDE_set_color -event HIDE_set_line_cap ../packages/hid_ref.html#HIDE_set_line_cap -event HIDE_set_line_width ../packages/hid_ref.html#HIDE_set_line_width -event HIDE_set_draw_xor ../packages/hid_ref.html#HIDE_set_draw_xor -event HIDE_set_draw_faded ../packages/hid_ref.html#HIDE_set_draw_faded -event HIDE_draw_line ../packages/hid_ref.html#HIDE_draw_line -event HIDE_draw_arc ../packages/hid_ref.html#HIDE_draw_arc -event HIDE_draw_rect ../packages/hid_ref.html#HIDE_draw_rect -event HIDE_fill_circle ../packages/hid_ref.html#HIDE_fill_circle -event HIDE_fill_polygon ../packages/hid_ref.html#HIDE_fill_polygon -event HIDE_fill_rect ../packages/hid_ref.html#HIDE_fill_rect -event HIDE_use_mask ../packages/hid_ref.html#HIDE_use_mask -event HIDE_make_gc ../packages/hid_ref.html#HIDE_make_gc -event HIDE_destroy_gc ../packages/hid_ref.html#HIDE_destroy_gc -event HIDE_fill_pcb_pv ../packages/hid_ref.html#HIDE_fill_pcb_pv -event HIDE_fill_pcb_pad ../packages/hid_ref.html#HIDE_fill_pcb_pad -function hid_create ../packages/hid_ref.html#hid_create -function hid_add_attribute ../packages/hid_ref.html#hid_add_attribute -function hid_get_attribute ../packages/hid_ref.html#hid_get_attribute -function hid_register ../packages/hid_ref.html#hid_register -function hid_gpmi_data_set ../packages/hid_ref.html#hid_gpmi_data_set -function hid_gpmi_data_get ../packages/hid_ref.html#hid_gpmi_data_get -function hid_string2val ../packages/hid_ref.html#hid_string2val -enum layout_object_mask_e ../packages/layout_ref.html#layout_object_mask_e -enum layout_object_coord_e ../packages/layout_ref.html#layout_object_coord_e -enum layout_flag_e ../packages/layout_ref.html#layout_flag_e -enum layer_field_e ../packages/layout_ref.html#layer_field_e -function layout_search_box ../packages/layout_ref.html#layout_search_box -function layout_search_selected ../packages/layout_ref.html#layout_search_selected -function layout_search_found ../packages/layout_ref.html#layout_search_found -function layout_search_get ../packages/layout_ref.html#layout_search_get -function layout_search_free ../packages/layout_ref.html#layout_search_free -function layout_obj_coord ../packages/layout_ref.html#layout_obj_coord -function layout_obj_type ../packages/layout_ref.html#layout_obj_type -function layout_obj_move ../packages/layout_ref.html#layout_obj_move -function layout_arc_angles ../packages/layout_ref.html#layout_arc_angles -function layout_create_line ../packages/layout_ref.html#layout_create_line -function layout_create_via ../packages/layout_ref.html#layout_create_via -function layout_create_arc ../packages/layout_ref.html#layout_create_arc -function layout_switch_to_layer ../packages/layout_ref.html#layout_switch_to_layer -function layout_get_current_layer ../packages/layout_ref.html#layout_get_current_layer -function layout_resolve_layer ../packages/layout_ref.html#layout_resolve_layer -function layout_get_max_possible_layer ../packages/layout_ref.html#layout_get_max_possible_layer -function layout_get_max_copper_layer ../packages/layout_ref.html#layout_get_max_copper_layer -function layout_get_max_layer ../packages/layout_ref.html#layout_get_max_layer -function layout_layer_name ../packages/layout_ref.html#layout_layer_name -function layout_layer_color ../packages/layout_ref.html#layout_layer_color -function layout_layer_field ../packages/layout_ref.html#layout_layer_field -function layout_get_page_width ../packages/layout_ref.html#layout_get_page_width -function layout_get_page_height ../packages/layout_ref.html#layout_get_page_height -function layout_set_page_size ../packages/layout_ref.html#layout_set_page_size -function mil2pcb_multiplier ../packages/layout_ref.html#mil2pcb_multiplier -function mm2pcb_multiplier ../packages/layout_ref.html#mm2pcb_multiplier -function current_grid_unit ../packages/layout_ref.html#current_grid_unit -function debug_draw_request ../packages/layout_ref.html#debug_draw_request -function debug_draw_flush ../packages/layout_ref.html#debug_draw_flush -function debug_draw_finish ../packages/layout_ref.html#debug_draw_finish -function debug_draw_dctx ../packages/layout_ref.html#debug_draw_dctx -function draw_set_color ../packages/layout_ref.html#draw_set_color -function draw_set_line_width ../packages/layout_ref.html#draw_set_line_width -function draw_set_draw_xor ../packages/layout_ref.html#draw_set_draw_xor -function draw_set_draw_faded ../packages/layout_ref.html#draw_set_draw_faded -function draw_line ../packages/layout_ref.html#draw_line Index: trunk/doc-rnd/gpmi/packages/dialogs.html =================================================================== --- trunk/doc-rnd/gpmi/packages/dialogs.html (revision 5606) +++ trunk/doc-rnd/gpmi/packages/dialogs.html (nonexistent) @@ -1,47 +0,0 @@ - - -

    dialogs package

    - The purpose of this package is to expose the dialog box handling interface - of the active GUI hid. Using this package scripts can pop up dialog boxes - to inform or ask the user. If there is no active GUI, call logs are dumped - on stderr. Note: message arguments usually may contain newline (\n) characters - to split the message. - -

    Common conventions

    - Dialog boxes are blocking calls to the GUI HID: when the script - calls a dialog box, the script is suspended until the dialog box - is closed by the user. In other words, dialog boxes behave - as regular function calls from the scripts: when they return, - the dialog is over and the result is known. -

    - The only exception is dialog_progress(), which opens or - updates or closes the already open progress dialog box, and - returns immediately (even when the box is left open). - -

    Simple dialogs vs. custom dialogs

    - Most of the calls will pop up a static dialog box. Static means - that widgets are predefined by the GUI HID. The script - is free to fill in data, but can not change the basic structure of - the dialog box. For example dialog_confirm(), dialog_prompt(), - dialog_fileselect() are static. -

    - When the script needs a custom, dynamic dialog box, it needs to - create an attribute dialog. The script sets up a HID - structure using the hid package, builds up all the input fields - then calls dialog_attribute() with the hid. - -

    Progress dialogs

    - - The script should call dialog_progress() periodicly from a process that - runs time consuming calculations and check the return value and break - the loop on cancel. The process should have an idea of how long it - will take. This is passed on in argument total. As long as - argument so_far is less than total, the dialog is - open. -

    - After the process has finished, a call with so_far=total+1 should be - made to make sure the window is closed. If the call returns non-zero, - the process should be cancelled. - - - Index: trunk/doc-rnd/gpmi/packages/hid.html =================================================================== --- trunk/doc-rnd/gpmi/packages/hid.html (revision 5606) +++ trunk/doc-rnd/gpmi/packages/hid.html (nonexistent) @@ -1,76 +0,0 @@ - - -

    hid package

    - -The hid package has two purposes: -
      -
    • it is glue layer for exporter dialog boxes and attribute dialog boxes; -
    • it can register exporter HIDs in PCB -
    - -

    Building a custom dialog box

    -First hid_create() needs to be called. It returns a new hid_t, which is -an opaq structure for the package that is used to describe attributes of -an attribute dialog or an exporter hid. Attributes are added using -hid_add_attribute(), which returns an unique ID of the attribute. The -attribute ID can be used later for querying attribute value set by the -user using hid_get_attribute(). -

    -The process of building a dialog box is closed by a call to -

      -
    • hid_register(), which registers a new exporter hid using the - attributes of the dialog box; or -
    • dialog_attribute() (of the dialog package) which pops up a custom - dialog box immediately. -
    - -

    Registering an exporter

    - Function hid_register() registers the hid as an exporter. Should be - called after all attributes have been added using hid_add_atrtibute(). - The export is coordinated by pcb core; when the user request an export - using the exporter, a series of events are delivered to the script: -
      -
    1. envelope events to set up exporting -
    2. many draw events to actually export the objects -
    3. an envelope event to finish exporting -
    - -

    Envelope: events generated before or after exporting

    -
      -
    • HIDE_get_export_options(void *hid): Generated before get_exporter_options returns the option list to the GUI hid -
    • HIDE_do_export_start(void *hid): Generated before export redraw starts -
    • HIDE_do_export_finish(void *hid): Generated after export redraw finihsed -
    - -

    Drawing: events generated during exporting

    - Note: there may be multiple gcs (graphic contexts), each having its own color, line - properties, xor drawing and faded state. Graphic contexts are created - and destroyed by the following events: -
      -
    • HIDE_make_gc(void *hid, void *gc); -
    • HIDE_destroy_gc(void *hid, void *gc); -
    - - Gc properties are changed by the following events: -
      -
    • HIDE_set_layer(void *hid, const char *name, int group); -
    • HIDE_set_color(void *hid, void *gc, const char *name); -
    • HIDE_set_line_cap(void *hid, void *gc, EndCapStyle style); -
    • HIDE_set_line_width(void *hid, void *gc, int width); -
    • HIDE_set_draw_xor(void *hid, void *gc, int xor); -
    • HIDE_set_draw_faded(void *hid, void *gc, int faded); -
    - - Finally, the actual drawing operations: -
      -
    • HIDE_draw_line(void *hid, void *gc, int x1, int y1, int x2, int y2); -
    • HIDE_draw_arc(void *hid, void *gc, int cx, int cy, int xradius, int yradius, int start_angle, int delta_angle); -
    • HIDE_draw_rect(void *hid, void *gc, int x1, int y1, int x2, int y2); -
    • HIDE_fill_circle(void *hid, void *gc, int cx, int cy, int radius); -
    • HIDE_fill_polygon(void *hid, void *gc, int n_coords, int *x, int *y); -
    • HIDE_fill_rect(void *hid, void *gc, int x1, int y1, int x2, int y2); -
    • HIDE_use_mask(void *hid, int use_it); [TODO] -
    - - - Index: trunk/doc-rnd/gpmi/packages/layout_ref.html =================================================================== --- trunk/doc-rnd/gpmi/packages/layout_ref.html (revision 5606) +++ trunk/doc-rnd/gpmi/packages/layout_ref.html (nonexistent) @@ -1,305 +0,0 @@ - - -

    PCB GPMI

    -

    Reference manual for package layout

    -Automatically generated from layout.h - -

    Enums

    -
    -

    Enum values should be passed on as strings. - -

    layout_object_mask_e

    -
    - Object type search mask bits 
    -
    - -
    value meaning -
    OM_LINE lines (traces, silk lines, not font) -
    OM_TEXT text written using the font -
    OM_POLYGON polygons, including rectangles -
    OM_ARC arcs, circles -
    OM_VIA vias and holes which are not part of a footprint -
    OM_PIN pins/pads of a footprint -
    OM_ANY shorthand for "find anything" -
    -
    -

    layout_object_coord_e

    -
    - Which coordinate of the object is referenced 
    -
    - -
    value meaning -
    OC_BX1 bounding box X1 -
    OC_BX2 bounding box X2 -
    OC_BY1 bounding box Y1 -
    OC_BY2 bounding box Y2 -
    OC_P1X point 1 X -
    OC_P2X point 2 X -
    OC_P1Y point 1 Y -
    OC_P2Y point 2 Y -
    OC_OBJ the whole object -
    OC_P1 point 1 is P1X -
    OC_P2 point 2 is P2X -
    -
    -

    layout_flag_e

    -
    - of layout_object_coord_t 
    -
    - -
    value meaning -
    FL_NONE <comment missing in the header> -
    FL_SHOWNUMBER <comment missing in the header> -
    FL_LOCALREF <comment missing in the header> -
    FL_CHECKPLANS <comment missing in the header> -
    FL_SHOWDRC <comment missing in the header> -
    FL_RUBBERBAND <comment missing in the header> -
    FL_DESCRIPTION <comment missing in the header> -
    FL_NAMEONPCB <comment missing in the header> -
    FL_AUTODRC <comment missing in the header> -
    FL_ALLDIRECTION <comment missing in the header> -
    FL_SWAPSTARTDIR <comment missing in the header> -
    FL_UNIQUENAME <comment missing in the header> -
    FL_CLEARNEW <comment missing in the header> -
    FL_SNAPPIN <comment missing in the header> -
    FL_SHOWMASK <comment missing in the header> -
    FL_THINDRAW <comment missing in the header> -
    FL_ORTHOMOVE <comment missing in the header> -
    FL_LIVEROUTE <comment missing in the header> -
    FL_THINDRAWPOLY <comment missing in the header> -
    FL_LOCKNAMES <comment missing in the header> -
    FL_ONLYNAMES <comment missing in the header> -
    FL_NEWFULLPOLY <comment missing in the header> -
    FL_HIDENAMES <comment missing in the header> -
    FL_THERMALSTYLE1 <comment missing in the header> -
    FL_THERMALSTYLE2 <comment missing in the header> -
    FL_THERMALSTYLE3 <comment missing in the header> -
    FL_THERMALSTYLE4 <comment missing in the header> -
    FL_THERMALSTYLE5 <comment missing in the header> -
    -
    -

    layer_field_e

    -
    - Field name of the layer structure 
    -
    - -
    value meaning -
    LFLD_NUM_LINES number of lines on the layer -
    LFLD_NUM_TEXTS number of texts on the layer -
    LFLD_NUM_POLYS number of polygons on the layer -
    LFLD_NUM_ARCS number of arcs on the layer -
    LFLD_VISIBLE non-zero if the layer is visible -
    LFLD_NODRC non-zero if the layer doesn't use DRC -
    -
    -

    Functions

    -
    -

    The following functions are registered in script context. - -

    int layout_search_box(const char* search_ID, layout_object_mask_t obj_types, int x1, int y1, int x2, int y2)

    -
    - creates a new search and adds all objects that matches obj_types mask within the given rectangle on the current layer
    -   Arguments:
    -     search_ID: unique name of the search (overwrites existing search on the same name)
    -     obj_types: on or more object types
    -     x1, y1, x2, y2: box the search is done within (PCB coords)
    -   Returns the number of object on the search list. 
    -
    -
    -

    int layout_search_selected(const char* search_ID, layout_object_mask_t obj_types)

    -
    - creates a new search and adds all selected objects
    -   Arguments:
    -     search_ID: unique name of the search (overwrites existing search on the same name)
    -     obj_types: on or more object types
    -   Returns the number of object on the search list. 
    -
    -
    -

    int layout_search_found(const char* search_ID, layout_object_mask_t obj_types)

    -
    - creates a new search and adds all found objects (the green highlight)
    -   Arguments:
    -     search_ID: unique name of the search (overwrites existing search on the same name)
    -     obj_types: on or more object types
    -   Returns the number of object on the search list. 
    -
    -
    -

    layout_object_t* layout_search_get(const char* search_ID, int n)

    -
    - Returns the nth object from a search list (or NULL pointer if n is beyond the list) 
    -
    -
    -

    int layout_search_free(const char* search_ID)

    -
    - Frees all memory related to a search. Returns 0 on success.
    -   Argument:
    -     search_ID: unique name of the search (requires an existing search) 
    -
    -
    -

    int layout_obj_coord(layout_object_t* obj, layout_object_coord_t coord)

    -
    - Return the requested coord of an object; except for the bounding box
    -    coordinates, the meaning of coordinates are object-specific.
    -    Point 1 and point 2 are usually endpoints of the object (line, arc),
    -    "the whole object" coordinate is a central point. 
    -
    -
    -

    layout_object_mask_t layout_obj_type(layout_object_t* obj)

    -
    - Return the type of an object (always a single bit) 
    -
    -
    -

    int layout_obj_move(layout_object_t* obj, layout_object_coord_t coord, int dx, int dy)

    -
    - Change location of an object or parts of the object (like move endpoint of a line);
    -   Arguments:
    -     obj: the object
    -     coord: which coordinate to drag (e.g. move only the endpoint)
    -     dx, dy: relative x and y coordinates the selected coordinate is displaced by
    -   Returns 0 on success 
    -
    -
    -

    int layout_arc_angles(layout_object_t* obj, int relative, int start, int delta)

    -
    - change angles of an arc; start and delate are relative if relative is non-zero; returns 0 on success 
    -
    -
    -

    int layout_create_line(int x1, int y1, int x2, int y2, int thickness, int clearance, layout_flag_t flags)

    -
    - create a line 
    -
    -
    -

    int layout_create_via(int x, int y, int thickness, int clearance, int mask, int hole, const char* name, layout_flag_t flags)

    -
    - create a named via 
    -
    -
    -

    int layout_create_arc(int x, int y, int width, int height, int sa, int dir, int thickness, int clearance, layout_flag_t flags)

    -
    - create a new arc; sa is start angle, dir is delta angle 
    -
    -
    -

    void layout_switch_to_layer(int layer)

    -
    - switch to layer (further layer-specific actions will take place there) 
    -
    -
    -

    int layout_get_current_layer()

    -
    - returns the number of the current layer 
    -
    -
    -

    int layout_resolve_layer(const char* name)

    -
    - resolve layer number by name (case sensitive); returns negative number if not found 
    -
    -
    -

    int layout_get_max_possible_layer()

    -
    - return the theoretical number of layers supported by PCB 
    -
    -
    -

    int layout_get_max_copper_layer()

    -
    - return the actual number of copper layers on the current design 
    -
    -
    -

    int layout_get_max_layer()

    -
    - return the actual number of layers on the current design 
    -
    -
    -

    const char* layout_layer_name(int layer)

    -
    - return the name of a layer 
    -
    -
    -

    const char* layout_layer_color(int layer)

    -
    - return the color of a layer 
    -
    -
    -

    int layout_layer_field(int layer, layer_field_t fld)

    -
    - return an integer field of a layer 
    -
    -
    -

    int layout_get_page_width()

    -
    - query or set width and height of the drawing 
    -
    -
    -

    int layout_get_page_height()

    -
    -<comment missing in the header>
    -
    -
    -

    void layout_set_page_size(int width, int height)

    -
    -<comment missing in the header>
    -
    -
    -

    double mil2pcb_multiplier()

    -
    - -- coordinate system -- (coord.c) 
    -
    -
    -

    double mm2pcb_multiplier()

    -
    -<comment missing in the header>
    -
    -
    -

    const char* current_grid_unit()

    -
    -<comment missing in the header>
    -
    -
    -

    int debug_draw_request(void)

    -
    - Initialize debug drawing; returns 1 if worked, 0 if denied 
    -
    -
    -

    void debug_draw_flush(void)

    -
    - Flush the drawing 
    -
    -
    -

    void debug_draw_finish(dctx_t* ctx)

    -
    - Finish (close) drawing 
    -
    -
    -

    dctx_t* debug_draw_dctx(void)

    -
    - Get the draw context of debug draw 
    -
    -
    -

    void draw_set_color(dctx_t* ctx, const char* name)

    -
    - Debug draw style: set drawing color 
    -
    -
    -

    void draw_set_line_width(dctx_t* ctx, int width)

    -
    - Debug draw style: set line width 
    -
    -
    -

    void draw_set_draw_xor(dctx_t* ctx, int xor)

    -
    - Debug draw style: set whether drawing should happen in xor 
    -
    -
    -

    void draw_set_draw_faded(dctx_t* ctx, int faded)

    -
    - Debug draw style: set whether drawing should happen in faded mode  
    -
    -
    -

    void draw_line(dctx_t* ctx, int x1_, int y1_, int x2_, int y2_)

    -
    - Debug draw: draw a line using the current style settings 
    -
    -
    - - - - Index: trunk/doc-rnd/gpmi/packages/Makefile =================================================================== --- trunk/doc-rnd/gpmi/packages/Makefile (revision 5606) +++ trunk/doc-rnd/gpmi/packages/Makefile (nonexistent) @@ -1,15 +0,0 @@ -ROOT=../../.. -GPMIDIR=$(ROOT)/src_plugins/gpmi/pcb-gpmi -ALL= actions dialogs hid layout - -all: XREF $(ALL:%=%_ref.html) - -include $(GPMIDIR)/Makefile.config - -%_ref.html REF.% : $(GPMIDIR)/gpmi_plugin/gpmi_pkg/%.h - $(ROOT)/util/genref.sh "$^" "$(ROOT)" "../packages/$*_ref.html" $(PCB_CFLAGS) >$*_ref.html - -XREF: $(ALL:%=REF.%) - cat $^ > $@ - - Index: trunk/doc-rnd/README =================================================================== --- trunk/doc-rnd/README (revision 5606) +++ trunk/doc-rnd/README (nonexistent) @@ -1,10 +0,0 @@ -pcb-rnd "diff" documentation: this directory contains documentation -on the features that differ from the original pcb version it was forked from. - -Most notable subdirectories: - features/ details of pcb-rnd features - conf/ documentation of the configuration system - hacking/ documentation for developers - devlog/ random thoughts and articles - -Documentation of the original version can be found in ../doc-orig Index: trunk/doc-rnd/logo64.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/logo64.png =================================================================== --- trunk/doc-rnd/logo64.png (revision 5606) +++ trunk/doc-rnd/logo64.png (nonexistent) Property changes on: trunk/doc-rnd/logo64.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/Autostyle.sh =================================================================== --- trunk/doc-rnd/Autostyle.sh (revision 5606) +++ trunk/doc-rnd/Autostyle.sh (nonexistent) @@ -1,71 +0,0 @@ -#!/bin/sh - -autostyle() -{ - awk -v "template=$1" ' - BEGIN { - while((getline < template) > 0) { - if (parse_auto(RES, $0)) { - if (RES["action"] == "begin") - curr = RES["ID"] - else - reset_curr = 1 - } - if (curr != "") - AUTO[curr] = AUTO[curr] $0 "\n" - if (reset_curr) { - curr = "" - reset_curr = 0 - } - } - } - - function parse_auto(RES, line ,tmp) - { - if (!(line ~ ".*", "", line) - line = tolower(line) - tmp = line - sub("[ \t].*$", "", tmp) - RES["ID"] = tmp - tmp = line - sub("^[^ \t]*[ \t]*", "", tmp) - RES["action"] = tmp - return 1 - } - - { - if (parse_auto(RES, $0)) { - if (RES["action"] == "begin") - skip = 1 - else if (RES["action"] == "end") { - printf("%s", AUTO[RES["ID"]]) - skip = 0 - } - next - } - } - - (!skip) { print $0 } - - ' -} - -for html in $* -do - case $html in - Autostyle.html) ;; - *) - mv $html $html.tmp - autostyle "Autostyle.html" < $html.tmp > $html - if test $? = 0 - then - rm $html.tmp - else - echo "Failed on $html, keeping the original version." - mv $html.tmp $html - fi - esac -done Property changes on: trunk/doc-rnd/Autostyle.sh ___________________________________________________________________ Deleted: svn:executable ## -1 +0,0 ## -* \ No newline at end of property Index: trunk/doc-rnd/keys_mkey.html =================================================================== --- trunk/doc-rnd/keys_mkey.html (revision 5606) +++ trunk/doc-rnd/keys_mkey.html (nonexistent) @@ -1,508 +0,0 @@ - -

    Key to action bindings

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    key pcb-menu-mkey.lht -
    . - 'All-direction' lines
    conf(toggle, editor/all_direction_lines, design) -
    / - Cycle Clip
    Display(CycleClip) -
    0 - Select Layer 10
    SelectLayer(10) -
    0-alt - Select Layer 20
    SelectLayer(20) -
    0-alt-ctrl - Toggle Layer 20
    ToggleView(20) -
    0-ctrl - Toggle Layer 10
    ToggleView(10) -
    1 - Select Layer 1
    SelectLayer(1) -
    1-alt - Select Layer 11
    SelectLayer(11) -
    1-alt-ctrl - Toggle Layer 11
    ToggleView(11) -
    1-ctrl - Toggle Layer 1
    ToggleView(1) -
    1-shift - Buffer/Select Buffer #1
    PasteBuffer(1) -
    2 - Select Layer 2
    SelectLayer(2) -
    2-alt - Select Layer 12
    SelectLayer(12) -
    2-alt-ctrl - Toggle Layer 12
    ToggleView(12) -
    2-ctrl - Toggle Layer 2
    ToggleView(2) -
    2-shift - Buffer/Select Buffer #2
    PasteBuffer(2) -
    3 - Select Layer 3
    SelectLayer(3) -
    3-alt - Select Layer 13
    SelectLayer(13) -
    3-alt-ctrl - Toggle Layer 13
    ToggleView(13) -
    3-ctrl - Toggle Layer 3
    ToggleView(3) -
    3-shift - Buffer/Select Buffer #3
    PasteBuffer(3) -
    4 - Select Layer 4
    SelectLayer(4) -
    4-alt - Select Layer 14
    SelectLayer(14) -
    4-alt-ctrl - Toggle Layer 14
    ToggleView(14) -
    4-ctrl - Toggle Layer 4
    ToggleView(4) -
    4-shift - Buffer/Select Buffer #4
    PasteBuffer(4) -
    5 - Select Layer 5
    SelectLayer(5) -
    5-alt - Select Layer 15
    SelectLayer(15) -
    5-alt-ctrl - Toggle Layer 15
    ToggleView(15) -
    5-ctrl - Toggle Layer 5
    ToggleView(5) -
    5-shift - Buffer/Select Buffer #5
    PasteBuffer(5) -
    6 - Select Layer 6
    SelectLayer(6) -
    6-alt - Select Layer 16
    SelectLayer(16) -
    6-alt-ctrl - Toggle Layer 16
    ToggleView(16) -
    6-ctrl - Toggle Layer 6
    ToggleView(6) -
    7 - Select Layer 7
    SelectLayer(7) -
    7-alt - Select Layer 17
    SelectLayer(17) -
    7-alt-ctrl - Toggle Layer 17
    ToggleView(17) -
    7-ctrl - Toggle Layer 7
    ToggleView(7) -
    8 - Select Layer 8
    SelectLayer(8) -
    8-alt - Select Layer 18
    SelectLayer(18) -
    8-alt-ctrl - Toggle Layer 18
    ToggleView(18) -
    8-ctrl - Toggle Layer 8
    ToggleView(8) -
    9 - Select Layer 9
    SelectLayer(9) -
    9-alt - Select Layer 19
    SelectLayer(19) -
    9-alt-ctrl - Toggle Layer 19
    ToggleView(19) -
    9-ctrl - Toggle Layer 9
    ToggleView(9) -
    : - Command Entry
    Command() -
    = - Simple optimization
    djopt(simple) -
    =-shift - Auto-Optimize
    djopt(auto) -
    [ - Grid -5mil
    SetValue(Grid,-5,mil) -
    \ - Full screen
    fullscreen(toggle) -
    ] - Grid +5mil
    SetValue(Grid,+5,mil) -
    a-alt - Select all visible
    Select(All) -
    a-alt-shift - Unselect all
    Unselect(All) -
    a
     c -
    Library
    DoWindows(Library) -
    b - Flip Object
    Flip(Object) -
    b-alt-ctrl - netlist patch for back annotation
    SavePatch() -
    b-shift - Move selected elements to other side
    Flip(SelectedElements) -
    backspace - Remove Selected
    RemoveSelected() -
    backspace-shift - Remove Connected
    Atomic(Save); Connection(Reset); Atomic(Restore); Unselect(All); Atomic(Restore); Connection(Find); Atomic(Restore); Select(Connection); Atomic(Restore); RemoveSelected(); Atomic(Restore); Connection(Reset); Atomic(Restore); Unselect(All); Atomic(Block) -
    c - Center cursor
    Center() -
    c-ctrl
      -
    Copy selection to buffer
    GetXY(Click to set the snap point for this buffer); PasteBuffer(Clear); PasteBuffer(AddSelected); Unselect(All); Mode(PasteBuffer) -
    d - Pins/Via show Name/Number
    Display(PinOrPadName) -
    d-shift - Pinout
    Display(Pinout) -
    delete - Remove
    Mode(Save); Mode(Remove); Mode(Notify); Mode(Restore) -
    delete-shift - Remove selected objects
    RemoveSelected() -
    down - Step Down
    Cursor(Warp,0,-1,grid) -
    down-shift - Step +Down
    Cursor(Pan,0,-50,view) -
    e-shift - Erase selected rats
    DeleteRats(SelectedRats) -
    e
     c -
    Copy selection to buffer
    GetXY(Click to set the snap point for this buffer); PasteBuffer(Clear); PasteBuffer(AddSelected); Unselect(All); Mode(PasteBuffer) -
    e
     d -
    Remove
    Mode(Save); Mode(Remove); Mode(Notify); Mode(Restore) -
    e
     i -
    Buffer/Mirror buffer (up/down)
    Mode(PasteBuffer); PasteBuffer(Mirror) -
    e
     r -
    Rotate buffer 90 deg CCW
    -
    e
     r-shift -
    Redo last undone operation
    Redo() -
    e
     u-shift -
    Undo last operation
    Undo() -
    e
     x -
    text on layout
    ChangeName(Object) -
    enter - Click
    Mode(Notify); Mode(Release) -
    f-alt-shift - Replace footprint
    ReplaceFootprint() -
    f-ctrl - Lookup connection to object
    GetXY(Click on the object); Connection(Find) -
    f-shift - Reset all connections
    Connection(Reset); Display(Redraw) -
    f
     a -
    Save Layout As...
    Save(LayoutAs) -
    f
     c -
    Quit Program
    Quit() -
    f
     i -
    Export layout...
    ExportGUI() -
    f
     n -
    Start New Layout
    New() -
    f
     o -
    Load layout
    Load(Layout) -
    f
     p -
    Print layout...
    Print() -
    f
     r -
    Revert
    Load(Revert,none) -
    f
     s -
    Save Layout
    Save(Layout) -
    g - Grid +5mil
    SetValue(Grid,+5,mil) -
    g-ctrl - Grid +0.05mm
    SetValue(Grid,+0.05,mm) -
    g-ctrl-shift - Grid -0.05mm
    SetValue(Grid,-0.05,mm) -
    g-shift - Grid -5mil
    SetValue(Grid,-5,mil) -
    h-ctrl - ChangeHole Object
    ChangeHole(Object) -
    h-shift - ToggleHideName SelectedElement
    ToggleHideName(SelectedElements) -
    h
     a -
    About...
    About() -
    j - ChangeJoin Object
    ChangeJoin(Object) -
    j-shift - ChangeJoin SelectedObject
    ChangeJoin(SelectedObjects) -
    k - Clear Object +2 mil
    ChangeClearSize(Object,+2,mil) -
    k-ctrl - Clear Selected +2 mil
    ChangeClearSize(SelectedObjects,+2,mil) -
    k-ctrl-shift - Clear Selected -2 mil
    ChangeClearSize(SelectedObjects,-2,mil) -
    k-shift - Clear Object -2 mil
    ChangeClearSize(Object,-2,mil) -
    l - Line Tool size +5 mil
    SetValue(LineSize,+5,mil) -
    l-shift - Line Tool size -5 mil
    SetValue(LineSize,-5,mil) -
    left - Step Left
    Cursor(Warp,-1,0,grid) -
    left-shift - Step +Left
    Cursor(Pan,-50,0,view) -
    m - Move Object to current layer
    MoveToCurrentLayer(Object) -
    m-ctrl - MarkCrosshair
    MarkCrosshair() -
    m-shift - Move selected to current layer
    MoveToCurrentLayer(Selected) -
    n - text on layout
    ChangeName(Object) -
    n-alt - Nonetlist
    ChangeNonetlist(Element) -
    n-ctrl - Start New Layout
    New() -
    n-ctrl-shift - pin on layout
    ChangeName(Object, Number) -
    n-shift - Select shortest rat
    AddRats(Close) -
    o - Optimize rats nest
    Atomic(Save); DeleteRats(AllRats); Atomic(Restore); AddRats(AllRats); Atomic(Block) -
    o-ctrl - ChangeOctagon Object
    ChangeOctagon(Object) -
    o-shift - AddRats to selected pins
    Atomic(Save); DeleteRats(AllRats); Atomic(Restore); AddRats(SelectedRats); Atomic(Block) -
    p - Polygon PreviousPoint
    Polygon(PreviousPoint) -
    p-alt - Manage plugins...
    ManagePlugins() -
    p-ctrl - Auto-place selected elements
    AutoPlaceSelected() -
    p-ctrl-shift - Thin draw poly
    conf(toggle, editor/thin_draw_poly, design) -
    p-shift - Polygon Close
    Polygon(Close) -
    q - ChangeSquare Object
    ChangeSquare(ToggleObject) -
    q-ctrl - Quit Program
    Quit() -
    r-alt - Auto-route selected rats
    AutoRoute(SelectedRats) -
    r-ctrl - Generate object report
    ReportObject() -
    r-shift - Redo last undone operation
    Redo() -
    right - Step Right
    Cursor(Warp,1,0,grid) -
    right-shift - Step +Right
    Cursor(Pan,50,0,view) -
    s - ChangeSize +5 mil
    ChangeSize(Object,+5,mil) -
    s-alt - ChangeDrill +5 mil
    ChangeDrillSize(Object,+5,mil) -
    s-alt-shift - ChangeDrill -5 mil
    ChangeDrillSize(Object,-5,mil) -
    s-ctrl - Save Layout
    Save(Layout) -
    s-ctrl-shift - Save Layout As...
    Save(LayoutAs) -
    s-shift - ChangeSize -5 mil
    ChangeSize(Object,-5,mil) -
    space - Arrow Mode
    Mode(Arrow) -
    t - Text Tool scale +10 mil
    SetValue(TextScale,+10,mil) -
    t-shift - Text Tool scale -10 mil
    SetValue(TextScale,-10,mil) -
    tab - Flip up/down
    SwapSides(V) -
    tab-ctrl - Spin 180 degrees
    SwapSides(R) -
    tab-ctrl-shift - Swap Sides
    SwapSides() -
    tab-shift - Flip left/right
    SwapSides(H) -
    u - Undo last operation
    Undo() -
    u-ctrl-shift - Clear undo-buffer
    Undo(ClearList) -
    up - Step Up
    Cursor(Warp,0,1,grid) -
    up-shift - Step +Up
    Cursor(Pan,0,50,view) -
    v-alt - Via Tool drill +5 mil
    SetValue(ViaDrillingHole,+5,mil) -
    v-alt-shift - Via Tool drill -5 mil
    SetValue(ViaDrillingHole,-5,mil) -
    v-ctrl - Paste buffer to layout
    Mode(PasteBuffer) -
    v-ctrl-shift - Via Tool size -5 mil
    SetValue(ViaSize,-5,mil) -
    v-shift - Via Tool size +5 mil
    SetValue(ViaSize,+5,mil) -
    v
     e -
    Zoom Max
    Zoom() -
    v
     f -
    Zoom Max
    Zoom() -
    v
     i -
    Zoom In 2X
    Zoom(-2) -
    v
     o -
    Zoom Out 2X
    Zoom(+2) -
    w - Add All Rats
    AddRats(AllRats) -
    w-shift - AddRats Selected
    AddRats(SelectedRats) -
    x - Cycle object being dragged
    CycleDrag() -
    x-ctrl - Cut selection to buffer
    GetXY(Click to set the snap point for this buffer); PasteBuffer(Clear); PasteBuffer(AddSelected); RemoveSelected(); Mode(PasteBuffer) -
    x-shift - Swap nets on two selected pins
    net(swap) -
    y - Puller
    Puller() -
    y-ctrl - Redo last undone operation
    Redo() -
    y-shift - ChangeSizes to Route style
    ChangeSizes(Object,style,mil) -
    z - Zoom In 20%
    Zoom(-1.2) -
    z-ctrl - Undo last operation
    Undo() -
    z-shift - Zoom Out 20%
    Zoom(+1.2) -
    | - Thin draw
    conf(toggle, editor/thin_draw, design) -
    - - Index: trunk/doc-rnd/TODO =================================================================== --- trunk/doc-rnd/TODO (revision 5606) +++ trunk/doc-rnd/TODO (nonexistent) @@ -1,171 +0,0 @@ -- BUGS - - "unselectable" arc rotated on ps [report:Evan] - - gerber top layer doesn't have pads on A.pcb (layer cleanup) [report:James] - - gerber layer group name [report:James] - ? all route styles deleted when using 'File>load layout data to paste buffer' - + in the 45-deg line mode, while DRC enforce settings toggled 'on' can cause isolated trace crossing, violating DRC - - `--dump-actions` and `--show-actions` ends with segmentation fault (compile without debug) Can't reproduce [report:miloh] - - extend the io_ API so that plugins can be requested to check file headers and decide if they can load the file; this would supress the pcb-related error messages when loading a lihata - - tab doesn't work in the lesstif hid (was already broken in 1.1.2) - -- Lihata persistent save: - - flag compatibility: save unknown, string-flags as loaded by io_pcb - - ind: space in ha:layer name - - ind: symbol height is not in-line on the output - - ind: indentation bug in via and netlists - - ind: indentation bug in inline struct therm: closing } is preceded by indentation whitespace for some reason - - ind: style attribute members in a fresh save - - keep numeric format: test all - - keep unknown subtrees - -- unravel: - - replace "outline" and "route" layer name checks with a central layer call - -- replace settings with lihata (conf_*) - - TEST: - - vendor drill mapping (all functionality, including regex based refdes ignore) - - route style in gtk and lesstif, save, load, 0, 1 or a lot of styles - - route style vs. autorouter - -- query & advanced search - - search expr wizard should pick up the expression from the button when clicked - - field accessors: - - pad area - - pin area - - line (and pad) length and length^2 - - make a run on a large board, speed test, with -O0 and -O3: - - iteration speed (a simple @) - - eval speed (a simple @ with a lot of constants in an expr) - - geo speed - - regex and string cmp match speed vs. select by name - -CLEANUP #5 -- src/check_icon.data - is it used? -- search for move.dst_layer - don't compare pointer to -1! -- make uninstall doesn't remove an scm -- rework the gpmi plugin to make it more standard in regard of the build system and to remove a few directories -- dir rename trunk/pcblib/tru-hole should handle make correctly and not walk on existing web services or user installs -- grid status line label doesn't update when using setvalue(grid,delta) add another hook to update this value [miloh] -- Erich's select undo bug: place an element, select, save & load, unselect, undo 2 times: bad serial -- Erich's gtk lag report: press 's' a lot then move the mouse - 's' ends up in the new loc! -- conf: throw an error if user config can not be written -- the TAB bug: (over ssh -X) press tab for a good 15 seconds; release; it won't work again for a fraction of a second -- mark bug - ortho shouldn't use it, it should use last point (crosshair.X2); make sure nothing else abuses it [James] -- conf: - - remove CFN_INCREMENTS, test if saving increments from preferences works - - config pov: change prio - - gtk preferences: check what takes 131 megs of VIRT ram (on top); destroy the dialog structures when closed - - gtk preferences: poly isle area widget missing from the sizes tab - - debug why default layer names from the user config are ignored - - fp_fs_search: kill anything that gets ':' separated string as path list, get a config list instead - - switch the lesstif HID over from attribs to conf - - remove redundancy: don't store values in the PCB struct that are in the design conf - - increments are not really implemented - - if font file is not found: - - embedded version? - - warn when try to write text on pcb? -- action bug: gui_act.c shouldn't reference Crosshair.X directly; check d-fix.patch about how to fix it -- next_gui: keep them open, hide -- look for #warnings -- fix librarychanged: disable update of gedasymbols on-start, make it an explicit refresh button -- libstroke: zoom -- cleanup/rewrite resources: - - load/swap menus (TODO#1) - - gpmi: - - hid: hid_destroy (pair of hid_create) - - cleanup on unload: remove menus -- check whether local copy of gts is needed, bisect when toporouter broke -- check gpmi when pcb-rnd is fully linstalled - broken symlinks? -- multi-key: display state on the gui -- implement loglevels and log style tags in the lesstif HID -- TODO#3: works only on US keyboard -- gsch2pcb: generalize plugin/buildin loading for external tools, check if gsch2pcb can work from plugins - -CLEANUP #6: -- lihata board/fp format: - - pads should be polygons (0 long line can't be rotated!) - - footprint orientation with a vector (just a second point) -- layer groups from config (e.g. CLI) is ignored -- res: - - search for vendor in the hid plugins, there should be no trace of it (vendor should register its in submenus with anchors) - - re-add dynamic menus after a gui change: - - either remember dynamic menus in a separate list so they can be rebuilt - - or provide hooks and let plugins deal with it - - gpmi: auto-remove menus by cookie (TODO#2) - - load new res on the fly (replace the menu system): - - low level reload code (re-add the dynamic menus too!) - - action to reload if file name is known - - gui load dialog with tags listed -- decide about exporter policy: - - png exports selection (even in not-as-shown), others don't - - extend png hid attribs with a flag for this, maybe do the same for others - - document the decision in "hacking" -- reduce - - export_bom: rewrite the string list code using htsp and/or lists - - hash in hid_attrib.c? - - nelma and gcode both invent .png name locally - - get rid of gcode/lists.h, and vector.[ch] (autorouter) - - vendordrill - - search for /units, replace it with pcb-printf something - - add round down - - replace ignore_refdes, ignore_value and ignore_descr with genvector - - mods: - - gpmi (and other buildins/plugins) not showing up in the about box -- self contained - - files - - default font - - action (--show-paths!) and dialog box to print where the actual files are coming from - - project specific menus from extra lihata files - maybe from project.lht -- main.c: - - SIGPIPE - detect it (needed for popen) - -CLEANUP #7: the big object split -- remove pcb_obj_type_t from const.h - use obj_any.h instead - - - - -FEATURES -- BUILD: menuconfig and a config file for scconfig - -Low prio: -- GTK "save as" dialog: there should be an "auto" or "guess by extension" option in the save dialog format -- insert drag&drop strangeness (mainline too): - insert should just insert a new point and stop there, not starting a drag&drop - move; the new point should be marked somehow (e.g. green-find one half of the - object, like arc split does) lines can be inserted mostly only in all-dir-line - which is strange -- missing rotate polygon (mainline too) -- zoom in too deep onto board edge and the implicit outline rectangle behaves strangely [report:Evan] -- scconfig: check if it picks up settings from env vars (for a gentoo build) -- replace mkdtemp() with something safer -- display net names on pins, vias (and maybe tracks?) when zoomed in enough -- DRC should warn for thin poly hair -- rotate shaped vias don't rotate the shape (is via rotated at all?) -- new examples - - blinking led with parametric footprints - - example of nonetlist: 1206 jumpers and logos -- decide what to do with old doc - texi doesn't seem to work at all -- rethink/rewrite the action/change infrastructure - too many void *ptr1 - pointers, too many code duplication -- double sided board, poly on both layers; grab existing lines on one layer and - move then around. If all layers are visible, redraw of the far side layer - is slow and causes flickering elements from that layer until the front is - redrawn. Maybe we should have less flushes? -- gpmi: - - dialog: attribute dialog: mini parser from text - - fix debug draw in the gtk hid - - ACTE_action(): coords should not be int but Coord - - get timers to work -- dmalloc: #include from the bottom from each file. Is this a good idea?! -- win32 port {large} - - clean up central Makefile.in rules: - - remove cat, sed, grep where possible, use scconfig instead -- arc bug: draw an arc with one end out of the drawing area; it will be jumpy and can not be placed properly - -> AttachForCopy() calls SetCrosshairRange() that then sets corsshair max* which - limits the arc to move freely. Problem: this is not arc-specific, this happens with any buffer copy! going for no-design-limit is probably better -- while drawing a line, the temporary outline should reflect the layer color -- push&shove - - keep 45-deg knee when grabbing a point for drag&drop in non-all-dir -- examine current handling of long options [miloh] -- --dump-actions shows gpmi paths ( is this related? it looks unexpected to me) Index: trunk/doc-rnd/index.html =================================================================== --- trunk/doc-rnd/index.html (revision 5606) +++ trunk/doc-rnd/index.html (nonexistent) @@ -1,124 +0,0 @@ - - - pcb-rnd - main - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -
    - - -
    -

    Summary

    - -
    -
    pcb-rnd
    -
    - is a flexible, modular Printed Circuit Board editor -

    historically is a fork of PCB -

    is an informal part of the geda project -

    features a lot of small and large improvements and bugfixes - - -

    Version Control svn://repo.hu/pcb-rnd/trunk -
    Download source releases -
    Comments, feedback, patches live chat with the developer
    or mail to: pcb-rnd (at) igor2.repo.hu
    Mailing list: pcb-rnd (at) list.repo.hu (send a mail with subject: subscribe) -
    Contribution and support - How to join or contribute -
    We are looking for help. -
    Do you have a feature request? - -
    Key features - editor for multilayer Printed Circuit Boards -
    scriptable in 10+ different scripting languages -
    parametric footprint generation, web footprints -
    modular code with a flexible plugin system -
    fits well in a UNIXy workflow -
    supports CLI and server applications -
    active development, frequent releases -
    friendly and efficient developer and user community -
    predictable development cycles -
    compatible with KiCad and gEDA/PCB - -
    Suported platforms - Linux desktop (various distributions, from source) -
    Mac OS X -
    Arch Linux (user package) - -
    IRIX 5.3 -
    (Likely: any 90's UNIX system with motif) -
    Screen resolution as small as 800x600 -
    GUI options: motif/lesstif, gtk -
    -
    - - -
    - - - -

    What is -rnd?

    -
    - -
    RaNDom - When it started, it used to be a random collection of small fixes and improvements. We got much further than that by now. -
    - -

    - - - -
    RespoNsive Developers - Developers try to respond on user needs, adding features that are actually needed by current users. -
    - -

    - - -
    - Response Not Delayed - Bugrepots, user requests and patches submitted are answered ASAP. There are no patches bitrotting for months. There are no forgotten bugreports. -
    - -

    - - - -
    Research
    &
    Development
    -
    -
    - Rázós,
    Nehéz
    Döntések
    (Brave, hard decisions) -
    There is a constant experimentation with new features and directions. We are willing to try strange/unusual ideas without risking the stability of the daily workflow. -
    - -

    - - - -
    Rants
    Now
    Dissipating
    -
    Instead of talking and ranting a lot about what could work better, we just sit down and make it work better. -
    - -

    - - - -
    Rather
    Nicely
    Decentralized
    -
    Slim, generic core; most of the code organized in replacable plugins. Most plugins depend only on the core. -
    - - - Index: trunk/doc-rnd/logo128.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/logo128.png =================================================================== --- trunk/doc-rnd/logo128.png (revision 5606) +++ trunk/doc-rnd/logo128.png (nonexistent) Property changes on: trunk/doc-rnd/logo128.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/keys.html =================================================================== --- trunk/doc-rnd/keys.html (revision 5606) +++ trunk/doc-rnd/keys.html (nonexistent) @@ -1,684 +0,0 @@ - -

    Key to action bindings

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    key pcb-menu-lesstif.lht pcb-menu-gtk.lht -
    . - 'All-direction' lines
    conf(toggle, editor/all_direction_lines, design) -
    'All-direction' lines
    conf(toggle, editor/all_direction_lines, design) -
    / - Cycle Clip
    Display(CycleClip) -
    Cycle Clip
    Display(CycleClip) -
    0 - Select Layer 10
    SelectLayer(10) -
    Select Layer 10
    SelectLayer(10) -
    0-alt - Select Layer 20
    SelectLayer(20) -
    Select Layer 20
    SelectLayer(20) -
    0-alt-ctrl - Toggle Layer 20
    ToggleView(20) -
    Toggle Layer 20
    ToggleView(20) -
    0-ctrl - Toggle Layer 10
    ToggleView(10) -
    Toggle Layer 10
    ToggleView(10) -
    1 - Select Layer 1
    SelectLayer(1) -
    Select Layer 1
    SelectLayer(1) -
    1-alt - Select Layer 11
    SelectLayer(11) -
    Select Layer 11
    SelectLayer(11) -
    1-alt-ctrl - Toggle Layer 11
    ToggleView(11) -
    Toggle Layer 11
    ToggleView(11) -
    1-ctrl - Toggle Layer 1
    ToggleView(1) -
    Toggle Layer 1
    ToggleView(1) -
    1-shift - #1
    PasteBuffer(1) -
    Select Buffer #1
    PasteBuffer(1) -
    2 - Select Layer 2
    SelectLayer(2) -
    Select Layer 2
    SelectLayer(2) -
    2-alt - Select Layer 12
    SelectLayer(12) -
    Select Layer 12
    SelectLayer(12) -
    2-alt-ctrl - Toggle Layer 12
    ToggleView(12) -
    Toggle Layer 12
    ToggleView(12) -
    2-ctrl - Toggle Layer 2
    ToggleView(2) -
    Toggle Layer 2
    ToggleView(2) -
    2-shift - #2
    PasteBuffer(2) -
    Select Buffer #2
    PasteBuffer(2) -
    3 - Select Layer 3
    SelectLayer(3) -
    Select Layer 3
    SelectLayer(3) -
    3-alt - Select Layer 13
    SelectLayer(13) -
    Select Layer 13
    SelectLayer(13) -
    3-alt-ctrl - Toggle Layer 13
    ToggleView(13) -
    Toggle Layer 13
    ToggleView(13) -
    3-ctrl - Toggle Layer 3
    ToggleView(3) -
    Toggle Layer 3
    ToggleView(3) -
    3-shift - #3
    PasteBuffer(3) -
    Select Buffer #3
    PasteBuffer(3) -
    4 - Select Layer 4
    SelectLayer(4) -
    Select Layer 4
    SelectLayer(4) -
    4-alt - Select Layer 14
    SelectLayer(14) -
    Select Layer 14
    SelectLayer(14) -
    4-alt-ctrl - Toggle Layer 14
    ToggleView(14) -
    Toggle Layer 14
    ToggleView(14) -
    4-ctrl - Toggle Layer 4
    ToggleView(4) -
    Toggle Layer 4
    ToggleView(4) -
    4-shift - #4
    PasteBuffer(4) -
    Select Buffer #4
    PasteBuffer(4) -
    5 - Select Layer 5
    SelectLayer(5) -
    Select Layer 5
    SelectLayer(5) -
    5-alt - Select Layer 15
    SelectLayer(15) -
    Select Layer 15
    SelectLayer(15) -
    5-alt-ctrl - Toggle Layer 15
    ToggleView(15) -
    Toggle Layer 15
    ToggleView(15) -
    5-ctrl - Toggle Layer 5
    ToggleView(5) -
    Toggle Layer 5
    ToggleView(5) -
    5-shift - #5
    PasteBuffer(5) -
    Select Buffer #5
    PasteBuffer(5) -
    6 - Select Layer 6
    SelectLayer(6) -
    Select Layer 6
    SelectLayer(6) -
    6-alt - Select Layer 16
    SelectLayer(16) -
    Select Layer 16
    SelectLayer(16) -
    6-alt-ctrl - Toggle Layer 16
    ToggleView(16) -
    Toggle Layer 16
    ToggleView(16) -
    6-ctrl - Toggle Layer 6
    ToggleView(6) -
    Toggle Layer 6
    ToggleView(6) -
    7 - Select Layer 7
    SelectLayer(7) -
    Select Layer 7
    SelectLayer(7) -
    7-alt - Select Layer 17
    SelectLayer(17) -
    Select Layer 17
    SelectLayer(17) -
    7-alt-ctrl - Toggle Layer 17
    ToggleView(17) -
    Toggle Layer 17
    ToggleView(17) -
    7-ctrl - Toggle Layer 7
    ToggleView(7) -
    Toggle Layer 7
    ToggleView(7) -
    8 - Select Layer 8
    SelectLayer(8) -
    Select Layer 8
    SelectLayer(8) -
    8-alt - Select Layer 18
    SelectLayer(18) -
    Select Layer 18
    SelectLayer(18) -
    8-alt-ctrl - Toggle Layer 18
    ToggleView(18) -
    Toggle Layer 18
    ToggleView(18) -
    8-ctrl - Toggle Layer 8
    ToggleView(8) -
    Toggle Layer 8
    ToggleView(8) -
    9 - Select Layer 9
    SelectLayer(9) -
    Select Layer 9
    SelectLayer(9) -
    9-alt - Select Layer 19
    SelectLayer(19) -
    Select Layer 19
    SelectLayer(19) -
    9-alt-ctrl - Toggle Layer 19
    ToggleView(19) -
    Toggle Layer 19
    ToggleView(19) -
    9-ctrl - Toggle Layer 9
    ToggleView(9) -
    Toggle Layer 9
    ToggleView(9) -
    : - Command
    Command() -
    Command Entry
    Command() -
    = - SimpleOpts
    djopt(simple) -
    Simple optimization
    djopt(simple) -
    =-shift - Auto-Optimize
    djopt(auto) -
    Auto-Optimize
    djopt(auto) -
    [ - Temp Arrow ON
    Mode(Save); Mode(Arrow); Mode(Notify) -
    Temp Arrow ON
    Mode(Save); Mode(Arrow); Mode(Notify) -
    \ -   - Full screen
    fullscreen(toggle) -
    ] - Temp Arrow OFF
    Mode(Release); Mode(Restore) -
    Temp Arrow OFF
    Mode(Release); Mode(Restore) -
    ` - Zoom Toggle
    Zoom(Toggle) -
      -
    a - Set Same
    SetSame() -
    Set Same
    SetSame() -
    a-alt - Select all visible
    Select(All) -
    Select all visible
    Select(All) -
    a-alt-shift - Unselect all
    Unselect(All) -
    Unselect all
    Unselect(All) -
    b - Flip Object
    Flip(Object) -
    Flip Object
    Flip(Object) -
    b-alt-ctrl -   - netlist patch for back annotation
    SavePatch() -
    b-shift - Move selected elements to other side
    Flip(SelectedElements) -
    Move selected elements to other side
    Flip(SelectedElements) -
    backspace - Remove
    Delete(Selected) -
    Remove Selected
    RemoveSelected() -
    backspace-shift - Remove Connected
    Atomic(Save); Connection(Reset); Atomic(Restore); Unselect(All); Atomic(Restore); Connection(Find); Atomic(Restore); Select(Connection); Atomic(Restore); RemoveSelected(); Atomic(Restore); Connection(Reset); Atomic(Restore); Unselect(All); Atomic(Block) -
    Remove Connected
    Atomic(Save); Connection(Reset); Atomic(Restore); Unselect(All); Atomic(Restore); Connection(Find); Atomic(Restore); Select(Connection); Atomic(Restore); RemoveSelected(); Atomic(Restore); Connection(Reset); Atomic(Restore); Unselect(All); Atomic(Block) -
    c - Center cursor
    Center() -
    Center cursor
    Center() -
    c-ctrl - Copy selection to buffer
    GetXY(Click to set the snap point for this buffer); PasteBuffer(Clear); PasteBuffer(AddSelected); Mode(PasteBuffer) -
    Copy selection to buffer
    GetXY(Click to set the snap point for this buffer); PasteBuffer(Clear); PasteBuffer(AddSelected); Unselect(All); Mode(PasteBuffer) -
    d - Pins/Via show Name/Number
    Display(PinOrPadName) -
    Pins/Via show Name/Number
    Display(PinOrPadName) -
    d-shift - Pinout
    Display(Pinout) -
    Error: key prefix collision -
    Pinout
    Display(Pinout) -
    delete - Delete selected objects
    Delete(Selected) -
    Remove
    Mode(Save); Mode(Remove); Mode(Notify); Mode(Restore) -
    delete-shift - Remove Connected
    Atomic(Save); Connection(Reset); Atomic(Restore); Unselect(All); Atomic(Restore); Connection(Find); Atomic(Restore); Select(Connection); Atomic(Restore); RemoveSelected(); Atomic(Restore); Connection(Reset); Atomic(Restore); Unselect(All); Atomic(Block) -
    Remove selected objects
    RemoveSelected() -
    down - Step Down
    Cursor(Warp,0,-1,grid) -
    Step Down
    Cursor(Warp,0,-1,grid) -
    down-shift - Step +Down
    Cursor(Pan,0,-50,view) -
    Step +Down
    Cursor(Pan,0,-50,view) -
    e - Erase rats-nest
    DeleteRats(AllRats) -
    Erase rats nest
    DeleteRats(AllRats) -
    e-ctrl -   - Edit properties of selected...
    PropEdit(Selected) -
    e-shift - Erase selected rats
    DeleteRats(SelectedRats) -
    Erase selected rats
    DeleteRats(SelectedRats) -
    enter - "Click"
    Mode(Notify); Mode(Release) -
    Click
    Mode(Notify); Mode(Release) -
    escape - Cancel
    Mode(Cancel) -
    Cancel
    Mode(Escape) -
    f - Find Connections
    Connection(Reset); Connection(Find) -
    Find Connections
    Connection(Reset); Connection(Find) -
    f-alt-shift -   - Replace footprint
    ReplaceFootprint() -
    f-ctrl - Lookup connection to object
    GetXY(Click on the object); Connection(Find) -
    Lookup connection to object
    GetXY(Click on the object); Connection(Find) -
    f-shift - Reset all connections
    Connection(Reset); Display(Redraw) -
    Reset all connections
    Connection(Reset); Display(Redraw) -
    f1 - Via
    Mode(Via) -
    Via
    Mode(Via) -
    f10 - Thermal
    Mode(Thermal) -
    Thermal
    Mode(Thermal) -
    f11 - Arrow
    Mode(Arrow) -
    Arrow
    Mode(Arrow) -
    f12 - Lock
    Mode(Lock) -
    Lock
    Mode(Lock) -
    f2 - Line
    Mode(Line) -
    Line
    Mode(Line) -
    f3 - Arc
    Mode(Arc) -
    Arc
    Mode(Arc) -
    f4 - Text
    Mode(Text) -
    Text
    Mode(Text) -
    f5 - Rectangle
    Mode(Rectangle) -
    Rectangle
    Mode(Rectangle) -
    f6 - Polygon
    Mode(Polygon) -
    Polygon
    Mode(Polygon) -
    f7 - Buffer
    Mode(PasteBuffer) -
    Buffer
    Mode(PasteBuffer) -
    f7-shift - Rotate buffer 90 deg CCW
    Mode(PasteBuffer); PasteBuffer(Rotate,1) -
    Rotate buffer 90 deg CCW
    Mode(PasteBuffer); PasteBuffer(Rotate,1) -
    f8 - Remove
    Mode(Remove) -
    Remove
    Mode(Remove) -
    f9 - Rotate
    Mode(Rotate) -
    Rotate
    Mode(Rotate) -
    g - Grid +5mil
    SetValue(Grid,+5,mil) -
    Grid +5mil
    SetValue(Grid,+5,mil) -
    g-ctrl - Grid +0.05mm
    SetValue(Grid,+0.05,mm) -
    Grid +0.05mm
    SetValue(Grid,+0.05,mm) -
    g-ctrl-shift - Grid -0.05mm
    SetValue(Grid,-0.05,mm) -
    Grid -0.05mm
    SetValue(Grid,-0.05,mm) -
    g-shift - Grid -5mil
    SetValue(Grid,-5,mil) -
    Grid -5mil
    SetValue(Grid,-5,mil) -
    h - ToggleHideName Object
    ToggleHideName(Object) -
    ToggleHideName Object
    ToggleHideName(Object) -
    h-ctrl - ChangeHole Object
    ChangeHole(Object) -
    ChangeHole Object
    ChangeHole(Object) -
    h-shift - ToggleHideName SelectedElement
    ToggleHideName(SelectedElements) -
    ToggleHideName SelectedElement
    ToggleHideName(SelectedElements) -
    i -   - Library
    DoWindows(Library) -
    insert - Insert Point
    Mode(InsertPoint) -
    Insert Point
    Mode(InsertPoint) -
    j - ChangeJoin Object
    ChangeJoin(Object) -
    ChangeJoin Object
    ChangeJoin(Object) -
    j-shift - ChangeJoin SelectedObject
    ChangeJoin(SelectedObjects) -
    ChangeJoin SelectedObject
    ChangeJoin(SelectedObjects) -
    k - Clear Object +2 mil
    ChangeClearSize(Object,+2,mil) -
    Clear Object +2 mil
    ChangeClearSize(Object,+2,mil) -
    k-ctrl - Clear Selected +2 mil
    ChangeClearSize(SelectedObjects,+2,mil) -
    Clear Selected +2 mil
    ChangeClearSize(SelectedObjects,+2,mil) -
    k-ctrl-shift - Clear Selected -2 mil
    ChangeClearSize(SelectedObjects,-2,mil) -
    Clear Selected -2 mil
    ChangeClearSize(SelectedObjects,-2,mil) -
    k-shift - Clear Object -2 mil
    ChangeClearSize(Object,-2,mil) -
    Clear Object -2 mil
    ChangeClearSize(Object,-2,mil) -
    l - Line Tool size +5 mil
    SetValue(LineSize,+5,mil) -
    Line Tool size +5 mil
    SetValue(LineSize,+5,mil) -
    l-shift - Line Tool size -5 mil
    SetValue(LineSize,-5,mil) -
    Line Tool size -5 mil
    SetValue(LineSize,-5,mil) -
    left - Step Left
    Cursor(Warp,-1,0,grid) -
    Step Left
    Cursor(Warp,-1,0,grid) -
    left-shift - Step +Left
    Cursor(Pan,-50,0,view) -
    Step +Left
    Cursor(Pan,-50,0,view) -
    m - Move Object to current layer
    MoveToCurrentLayer(Object) -
    Move Object to current layer
    MoveToCurrentLayer(Object) -
    m-ctrl - MarkCrosshair
    MarkCrosshair() -
    MarkCrosshair
    MarkCrosshair() -
    m-shift - Move selected to current layer
    MoveToCurrentLayer(Selected) -
    Move selected to current layer
    MoveToCurrentLayer(Selected) -
    n - Change text on layout
    ChangeName(Object) -
    text on layout
    ChangeName(Object) -
    n-alt -   - Nonetlist
    ChangeNonetlist(Element) -
    n-ctrl - Start new layout
    New() -
    Start New Layout
    New() -
    n-ctrl-shift - Change text on layout
    ChangeName(Object, Number) -
    pin on layout
    ChangeName(Object, Number) -
    n-shift - Select shortest rat
    AddRats(Close) -
    Select shortest rat
    AddRats(Close) -
    o - Optimize rats-nest
    Atomic(Save); DeleteRats(AllRats); Atomic(Restore); AddRats(AllRats); Atomic(Block) -
    Optimize rats nest
    Atomic(Save); DeleteRats(AllRats); Atomic(Restore); AddRats(AllRats); Atomic(Block) -
    o-ctrl - ChangeOctagon Object
    ChangeOctagon(Object) -
    ChangeOctagon Object
    ChangeOctagon(Object) -
    o-shift - AddRats to selected pins
    Atomic(Save); DeleteRats(AllRats); Atomic(Restore); AddRats(SelectedRats); Atomic(Block) -
    AddRats to selected pins
    Atomic(Save); DeleteRats(AllRats); Atomic(Restore); AddRats(SelectedRats); Atomic(Block) -
    p - Polygon PreviousPoint
    Polygon(PreviousPoint) -
    Polygon PreviousPoint
    Polygon(PreviousPoint) -
    p-alt - Manage plugins...
    ManagePlugins() -
    Manage plugins...
    ManagePlugins() -
    p-ctrl - Auto-place selected elements
    AutoPlaceSelected() -
    Auto-place selected elements
    AutoPlaceSelected() -
    p-ctrl-shift - Thin draw poly
    conf(toggle, editor/thin_draw_poly, design) -
    Thin draw poly
    conf(toggle, editor/thin_draw_poly, design) -
    p-shift - Polygon Close
    Polygon(Close) -
    Polygon Close
    Polygon(Close) -
    q - ChangeSquare Object
    ChangeSquare(Object) -
    ChangeSquare Object
    ChangeSquare(ToggleObject) -
    q-ctrl - Quit Program
    Quit() -
    Quit Program
    Quit() -
    r - Report net length
    Report(NetLength) -
      -
    r-alt - Auto-route selected rats
    AutoRoute(SelectedRats) -
    Auto-route selected rats
    AutoRoute(SelectedRats) -
    r-ctrl - Generate object report
    ReportObject() -
    Generate object report
    ReportObject() -
    r-shift - Redo last undone operation
    Redo() -
    Redo last undone operation
    Redo() -
    right - Step Right
    Cursor(Warp,1,0,grid) -
    Step Right
    Cursor(Warp,1,0,grid) -
    right-shift - Step +Right
    Cursor(Pan,50,0,view) -
    Step +Right
    Cursor(Pan,50,0,view) -
    s - ChangeSize +5 mil
    ChangeSize(Object,+5,mil) -
    ChangeSize +5 mil
    ChangeSize(Object,+5,mil) -
    s-alt - ChangeDrill +5 mil
    ChangeDrillSize(Object,+5,mil) -
    ChangeDrill +5 mil
    ChangeDrillSize(Object,+5,mil) -
    s-alt-shift - ChangeDrill -5 mil
    ChangeDrillSize(Object,-5,mil) -
    ChangeDrill -5 mil
    ChangeDrillSize(Object,-5,mil) -
    s-ctrl - Save layout
    Save(Layout) -
    Save Layout
    Save(Layout) -
    s-ctrl-shift - Save layout as...
    Save(LayoutAs) -
    Save Layout As...
    Save(LayoutAs) -
    s-shift - ChangeSize -5 mil
    ChangeSize(Object,-5,mil) -
    ChangeSize -5 mil
    ChangeSize(Object,-5,mil) -
    space - Arrow
    Mode(Arrow) -
    Arrow Mode
    Mode(Arrow) -
    t - Text Tool scale +10 mil
    SetValue(TextScale,+10,mil) -
    Text Tool scale +10 mil
    SetValue(TextScale,+10,mil) -
    t-shift - Text Tool scale -10 mil
    SetValue(TextScale,-10,mil) -
    Text Tool scale -10 mil
    SetValue(TextScale,-10,mil) -
    tab - Flip up/down
    SwapSides(V) -
    Flip up/down
    SwapSides(V) -
    tab-ctrl - Spin 180°
    SwapSides(R) -
    Spin 180 degrees
    SwapSides(R) -
    tab-ctrl-shift - Swap Sides
    SwapSides() -
    Swap Sides
    SwapSides() -
    tab-shift - Flip left/right
    SwapSides(H) -
    Flip left/right
    SwapSides(H) -
    u - Undo last operation
    Undo() -
    Undo last operation
    Undo() -
    u-ctrl-shift - Clear undo-buffer
    Undo(ClearList) -
    Clear undo-buffer
    Undo(ClearList) -
    up - Step Up
    Cursor(Warp,0,1,grid) -
    Step Up
    Cursor(Warp,0,1,grid) -
    up-shift - Step +Up
    Cursor(Pan,0,50,view) -
    Step +Up
    Cursor(Pan,0,50,view) -
    v - Zoom Max
    Zoom() -
    Zoom Max
    Zoom() -
    v-alt - Via Tool drill +5 mil
    SetValue(ViaDrillingHole,+5,mil) -
    Via Tool drill +5 mil
    SetValue(ViaDrillingHole,+5,mil) -
    v-alt-shift - Via Tool drill -5 mil
    SetValue(ViaDrillingHole,-5,mil) -
    Via Tool drill -5 mil
    SetValue(ViaDrillingHole,-5,mil) -
    v-ctrl - Paste buffer to layout
    Mode(PasteBuffer) -
    Paste buffer to layout
    Mode(PasteBuffer) -
    v-ctrl-shift - Via Tool size -5 mil
    SetValue(ViaSize,-5,mil) -
    Via Tool size -5 mil
    SetValue(ViaSize,-5,mil) -
    v-shift - Via Tool size +5 mil
    SetValue(ViaSize,+5,mil) -
    Via Tool size +5 mil
    SetValue(ViaSize,+5,mil) -
    w - Add All Rats
    AddRats(AllRats) -
    Add All Rats
    AddRats(AllRats) -
    w-shift - AddRats Selected
    AddRats(SelectedRats) -
    AddRats Selected
    AddRats(SelectedRats) -
    x -   - Cycle object being dragged
    CycleDrag() -
    x-ctrl - Cut selection to buffer
    GetXY(Click to set the snap point for this buffer); PasteBuffer(Clear); PasteBuffer(AddSelected); RemoveSelected(); Mode(PasteBuffer) -
    Cut selection to buffer
    GetXY(Click to set the snap point for this buffer); PasteBuffer(Clear); PasteBuffer(AddSelected); RemoveSelected(); Mode(PasteBuffer) -
    x-shift -   - Swap nets on two selected pins
    net(swap) -
    y - Puller
    Puller() -
    Puller
    Puller() -
    y-shift - ChangeSizes to Route style
    ChangeSizes(Object,style,mil) -
    ChangeSizes to Route style
    ChangeSizes(Object,style,mil) -
    z - Zoom In 20%
    Zoom(-1.2) -
    Zoom In 20%
    Zoom(-1.2) -
    z-alt - Undo
    Undo() -
      -
    z-shift - Zoom Out 20%
    Zoom(+1.2) -
    Zoom Out 20%
    Zoom(+1.2) -
    | - Thin draw
    conf(toggle, editor/thin_draw, design) -
    Thin draw
    conf(toggle, editor/thin_draw, design) -
    -
    pcb-menu-lesstif.lht: d-shift vs. d-shift; - Index: trunk/doc-rnd/features/cycdrag.html =================================================================== --- trunk/doc-rnd/features/cycdrag.html (revision 5606) +++ trunk/doc-rnd/features/cycdrag.html (nonexistent) @@ -1,46 +0,0 @@ - - - pcb-rnd - [cycdrag] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [cycdrag] patches

    - -A long standing misfeature of pcb (and pcb-rnd) has been that when dragging the -end of connected traces, pcb chosen one of the traces "randomly". It often -didn't pick the one the user wanted to move. The workaround was to move the -one that pcb picked and then return and move the target trace then -move the other trace back. This gets even more annoying if there are more than -two objects connected in the given point: 3 traces and a via for example. -

    -The cycdrag patch addresses this issue by defining an action that can cycle -through objects that could be dragged in the given point while the left mouse -button is pressed. This lets the user explicitly select the one object to -work on. -

    -This demo video -demonstrates how it works with three lines and a via. - -

    save/load and compatibility

    -Not affected. - -

    plans

    -It does not work with the lesstif HID. It does not work with the rubber band -mode. - - - Index: trunk/doc-rnd/features/mincut.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/features/mincut.png =================================================================== --- trunk/doc-rnd/features/mincut.png (revision 5606) +++ trunk/doc-rnd/features/mincut.png (nonexistent) Property changes on: trunk/doc-rnd/features/mincut.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/features/nonetlist.html =================================================================== --- trunk/doc-rnd/features/nonetlist.html (revision 5606) +++ trunk/doc-rnd/features/nonetlist.html (nonexistent) @@ -1,71 +0,0 @@ - - - pcb-rnd - [nonetlist] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [nonetlist] patch

    - -The [nonetlist] patch adds an element flag that makes PCB ignore the marked -element when dealing with netlists. This means connecting a net to a pin of -a nonetlist element will not cause a short. The refdes of a nonetlist -part is drawn with color element-color-nonetlist (ElementColor_nonetlist -in the source; default value #777777, grey). -

    -Uses of the nonetlist feature: -

      -
    • smd jumper: Combined with the [intconn] patch, this - solves the "0-ohm 1206 jumper" problem: the element should be marked - as nonetlist, with both pins set intconn(1) - this will result in a 2 - pad element, pads internally connected, that can be part of any one network - without causing short and passing the DRC. -
    • mechanical parts that should not show up on the schematics: -
        -
      • mounting hole elements: single pin holes with silk marking the head of the screw -
      • chassis (often with mounting holes or keep-out areas) -
      • logos in footprints (no poly support in footprint - yet?) -
      • mechanical parts which do not have solderable pins (plastic spacers, extra connector shields) -
      • "spare connectors", e.g. unused/disconnected DIP sockets, pin grids, or connectors in the corner of the PCB for prototyping (dev-board style) -
      -
    -

    -Preservation: gsch2pcb-rnd leaves nonetlist elements in the PCB. -

    save/load and compatibility

    -This patch introduces a new element flag. The following example demonstrates -a 1206 jumper footprint: -
    -Element["nonetlist" "1206 jumper, 0 ohm" "" "1206" 0 0 -3150 -3150 0 100 ""]
    -(
    -	Pad[-5905 -1181 -5905 1181 5118 2000 5718 "1" "1" "square,intconn(1)"]
    -	Pad[5905 -1181 5905 1181 5118 2000 5718 "2" "2" "square,intconn(1)"]
    -	ElementLine[-2362 -3740 2362 -3740 800]
    -	ElementLine[-2362 3740 2362 3740 800]
    -)
    -
    -Mainline PCB will load the design ignoring internal connections and nonetlist -flag - this will cause shorts on all connected pins/pads and will break -the connection. -

    -Mainline PCB doesn't save nonetlist and elements are embedded in the file - -once the design is loaded and saved with mainline PCB, the flag is lost. -After reloading the file in pcb-rnd, the element causes the same shorts -as in mainline PCB. - -

    plans

    -No plans, the feature is complete. - - Index: trunk/doc-rnd/features/square.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/features/square.png =================================================================== --- trunk/doc-rnd/features/square.png (revision 5606) +++ trunk/doc-rnd/features/square.png (nonexistent) Property changes on: trunk/doc-rnd/features/square.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/features/unglib.html =================================================================== --- trunk/doc-rnd/features/unglib.html (revision 5606) +++ trunk/doc-rnd/features/unglib.html (nonexistent) @@ -1,35 +0,0 @@ - - - pcb-rnd - [unglib] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [unglib] patch

    - -Removes glib dependency from core, in favor of -minilibs to help -keeping the code small, modular -and easier to fix. - -

    save/load and compatibility

    -Not affected. - -

    plans

    -Remove glib dependency from the puller plugin. - - - Index: trunk/doc-rnd/features/grid_local_16.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/features/grid_local_16.png =================================================================== --- trunk/doc-rnd/features/grid_local_16.png (revision 5606) +++ trunk/doc-rnd/features/grid_local_16.png (nonexistent) Property changes on: trunk/doc-rnd/features/grid_local_16.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/features/onpoint.html =================================================================== --- trunk/doc-rnd/features/onpoint.html (revision 5606) +++ trunk/doc-rnd/features/onpoint.html (nonexistent) @@ -1,68 +0,0 @@ - - - pcb-rnd - [onpoint] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [onpoint] patches

    - -Robert Drehmel writes: -
    -When (e.g.) routing 5mm power traces on a small grid, it's not always easy to hit the
    -point where the trace ended (which is the center of the semicircle at the end of the
    -line) to start the next line.  If you have selected the line tool, finding the end of
    -the line can become guesswork as the cursor doesn't change shape like it does with the
    -select tool.
    -I want my traces to consist of lines and arcs that are perfectly connected and I want
    -to work as fast as possible.
    -
    -Attached is a small patch that
    -
    -  - makes it possible to deactivate snapping to "some sensible point along a line".
    -    (that's what a comment in the code says). This snapping algorithm gets in the way
    -    sometimes so you have to slowly go over a line to find out where it really ends,
    -    bouncing back and forth between the points of the small grid, the end of the line
    -    and these "sensible points", which is wasting time. The command is
    -    "Display(ToggleSnapOffGridLine)". It is still activated by default to avoid
    -    violating POLA.
    -
    -  - more importantly, introduces a new command called "Display(ToggleHighlightOnPoint)"
    -    that highlights all lines and arcs which have (end)points exactly on the position
    -    where the cross hair is currently snapped to. It therefore helps finding the end
    -    points of lines and arcs, but sometimes also shows redundant traces, traces that
    -    aren't perfectly connected to each other, traces that don't end directly on the
    -    center of a via but should, etc. It works with thin draw too and I tested it with
    -    gtk and lesstif.
    -
    -I use the second option mostly in conjunction with deactivating the first. Both commands
    -have been added to the menu by means of (g)pcb-menu.res.in and are available as command
    -line options as well.
    -Caveats:
    -  - The HID API expects all HIDs to make a copy of the color string when setting a color.
    -  - The function that lightens up a color could be improved.
    -  - I used it for a while, but after porting it from my local fork, it probably needs
    -    more testing.
    -
    - -

    save/load and compatibility

    -Not affected. - -

    plans

    -The feature is complete. - - - Index: trunk/doc-rnd/features/library_t.html =================================================================== --- trunk/doc-rnd/features/library_t.html (revision 5606) +++ trunk/doc-rnd/features/library_t.html (nonexistent) @@ -1,46 +0,0 @@ - - - pcb-rnd - [library_t] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [library_t] patch

    - -The original code has a special setup for representing trees, C structures -called LibraryMenu and LibraryEntry. This system can represent only a subset -of trees: there is a root, a level consist of directories only and a next level, -each directory consist of data nodes only. This has been enough for newlib, -which strictly follows this model in the file system hierarchy. The lesstif -HID also hardwired this model in the GUI. -

    -In pcb-rnd this has been replaced with a new struct type called library_t -that can represent an arbitrary tree: directories and files within directories -down to many levels. -

    -Both the gtk and the lesstif had has been modified accordingly and can -properly display the tree. This in turn enables alternative footprint backend -implementations such as fp_wget to import -more complex libraries, e.g. the one on gedasymbols.org. - -

    save/load and compatibility

    -Not affected. - -

    plans

    -Finished, no plans. - - - Index: trunk/doc-rnd/features/flagcomp.html =================================================================== --- trunk/doc-rnd/features/flagcomp.html (revision 5606) +++ trunk/doc-rnd/features/flagcomp.html (nonexistent) @@ -1,41 +0,0 @@ - - - pcb-rnd - [flagcomp] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [flagcomp] patch

    - -Many of the patches in this fork, and in possible future branches/forks -may introduce new pin, pad or element flags. PCB loads and saves flags -by converting the text representation to an in-memory binary format. Any -flag not understood is lost. -

    -This patch adds a linked list of string flags, filled in with the unknown -flags while loading a PCB. On save, these flags are appended to the normal -flag list. This preserves all unknown flags (but not order of flags) in -a load/save cycle. - -

    save/load and compatibility

    -This patch ensures compatibility in save/load cycles with flags introduced -by later versions of mainline PCB or different branches/forks of PCB by -not removing flags they introduced. - -

    plans

    -No plans - this feature is fully implemented. - - Index: trunk/doc-rnd/features/grid_edge.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/features/grid_edge.png =================================================================== --- trunk/doc-rnd/features/grid_edge.png (revision 5606) +++ trunk/doc-rnd/features/grid_edge.png (nonexistent) Property changes on: trunk/doc-rnd/features/grid_edge.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/features/pcblib.html =================================================================== --- trunk/doc-rnd/features/pcblib.html (revision 5606) +++ trunk/doc-rnd/features/pcblib.html (nonexistent) @@ -1,74 +0,0 @@ - - - pcb-rnd - [pcblib] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [pcblib] and [pcblib-param] and [fp_fs] patches

    - -
    -The footprint library shipped with mainline pcb is cluttered with -special puprose parts. I believe PCB encourages the user from -an early stage to build his own library. Thus the purpose of -the library shipped with PCB should be -to provide a minimal collection of real essential footprints ... -
      -
    • ... for the very beginning of the learning curve; -
    • ... and to be the core of the user's own library later. -
    -

    -[pcblib] is a replacement of newlib/ and lib/ and the m4 macros with -such an essential core library of static footprints ("file elements") -and easier-to-use parametric footprints. -

    -There is an online map of -the library and -an online interface to the parametric footprint generators. - -

    Design decisions

    -Parts are sorted only in a few directories: smd, tru-hole, connector and -parametric. I believe there are so many orthogonal properties of footpritns -that there's no obvious hierarchy. Also, pcblib contains much fewer footpritns -than newlib so it should be still easy to navigate. -

    -Parametric footprints are in a separate directory for now, even tho they -would fit under smd, tru-hole or connector. The reason is purely historical -and the layout may change in the future. - -

    Example

    -To the right: Footprint selection dialog on pcblib, with the smd directory -open. Note how few smd parts are there. Still, smd/ is the most crowded -subdirectory! - -

    [fp_fs]

    -As of vesion 1.0.10, the footprint list/search/load of footprints is a plugin. -The original code that handles local file system footprint libraries (e.g. -pcblib or newlib) is now a plugin. Altnerative plugins can be provided that work -from databases or from the web. In extreme -situations the file system based footprint plugin can even be disabled. - -

    save/load and compatibility

    -Not affected: elements are embedded in the PCB. - -

    plans

    -None, the feature is complete. -
                - - -
    - - Index: trunk/doc-rnd/features/gpmi.html =================================================================== --- trunk/doc-rnd/features/gpmi.html (revision 5606) +++ trunk/doc-rnd/features/gpmi.html (nonexistent) @@ -1,59 +0,0 @@ - - - pcb-rnd - [gpmi] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [gpmi] patch

    - -Thanks to gpmi, pcb-rnd is scriptable in about 10 scripting languages (e.g. -lua, awk, ruby, python, scheme, tcl). Scripts are integrated in pcb-rnd and -have access to most of the internals. Scripts -are able to: -
    - -

    -This feature has three options: -

      -
    • disabled: not compiled at all - when gpmi is not installed (no gpmi scripting in PCB) -
    • buildin: compiled and linked in the executable - pcb-rnd always can load and run scripts -
    • plugin: compiled as a loadable plugin - pcb-rnd can load and run scripts if the plugin is installed -
    - -

    Example

    -Check out the Rosetta stone of -pcb-rnd. - -

    save/load and compatibility

    -Save/load files are not affected. - -

    plans

    -Expose more internals, write more example scripts and documentation. - - - Index: trunk/doc-rnd/features/mincut.html =================================================================== --- trunk/doc-rnd/features/mincut.html (revision 5606) +++ trunk/doc-rnd/features/mincut.html (nonexistent) @@ -1,65 +0,0 @@ - - - pcb-rnd - [mincut] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [mincut] patch

    - -The original code was highlighting pins/pads only when a short came around -after rats nest optimization. This was not very helpful on a complex board. -There had been a long discussion on the mailing list about the best solutions. -There were a few very good ideas, including: -
      -
    • manual tagging of objects (lines, polys, arcs, vias) with net and warn - where two differently tagged net connects -
    • automatic tagging based on "where it was connected first", then the same - warning mechanism as above -
    • trace history (using the undo buffer?) and go back until when it was - not broken, check what exactly broke it -
    • history combined with tagging -
    • calculate minimal cut -
    -

    -I choose minimal cut for my patch because it doesn't require tracing the -full history or any manual administration of nets vs. objects (which I -would find inevitable even with manual tagging - directly or indirectly -the user needs to be able to change net tags). -

    -The minimal cut is the least amount of object whose removal would resolve -the short. It is best demonstrated on an example: -

    - -

    -Removing all the marked lines/polys/vias would surely resolve the short -(sometimes leaving rat lines behind). Minimal cut is better than randomly -removing objects, tho: it guarantees that the minimal amount of objects -are to be removed. On a complex board, this place is likely to be close -to the place where the problem really is - much closer than the pins/pads. -

    -Since mincut can be expensive on large boards, the feature can be enabled -per board (a new PCB flag) and can be disbaled globally (--enable-mincut 0 -when starting PCB). - -

    save/load and compatibility

    -New PCB flag enablemincut. Mainline pcb ignores this flag but does not -preserve it. - -

    plans

    -Finished, no plans. - - Index: trunk/doc-rnd/features/square.pcb =================================================================== --- trunk/doc-rnd/features/square.pcb (revision 5606) +++ trunk/doc-rnd/features/square.pcb (nonexistent) @@ -1,893 +0,0 @@ -# release: pcb 20110918 - -# To read pcb files, the pcb version (or the git source date) must be >= the file version -FileVersion[20070407] - -PCB["" 130000 105000] - -Grid[2500.0 0 0 1] -Cursor[0 0 0.000000] -PolyArea[3100.006200] -Thermal[0.500000] -DRC[1000 1000 1000 1000 1500 1000] -Flags("nameonpcb,uniquename,clearnew") -Groups("1,c:2,s:3:4:5:6:7:8") -Styles["Signal,1500,6000,3150,2500:Power,3000,6000,3937,2500:Fat,8000,6000,3500,2500:Skinny,1200,2402,1181,2500"] - -Symbol[' ' 1800] -( -) -Symbol['!' 1200] -( - SymbolLine[0 4500 0 5000 800] - SymbolLine[0 1000 0 3500 800] -) -Symbol['"' 1200] -( - SymbolLine[0 1000 0 2000 800] - SymbolLine[1000 1000 1000 2000 800] -) -Symbol['#' 1200] -( - SymbolLine[0 3500 2000 3500 800] - SymbolLine[0 2500 2000 2500 800] - SymbolLine[1500 2000 1500 4000 800] - SymbolLine[500 2000 500 4000 800] -) -Symbol['$' 1200] -( - SymbolLine[1500 1500 2000 2000 800] - SymbolLine[500 1500 1500 1500 800] - SymbolLine[0 2000 500 1500 800] - SymbolLine[0 2000 0 2500 800] - SymbolLine[0 2500 500 3000 800] - SymbolLine[500 3000 1500 3000 800] - SymbolLine[1500 3000 2000 3500 800] - SymbolLine[2000 3500 2000 4000 800] - SymbolLine[1500 4500 2000 4000 800] - SymbolLine[500 4500 1500 4500 800] - SymbolLine[0 4000 500 4500 800] - SymbolLine[1000 1000 1000 5000 800] -) -Symbol['%' 1200] -( - SymbolLine[0 1500 0 2000 800] - SymbolLine[0 1500 500 1000 800] - SymbolLine[500 1000 1000 1000 800] - SymbolLine[1000 1000 1500 1500 800] - SymbolLine[1500 1500 1500 2000 800] - SymbolLine[1000 2500 1500 2000 800] - SymbolLine[500 2500 1000 2500 800] - SymbolLine[0 2000 500 2500 800] - SymbolLine[0 5000 4000 1000 800] - SymbolLine[3500 5000 4000 4500 800] - SymbolLine[4000 4000 4000 4500 800] - SymbolLine[3500 3500 4000 4000 800] - SymbolLine[3000 3500 3500 3500 800] - SymbolLine[2500 4000 3000 3500 800] - SymbolLine[2500 4000 2500 4500 800] - SymbolLine[2500 4500 3000 5000 800] - SymbolLine[3000 5000 3500 5000 800] -) -Symbol['&' 1200] -( - SymbolLine[0 4500 500 5000 800] - SymbolLine[0 1500 0 2500 800] - SymbolLine[0 1500 500 1000 800] - SymbolLine[0 3500 1500 2000 800] - SymbolLine[500 5000 1000 5000 800] - SymbolLine[1000 5000 2000 4000 800] - SymbolLine[0 2500 2500 5000 800] - SymbolLine[500 1000 1000 1000 800] - SymbolLine[1000 1000 1500 1500 800] - SymbolLine[1500 1500 1500 2000 800] - SymbolLine[0 3500 0 4500 800] -) -Symbol[''' 1200] -( - SymbolLine[0 2000 1000 1000 800] -) -Symbol['(' 1200] -( - SymbolLine[0 4500 500 5000 800] - SymbolLine[0 1500 500 1000 800] - SymbolLine[0 1500 0 4500 800] -) -Symbol[')' 1200] -( - SymbolLine[0 1000 500 1500 800] - SymbolLine[500 1500 500 4500 800] - SymbolLine[0 5000 500 4500 800] -) -Symbol['*' 1200] -( - SymbolLine[0 2000 2000 4000 800] - SymbolLine[0 4000 2000 2000 800] - SymbolLine[0 3000 2000 3000 800] - SymbolLine[1000 2000 1000 4000 800] -) -Symbol['+' 1200] -( - SymbolLine[0 3000 2000 3000 800] - SymbolLine[1000 2000 1000 4000 800] -) -Symbol[',' 1200] -( - SymbolLine[0 6000 1000 5000 800] -) -Symbol['-' 1200] -( - SymbolLine[0 3000 2000 3000 800] -) -Symbol['.' 1200] -( - SymbolLine[0 5000 500 5000 800] -) -Symbol['/' 1200] -( - SymbolLine[0 4500 3000 1500 800] -) -Symbol['0' 1200] -( - SymbolLine[0 4500 500 5000 800] - SymbolLine[0 1500 0 4500 800] - SymbolLine[0 1500 500 1000 800] - SymbolLine[500 1000 1500 1000 800] - SymbolLine[1500 1000 2000 1500 800] - SymbolLine[2000 1500 2000 4500 800] - SymbolLine[1500 5000 2000 4500 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[0 4000 2000 2000 800] -) -Symbol['1' 1200] -( - SymbolLine[0 1800 800 1000 800] - SymbolLine[800 1000 800 5000 800] - SymbolLine[0 5000 1500 5000 800] -) -Symbol['2' 1200] -( - SymbolLine[0 1500 500 1000 800] - SymbolLine[500 1000 2000 1000 800] - SymbolLine[2000 1000 2500 1500 800] - SymbolLine[2500 1500 2500 2500 800] - SymbolLine[0 5000 2500 2500 800] - SymbolLine[0 5000 2500 5000 800] -) -Symbol['3' 1200] -( - SymbolLine[0 1500 500 1000 800] - SymbolLine[500 1000 1500 1000 800] - SymbolLine[1500 1000 2000 1500 800] - SymbolLine[1500 5000 2000 4500 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[500 2800 1500 2800 800] - SymbolLine[2000 1500 2000 2300 800] - SymbolLine[2000 3300 2000 4500 800] - SymbolLine[2000 3300 1500 2800 800] - SymbolLine[2000 2300 1500 2800 800] -) -Symbol['4' 1200] -( - SymbolLine[0 3500 2000 1000 800] - SymbolLine[0 3500 2500 3500 800] - SymbolLine[2000 1000 2000 5000 800] -) -Symbol['5' 1200] -( - SymbolLine[0 1000 2000 1000 800] - SymbolLine[0 1000 0 3000 800] - SymbolLine[0 3000 500 2500 800] - SymbolLine[500 2500 1500 2500 800] - SymbolLine[1500 2500 2000 3000 800] - SymbolLine[2000 3000 2000 4500 800] - SymbolLine[1500 5000 2000 4500 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[0 4500 500 5000 800] -) -Symbol['6' 1200] -( - SymbolLine[1500 1000 2000 1500 800] - SymbolLine[500 1000 1500 1000 800] - SymbolLine[0 1500 500 1000 800] - SymbolLine[0 1500 0 4500 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[1500 2800 2000 3300 800] - SymbolLine[0 2800 1500 2800 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[1500 5000 2000 4500 800] - SymbolLine[2000 3300 2000 4500 800] -) -Symbol['7' 1200] -( - SymbolLine[500 5000 2500 1000 800] - SymbolLine[0 1000 2500 1000 800] -) -Symbol['8' 1200] -( - SymbolLine[0 4500 500 5000 800] - SymbolLine[0 3700 0 4500 800] - SymbolLine[0 3700 700 3000 800] - SymbolLine[700 3000 1300 3000 800] - SymbolLine[1300 3000 2000 3700 800] - SymbolLine[2000 3700 2000 4500 800] - SymbolLine[1500 5000 2000 4500 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[0 2300 700 3000 800] - SymbolLine[0 1500 0 2300 800] - SymbolLine[0 1500 500 1000 800] - SymbolLine[500 1000 1500 1000 800] - SymbolLine[1500 1000 2000 1500 800] - SymbolLine[2000 1500 2000 2300 800] - SymbolLine[1300 3000 2000 2300 800] -) -Symbol['9' 1200] -( - SymbolLine[500 5000 2000 3000 800] - SymbolLine[2000 1500 2000 3000 800] - SymbolLine[1500 1000 2000 1500 800] - SymbolLine[500 1000 1500 1000 800] - SymbolLine[0 1500 500 1000 800] - SymbolLine[0 1500 0 2500 800] - SymbolLine[0 2500 500 3000 800] - SymbolLine[500 3000 2000 3000 800] -) -Symbol[':' 1200] -( - SymbolLine[0 2500 500 2500 800] - SymbolLine[0 3500 500 3500 800] -) -Symbol[';' 1200] -( - SymbolLine[0 5000 1000 4000 800] - SymbolLine[1000 2500 1000 3000 800] -) -Symbol['<' 1200] -( - SymbolLine[0 3000 1000 2000 800] - SymbolLine[0 3000 1000 4000 800] -) -Symbol['=' 1200] -( - SymbolLine[0 2500 2000 2500 800] - SymbolLine[0 3500 2000 3500 800] -) -Symbol['>' 1200] -( - SymbolLine[0 2000 1000 3000 800] - SymbolLine[0 4000 1000 3000 800] -) -Symbol['?' 1200] -( - SymbolLine[1000 3000 1000 3500 800] - SymbolLine[1000 4500 1000 5000 800] - SymbolLine[0 1500 0 2000 800] - SymbolLine[0 1500 500 1000 800] - SymbolLine[500 1000 1500 1000 800] - SymbolLine[1500 1000 2000 1500 800] - SymbolLine[2000 1500 2000 2000 800] - SymbolLine[1000 3000 2000 2000 800] -) -Symbol['@' 1200] -( - SymbolLine[0 1000 0 4000 800] - SymbolLine[0 4000 1000 5000 800] - SymbolLine[1000 5000 4000 5000 800] - SymbolLine[5000 3500 5000 1000 800] - SymbolLine[5000 1000 4000 0 800] - SymbolLine[4000 0 1000 0 800] - SymbolLine[1000 0 0 1000 800] - SymbolLine[1500 2000 1500 3000 800] - SymbolLine[1500 3000 2000 3500 800] - SymbolLine[2000 3500 3000 3500 800] - SymbolLine[3000 3500 3500 3000 800] - SymbolLine[3500 3000 4000 3500 800] - SymbolLine[3500 3000 3500 1500 800] - SymbolLine[3500 2000 3000 1500 800] - SymbolLine[2000 1500 3000 1500 800] - SymbolLine[2000 1500 1500 2000 800] - SymbolLine[4000 3500 5000 3500 800] -) -Symbol['A' 1200] -( - SymbolLine[0 2000 0 5000 800] - SymbolLine[0 2000 700 1000 800] - SymbolLine[700 1000 1800 1000 800] - SymbolLine[1800 1000 2500 2000 800] - SymbolLine[2500 2000 2500 5000 800] - SymbolLine[0 3000 2500 3000 800] -) -Symbol['B' 1200] -( - SymbolLine[0 5000 2000 5000 800] - SymbolLine[2000 5000 2500 4500 800] - SymbolLine[2500 3300 2500 4500 800] - SymbolLine[2000 2800 2500 3300 800] - SymbolLine[500 2800 2000 2800 800] - SymbolLine[500 1000 500 5000 800] - SymbolLine[0 1000 2000 1000 800] - SymbolLine[2000 1000 2500 1500 800] - SymbolLine[2500 1500 2500 2300 800] - SymbolLine[2000 2800 2500 2300 800] -) -Symbol['C' 1200] -( - SymbolLine[700 5000 2000 5000 800] - SymbolLine[0 4300 700 5000 800] - SymbolLine[0 1700 0 4300 800] - SymbolLine[0 1700 700 1000 800] - SymbolLine[700 1000 2000 1000 800] -) -Symbol['D' 1200] -( - SymbolLine[500 1000 500 5000 800] - SymbolLine[1800 1000 2500 1700 800] - SymbolLine[2500 1700 2500 4300 800] - SymbolLine[1800 5000 2500 4300 800] - SymbolLine[0 5000 1800 5000 800] - SymbolLine[0 1000 1800 1000 800] -) -Symbol['E' 1200] -( - SymbolLine[0 2800 1500 2800 800] - SymbolLine[0 5000 2000 5000 800] - SymbolLine[0 1000 0 5000 800] - SymbolLine[0 1000 2000 1000 800] -) -Symbol['F' 1200] -( - SymbolLine[0 1000 0 5000 800] - SymbolLine[0 1000 2000 1000 800] - SymbolLine[0 2800 1500 2800 800] -) -Symbol['G' 1200] -( - SymbolLine[2000 1000 2500 1500 800] - SymbolLine[500 1000 2000 1000 800] - SymbolLine[0 1500 500 1000 800] - SymbolLine[0 1500 0 4500 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[500 5000 2000 5000 800] - SymbolLine[2000 5000 2500 4500 800] - SymbolLine[2500 3500 2500 4500 800] - SymbolLine[2000 3000 2500 3500 800] - SymbolLine[1000 3000 2000 3000 800] -) -Symbol['H' 1200] -( - SymbolLine[0 1000 0 5000 800] - SymbolLine[2500 1000 2500 5000 800] - SymbolLine[0 3000 2500 3000 800] -) -Symbol['I' 1200] -( - SymbolLine[0 1000 1000 1000 800] - SymbolLine[500 1000 500 5000 800] - SymbolLine[0 5000 1000 5000 800] -) -Symbol['J' 1200] -( - SymbolLine[700 1000 1500 1000 800] - SymbolLine[1500 1000 1500 4500 800] - SymbolLine[1000 5000 1500 4500 800] - SymbolLine[500 5000 1000 5000 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[0 4500 0 4000 800] -) -Symbol['K' 1200] -( - SymbolLine[0 1000 0 5000 800] - SymbolLine[0 3000 2000 1000 800] - SymbolLine[0 3000 2000 5000 800] -) -Symbol['L' 1200] -( - SymbolLine[0 1000 0 5000 800] - SymbolLine[0 5000 2000 5000 800] -) -Symbol['M' 1200] -( - SymbolLine[0 1000 0 5000 800] - SymbolLine[0 1000 1500 3000 800] - SymbolLine[1500 3000 3000 1000 800] - SymbolLine[3000 1000 3000 5000 800] -) -Symbol['N' 1200] -( - SymbolLine[0 1000 0 5000 800] - SymbolLine[0 1000 2500 5000 800] - SymbolLine[2500 1000 2500 5000 800] -) -Symbol['O' 1200] -( - SymbolLine[0 1500 0 4500 800] - SymbolLine[0 1500 500 1000 800] - SymbolLine[500 1000 1500 1000 800] - SymbolLine[1500 1000 2000 1500 800] - SymbolLine[2000 1500 2000 4500 800] - SymbolLine[1500 5000 2000 4500 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[0 4500 500 5000 800] -) -Symbol['P' 1200] -( - SymbolLine[500 1000 500 5000 800] - SymbolLine[0 1000 2000 1000 800] - SymbolLine[2000 1000 2500 1500 800] - SymbolLine[2500 1500 2500 2500 800] - SymbolLine[2000 3000 2500 2500 800] - SymbolLine[500 3000 2000 3000 800] -) -Symbol['Q' 1200] -( - SymbolLine[0 1500 0 4500 800] - SymbolLine[0 1500 500 1000 800] - SymbolLine[500 1000 1500 1000 800] - SymbolLine[1500 1000 2000 1500 800] - SymbolLine[2000 1500 2000 4000 800] - SymbolLine[1000 5000 2000 4000 800] - SymbolLine[500 5000 1000 5000 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[1000 3500 2000 5000 800] -) -Symbol['R' 1200] -( - SymbolLine[0 1000 2000 1000 800] - SymbolLine[2000 1000 2500 1500 800] - SymbolLine[2500 1500 2500 2500 800] - SymbolLine[2000 3000 2500 2500 800] - SymbolLine[500 3000 2000 3000 800] - SymbolLine[500 1000 500 5000 800] - SymbolLine[1300 3000 2500 5000 800] -) -Symbol['S' 1200] -( - SymbolLine[2000 1000 2500 1500 800] - SymbolLine[500 1000 2000 1000 800] - SymbolLine[0 1500 500 1000 800] - SymbolLine[0 1500 0 2500 800] - SymbolLine[0 2500 500 3000 800] - SymbolLine[500 3000 2000 3000 800] - SymbolLine[2000 3000 2500 3500 800] - SymbolLine[2500 3500 2500 4500 800] - SymbolLine[2000 5000 2500 4500 800] - SymbolLine[500 5000 2000 5000 800] - SymbolLine[0 4500 500 5000 800] -) -Symbol['T' 1200] -( - SymbolLine[0 1000 2000 1000 800] - SymbolLine[1000 1000 1000 5000 800] -) -Symbol['U' 1200] -( - SymbolLine[0 1000 0 4500 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[1500 5000 2000 4500 800] - SymbolLine[2000 1000 2000 4500 800] -) -Symbol['V' 1200] -( - SymbolLine[0 1000 1000 5000 800] - SymbolLine[1000 5000 2000 1000 800] -) -Symbol['W' 1200] -( - SymbolLine[0 1000 0 3000 800] - SymbolLine[0 3000 500 5000 800] - SymbolLine[500 5000 1500 3000 800] - SymbolLine[1500 3000 2500 5000 800] - SymbolLine[2500 5000 3000 3000 800] - SymbolLine[3000 3000 3000 1000 800] -) -Symbol['X' 1200] -( - SymbolLine[0 5000 2500 1000 800] - SymbolLine[0 1000 2500 5000 800] -) -Symbol['Y' 1200] -( - SymbolLine[0 1000 1000 3000 800] - SymbolLine[1000 3000 2000 1000 800] - SymbolLine[1000 3000 1000 5000 800] -) -Symbol['Z' 1200] -( - SymbolLine[0 1000 2500 1000 800] - SymbolLine[0 5000 2500 1000 800] - SymbolLine[0 5000 2500 5000 800] -) -Symbol['[' 1200] -( - SymbolLine[0 1000 500 1000 800] - SymbolLine[0 1000 0 5000 800] - SymbolLine[0 5000 500 5000 800] -) -Symbol['\' 1200] -( - SymbolLine[0 1500 3000 4500 800] -) -Symbol[']' 1200] -( - SymbolLine[0 1000 500 1000 800] - SymbolLine[500 1000 500 5000 800] - SymbolLine[0 5000 500 5000 800] -) -Symbol['^' 1200] -( - SymbolLine[0 1500 500 1000 800] - SymbolLine[500 1000 1000 1500 800] -) -Symbol['_' 1200] -( - SymbolLine[0 5000 2000 5000 800] -) -Symbol['a' 1200] -( - SymbolLine[1500 3000 2000 3500 800] - SymbolLine[500 3000 1500 3000 800] - SymbolLine[0 3500 500 3000 800] - SymbolLine[0 3500 0 4500 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[2000 3000 2000 4500 800] - SymbolLine[2000 4500 2500 5000 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[1500 5000 2000 4500 800] -) -Symbol['b' 1200] -( - SymbolLine[0 1000 0 5000 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[1500 5000 2000 4500 800] - SymbolLine[2000 3500 2000 4500 800] - SymbolLine[1500 3000 2000 3500 800] - SymbolLine[500 3000 1500 3000 800] - SymbolLine[0 3500 500 3000 800] -) -Symbol['c' 1200] -( - SymbolLine[500 3000 2000 3000 800] - SymbolLine[0 3500 500 3000 800] - SymbolLine[0 3500 0 4500 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[500 5000 2000 5000 800] -) -Symbol['d' 1200] -( - SymbolLine[2000 1000 2000 5000 800] - SymbolLine[1500 5000 2000 4500 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[0 3500 0 4500 800] - SymbolLine[0 3500 500 3000 800] - SymbolLine[500 3000 1500 3000 800] - SymbolLine[1500 3000 2000 3500 800] -) -Symbol['e' 1200] -( - SymbolLine[500 5000 2000 5000 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[0 3500 0 4500 800] - SymbolLine[0 3500 500 3000 800] - SymbolLine[500 3000 1500 3000 800] - SymbolLine[1500 3000 2000 3500 800] - SymbolLine[0 4000 2000 4000 800] - SymbolLine[2000 4000 2000 3500 800] -) -Symbol['f' 1000] -( - SymbolLine[500 1500 500 5000 800] - SymbolLine[500 1500 1000 1000 800] - SymbolLine[1000 1000 1500 1000 800] - SymbolLine[0 3000 1000 3000 800] -) -Symbol['g' 1200] -( - SymbolLine[1500 3000 2000 3500 800] - SymbolLine[500 3000 1500 3000 800] - SymbolLine[0 3500 500 3000 800] - SymbolLine[0 3500 0 4500 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[1500 5000 2000 4500 800] - SymbolLine[0 6000 500 6500 800] - SymbolLine[500 6500 1500 6500 800] - SymbolLine[1500 6500 2000 6000 800] - SymbolLine[2000 3000 2000 6000 800] -) -Symbol['h' 1200] -( - SymbolLine[0 1000 0 5000 800] - SymbolLine[0 3500 500 3000 800] - SymbolLine[500 3000 1500 3000 800] - SymbolLine[1500 3000 2000 3500 800] - SymbolLine[2000 3500 2000 5000 800] -) -Symbol['i' 1000] -( - SymbolLine[0 2000 0 2100 1000] - SymbolLine[0 3500 0 5000 800] -) -Symbol['j' 1000] -( - SymbolLine[500 2000 500 2100 1000] - SymbolLine[500 3500 500 6000 800] - SymbolLine[0 6500 500 6000 800] -) -Symbol['k' 1200] -( - SymbolLine[0 1000 0 5000 800] - SymbolLine[0 3500 1500 5000 800] - SymbolLine[0 3500 1000 2500 800] -) -Symbol['l' 1000] -( - SymbolLine[0 1000 0 4500 800] - SymbolLine[0 4500 500 5000 800] -) -Symbol['m' 1200] -( - SymbolLine[500 3500 500 5000 800] - SymbolLine[500 3500 1000 3000 800] - SymbolLine[1000 3000 1500 3000 800] - SymbolLine[1500 3000 2000 3500 800] - SymbolLine[2000 3500 2000 5000 800] - SymbolLine[2000 3500 2500 3000 800] - SymbolLine[2500 3000 3000 3000 800] - SymbolLine[3000 3000 3500 3500 800] - SymbolLine[3500 3500 3500 5000 800] - SymbolLine[0 3000 500 3500 800] -) -Symbol['n' 1200] -( - SymbolLine[500 3500 500 5000 800] - SymbolLine[500 3500 1000 3000 800] - SymbolLine[1000 3000 1500 3000 800] - SymbolLine[1500 3000 2000 3500 800] - SymbolLine[2000 3500 2000 5000 800] - SymbolLine[0 3000 500 3500 800] -) -Symbol['o' 1200] -( - SymbolLine[0 3500 0 4500 800] - SymbolLine[0 3500 500 3000 800] - SymbolLine[500 3000 1500 3000 800] - SymbolLine[1500 3000 2000 3500 800] - SymbolLine[2000 3500 2000 4500 800] - SymbolLine[1500 5000 2000 4500 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[0 4500 500 5000 800] -) -Symbol['p' 1200] -( - SymbolLine[500 3500 500 6500 800] - SymbolLine[0 3000 500 3500 800] - SymbolLine[500 3500 1000 3000 800] - SymbolLine[1000 3000 2000 3000 800] - SymbolLine[2000 3000 2500 3500 800] - SymbolLine[2500 3500 2500 4500 800] - SymbolLine[2000 5000 2500 4500 800] - SymbolLine[1000 5000 2000 5000 800] - SymbolLine[500 4500 1000 5000 800] -) -Symbol['q' 1200] -( - SymbolLine[2000 3500 2000 6500 800] - SymbolLine[1500 3000 2000 3500 800] - SymbolLine[500 3000 1500 3000 800] - SymbolLine[0 3500 500 3000 800] - SymbolLine[0 3500 0 4500 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[1500 5000 2000 4500 800] -) -Symbol['r' 1200] -( - SymbolLine[500 3500 500 5000 800] - SymbolLine[500 3500 1000 3000 800] - SymbolLine[1000 3000 2000 3000 800] - SymbolLine[0 3000 500 3500 800] -) -Symbol['s' 1200] -( - SymbolLine[500 5000 2000 5000 800] - SymbolLine[2000 5000 2500 4500 800] - SymbolLine[2000 4000 2500 4500 800] - SymbolLine[500 4000 2000 4000 800] - SymbolLine[0 3500 500 4000 800] - SymbolLine[0 3500 500 3000 800] - SymbolLine[500 3000 2000 3000 800] - SymbolLine[2000 3000 2500 3500 800] - SymbolLine[0 4500 500 5000 800] -) -Symbol['t' 1000] -( - SymbolLine[500 1000 500 4500 800] - SymbolLine[500 4500 1000 5000 800] - SymbolLine[0 2500 1000 2500 800] -) -Symbol['u' 1200] -( - SymbolLine[0 3000 0 4500 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[1500 5000 2000 4500 800] - SymbolLine[2000 3000 2000 4500 800] -) -Symbol['v' 1200] -( - SymbolLine[0 3000 1000 5000 800] - SymbolLine[2000 3000 1000 5000 800] -) -Symbol['w' 1200] -( - SymbolLine[0 3000 0 4500 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[500 5000 1000 5000 800] - SymbolLine[1000 5000 1500 4500 800] - SymbolLine[1500 3000 1500 4500 800] - SymbolLine[1500 4500 2000 5000 800] - SymbolLine[2000 5000 2500 5000 800] - SymbolLine[2500 5000 3000 4500 800] - SymbolLine[3000 3000 3000 4500 800] -) -Symbol['x' 1200] -( - SymbolLine[0 3000 2000 5000 800] - SymbolLine[0 5000 2000 3000 800] -) -Symbol['y' 1200] -( - SymbolLine[0 3000 0 4500 800] - SymbolLine[0 4500 500 5000 800] - SymbolLine[2000 3000 2000 6000 800] - SymbolLine[1500 6500 2000 6000 800] - SymbolLine[500 6500 1500 6500 800] - SymbolLine[0 6000 500 6500 800] - SymbolLine[500 5000 1500 5000 800] - SymbolLine[1500 5000 2000 4500 800] -) -Symbol['z' 1200] -( - SymbolLine[0 3000 2000 3000 800] - SymbolLine[0 5000 2000 3000 800] - SymbolLine[0 5000 2000 5000 800] -) -Symbol['{' 1200] -( - SymbolLine[500 1500 1000 1000 800] - SymbolLine[500 1500 500 2500 800] - SymbolLine[0 3000 500 2500 800] - SymbolLine[0 3000 500 3500 800] - SymbolLine[500 3500 500 4500 800] - SymbolLine[500 4500 1000 5000 800] -) -Symbol['|' 1200] -( - SymbolLine[0 1000 0 5000 800] -) -Symbol['}' 1200] -( - SymbolLine[0 1000 500 1500 800] - SymbolLine[500 1500 500 2500 800] - SymbolLine[500 2500 1000 3000 800] - SymbolLine[500 3500 1000 3000 800] - SymbolLine[500 3500 500 4500 800] - SymbolLine[0 5000 500 4500 800] -) -Symbol['~' 1200] -( - SymbolLine[0 3500 500 3000 800] - SymbolLine[500 3000 1000 3000 800] - SymbolLine[1000 3000 1500 3500 800] - SymbolLine[1500 3500 2000 3500 800] - SymbolLine[2000 3500 2500 3000 800] -) -Attribute("PCB::grid::unit" "mil") - -Element["" "Dual in-line package, medium wide (400 mil)" "" "DIP14M" 62500 22500 22000 5000 3 100 ""] -( - Pin[0 0 6000 3000 6600 2800 "1" "1" "square"] - Pin[0 10000 6000 3000 6600 2800 "2" "2" ""] - Pin[0 20000 6000 3000 6600 2800 "3" "3" "thermal(1S)"] - Pin[0 30000 6000 3000 6600 2800 "4" "4" "square,shape(3)"] - Pin[0 40000 6000 3000 6600 2800 "5" "5" "square,shape(2)"] - Pin[0 50000 6000 3000 6600 2800 "6" "6" "square,shape(4)"] - Pin[0 60000 6000 3000 6600 2800 "7" "7" "square,shape(8)"] - Pin[40000 60000 6000 3000 6600 2800 "8" "8" "square,shape(8)"] - Pin[40000 50000 6000 3000 6600 2800 "9" "9" "square,shape(4)"] - Pin[40000 40000 6000 3000 6600 2800 "10" "10" "square,shape(2)"] - Pin[40000 30000 6000 3000 6600 2800 "11" "11" "square,shape(3)"] - Pin[40000 20000 6000 3000 6600 2800 "12" "12" ""] - Pin[40000 10000 6000 3000 6600 2800 "13" "13" ""] - Pin[40000 0 6000 3000 6600 2800 "14" "14" "square,shape(1)"] - ElementLine [-5000 -5000 -5000 65000 1000] - ElementLine [-5000 65000 45000 65000 1000] - ElementLine [45000 65000 45000 -5000 1000] - ElementLine [-5000 -5000 15000 -5000 1000] - ElementLine [25000 -5000 45000 -5000 1000] - ElementArc [20000 -5000 5000 5000 0 180 1000] - - ) -Layer(1 "component") -( -) -Layer(2 "solder") -( - Line[10000 17500 67500 17500 1500 5000 "clearline"] - Line[67500 17500 77500 27500 1500 5000 "clearline"] - Line[77500 27500 85000 27500 1500 5000 "clearline"] - Line[62500 22500 37500 22500 1500 5000 "clearline"] - Line[10000 27500 67500 27500 1500 5000 "clearline"] - Line[67500 27500 77500 37500 1500 5000 "clearline"] - Line[77500 37500 85000 37500 1500 5000 "clearline"] - Line[62500 32500 45000 32500 1500 5000 "clearline"] - Line[10000 37500 67500 37500 1500 5000 "clearline"] - Line[67500 37500 77500 47500 1500 5000 "clearline"] - Line[77500 47500 85000 47500 1500 5000 "clearline"] - Line[62500 42500 27500 42500 1500 5000 ""] - Line[10000 47500 67500 47500 1500 5000 "clearline"] - Line[67500 47500 77500 57500 1500 5000 "clearline"] - Line[77500 57500 85000 57500 1500 5000 "clearline"] - Line[62500 52500 37500 52500 1500 5000 "clearline"] - Line[37500 57500 67500 57500 1500 5000 "clearline"] - Line[67500 57500 77500 67500 1500 5000 "clearline"] - Line[77500 67500 85000 67500 1500 5000 "clearline"] - Line[62500 62500 37500 62500 1500 5000 "clearline"] - Line[37500 67500 67500 67500 1500 5000 "clearline"] - Line[67500 67500 77500 77500 1500 5000 "clearline"] - Line[77500 77500 85000 77500 1500 5000 "clearline"] - Line[62500 72500 37500 72500 1500 5000 "clearline"] - Line[37500 77500 67500 77500 1500 5000 "clearline"] - Line[67500 77500 77500 87500 1500 5000 "clearline"] - Line[77500 87500 85000 87500 1500 5000 "clearline"] - Line[62500 82500 37500 82500 1500 5000 "clearline"] - Line[65000 32500 60000 32500 6000 5000 "clearline"] - Line[105000 32500 100000 32500 6000 5000 "clearline"] - Line[102500 32500 125000 32500 1500 5000 "clearline"] - Line[102500 52500 125000 52500 1500 5000 "clearline"] - Line[102500 62500 125000 62500 1500 5000 "clearline"] - Line[102500 72500 125000 72500 1500 5000 "clearline"] - Line[102500 82500 125000 82500 1500 5000 "clearline"] - Line[102500 22500 125000 22500 1500 5000 "clearline"] - Polygon("clearpoly") - ( - [55000 37500] [70000 37500] [70000 47500] [55000 47500] - ) - Polygon("clearpoly") - ( - [85000 7500] [117500 7500] [117500 92500] [85000 92500] - ) -) -Layer(3 "GND") -( -) -Layer(4 "power") -( -) -Layer(5 "signal1") -( -) -Layer(6 "signal2") -( -) -Layer(7 "signal3") -( -) -Layer(8 "signal4") -( -) -Layer(9 "silk") -( -) -Layer(10 "silk") -( - Text[10000 17500 0 130 "square" "clearline"] - Text[10000 27500 0 130 "fat trace" "clearline"] - Text[10000 37500 0 130 "poly" "clearline"] - Text[25000 95000 1 130 "with [square]" "clearline"] - Text[15000 92500 1 130 "shaped pins" "clearline"] -) Index: trunk/doc-rnd/features/grid_local_4.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/features/grid_local_4.png =================================================================== --- trunk/doc-rnd/features/grid_local_4.png (revision 5606) +++ trunk/doc-rnd/features/grid_local_4.png (nonexistent) Property changes on: trunk/doc-rnd/features/grid_local_4.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/features/grid_global_sparse.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/features/grid_global_sparse.png =================================================================== --- trunk/doc-rnd/features/grid_global_sparse.png (revision 5606) +++ trunk/doc-rnd/features/grid_global_sparse.png (nonexistent) Property changes on: trunk/doc-rnd/features/grid_global_sparse.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/features/fullscreen.html =================================================================== --- trunk/doc-rnd/features/fullscreen.html (revision 5606) +++ trunk/doc-rnd/features/fullscreen.html (nonexistent) @@ -1,38 +0,0 @@ - - - pcb-rnd - full screen gtk - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - full screen gtk

    -On small screen the overhead of the menu line, bottom status line and left -layer selection bar is just too expensive. Since 1.1.2, the gtk hid can -be switched between the usual setup and a so called "full screen mode" -where most widgets are hidden, leaving much more screen space to the -editor widget. There's a FullScreen() action that can set or toggle -the state and a default key binding in gtk on the backslash ('\') to -toggle it. - -

    save/load and compatibility

    -Not affected. - -

    plans

    -Make hiding various parts of the GUI configurable. No plans to implement -it for the lesstif HID. - - - Index: trunk/doc-rnd/features/query.html =================================================================== --- trunk/doc-rnd/features/query.html (revision 5606) +++ trunk/doc-rnd/features/query.html (nonexistent) @@ -1,42 +0,0 @@ - - - pcb-rnd - [query] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - [query]

    -Pcb-rnd features a flexible query language that can list (or select or find, etc.) -objects mathcing an expression. The language handles different data types, -including lists, provides means to iterate over objects and lists, supports -the common logical and arithmetic operators. -

    -The query language is the engine behind the advanced search & select -functionality. It is also the foundation of the programmable DRC. -

    -The query language is implemented as a core plugin. -

    -TODO: more details will come later, when the specification and implementation -stabilizes. - -

    save/load and compatibility

    -Not affected. - -

    plans

    -Next stage will be a programmable DRC. - - - Index: trunk/doc-rnd/features/negselect.html =================================================================== --- trunk/doc-rnd/features/negselect.html (revision 5606) +++ trunk/doc-rnd/features/negselect.html (nonexistent) @@ -1,49 +0,0 @@ - - - pcb-rnd - negative box select - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [cycdrag] patches, negative box select

    - -When a selection is made using drag&drop (box selection), depending -on the direction the rule for object selection differ: -
      -
    • drag from top-left towards bottom-right (positive sized box): - select objects that are fully contained in the box (original behaviour) -
    • drag in any other direction (e.g. bottom-left to top-right, or - bottom-right to top-left; negative sized box): - select objects that are even partially within the box or merely touch - the edge of the box -
    - -The feature can be disabled using the editor/selection/disable_negative conf -setting. -

    -It's possible to limit the feature so that only hirozintal-negative is -considered negative size (i.e. only right-to-left dragging), using the -editor/selection/symmetric_negative conf setting. - -

    save/load and compatibility

    -Not affected. - -

    plans

    -Work more on some rough corners of the negative direction: e.g. pads are -handled as 0 width lines so the selection has to hit the center. - - - Index: trunk/doc-rnd/features/intconn1.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/features/intconn1.png =================================================================== --- trunk/doc-rnd/features/intconn1.png (revision 5606) +++ trunk/doc-rnd/features/intconn1.png (nonexistent) Property changes on: trunk/doc-rnd/features/intconn1.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/features/intconn2.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/features/intconn2.png =================================================================== --- trunk/doc-rnd/features/intconn2.png (revision 5606) +++ trunk/doc-rnd/features/intconn2.png (nonexistent) Property changes on: trunk/doc-rnd/features/intconn2.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/features/jumper_1206.fp =================================================================== --- trunk/doc-rnd/features/jumper_1206.fp (revision 5606) +++ trunk/doc-rnd/features/jumper_1206.fp (nonexistent) @@ -1,7 +0,0 @@ -Element["nonetlist" "1206 jumper, 0 ohm" "" "1206" 0 0 -3150 -3150 0 100 ""] -( - Pad[-5905 -1181 -5905 1181 5118 2000 5718 "1" "1" "square,intconn(1)"] - Pad[5905 -1181 5905 1181 5118 2000 5718 "2" "2" "square,intconn(1)"] - ElementLine[-2362 -3740 2362 -3740 800] - ElementLine[-2362 3740 2362 3740 800] -) Index: trunk/doc-rnd/features/intconn3.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/features/intconn3.png =================================================================== --- trunk/doc-rnd/features/intconn3.png (revision 5606) +++ trunk/doc-rnd/features/intconn3.png (nonexistent) Property changes on: trunk/doc-rnd/features/intconn3.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/features/debian_list.html =================================================================== --- trunk/doc-rnd/features/debian_list.html (revision 5606) +++ trunk/doc-rnd/features/debian_list.html (nonexistent) @@ -1,65 +0,0 @@ - - - - - pcb-rnd - Debian package list - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - Debian package list

    - -
    name internal dependencies description - -
    pcb-rnd pcb-rnd-core, pcb-rnd-gtk, pcb-rnd-gerber, pcb-rnd-lpr, pcb-rnd-png, pcb-rnd-propedit, pcb-rnd-query, pcb-rnd-report, pcb-rnd-svg, pcb-rnd-xy pcb-rnd is load/save compatible with gEDA/PCB and kicad and offers various auxiliary import/export formats.

    This metapackage installs the core and the most commonly used set of plugins. -

    pcb-rnd-core This package contains the core program. Most functionality, including the GUI frontend, is in the corresponding plugin package. -
    pcb-rnd-gtk pcb-rnd-core This package contains the GTK+ user-interface for pcb-rnd. -
    pcb-rnd-lesstif pcb-rnd-core This package contains the Lesstif/Motif user-interface for pcb-rnd. -
    pcb-rnd-autocrop pcb-rnd-core This package provides the autocrop feature that can resize the board to minimum around all the existing objects. -
    pcb-rnd-autoplace pcb-rnd-core This package provides the autoplace feature used to place elements automatically and offers two different algorithms to do so. -
    pcb-rnd-autoroute pcb-rnd-core This package provides the classic gEDA/pcb autorouter. -
    pcb-rnd-diag pcb-rnd-core This package provides actions for debugging/diagnostic purposes. This feature may be needed for reporting bugs. -
    pcb-rnd-distalign pcb-rnd-core This package provides actions for arranging elements in an array. -
    pcb-rnd-distaligntext pcb-rnd-core This package provides actions for arranging text objects in an array. -
    pcb-rnd-djopt pcb-rnd-core This package provides actions to clean up (optimize) tracks. It is especially useful after autorouting. -
    pcb-rnd-gcode pcb-rnd-core This package allows exporting the design to gcode, useful for CNC milling. -
    pcb-rnd-gerber pcb-rnd-core This package allows exporting the design to gerber, accepted by most PCB fab houses. -
    pcb-rnd-lpr pcb-rnd-core This package allows printing directly from the GUI, using lpr. -
    pcb-rnd-nelma pcb-rnd-core This package allows exporting the design to nelma, for numerical capacitance calculation (via external tool) -
    pcb-rnd-png pcb-rnd-core This package allows exporting the design in various bitmap formats, including png and jpeg. -
    pcb-rnd-svg pcb-rnd-core This package allows exporting the design in SVG, the Scalable Vector Graphics format. It is useful for publishing the design on the web. -
    pcb-rnd-xy pcb-rnd-core This package allows exporting the design in XY, suitable for pick&place machines. -
    pcb-rnd-fontmode pcb-rnd-core This package lets the user to turn the GUI into a PCB font editor. -
    pcb-rnd-fp-wget pcb-rnd-core This package provides a wget based footprint accessor, which allows integrating web directories of footprints in the library. The only currently supported site is gedasymbols.org. -
    pcb-rnd-edif pcb-rnd-core This package allows pcb-rnd to import netlists in the EDIF format. -
    pcb-rnd-mincut pcb-rnd-core This package upgrades the indication of short circuits: instead of highlighting two random pins/pads, it tries to determine the minimal-cut that would resolve the short. In practice this means it makes a suggestion where to cut the networks to remove the short circuit. -
    pcb-rnd-oldactions pcb-rnd-core This package provides some old user actions. These are not used daily anymore, but some old actions scripts may still depend on them. -
    pcb-rnd-polycombine pcb-rnd-core This package provides actions to combine (merge) multiple polygons into a single, more complex polygon. -
    pcb-rnd-propedit pcb-rnd-core This package provides the property editor function for the GUI. The property editor collects all properties and attributes of all selected objects in a table and allows the user to change them. -
    pcb-rnd-puller pcb-rnd-core This package provides actions to "pull" tracks, minimizing their length. -
    pcb-rnd-query pcb-rnd-core This package provides the query language used in the advanced search on the GUI. -
    pcb-rnd-renumber pcb-rnd-core This package provides various actions to automatically renumber elements on the design. These actions change the refdes of some (or all) elements. -
    pcb-rnd-report pcb-rnd-core This package used to provide the report action that displays basic information about design objects. Unlike propedit, report does not allow the user to manipulate any of the data reported.

    At the moment report is compiled into the core, this package is kept for compatibility and placeholder. -

    pcb-rnd-shand-cmd pcb-rnd-core This package provides 1..2 character long shorthands for the most commonly used core commands. -
    pcb-rnd-smartdisperse pcb-rnd-core This package implements a smart algorithm to disperse elements. It is useful after importing a new design from the schematics. It is an alternative to autplace. -
    pcb-rnd-stroke pcb-rnd-core, pcb-rnd-gtk This package implements mouse gestures using libstroke. -
    pcb-rnd-teardrops pcb-rnd-core This package embeds each pin in a teardrop drawn from multiple arcs. May be useful for toner-transfer boards. -
    pcb-rnd-vendordrill pcb-rnd-core This package provides vendor drill mapping and vendor specific design rule application. -
    pcb-rnd-kicad pcb-rnd-core This package allows pcb-rnd to load and save in kicad's s-expression based (new) file format. -
    pcb-rnd-gsch2pcb This package provides the external tool gsch2pcb-rnd that can convert a gschem schematics to files that can be imported in pcb-rnd. - -
    - Index: trunk/doc-rnd/features/oldplugins.html =================================================================== --- trunk/doc-rnd/features/oldplugins.html (revision 5606) +++ trunk/doc-rnd/features/oldplugins.html (nonexistent) @@ -1,69 +0,0 @@ - - - pcb-rnd - [oldplugins] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [oldplugins]

    - -In this effort I imported a set of old PCB plugins to be core plugins of -pcb-rnd. This will make it easier to keep them up to date, to defeat -the bitrot effect. The feature plugins that got imported so far: -
      -
    • autocrop -
    • boardflip -
    • distalign -
    • distaligntext -
    • jostle - doesn't work properly -
    • polycombine -
    • polystich - segfaults -
    • teardrops -
    • renumberblock - as part of the renumber plugin -
    • smaprtdisperse -
    -

    -The import/export plugins improted over the default set of the last official -mainline release: -

      -
    • import_dsn - specctra importer - compiles, parser needs a full rewrite, it tries to read an s-expression line by line with fgets() -
    • export_dsn - specctra exporter - compiles, produces valid-looking output - need tester to validate the output -
    • export_bboard - breadboard exporter - compiles, produces valid-looking output - need tester -
    • export_dxf - mechanical cad export - compiles, missing header data renders exported files unusable -
    • export_ipcd356 - electrical test output - compiles, produces valid-looking output - need tester -
    • export_openscad - 3d modeling - compiles, output sort of works, models not yet imported, need tester -
    - -Plugins that won't be imported: -
      -
    • findelement - [query] takes care of that -
    • findrat - [query] will take care of that -
    • join-found - not clear what it would do -
    • lockelements - [query] can select elements then SetFlag() should be able to lock them -
    • sedrename - [query] will take care of that -
    • upth2pth - [query] will take care of that -
    • ratsel - written in C++ -
    • stipple - written in C++ -
    - -

    save/load and compatibility

    -Not affected. - -

    plans

    -Any interesting plugin is subject to be imported. - - - Index: trunk/doc-rnd/features/debian.html =================================================================== --- trunk/doc-rnd/features/debian.html (revision 5606) +++ trunk/doc-rnd/features/debian.html (nonexistent) @@ -1,50 +0,0 @@ - - - pcb-rnd - [debian] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [debian] patch

    - -Our current Debian packaging reflects the modularity of pcb-rnd: it has -most plugins in separate packages. The main package is called -pcb-rnd-core: this provides the executable and the footprint library -and the batch HID. The GUI HIDs are in pcb-rnd-gtk and -pcb-rnd-lesstif - it's possible to install neither, either or both. -When there are multiple HIDs installed, the user can select one by the ---gui command line parameter or by changing the GUI preference in the -configuration (the default preference is gtk > lesstif > batch). -

    -The rest of the packages are features, importers and exporters, e.g. -pcb-rnd-svg is the SVG exporter, pcb-rnd-query is the object -query language needed for the advanced search. -

    -A metapackage called pcb-rnd is provided for convenience: it installs -the packages for the most common, yet small setup, with the GTK HID. -

    -How to get the packages: -

      -
    • decide which packages you need; this package list may help -
    • use apt-get install after configuring repo.hu's debian repository as source in your /etc/apt/sources.list -
    • use dpkg -i after manually downloading the packages from repo.hu's flat package list or from the package pool -
    • build them on your Debian box: use svn trunk, install debhelper and all the build dependencies of pcb-rnd and run "fakeroot debian/rules binary" in trunk (shorthand: "make deb") -
    - -

    plans

    -No plans - this feature is fully implemented. - - Index: trunk/doc-rnd/features/ba.html =================================================================== --- trunk/doc-rnd/features/ba.html (revision 5606) +++ trunk/doc-rnd/features/ba.html (nonexistent) @@ -1,68 +0,0 @@ - - - pcb-rnd - back annotation - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [ba] patches

    -Back annotation was a long standing missing functionality. There has been -different suggestions, including: -
      -
    • back annotation is not needed at all, the user can do it manually -
    • pcb should generate a new netlist, the user should run diff on the netlists and manually edit the schematics -
    • gschem should be able to load netlists emitted by PCB; or gnetlist could reverse-process such a netlist -
    -

    -The current implementation allows pcb-rnd users to make deliberate pin -swapping and footprint replacement. The changes can be saved in a -"netlist patch" format. A modified gschem can load these and present them -as search results pointing to parts of the schematics that need to be changed. -There is a -demo video about how this happens in practice. -

    -The modified gschem can be checked out from svn://repo.hu/geda-gaf-ba/trunk -

    -The underlying mechanism is versatile and potentially allows more changes -to be back annotated. These are not yet accessible due to the lack of PCB -actions and GUI. - -

    Design decisions

    -This devlog entry functions -as a design decision document. - Another entry is a summary -on how the feature ended up in a private feature-fork of gschem. - -

    save/load and compatibility

    -Deliberate changes are tracked so that a new forward annotation from -the old schematics won't break them. To do this, pcb-rnd saves a -NetListPatch() section in the file. Mainline PCB can not handle this section. -Compatibility, by use case: -
      -
    • 1. No back annotation is made in pcb-rnd: the file stays compatible -
    • 2. Back annotation is made in pcb-rnd, then the changes are done on the schematics and a forward annotation is also done: the netlist patch in pcb-rnd becomes empty so the pcb file is again compatible with mainline pcb; this is called resolution of netlist patches -
    • 3. There are unresolved netlist patches saved in pcb-rnd and the user attempts to load the pcb file in mainline pcb: syntax error (but no data loss); solution: resolve the netlist patch as described in point 2. -
    • 4. Cheat for situation 3.: manually remove the NetListPatch() section from the save file. This way the back annotation info is lost, but mainline pcb can load the file again. This action is sort of "revert back annotation". -
    • 5. Any file saved by mainline PCB can be opened by pcb-rnd, back annotation does not affect that. - -
    - - -

    plans

    -Back annotation for further changes, e.g. value change, naming/renaming nets, -etc. - - Index: trunk/doc-rnd/features/grid.html =================================================================== --- trunk/doc-rnd/features/grid.html (revision 5606) +++ trunk/doc-rnd/features/grid.html (nonexistent) @@ -1,99 +0,0 @@ - - - pcb-rnd - gtk grid fixes - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - gtk grid fixes

    - -

    Problem with the original gtk grid

    - -The original code draws every grid point on screen, even the ones that are -off the board. When the user zooms out with a dense grid, it can become too -dense - the original code turns the grid off in this case. -

    -If the grid is very dense, on a large screen the software render may slow down. -This is noticeable in pan and zoom mostly. The bottleneck is the gtk call -that draws the grid points: if there are too many of them, it's slow. - - -

    New grid

    - -To overcome this problem, pcb-rnd offers configuration settings to limit -the number of dots to be drawn. There are mainly two parallel approaches: -using a local grid or draw less dots in a global grid. The -old code defined only a global grid and did not have runtime settings for -the properties of the grid. -

    -There's a new "Grid properties" submenu in the view menu in the default -gtk hid menu file. Screenshots were taken with this menu teared-down to -demonstrate the settings. - -

    Global grid improvements

    - -The most trivial optimization is that grid points off the board are simply -not drawn: -

    - -

    -Next, the compile-time configurable "minimum distance between grid points -before it is too dense" setting is user configurable now. The default value -can be changed in any of the usual -configuration sources. However, -when the configured density is reached while zooming out, there are two options. -

    -The first, default option is to do the same that the original code did: just -hide the grid: -

    - -

    -An alternative is to use sparse global grid which means only -every 2nd, 3rd, 4th, ... Nth grid point is drawn. The cursor still snaps -to every real grid point, so the grid got sparse only on the display. Note -how the line is drawn on invisible grid points: -

    - - -

    Introduction of the local grid

    -Another approach is to use a local grid. The grid helps finding whether -existing objects are aligned or where the next move/click would end up. -These are usually interesting only in a small range around the crosshair and -less interesting on the other end of the board. Local grid draws the grid -points only near the crosshair. Such local grid follows the crosshair -everywhere: -

    - -

    -The user can configure or interactively set the radius in which the grid -points are drawn: -

    - -

    -The radius is given in "number of grid points", thus the local grid yields -a constant number of points that is independent of the actual grid size. When -a local grid gets too dense, it is hidden - there's no sparse option, since -local grids usually have too few points to make reasonable skips. - -

    save/load and compatibility

    -Not affected. - -

    plans

    -This feature is gtk-specific and is complete. There are no plans to -implement this in the lesstif HID at the moment. - - - Index: trunk/doc-rnd/features/propedit.html =================================================================== --- trunk/doc-rnd/features/propedit.html (revision 5606) +++ trunk/doc-rnd/features/propedit.html (nonexistent) @@ -1,65 +0,0 @@ - - - pcb-rnd - [propedit] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - [propedit]

    -Since 1.1.2, pcb-rnd core is able to attach user defined attributes -(arbitrary textual key=value pairs) to any object. The original mainline -pcb-rnd was forked from already supported attributes on some objects (e.g. -board attributes, net attributes) but not on all. However, the user had -very little access to the attributes - no GUI or action would handle them. -

    -Propedit introduces a property editor window in gtk that is able to -edit attributes and core properties of all selected objects. Core properties -include all hardwired properties of objects, such as geometry (e.g. -trace width, hole diameter, clearance) or textual data (e.g. string of -a text). -

    - -

    -Properties and attributes of the selected objects are collected in a -sorted list - each row of the list is a property (starting with p/) or -an attribute (starting with a/). For each row all values seen in the selection -are also collected so that the following values can be presented on the list, -per row: -

      -
    • the most common value -
    • minimum value (for numeric value types) -
    • maximum value (for numeric value types) -
    • average value (for numeric value types) -
    -

    -When the user clicks on a row, an edit box is activated and the value can -be changed. A combo box lists all existing values for the given row, so -it is easy to unify the value of a property or attribute among all selected -objects to one of the existing values, but the user is also free to enter -a new value. -

    -It is also possible to remove existing attributes or to add new attributes. - -

    save/load and compatibility

    -Attributes of most objects can not be saved in the original .pcb format. -The propedit feature is most useful when used with the lihata board format. - -

    plans

    -Various improvements. Currently there's no plan to make this function available -in the lesstif HID. - - - Index: trunk/doc-rnd/features/pcb-fp.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/features/pcb-fp.png =================================================================== --- trunk/doc-rnd/features/pcb-fp.png (revision 5606) +++ trunk/doc-rnd/features/pcb-fp.png (nonexistent) Property changes on: trunk/doc-rnd/features/pcb-fp.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/features/res.html =================================================================== --- trunk/doc-rnd/features/res.html (revision 5606) +++ trunk/doc-rnd/features/res.html (nonexistent) @@ -1,147 +0,0 @@ - - - pcb-rnd - [res] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [res] patch

    - -PCB used to have an own file format for describing resources (menu structure -and hotkey bindings, vendor drill mapping). The resource format was generic -enough to describe these things, but the syntax was somewhat wierd: mixed -positional and named fields. More precisely, composite nodes could contain -named and anonymous subnodes, and the meaning of anonymous subnodes depended -on their position in the anon-subnode-list. -

    -The code that dealt with the in-memory representation of the resource tree -was wierd and big chunks duplicated in the HIDs and vendor drill module. It -was also hard to parse a resource file with external tools. -

    -Since version 1.0.10, pcb-rnd replaces resource files with -lihata. Lihata is a small, generic -purpose container format that can describe arbitrary trees. Just like resource -file syntax, lihata is optimized for hand-editing: no need to use excess -quoting or long boilerplate blocks. -

    -Liblihata also provides a lot of helper functions that made the code -dealing with the menus and vendor drill resources much simpler and less -redundant. Since the parser is small and external, and since there are -external converter tools available, it is also easier to deal with the -files outside of the pcb executable. - -

    menu files

    -There are pcb-menu-gtk.lht and pcb-menu-lesstif.lht. They are in trunk/src -in the source tree and are instaslled in the SHAREDIR. Currently each GUI -HID (lesstif, gtk) loads the corresponding menu file. - -

    menu resource lihata structure

    -The root of a menu resource file should be a ha: with the following -children: -
      -
    • li:mouse for mouse button bindings -
    • li:main_menu for describing the main menu -
    • li:popups for describing the popup menus -
    -All children are optional, but recommended. Thus the file stucture, zoomed -out, is: -
    -ha:{
    -	li:mouse { ... }
    -	li:main_menu { ... }
    -	li:popups { ... }
    -}
    -
    - -

    li:mouse

    -The mouse subtree may contain a li: for each mouse button action; -the children of the list are further li: nodes for key modifiers, whose -children are text nodes: actions executed in order. -

    -Buttons supported are: left, right, middle, up, down - the last two -are for the scroll wheel. Modifier name should start with "press" or "release" -optionally followed by modifier key suffixes separated with dashes, e.g. -"press-alt-shift" means the given button is pressed while alt and shift -were also pressed. -

    -Example structure: -

    -	li:mouse {
    -		li:left {
    -			li:press            = { Mode(Notify) }
    -			li:press-ctrl       = { Mode(Save); Mode(None); }
    -		}
    -	}
    -
    - -

    li:main_menu

    -The main menu is a list of menubar items that may host submenu items -recursively. Each normal item is a hash with the following children: -
      -
    • li:submenu an ordered list of submenu nodes (should not have accel key or action) -
    • tip tooltip text -
    • action text or list of actions to execute when menu is selected -
    • a a key description for an accelerator key (hotkey) -
    • li:a a list of key descriptions for an accelerator keys (hotkeys); all keys will be bound to the menu and the first key is shown in the menu -
    -Special menu items are text nodes instead of hashes; they are: -
      -
    • starting with @, are dynamic, auto-generated items (e.g. layers; might be HID-dependent) -
    • a singel dash: separator -
    -

    -A key description is a text in the form of: -

      -
    • the name of the node is the visible name of the menu item -
    • <key>keyname, e.g. "<key>k" for key K, or "<key>F10" for F10 -
    • modifier<key>keyname, e.g. "Alt-<key>K" for Alt+K -
    • modifier-modifier<key>keyname, e.g. "Shift-Alt-<key>K" for Shift+Alt+K; modifiers are Alt, Shift and Ctrl; order does not matter, all three can be used together. -
    • multikey sequence: multiple of the above, separated by semicolons (protected with {} for lihata, as the text contains semicolon); e.g. "{<key>f;<key>o}" means the user presses "f" then "o". Sequences can be a dozen stroke long and any segment may use modifiers -
    - -An example menu item with submenus (can be a main menu or a submenu of -another menu item): -
    -ha:example menu item {
    -	li:submenu {
    -		ha:menu item {
    -			action=Save(ElementConnections)
    -			tip=example menu
    -		}
    -		-
    -		ha:another menu item {
    -			a={Shift-Alt<key>r}
    -			action={Action1(); Action2();}
    -		}
    -	}
    -}
    -
    - -

    li:popups

    -Each children is a hash that describes a popup menu. A popup menu behaves -exactly like a menu item, it should have a submenu list. Popup windows will -be popped up by executing an action with the name of the popup menu. - -

    save/load and compatibility

    -Not affected. - -

    plans

    -The resource file format conversion is done. There are other parts of the code -that will probably get lihata instead of the current custom parsers, e.g. -the preferences/settings file. - - - Index: trunk/doc-rnd/features/polygrid.html =================================================================== --- trunk/doc-rnd/features/polygrid.html (revision 5606) +++ trunk/doc-rnd/features/polygrid.html (nonexistent) @@ -1,35 +0,0 @@ - - - pcb-rnd - [polygrid] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [polygrid] patch

    - -Polygrid adds an option to the ps exporter to fill polygons with a grid -of horizontal and vertical lines instead of full fill. When toner transfer -is used or test prints are produced, the grid may save some toner. - -

    save/load and compatibility

    -Not affected. - -

    plans

    -Fix bugs. -

    -No (feature) plans - this feature is fully implemented. - - Index: trunk/doc-rnd/features/scconfig.html =================================================================== --- trunk/doc-rnd/features/scconfig.html (revision 5606) +++ trunk/doc-rnd/features/scconfig.html (nonexistent) @@ -1,33 +0,0 @@ - - - pcb-rnd - [scconfig] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [scconfig] patch

    - -Pcb-rnd uses scconfig -for ./configure instead of autotools. Scconfig is smaller and easier -to maintain. - -

    save/load and compatibility

    -Not affected. - -

    plans

    -No plans - this feature is fully implemented by now. - - Index: trunk/doc-rnd/features/fp_wget.html =================================================================== --- trunk/doc-rnd/features/fp_wget.html (revision 5606) +++ trunk/doc-rnd/features/fp_wget.html (nonexistent) @@ -1,55 +0,0 @@ - - - pcb-rnd - [fp_wget] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [fp_wget] patch

    - -Since version 1.0.10, pcb-rnd implements a new footprint mechanism (see -[fp_fs] and [library_t]). -The new code allows footprint backend plugins to get library from anywhere. -The [fp_wget] plugin is an implementation that: -
      -
    • downloads a library list from the web on startup into a local cache -
    • downloads footprints from the web on-demand into a local cache -
    -

    -This is all transparent, the user experience is that the remote library is -like a read-only local library reachable from the library window. -

    -A web site used as a library should be able to: -

      -
    • generate a plain text list of all footprints available -
    • return the raw footprint file by name -
    -

    -The plugin uses external program wget to communicate on the web. - - -

    How to configure for gedasymbols.org

    -Add wget@gedasymbols in the library search path (e.g. in preferences as library-newlib). - -

    save/load and compatibility

    -Not affected. - -

    plans

    -Better feedback on progress, explicit user requested refresh, refresh in -the background. - - - Index: trunk/doc-rnd/features/grid_global_nosparse.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/features/grid_global_nosparse.png =================================================================== --- trunk/doc-rnd/features/grid_global_nosparse.png (revision 5606) +++ trunk/doc-rnd/features/grid_global_nosparse.png (nonexistent) Property changes on: trunk/doc-rnd/features/grid_global_nosparse.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/features/square.html =================================================================== --- trunk/doc-rnd/features/square.html (revision 5606) +++ trunk/doc-rnd/features/square.html (nonexistent) @@ -1,89 +0,0 @@ - - - pcb-rnd - [square] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [square] patch

    -Most of my PCBs end up in toner transfer. There are a lot -of tricks around prototyping at home. One of the problems I often -face is small rings peeling off during rework (and rework tend to -happen on the first prototypes). The solution for this is increasing -ring size - which is not suitable if traces are passing between pins. -Another solution is to increase the area of the pin: -
      -
    • square pin: while it makes the pin slightly larger still letting traces pass between pins, it's too symmetrical and can not use up extra room -
    • DJ's teardrop plugin: this increases the area only toward the trace, whereas very often there's more room on the opposite side -
    • manually add an extra poly around the pin; with multiple pins it's hard to get the polys separate -
    • manually add a short extra track on the pin, width matching the size of the pin; this is very close, but increases workload when components are moved, layers are changed -
    - -

    -The patch takes an octagon pin and stretches points in various directions. -There are 4 bits (for left, right, up and down) to indicate in which directions -the stretch applies. Pressing 'q' on a pin cycles thru round pin, square pin, -16 stretched octagons and the original octagon. -

    -The code is also patched to handle clearances, shorts and connections (find.c). -

    -Thermals are not fully working for funny shaped pins, but it has low priority: -they still work fine for rounded and square pins and if there is a poly around -the pin, I wouldn't use shaped pins anyway. - -

    save/load and compatibility

    -This patch introduces a new pin flag called shape(n), where n is an integer -selecting the shape of the pin when the square flag is also set: -
    -Pin[40000 60000 6000 3000 6600 2800 "8" "8" "square,shape(3)"]
    -
    -Mainline PCB will load the design ignoring the custom shape and will use a -square pin. As long a traces end in the center point of the pin, this -should not break connections. -

    -Mainline PCB doesn't save shape() - once the design is loaded and saved with -mainline PCB pin shape info is lost. - -

    plans

    -In the original code there are separate code paths for round, octagonal and -square pins. The separation repeats for at least: -
      -
    • drawing the pin shape -
    • calculating the clearance -
    • checking whether things overlap or connect (pin vs pin, pin vs line, etc.) -
    • autorouter -
    -In most cases a set of hardwired constants are written in the C code. A notable -exception was the octagon pin draw function, that had x and y offsets in a const -table for 8 points and a loop to create the poly (or line segments in thin draw). -

    -The [square] feature is a good base for cleaning up the code a bit and for -moving toward a generic pin shape patch: -

      -
    • hardwired octagon calculations should be replaced to use the same x;y const offset table -
    • the table should be replaced by a struct that describes length (number of points) - alternatively use POLYAREA -
    • square pin should be renamed to polygon pin -
    • octagon flag shall be removed - it should be a configuration of the x;y const table -
    • square flag shall be removed - it should be a configuration -
    • the only flag remaining should be shape(); if a pin is not shaped, it's round -
    • the pin shape struct should have a field for compatibility - to mark the entry corresponding to the original square and octagon pins so PCB-rnd format can be converted to and from the mainline PCB format. -
    • there should be a set of pin shapes in a default configuration table, including square and octagonal; these should be static -
    • the PCB file format should be extended with an option to expand the pin shape table with custom shapes -
    • UI: shapes could be imported (converted) from polys around vias -
    • UI: since there may be a lot of pin shapes, a GUI selector alternative shall be offered while also keeping the cycle-thru 'q' key -
    - - Index: trunk/doc-rnd/features/settings.html =================================================================== --- trunk/doc-rnd/features/settings.html (revision 5606) +++ trunk/doc-rnd/features/settings.html (nonexistent) @@ -1,49 +0,0 @@ - - - pcb-rnd - different default settings - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - settings

    - -There are a few minor changes in default settings compared to mainline -pcb. - - - - - -
    name - description - where to change - -
    layers - the default layer stack is optimized for two sided boards with 3 layers on both sides - edit or replace /usr/share/pcb-rnd/default.pcb - -
    styles & DRC - default styles and DRC settings are optimized for toner transfer - edit or replace /usr/share/pcb-rnd/default.pcb - -
    grid - on startup "enable visible grid" is on and grid is set to 25 mil - change editor/draw_grid in pcb-conf.lht (in system install dir, in user dir) or in project.lht - -
    - - - Index: trunk/doc-rnd/features/tostyle.html =================================================================== --- trunk/doc-rnd/features/tostyle.html (revision 5606) +++ trunk/doc-rnd/features/tostyle.html (nonexistent) @@ -1,68 +0,0 @@ - - - pcb-rnd - [tostyle] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [tostyle] patch

    - -Footprints bring their own hole sizes, copper ring sizes and clearances. -These parameters often depend on the manufacturing process, and such a value -coming from a footprint may differ much from the values used on the board already. -

    -PCB has actions (and menus and hotkeys) to change sizes manually. In my practice, -I try to stick to the sizes defined in my routing styles and try to avoid -manually changing clearances or ring sizes. Still, the random values coming -from various footprints should be changed. -

    -After many years of struggling with this, I realized the feature I need is -a way to change object sizes to not a relative or absolute number but -to the current routing style. The [tostyle] patch does exactly this. -It implements the following new features: -

      -
    • change clearance size now works on elements: it changes the clearance of all pins/pads; this is the same as change drill has been working for a long time -
    • size change actions normally take a value and a unit; if the value is not a number but text style, the value is copied from the currently active routing style -
    • a new ChangeSizes() action that attempts to execute the other three change size actions with the same arguments and fails only if all of them failed; the three sizes are: main size, drill size, clearance size -
    • a menu item and hotkey binding to key 'Shift+Y' (for routing stYle) that calls ChangeSizes() of the selected or current object(s) to resize them to the current routing style -
    -

    -The new route style set works on: -

      -
    • lines and arcs: sets their line width and clearance -
    • vias and individual pins: sets their ring dia, drill dia and clearance -
    • individual pads: sets their clearance -
    • elements: set all their pins and pads -
    - -

    Example

    -GUI: select a routing style; hover above a line, a via, a pin/pad of an element -or the silk of an element; press Shift+Y; undo if necessary. -

    -CLI: select objects, execute action ChangeSizes(selected, style) -

    -CLI: to adjust drill sizes only: select objects, execute action ChangeDrillSize(selected, style) - - -

    save/load and compatibility

    -Not affected, since the patch introduces actions and UI changes, no change -related to the data model. - -

    plans

    -No plans, the feature is complete. - - - Index: trunk/doc-rnd/features/propedit.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/features/propedit.png =================================================================== --- trunk/doc-rnd/features/propedit.png (revision 5606) +++ trunk/doc-rnd/features/propedit.png (nonexistent) Property changes on: trunk/doc-rnd/features/propedit.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/features/io.html =================================================================== --- trunk/doc-rnd/features/io.html (revision 5606) +++ trunk/doc-rnd/features/io.html (nonexistent) @@ -1,41 +0,0 @@ - - - pcb-rnd - [io_*] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [io_*] patches

    - -Mainline PCB core was coupled with the file format; the [io] patch set is -an effort to decouple any file design I/O from core. The original file format -(plain text .pcb and .fp) lives on as plugin called io_pcb. - -

    -TODO - -

    save/load and compatibility

    -Not affected when io_pcb is used and .pcb or .fp files are loaded or saved. -

    -Using other io_* implementations will obviously result in files that are -incompatible with mainline pcb (unless mainline pcb learns how to load those -formats). - -

    plans

    -The project is still in an early phase. - - - Index: trunk/doc-rnd/features/index.html =================================================================== --- trunk/doc-rnd/features/index.html (revision 5606) +++ trunk/doc-rnd/features/index.html (nonexistent) @@ -1,61 +0,0 @@ - - - pcb-rnd - features - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd

    -

    Change summary, per topic

    - -
    commit message tag and docdescription -
    [gpmi] scripting PCB (including GUI dialogs, actions, menus, changing the layout) -
    [intconn] component internal connections -
    [nonetlist] components that are not part of the netlist and should not cause shorts -
    [tostyle] actions, menu and hotkey to change ring dia, line width, drill dia and clearance sizes to match the values defined for the current routing style -
    [mincut] minimal cut based warnings on shorts -
    [square] change square pad to a generic shaped-pin based on the octagon pin code - this is an alternative to teardrops -
    [flagcomp] unknown flag compatibility -
    [scconfig] use scconfig instead of autotools -
    [pcb-fp] generic parametric footprints; on-the-fly footprint generation by external tools written in any language (remove m4 hardwirings) -
    [pcblib], [fp_fs], - [pcblib-param] clean up the footprint library shipped -
    [library_t] footprint library is an arbitrary tree instead of a special, 2 level tree -
    [fp_wget] web based footprint libraries, integration of gedasymbols.org -
    [res] replace resource files with lihata and enable multi-key hotkeys in both gtk and lesstif hids -
    [debian] Debian packaging the binaries configured to my own taste -
    [ba] back annotation -
    [onpoint] on-point by Robert Drehmel -
    [cycdrag] cycle drag; with additional feature: negative box select -
    [mods] modularize the code to reduce core size - for comparison, previous stats: 1.0.8, 1.0.9 -
    [unglib] remove glib dependency from core -
    [io_*] .pcb and .fp file format plugins -
    [dynstyle] dynamic routuing style: sypport more than 4 of them - with no limit -
    [conf] new, unified, config file system -
    [propedit] property/attribute editor (gtk) -
    [oldplugins] import old PCB plugins -
    [query] query language -
    routing styles routing style fixes -
    (gtk grid) gtk grid improvements: sparse global grids, local grids -
    (full screen) gtk full screen edit mode -
    (settings) minor changes in default settings - - - -
    - - - Index: trunk/doc-rnd/features/pcb-fp.html =================================================================== --- trunk/doc-rnd/features/pcb-fp.html (revision 5606) +++ trunk/doc-rnd/features/pcb-fp.html (nonexistent) @@ -1,54 +0,0 @@ - - - pcb-rnd - [pcb-fp] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [pcb-fp] patch

    - -Pcb-fp is an effort to clean up the footprint situation: -
      -
    • replace lib and newlib with pcblib, a library that tries to provide common footprints only -
    • clear the syntax: if a footprint name contains parenthesis, it's generated (parametric footprint), else it's the name of a static footprint file -
    • parametric footprints: replace m4 with a generic, language-independent footprint generator framework -
        -
      • implement libpcb_fp, which centralizes searching and loading footprints -
      • fork gsch2pcb to gsch2pcb-rnd that uses libpcb_fp (and does not have any m4 references hardwired) -
      • fork gnet_gsch2pcb.scm (the gnetlist backend) to remove m4 heuristics -
      -
    - -

    Example

    -Intaractive parametric footprint selection in pcb-rnd: -

    - -

    -An online footprint generator web1.0 version is also available. - -

    save/load and compatibility

    -Save/load files are not affected. If a schematics is written for the new -library and depends on parametric footprints: -
      -
    • mainline gsch2pcb won't find those footprints -
    • mainline pcb won't show those footprints in the footprint selection dialog -
    - -

    plans

    -No plans - this feature is fully implemented. - - - Index: trunk/doc-rnd/features/intconn.html =================================================================== --- trunk/doc-rnd/features/intconn.html (revision 5606) +++ trunk/doc-rnd/features/intconn.html (nonexistent) @@ -1,90 +0,0 @@ - - - pcb-rnd - [intconn] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [intconn] patch

    - -There are parts with internal connections (e.g. pin 2 and 4 of a SO8 -package are internally connected). Mainline PCB can not handle this, -leaving the following options: -
      -
    • connect both pins to the net from the schematics - this works if all the internally connected pins are required to connect to copper (common with GND or power pins) but is very inconvenient for signal pins where only one of them needs to be connected -
    • back-annotate which pin is connected - there's no easy back annotation -
    • one pin connected, the other is closer to the next target; PCB doesn't understand that they are already connected internally; normally one shouldn't use the internal connection of a component instead of copper; except for the common practice to use 0 ohm SMD resistors for jumping wires -
    -

    -The patch introduces a new pin flag intconn(g) which marks the pin -to have internal connections in group g. If there -are multiple pins using the same g value within a single element, they -are internally connected. In other words, g is a group (or net name) -within the element and pins can join to one of the numbered groups (or internal -nets). The value of g shall be between 1 and 255, 0 means no internal -connection (equivalent to the case when intconn(0) is omitted). -

    -When pin numbers are displayed (key 'd'), internal connection groups are -written in square brackets, e.g. "2 [9]" means "pin 2, internally connected -to group 9". -

    -Combined with the [nonetlist] patch, this -solves the "0-ohm 1206 jumper" problem: the element should be marked -as nonetlist, with both pins set intconn(1) - this will result in a 2 -pad element, pads internally connected, that can be part of any one network -without causing short. -

    Example

    -The first image depicts crossing traces, a common problem encountered when rats -nesting a new layout from a netlist. One method to resolve such issues is to -use a zero ohm jumper resistor that allows one signal trace to 'jump' across -another. -

    -The second image shows the layout routing the nonconflicting rats and a open -unrouted point where the rat would require one trace to cross another. -

    -In the third image a 1206 SMD footprint for a 0 Ohm 1206 resistor called J1 is -placed with an intconn between the two pads which resolves the final rat line. -

    - -

    - -

    - -

    - - - -

    save/load and compatibility

    -This patch introduces a new pin flag. In the following example -pin 2 and 4 are connected internally as group 9, while pin 3 -does not have any internal connections: -
    -Pin[40000 60000 6000 3000 6600 2800 "2" "2" "square,intconn(9)"]
    -Pin[40000 50000 6000 3000 6600 2800 "3" "3" "square"]
    -Pin[40000 40000 6000 3000 6600 2800 "4" "4" "square,intconn(9)"]
    -
    -Mainline PCB will load the design ignoring internal connections - -this may introduce new rats. -

    -Mainline PCB doesn't save intconn() and elements are embedded in the file - -once the design is loaded and saved with mainline PCB, internal connection -info is lost. - -

    plans

    -No plans - this feature is fully implemented. There is no plan for implementing -a GUI, internal connections should be hand-edited into the element. - - Index: trunk/doc-rnd/features/routings.html =================================================================== --- trunk/doc-rnd/features/routings.html (revision 5606) +++ trunk/doc-rnd/features/routings.html (nonexistent) @@ -1,97 +0,0 @@ - - - pcb-rnd - routing style fixes - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - routing style fixes

    - -

    Number of styles

    -In the original code there are a compile-time fixed number (4) of routing -styles. This is often not enough for more complex designs. While in theory -this limit can be raised, the resulting .pcb files will be incomatible with -pcb compilations using a different number of styles. -

    -Pcb-rnd uses a dynamic vector for storing styles and allows any number -of styles from 0 up to a very large value (2^31-1). There is no compile-time -configurable limit. The number of default styles (and the actual style -configuration) is coming from the template pcb file. -

    -Creating a new style in the Route Styles dialog is not "for this session only" -anymore - styles are saved with the design. - -

    Explicit custom style

    -Pcb had 4 explicit styles and a hidden, implicit style. All drawing -action uses the hidden style. When the user selects one of the explicit -styles, its properties are copied into the implicit style. Any drawing -action uses the implicit style, this it's sort of the "pen style". -

    -In mainline PCB the implicit (or pen) style is hidden. As long as it always -matches one of the existing styles, the user doesn't even know about it. -However, if there are objects that do not comform to any of the existing -styles, it is possible to bump into this. For example: -

      -
    • draw a line using one of the existing styles -
    • increase the width (with the 's' key) a few times - now the style of the line does not match any of the existing styles -
    • use the SetSame() action over the line (hover the pointer over the line and press 'a') - it will try to set the style that corresponds to the line -
    • since no style matches the line's, the radio button gets deselected - that's good -
    • now click on the Route Style button - it will show the properties of the last selected route style, even tho it is not selected at the moment -
    -

    -In contrast, pcb-rnd offers an explicit routing style called <custom>. -If SetSame() is invoked on an object that doesn't match any of the existing styles, -the <custom> style is selected: -

      -
    • no style marked on the radio button (just like in mainline) -
    • the Route Style button opens with the <custom> style, with the values picked up from the object by SetSame -
    • the user can change the values, which will affect the implicit pen style -
    • this means the user can draw with the new settings, without having to create a permanent style -
    -

    -In other words, it is now possible to use the implicit pen style as temporal -style, to explicitly set a line width, via diameter before placing a few -unusual lines or vias, without having to create a new style. It is also -possible to pick up the style of such an unusual object later, without the -GUI confusing it with any of the existing styles. - -

    SetSame() bugs fixed

    -A line does not have drill parameters. When mainline tries to pick up -object properties for a line, it will pick thickness and clearance but -will leave hole and ring diameters unchanged. This very often results in -a mixed style: e.g. "signal" line properties picked up from a line while -"power" hole/ring properties left over from the current style selection. -Such a mixed pickup will result in the GUI get confused and not selecting any -of the styles. The expected behaviour is to select the "signal" style if the -line width/clearance matches the parameters of that style, and ignore the -drill/ring parameters. -

    -The same mixup happens for picking up arc parameters, and a similar mixup -for via parameters (a via doesn't have a line width). -

    -Pcb-rnd fixes this by searching for the matching style using only the parameters -that the given object really had. This results in valid style selection -the way the user may expect. - -

    save/load and compatibility

    -Saving a design with number of styles not equal to 4 may cause problems -when loading with mainline. The rest of these features do not affect -compatibility. - -

    plans

    -No plans - these features are fully implemented. - - Index: trunk/doc-rnd/features/pcblib.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: trunk/doc-rnd/features/pcblib.png =================================================================== --- trunk/doc-rnd/features/pcblib.png (revision 5606) +++ trunk/doc-rnd/features/pcblib.png (nonexistent) Property changes on: trunk/doc-rnd/features/pcblib.png ___________________________________________________________________ Deleted: svn:mime-type ## -1 +0,0 ## -application/octet-stream \ No newline at end of property Index: trunk/doc-rnd/features/dynstyle.html =================================================================== --- trunk/doc-rnd/features/dynstyle.html (revision 5606) +++ trunk/doc-rnd/features/dynstyle.html (nonexistent) @@ -1,38 +0,0 @@ - - - pcb-rnd - [dynstyle] - - - - - - - - - -
    Main - News - People - Events & timeline - pcb-rnd -
    - - -

    pcb-rnd - the [dynstyle] patch

    - -Pcb-rnd doesn't have a hardwired limit on number of routing styles -anymore. Routing styles can be created on the fly and are saved to and loaded -from .pcb files. -

    -There's no theoretical maximum explicitly set either. An implicit maximum -exists and is sizeof(int) - should be at least 2^31 on most systems. - -

    save/load and compatibility

    -The first 4 styles are loaded and preserved by mainline. Styles above -4 would probably be deleted in a mainline load-save cycle. The number 4 -is a constant value that can be changed if mainline is recompiled. - -

    plans

    -GUI HID representation of styles (especially in menus) need more testing. - - Index: trunk/INSTALL =================================================================== --- trunk/INSTALL (revision 5606) +++ trunk/INSTALL (revision 5607) @@ -15,7 +15,7 @@ (Note: it is important to cd to src to run pcb-rnd from source; src/pcb-rnd won't work unless pcb-rnd is installed). -If this doesn't work, please refer to doc-rnd/UNIX.txt or doc-rnd/mac.txt +If this doesn't work, please refer to doc/UNIX.txt or doc-rnd/mac.txt -- Index: trunk/Makefile =================================================================== --- trunk/Makefile (revision 5606) +++ trunk/Makefile (revision 5607) @@ -8,11 +8,11 @@ cd src && make clean cd util && make clean cd pcblib && make clean - cd doc-rnd && make clean + cd doc && make clean distclean: FORCE make clean ; true - cd doc-rnd && make distclean + cd doc && make distclean cd scconfig && make clean ; true cd src_3rd/genlist && make clean ; true cd src_3rd/genregex && make clean ; true @@ -26,19 +26,19 @@ cd src && make install cd util && make install cd pcblib && make install - cd doc-rnd && make install + cd doc && make install linstall: FORCE cd src && make linstall cd util && make linstall cd pcblib && make linstall - cd doc-rnd && make linstall + cd doc && make linstall uninstall: FORCE cd src && make uninstall cd util && make uninstall cd pcblib && make uninstall - cd doc-rnd && make uninstall + cd doc && make uninstall deb: FORCE fakeroot debian/rules clean Index: trunk/src/Makefile.in =================================================================== --- trunk/src/Makefile.in (revision 5606) +++ trunk/src/Makefile.in (revision 5607) @@ -290,7 +290,7 @@ AWK=@/host/fstools/awk@ ../scconfig/gen_core_lists.sh @/local/pcb/ACTION_REG_SRC@ > generated_lists.h conf_core_fields.h: conf_core.h - AWK=@/host/fstools/awk@ ../scconfig/gen_conf.sh ../doc-rnd/conf/tree < conf_core.h > conf_core_fields.h + AWK=@/host/fstools/awk@ ../scconfig/gen_conf.sh ../doc/conf/tree < conf_core.h > conf_core_fields.h conf_internal.c: pcb-conf.lht $(CQUOTE) -n conf_internal < pcb-conf.lht > conf_internal.c Index: trunk/util/devhelpers/renamef.sh =================================================================== --- trunk/util/devhelpers/renamef.sh (revision 5606) +++ trunk/util/devhelpers/renamef.sh (revision 5607) @@ -5,4 +5,4 @@ ./rename.sh "s/\\([^a-zA-Z0-9_]\\)${1}[ \t]*[(]/\\1$2(/g" ./rename.sh "s/^${1}[ \t]*[(]/$2(/g" -echo "$1 -> $2" >> doc-rnd/hacking/renames +echo "$1 -> $2" >> doc/developer/renames Index: trunk/util/devhelpers/renameo.sh =================================================================== --- trunk/util/devhelpers/renameo.sh (revision 5606) +++ trunk/util/devhelpers/renameo.sh (revision 5607) @@ -6,4 +6,4 @@ s/\\([^a-zA-Z0-9_]\\)${1}$/\\1$2/g; " -echo "$1 -> $2" >> doc-rnd/hacking/renames +echo "$1 -> $2" >> doc/developer/renames