1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-12-22 23:11:44 +02:00
Commit Graph

271 Commits

Author SHA1 Message Date
Xiangfu
9ab9ae66dd debian: regular update 2012-10-08 12:36:10 +08:00
Xiangfu
5b21495dcf transfer build flags from outside 2012-10-08 12:12:38 +08:00
Xiangfu
d76f7d19a8 debian: cleanup changelog, include debian build flags 2012-10-08 11:42:39 +08:00
Xiangfu
d2daaf83d1 debian: cleanup on control file 2012-10-08 10:56:19 +08:00
Xiangfu
42a4adeaaf debian: update email address 2012-09-20 11:28:06 +08:00
Xiangfu
598272fcd4 debian: update snapshot commit 2012-09-20 11:02:01 +08:00
Xiangfu
dfac631faf debian: update maintainer email. prepare for my DM application 2012-09-20 10:59:36 +08:00
Werner Almesberger
23a33488d4 gui_frame.c: allow scrolling through packages also on the name template 2012-08-21 02:13:55 -03:00
Werner Almesberger
8982d09474 add experimental reload feature
This is a first crude attempt at allowing reloading without exiting
fped. This should be useful when writing a design as text and using
the GUI only to visualize it.

Reload is only enabled (in the File menu) if the file doesn't have
the "MACHINE-GENERATED" header.

Known bugs:
- exits on parse errors
- leaks memory badly
- current frame is reset to root
2012-08-21 02:08:26 -03:00
Werner Almesberger
7c037ae78a layer.c (pad_type_to_layers): fix harmless typo 2012-07-19 00:32:33 -03:00
Werner Almesberger
52c288e85e Merge branch 'master' of projects.qi-hardware.com:fped 2012-07-18 22:43:30 -03:00
Werner Almesberger
b4d61a867e postscript.c: only show the key for pad types actually used in the package 2012-07-18 22:39:50 -03:00
Werner Almesberger
ed69b7b0e0 postscript.c: cleaned up geometry calculation for pad type key 2012-07-18 22:31:36 -03:00
Werner Almesberger
c28f701086 postscript.c (prologue): set line join style to "round" in showoutlined
With the default, we get way too pointy corners in letters like "M".
2012-07-18 22:17:45 -03:00
Werner Almesberger
d250ed236c postscript.c: show key for pad types at bottom of fullpage drawings (-P -K) 2012-07-18 22:15:01 -03:00
Werner Almesberger
26b74e867a postscript.c (hatch): change argument from layer set to pad type
For sharing.
2012-07-18 20:38:14 -03:00
Werner Almesberger
238830c02d postscript.c: move drawing part of ps_pad_name and ps_pad to separate functions
For sharing.
2012-07-18 20:24:00 -03:00
Werner Almesberger
57dbeb1aad gui_status.c (show_pad_type): share pad type to name translation
... and move to new function pad_type_name in layer.c
2012-07-18 19:52:19 -03:00
Xiangfu
6e61ff9965 debian: update debian version 2012-07-13 10:02:36 +08:00
Werner Almesberger
54434e9ab3 Merge branch 'master' of projects.qi-hardware.com:fped 2012-07-12 18:20:08 -03:00
Werner Almesberger
1c01bc3c2a new use of option -s (scaling): -s [width]x[heigth]
The new scaling variants set the maximum size in one or both directions.
If one of the sizes is omitted, the default paper size is assumed.
2012-07-12 18:16:54 -03:00
Werner Almesberger
86c082f5a9 track bounding box also on a per-package basis and use this to scale Postscript
Until now, everything used the bounding box of the root frame which
contains all the packages, visible or not. We now also record what
ends up in which package, allowing inst_get_bbox to return the
bounding box of a specific package.

