mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-22 18:44:59 +02:00
- Makefile: now requires /bin/bash (for PIPESTATUS)
- Makefile: use PIPESTATUS to catch errors in the icon conversion pipe - Makefile: whitespace and comment cleanup - gui_style.c: removed no longer needed definition of INVALID git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5487 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
parent
0e0e4ea32d
commit
4db1ade3bd
19
Makefile
19
Makefile
@ -24,17 +24,18 @@ XPMS = point.xpm delete.xpm delete_off.xpm \
|
|||||||
meas.xpm meas_x.xpm meas_y.xpm \
|
meas.xpm meas_x.xpm meas_y.xpm \
|
||||||
stuff.xpm stuff_off.xpm meas_off.xpm
|
stuff.xpm stuff_off.xpm meas_off.xpm
|
||||||
|
|
||||||
|
SHELL = /bin/bash
|
||||||
CFLAGS_GTK = `pkg-config --cflags gtk+-2.0`
|
CFLAGS_GTK = `pkg-config --cflags gtk+-2.0`
|
||||||
LIBS_GTK = `pkg-config --libs gtk+-2.0`
|
LIBS_GTK = `pkg-config --libs gtk+-2.0`
|
||||||
|
|
||||||
CFLAGS_WARN=-Wall -Wshadow -Wmissing-prototypes \
|
CFLAGS_WARN = -Wall -Wshadow -Wmissing-prototypes \
|
||||||
-Wmissing-declarations -Wno-format-zero-length
|
-Wmissing-declarations -Wno-format-zero-length
|
||||||
CFLAGS=-g -std=gnu99 $(CFLAGS_GTK) -DCPP='"cpp"' $(CFLAGS_WARN)
|
CFLAGS = -g -std=gnu99 $(CFLAGS_GTK) -DCPP='"cpp"' $(CFLAGS_WARN)
|
||||||
SLOPPY=-Wno-unused -Wno-implicit-function-declaration -Wno-missing-prototypes \
|
SLOPPY = -Wno-unused -Wno-implicit-function-declaration \
|
||||||
-Wno-missing-declarations
|
-Wno-missing-prototypes -Wno-missing-declarations
|
||||||
LDLIBS = -lm -lfl $(LIBS_GTK)
|
LDLIBS = -lm -lfl $(LIBS_GTK)
|
||||||
YACC=bison -y
|
YACC = bison -y
|
||||||
YYFLAGS=-v
|
YYFLAGS = -v
|
||||||
|
|
||||||
# ----- Verbosity control -----------------------------------------------------
|
# ----- Verbosity control -----------------------------------------------------
|
||||||
|
|
||||||
@ -75,13 +76,11 @@ endif
|
|||||||
|
|
||||||
# generate 26x26 pixels icons, then drop the 1-pixel frame
|
# generate 26x26 pixels icons, then drop the 1-pixel frame
|
||||||
|
|
||||||
# this adds a magenta border
|
|
||||||
# sed '/2 2 0 1 /{s//2 2 0 15 /;s/ 0 7 / 22 7 /;}' $< | \
|
|
||||||
|
|
||||||
.fig.xpm:
|
.fig.xpm:
|
||||||
$(GEN) fig2dev -L xpm -Z 0.32 -S 4 $< | \
|
$(GEN) fig2dev -L xpm -Z 0.32 -S 4 $< | \
|
||||||
convert -crop 24x24+1+1 - - | \
|
convert -crop 24x24+1+1 - - | \
|
||||||
sed "s/*.*\[]/*xpm_`basename $@ .xpm`[]/" >$@
|
sed "s/*.*\[]/*xpm_`basename $@ .xpm`[]/" >$@; \
|
||||||
|
[ "$${PIPESTATUS[*]}" = "0 0 0" ] || { rm -f $@; exit 1; }
|
||||||
|
|
||||||
all: fped
|
all: fped
|
||||||
|
|
||||||
|
1
README
1
README
@ -15,6 +15,7 @@ Building
|
|||||||
|
|
||||||
Prerequisites:
|
Prerequisites:
|
||||||
|
|
||||||
|
- bash
|
||||||
- flex
|
- flex
|
||||||
- bison
|
- bison
|
||||||
- fig2dev
|
- fig2dev
|
||||||
|
7
TODO
7
TODO
@ -20,7 +20,6 @@ Style:
|
|||||||
upper toolbar
|
upper toolbar
|
||||||
- status area looks awful
|
- status area looks awful
|
||||||
- add button with GTK_STOCK_UNDELETE for "undelete" to menu bar
|
- add button with GTK_STOCK_UNDELETE for "undelete" to menu bar
|
||||||
- edit names/values/etc. in place if possible
|
|
||||||
- maximizing pad name size creates uneven text sizes. Particularly "1" gets
|
- maximizing pad name size creates uneven text sizes. Particularly "1" gets
|
||||||
excessively large.
|
excessively large.
|
||||||
- pango_layout_get_size doesn't seem to consider rotation, so we currently
|
- pango_layout_get_size doesn't seem to consider rotation, so we currently
|
||||||
@ -66,12 +65,14 @@ Open decisions:
|
|||||||
we can already approximate this by introducing an intermediate table that
|
we can already approximate this by introducing an intermediate table that
|
||||||
sets up the arguments (provided that we don't consider vectors as well)
|
sets up the arguments (provided that we don't consider vectors as well)
|
||||||
- Q: should we make it a requirement to generate objects only once ?
|
- Q: should we make it a requirement to generate objects only once ?
|
||||||
A: almost certainly yes.
|
A: yes.
|
||||||
|
|
||||||
Future directions:
|
Future directions:
|
||||||
- future: consider using cairo instead of gdk
|
- future: consider using cairo instead of gdk
|
||||||
- live update of value when entering strings and expressions ?
|
- live update of value when entering strings and expressions ?
|
||||||
- advanced: non-standard solder mask
|
- advanced: non-standard solder mask
|
||||||
- advanced: solder paste exceptions (subtractive, additive)
|
- advanced: solder paste exceptions (subtractive, additive)
|
||||||
|
- advanced: holes
|
||||||
- advanced: silk line width
|
- advanced: silk line width
|
||||||
- future: consider editing non-canvas items in place
|
- future: consider editing non-canvas items (e.g., variable names/values) in
|
||||||
|
place
|
||||||
|
@ -18,9 +18,6 @@
|
|||||||
#include "gui_style.h"
|
#include "gui_style.h"
|
||||||
|
|
||||||
|
|
||||||
#define INVALID "#00ffff"
|
|
||||||
|
|
||||||
|
|
||||||
GdkGC *gc_bg, *gc_bg_error;
|
GdkGC *gc_bg, *gc_bg_error;
|
||||||
GdkGC *gc_drag;
|
GdkGC *gc_drag;
|
||||||
GdkGC *gc_highlight;
|
GdkGC *gc_highlight;
|
||||||
|
Loading…
Reference in New Issue
Block a user