mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-22 14:50:38 +02:00
eeshow/gui/common.h (struct gui_sheet): add back link to history
This commit is contained in:
parent
4711107d7e
commit
b925268c90
@ -26,10 +26,12 @@
|
|||||||
|
|
||||||
|
|
||||||
struct gui_ctx;
|
struct gui_ctx;
|
||||||
|
struct gui_hist;
|
||||||
|
|
||||||
struct gui_sheet {
|
struct gui_sheet {
|
||||||
const struct sheet *sch;
|
const struct sheet *sch;
|
||||||
struct gui_ctx *ctx; /* back link */
|
struct gui_ctx *ctx; /* back link */
|
||||||
|
struct gui_hist *hist; /* back link */
|
||||||
struct cro_ctx *gfx_ctx;
|
struct cro_ctx *gfx_ctx;
|
||||||
|
|
||||||
int w, h; /* in eeschema coordinates */
|
int w, h; /* in eeschema coordinates */
|
||||||
|
@ -154,7 +154,7 @@ void mark_aois(struct gui_ctx *ctx, struct gui_sheet *sheet)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static struct gui_sheet *get_sheets(struct gui_ctx *ctx,
|
static struct gui_sheet *get_sheets(struct gui_ctx *ctx, struct gui_hist *hist,
|
||||||
const struct sheet *sheets)
|
const struct sheet *sheets)
|
||||||
{
|
{
|
||||||
const struct sheet *sheet;
|
const struct sheet *sheet;
|
||||||
@ -166,6 +166,7 @@ static struct gui_sheet *get_sheets(struct gui_ctx *ctx,
|
|||||||
new = alloc_type(struct gui_sheet);
|
new = alloc_type(struct gui_sheet);
|
||||||
new->sch = sheet;
|
new->sch = sheet;
|
||||||
new->ctx = ctx;
|
new->ctx = ctx;
|
||||||
|
new->hist = hist;
|
||||||
new->rendered = 0;
|
new->rendered = 0;
|
||||||
|
|
||||||
*next = new;
|
*next = new;
|
||||||
@ -324,7 +325,7 @@ static void add_hist(void *user, struct hist *h)
|
|||||||
hist->libs_open = 0;
|
hist->libs_open = 0;
|
||||||
hist->identical = 0;
|
hist->identical = 0;
|
||||||
sch = parse_files(hist, ahc->n_args, ahc->args, ahc->recurse, prev);
|
sch = parse_files(hist, ahc->n_args, ahc->args, ahc->recurse, prev);
|
||||||
hist->sheets = sch ? get_sheets(ctx, sch) : NULL;
|
hist->sheets = sch ? get_sheets(ctx, hist, sch) : NULL;
|
||||||
hist->age = age;
|
hist->age = age;
|
||||||
|
|
||||||
hist->next = NULL;
|
hist->next = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user