661ed410515150835be535b6a3563d784e878fe3 kate Thu Feb 9 16:42:34 2017 -0800 Add GO button to Configuration subsection (next to vis dropdown), as per request by B0b. refs #18556 diff --git src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c index 68738c3..f6d6402 100644 --- src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c +++ src/hg/hgGtexTrackSettings/hgGtexTrackSettings.c @@ -51,65 +51,76 @@ " \n" " \n" " \n"); } static void printBodyMap() { puts( " \n" " \n" " GTEx Body Map illustration not found\n" " \n"); puts("
Credit: jwestdesign
\n"); } +static void printGoButton() +{ +puts( +"
\n" +"
GO
\n" +" \n" +"
\n" +); +} + static void printVisSelect(struct trackDb *tdb) /* Track visibility dropdown */ { enum trackVisibility vis = tdb->visibility; vis = hTvFromString(cartUsualString(cart, tdb->track, hStringFromTv(vis))); boolean canPack = TRUE; hTvDropDownClassVisOnlyAndExtra(tdb->track, vis, canPack, "gbSelect normalText visDD", trackDbSetting(tdb, "onlyVisibility"), NULL); } static void printScoreFilter(struct cart *cart, char *track, struct trackDb *tdb) /* Filter on overall gene expression score */ { char buf[512]; puts("Limit to genes scored at or above:\n"); safef(buf, sizeof(buf), "%s.%s", tdb->track, SCORE_FILTER); int score = cartUsualInt(cart, buf, 0); int minScore = 0, maxScore = 1000; cgiMakeIntVarWithLimits(buf, score, "Minimum score", 0, minScore, maxScore); printf( " (range %d-%d)\n", minScore, maxScore); } static void printConfigPanel(struct trackDb *tdb) /* Controls for track configuration (except for tissues) */ { char *track = tdb->track; puts( " \n" "
\n" -"
Configuration
\n" -"
\n"); +"
Configuration
\n" +"
\n"); /* Track vis dropdown */ printVisSelect(tdb); +printGoButton(); puts( "
\n" "
\n"); /* GTEx-specific track controls, layout in 3 rows */ puts( " \n" "
\n" "
\n"); gtexGeneUiGeneLabel(cart, track, tdb); puts( "
\n" "
\n"); gtexGeneUiGeneModel(cart, track, tdb); puts(