1050415c25f26ac57a85f9d2c30f0ba63c1ec3c8 max Wed May 8 17:26:07 2013 -0700 last change broke hgGene links, temporarily taking it back diff --git src/hg/hgTracks/simpleTracks.c src/hg/hgTracks/simpleTracks.c index 98ae477..5b9d68b 100644 --- src/hg/hgTracks/simpleTracks.c +++ src/hg/hgTracks/simpleTracks.c @@ -3490,55 +3490,56 @@ int linkedFeaturesItemStart(struct track *tg, void *item) /* Return start chromosome coordinate of item. */ { struct linkedFeatures *lf = item; return lf->start; } int linkedFeaturesItemEnd(struct track *tg, void *item) /* Return end chromosome coordinate of item. */ { struct linkedFeatures *lf = item; return lf->end; } -static void linkedFeaturesMapItem(struct track *tg, struct hvGfx *hvg, void *item, - char *itemName, char *mapItemName, int start, int end, - int x, int y, int width, int height) -/* Draw the mouseOver (aka statusLine) text from the mouseOver field of lf - * Fallback to itemName if there is no mouseOver field. - * (derived from bedPlusLabelMapItem) */ -{ -// Don't bother if we are imageV2 and a dense child. -if (theImgBox && tg->limitedVis == tvDense && tdbIsCompositeChild(tg->tdb)) - return; -struct linkedFeatures *lf = item; -char *mouseOverText = (isEmpty(lf->mouseOver)) ? itemName: lf->mouseOver; -mapBoxHc(hvg, start, end, x, y, width, height, tg->track, mapItemName, mouseOverText); -} +//static void linkedFeaturesMapItem(struct track *tg, struct hvGfx *hvg, void *item, +// char *itemName, char *mapItemName, int start, int end, +// int x, int y, int width, int height) +///* Draw the mouseOver (aka statusLine) text from the mouseOver field of lf +// * Fallback to itemName if there is no mouseOver field. +// * (derived from bedPlusLabelMapItem) */ +//{ +//// Don't bother if we are imageV2 and a dense child. +//if (theImgBox && tg->limitedVis == tvDense && tdbIsCompositeChild(tg->tdb)) +// return; +// +//struct linkedFeatures *lf = item; +//char *mouseOverText = (isEmpty(lf->mouseOver)) ? itemName: lf->mouseOver; +//mapBoxHc(hvg, start, end, x, y, width, height, tg->track, mapItemName, mouseOverText); +//} void linkedFeaturesMethods(struct track *tg) /* Fill in track methods for linked features. */ { tg->freeItems = linkedFeaturesFreeItems; tg->drawItems = linkedFeaturesDraw; tg->drawItemAt = linkedFeaturesDrawAt; tg->itemName = linkedFeaturesName; tg->mapItemName = linkedFeaturesName; -tg->mapItem = linkedFeaturesMapItem; +//tg->mapItem = linkedFeaturesMapItem; tg->totalHeight = tgFixedTotalHeightNoOverflow; tg->itemHeight = tgFixedItemHeight; tg->itemStart = linkedFeaturesItemStart; tg->itemEnd = linkedFeaturesItemEnd; tg->itemNameColor = linkedFeaturesNameColor; tg->nextPrevExon = linkedFeaturesNextPrevItem; tg->nextPrevItem = linkedFeaturesLabelNextPrevItem; } int linkedFeaturesSeriesItemStart(struct track *tg, void *item) /* Return start chromosome coordinate of item. */ { struct linkedFeaturesSeries *lfs = item; return lfs->start; }