3d00d8348e1cb6eafec60cc3d7321f6de7e669be braney Mon Dec 12 13:09:49 2022 -0800 be smarter about showing the user error messages diff --git src/hg/hgTracks/bigWarn.c src/hg/hgTracks/bigWarn.c index 24e7f06..0f7e9fa 100644 --- src/hg/hgTracks/bigWarn.c +++ src/hg/hgTracks/bigWarn.c @@ -120,15 +120,29 @@ if (tg->height == 0) // since this gets called more that once, but we should calculate the same thing each time, don't re-do it. { tg->heightPer = tl.fontHeight; /* Height per item line minus border. */ tg->lineHeight = tg->heightPer+4; /* Height per item line including border. */ /* count lines in reformated warning msg */ char *errMsg = bigWarnReformat(tg->networkErrMsg); int n = bigWarnNumLines(errMsg); freeMem(errMsg); tg->height = tg->lineHeight * n; /* Total height - must be set. */ } return tg->height; } + +void bigWarnLoad(struct track *tg) +/* At the moment we do nothing at load time. */ +{ +} + +void bigWarnMethods(struct track *track) +/* Set up bigWarn methods. */ +{ +track->networkErrMsg = track->tdb->errMessage; +track->drawItems = bigDrawWarning; +track->loadItems = bigWarnLoad; +track->totalHeight = bigWarnTotalHeight; +}