This is mainly useful for scaling Postscript output where only one
package is printed per sheet and there is not much point in reserving
space for any other packages that may be generated from the same
footprint definition.
2012-07-12 17:40:31 -03:00
Werner Almesberger
e2ce0eecf7 inst.c: zero-sized pads and holes now cause instantiation to fail
Before, they were silently ignored but still included in output.
This produced invalid Postscript (attempts to fit the pad name into
the zero-sized pad failed) and may also have produced artefacts
that could confuse KiCad.
2012-07-12 16:21:59 -03:00
Xiangfu
c23d812c66 debian/* update changelog and copyright for fix lintian errors 2012-06-22 15:06:28 +08:00
Xiangfu
f70c33355b debina/changelog: update to latest commit 2012-06-21 20:10:39 +08:00
Xiangfu
e6fa1080be update email address 2012-06-21 20:06:23 +08:00
Xiangfu
7f1d484f09 debian/control: update email address 2012-06-21 18:29:45 +08:00
Xiangfu
728a39f8f5 update debian/copyright url 2012-06-21 18:20:23 +08:00
Xiangfu
45805bd7cd Switch debian/* from SVN to GIT, now build package base on git commit 2012-06-21 17:34:18 +08:00
Xiangfu
0562403f30 Add .gitignore file 2012-06-21 17:34:14 +08:00
Werner Almesberger
59b90b3054 reset reachable_pkg in the instantiation process and restore on inst_revert
Before, it was reset outside and not restored when instatiation failed.
This caused fped to segfault.
2012-05-28 23:58:05 -03:00
Werner Almesberger
5d76af2d7c make variable type changes also commit the value (name) being edited
This streamlines the workflow.
2012-05-28 12:15:15 -03:00
Werner Almesberger
f2d3986600 fix whitespace anomalies
/ \t/, / $/, and /\t$/
2012-05-28 03:11:15 -03:00
Werner Almesberger
4c3dea7111 support switching variables between assignment and key (WIP)
This is a little awkward: to change a variable used as key to an
assignment, one first had to change the name such that it doesn't
clash, hit Enter, and then edit the variable again to change its
type.

Variable type changes should pick up the edit in progress and allow
a type change to also imply acceptance of the variable.
2012-05-28 02:54:50 -03:00
Werner Almesberger
326a480b63 gui_frame.c: display a question mark before variables used as key 2012-05-28 02:53:01 -03:00
Werner Almesberger
101bd11c98 test/tsort: fix permission (wasn't excecutable) 2012-05-27 22:14:00 -03:00
Werner Almesberger
3488cf80ec introduce keyed tables (?var syntax; WIP)
This cannot be set/changed through the GUI yet.
2012-05-27 22:14:00 -03:00
Werner Almesberger
3c39600c1c add %iprint, to track variables during instantiation 2012-05-27 22:14:00 -03:00
Werner Almesberger
91154440a3 test/floor: add two real-life-like rounding problems (mil to mm) 2012-05-26 20:10:26 -03:00
Werner Almesberger
9a6c7d2742 add floor() function 2012-05-26 14:13:58 -03:00
Werner Almesberger
e0351bdf73 make active package track active variables (for the GUI)
If the package whose name is produced by the active variable values
is active and the variables change, then make the newly active
package the one whose name is produced by the changed variables.

This way, iterating through a table or a loop will automatically
switch to the right package, with the exception that, if the user
choses to explicitly select a different package (by clicking on
its name in the packages line), then that selection takes priority.

Explicit selection loses its priority when active package and active
variables coincide again. I.e., one can simply "catch" the active
package by activating the corresponding values.
2012-05-25 19:20:29 -03:00
Werner Almesberger
b06ed92557 inst.h (FOR_PKG_INSTS): protect against active_pkg == NULL
active_pkg can become NULL if the root frame contains a loop that
will never execute, i.e., loop x = 1, 0

This caused fped to segfault when FOR_PKG_INSTS was called from
FOR_ALL_INSTS in inst_draw.
2012-05-25 18:21:09 -03:00
Werner Almesberger
424b74e482 change use of curly braces with "if-else" to kernel style 2012-05-25 13:33:54 -03:00
Werner Almesberger
6623ae198f Makefile: generate dependencies also for YACC- and LEX-generated files
We need explicit rules to compile lex.yy.c and y.tab.c for the relaxed
CFLAGS. However, this means that the implicit rule was not used and
therefore no dependencies were generated.
2012-05-22 16:20:54 -03:00
Werner Almesberger
6547384793 fpd.l: make start_token "static" 2012-04-26 02:55:45 -03:00
Werner Almesberger
43928dbbf3 purge unused measurement instances
Instances of measurements referencing vectors not instantiated were
only partially initialized (because only inst_meas_hint was called
on them but never inst_meas) but still left in the list of instances.

They were thus displayed, producing confusing results.

We now trace a measurement instance's validity and remove all invalid
instances at the end of instantiate_meas.
2012-03-17 23:14:16 -03:00
Werner Almesberger
5130707371 postscript.c (ps_for_all_pkg): "pages" was never initialized 2012-03-17 23:05:05 -03:00
Werner Almesberger
e2749ea6c5 don't draw center cross in full-page Postscript 2012-01-18 16:10:22 -03:00
Werner Almesberger
cb34a28826 vector names can now be resolved at instantiation (partially implemented) 2011-10-25 17:03:21 -03:00
Werner Almesberger
c8f5d29178 obj.c: move vector to coord translation to separate function (for future extension) 2011-10-25 16:22:04 -03:00