1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-04 23:29:42 +02:00

eeshow/: fix some whitespace issues

- trailing space
- space before semicolon
- indentation with spaces instead of tabs (copy & paste)
This commit is contained in:
Werner Almesberger 2016-08-04 19:25:31 -03:00
parent e18c146323
commit 1c6116a8d6
11 changed files with 23 additions and 15 deletions

View File

@ -8,6 +8,8 @@ Parsing and input processing:
Data model:
- implement destructors
- check for memory leaks
- sheets appearing multiple times are parsed anew each time. Should we try
to combine them ?
Visualization (dwg.c and such):
- glabel: build for "right" style, then rotate poly (like hlabel)
@ -21,6 +23,8 @@ Visualization (dwg.c and such):
Rendering:
- better text size guessing also for FIG
- consider switching to Hershey fonts (that's what eeschema uses, right ?)
(goal: prevent font geometry from changing when scaling)
- support fonts attributes ?
- support line thickness ?
- ~ as overline (grep for ~ in out.fig)
@ -34,3 +38,7 @@ GUI:
- fonts grow beyond their bounding boxes when zooming in
- dragging can be slow. maybe reusing old content and only redrawing new
will help ?
On-going:
- use Pango to support markup in overlay boxes:
https://developer.gnome.org/pango/unstable/PangoMarkupFormat.html

View File

@ -312,7 +312,7 @@ static const void *get_data(git_repository *repo, git_tree_entry *entry,
}
if (verbose > 2) {
git_buf buf = { 0 } ;
git_buf buf = { 0 };
if (git_object_short_id(&buf, obj)) {
const git_error *e = giterr_last();

View File

@ -17,7 +17,7 @@
struct aoi {
int x, y, w, h; /* activation box, eeschema coordinates */
int x, y, w, h; /* activation box, eeschema coordinates */
/* points to hovered aoi, or NULL */
bool (*hover)(void *user, bool on);

View File

@ -433,7 +433,7 @@ static void select_subsheet(void *user)
const struct sheet_aoi_ctx *aoi_ctx = user;
struct gui_ctx *ctx = aoi_ctx->gui_ctx;
const struct sch_obj *obj = aoi_ctx->obj;
struct gui_sheet *sheet;
struct gui_sheet *sheet;
for (sheet = ctx->sheets; sheet; sheet = sheet->next)
if (sheet->sch == obj->u.sheet.sheet) {

View File

@ -91,7 +91,7 @@ struct comp {
const char *name;
unsigned units;
unsigned visible; /* visible fields, bit mask */
unsigned visible; /* visible fields, bit mask */
bool show_pin_name;
bool show_pin_num;
unsigned name_offset;

View File

@ -84,7 +84,7 @@ while read line; do
$quiet || echo "$file" 1>&2
./eeshow $libs `dirname "$1"`/$file \
-- fig $template "TITLE=$name" NUMBER=$num |
-- fig $template "TITLE=$name" NUMBER=$num |
fig2dev -L pdf >_tmp.pdf
pdfunite "$out" _tmp.pdf _tmp2.pdf
mv _tmp2.pdf "$out"

View File

@ -28,11 +28,11 @@ enum text_style {
};
struct text {
const char *s;
const char *s;
int size;
int x, y;
int rot;
enum text_align hor;
int x, y;
int rot;
enum text_align hor;
enum text_align vert;
};