1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-09-30 00:35:05 +03:00

eeshow/: move parsing and high-level rendering to kicad/

This commit is contained in:
Werner Almesberger 2016-08-17 21:15:44 -03:00
parent 097192b7b4
commit e0c1e533f4
14 changed files with 42 additions and 39 deletions

View File

@ -11,11 +11,13 @@
#
NAME = eeshow
OBJS = main.o sch-parse.o sch-render.o lib-parse.o lib-render.o \
OBJS = main.o \
kicad/sch-parse.o kicad/sch-render.o kicad/lib-parse.o \
kicad/lib-render.o kicad/dwg.o \
gui/gui.o gui/over.o gui/style.o gui/aoi.o gui/fmt-pango.o \
file/file.o file/git-util.o file/git-file.o file/git-hist.o \
delta.o \
style.o fig.o record.o cro.o diff.o gfx.o dwg.o text.o misc.o diag.o
style.o fig.o record.o cro.o diff.o gfx.o text.o misc.o diag.o
CFLAGS = -g -Wall -Wextra -Wno-unused-parameter -Wshadow \
-Wmissing-prototypes -Wmissing-declarations \

View File

@ -18,8 +18,8 @@
#include "util.h"
#include "text.h"
#include "lib.h"
#include "sch.h"
#include "kicad/lib.h"
#include "kicad/sch.h"
#include "delta.h"

View File

@ -14,7 +14,7 @@
#ifndef DELTA_H
#define DELTA_H
#include "sch.h"
#include "kicad/sch.h"
bool sheet_eq(const struct sheet *a, const struct sheet *b);

View File

@ -24,8 +24,8 @@
#include "main.h"
#include "cro.h"
#include "file/file.h"
#include "sch.h"
#include "lib.h"
#include "kicad/sch.h"
#include "kicad/lib.h"
#include "record.h"
#include "diff.h"

View File

@ -34,10 +34,11 @@
#include "cro.h"
#include "gfx.h"
#include "file/git-hist.h"
#include "sch.h"
#include "kicad/lib.h"
#include "kicad/sch.h"
#include "delta.h"
#include "diff.h"
#include "dwg.h"
#include "kicad/dwg.h"
#include "gui/fmt-pango.h"
#include "gui/aoi.h"
#include "gui/style.h"

View File

@ -1,5 +1,5 @@
/*
* dwg.c - Complex drawing functions
* kicad/dwg.c - Complex drawing functions for KiCad items
*
* Written 2016 by Werner Almesberger
* Copyright 2016 by Werner Almesberger
@ -22,7 +22,7 @@
#include "style.h"
#include "text.h"
#include "gfx.h"
#include "dwg.h"
#include "kicad/dwg.h"
/* ----- Helper functions -------------------------------------------------- */

View File

@ -1,5 +1,5 @@
/*
* dwg.h - Complex drawing functions
* kicad/dwg.h - Complex drawing functions for KiCad items
*
* Written 2016 by Werner Almesberger
* Copyright 2016 by Werner Almesberger
@ -11,8 +11,8 @@
*/
#ifndef DWG_H
#define DWG_H
#ifndef KICAD_DWG_H
#define KICAD_DWG_H
#include "fig.h"
@ -48,4 +48,4 @@ void dwg_line(int sx, int sy, int ex, int ey);
void dwg_wire(int sx, int sy, int ex, int ey);
void dwg_bus(int sx, int sy, int ex, int ey);
#endif /* !DWG_H */
#endif /* !KICAD_DWG_H */

View File

@ -1,5 +1,5 @@
/*
* lib.c - Parse Eeschema .lib file
* kicad/lib.c - Parse Eeschema .lib file
*
* Written 2016 by Werner Almesberger
* Copyright 2016 by Werner Almesberger
@ -19,7 +19,7 @@
#include "diag.h"
#include "text.h"
#include "file/file.h"
#include "lib.h"
#include "kicad/lib.h"
/* ----- Text -------------------------------------------------------------- */

View File

@ -1,5 +1,5 @@
/*
* lib.c - Render component from library
* kicad/lib-render.c - Render component from library
*
* Written 2016 by Werner Almesberger
* Copyright 2016 by Werner Almesberger
@ -21,8 +21,8 @@
#include "style.h"
#include "gfx.h"
#include "text.h"
#include "sch.h"
#include "lib.h"
#include "kicad/sch.h"
#include "kicad/lib.h"
/* ----- Drawing ----------------------------------------------------------- */

View File

@ -1,5 +1,5 @@
/*
* lib.h - Parse Eeschema .lib file
* kicad/lib.h - Parse Eeschema .lib file
*
* Written 2016 by Werner Almesberger
* Copyright 2016 by Werner Almesberger
@ -11,8 +11,8 @@
*/
#ifndef LIB_H
#define LIB_H
#ifndef KICAD_LIB_H
#define KICAD_LIB_H
#include <stdbool.h>
@ -131,4 +131,4 @@ bool lib_parse(struct lib *lib, const char *name, const struct file *related);
void lib_init(struct lib *lib);
void lib_free(struct lib *lib);
#endif /* !LIB_H */
#endif /* !KICAD_LIB_H */

View File

@ -1,5 +1,5 @@
/*
* sch-parse.c - Parse Eeschema .sch file
* kicad/sch-parse.c - Parse Eeschema .sch file
*
* Written 2016 by Werner Almesberger
* Copyright 2016 by Werner Almesberger
@ -21,10 +21,10 @@
#include "util.h"
#include "diag.h"
#include "dwg.h"
#include "kicad/dwg.h"
#include "file/file.h"
#include "lib.h"
#include "sch.h"
#include "kicad/lib.h"
#include "kicad/sch.h"
/* ----- (Global) Labels --------------------------------------------------- */

View File

@ -1,5 +1,5 @@
/*
* sch-render.c - Render schematics
* kicad/sch-render.c - Render schematics
*
* Written 2016 by Werner Almesberger
* Copyright 2016 by Werner Almesberger
@ -18,9 +18,9 @@
#include "misc.h"
#include "style.h"
#include "gfx.h"
#include "dwg.h"
#include "lib.h"
#include "sch.h"
#include "kicad/dwg.h"
#include "kicad/lib.h"
#include "kicad/sch.h"
/* ----- Rendering --------------------------------------------------------- */

View File

@ -1,5 +1,5 @@
/*
* sch.h - Parse Eeschema .sch file
* kicad/sch.h - Parse Eeschema .sch file
*
* Written 2016 by Werner Almesberger
* Copyright 2016 by Werner Almesberger
@ -11,15 +11,15 @@
*/
#ifndef SCH_H
#define SCH_H
#ifndef KICAD_SCH_H
#define KICAD_SCH_H
#include <stdbool.h>
#include "dwg.h"
#include "text.h"
#include "file/file.h"
#include "lib.h"
#include "kicad/lib.h"
enum sch_state {
@ -135,4 +135,4 @@ bool sch_parse(struct sch_ctx *ctx, struct file *file, const struct lib *lib,
void sch_init(struct sch_ctx *ctx, bool recurse);
void sch_free(struct sch_ctx *ctx);
#endif /* !SCH_H */
#endif /* !KICAD_SCH_H */

View File

@ -26,8 +26,8 @@
#include "diff.h"
#include "gfx.h"
#include "file/file.h"
#include "lib.h"
#include "sch.h"
#include "kicad/lib.h"
#include "kicad/sch.h"
#include "gui/fmt-pango.h"
#include "file/git-hist.h"
#include "gui/gui.h"