d191a06ac8b6ff4318ca67c8e3947a0e9694e81f max Fri Jun 21 05:07:05 2024 -0700 removing the dink left right buttons under image, but adding a configuration option to get them back, refs #26325 diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c index a4b65f3..8f45298 100644 --- src/hg/hgTracks/hgTracks.c +++ src/hg/hgTracks/hgTracks.c @@ -9363,66 +9363,55 @@ { // bail out b/c we are done if (measureTiming) { printTrackTiming(); } return; } if (!hideControls) { struct controlGrid *cg = NULL; /* note a trick of WIDTH=27 going on here. The 6,15,6 widths following * go along with this trick */ + if (cartUsualBoolean(cart, "showDinkButtons", FALSE)) + { hPrintf("\n", tl.picWidth, 27); -#ifndef USE_NAVIGATION_LINKS + hPrintf(""); hPrintf("\n"); -#endif//ndef USE_NAVIGATION_LINKS - hPrintf(""); -#ifndef USE_NAVIGATION_LINKS - hPrintf("\n"); hPrintf(""); -#endif//ndef USE_NAVIGATION_LINKS hPrintf("
"); hPrintf("Move start
"); hButtonWithOnClick("hgt.dinkLL", " < ", "Move start position to the left", "return imageV2.navigateButtonClick(this);"); hTextVar("dinkL", cartUsualString(cart, "dinkL", "2.0"), 3); hButtonWithOnClick("hgt.dinkLR", " > ", "Move start position to the right", "return imageV2.navigateButtonClick(this);"); hPrintf("
 "); // allow this text to wrap - hWrites("Click on a feature for details. "); - hWrites("Shift+click+drag to zoom in. "); - hWrites("Click grey side bars for track options. "); - hWrites("Drag side bars or labels up or down to reorder tracks. "); - hWrites("Drag tracks left or right to new position. "); - hWrites("Press \"?\" for keyboard shortcuts. "); - hWrites("Use drop-down controls below and press refresh to alter tracks displayed. "); - hPrintf(" "); hPrintf("Move end
"); hButtonWithOnClick("hgt.dinkRL", " < ", "Move end position to the left", "return imageV2.navigateButtonClick(this);"); hTextVar("dinkR", cartUsualString(cart, "dinkR", "2.0"), 3); hButtonWithOnClick("hgt.dinkRR", " > ", "Move end position to the right", "return imageV2.navigateButtonClick(this);"); hPrintf("
\n"); - + } if( chromosomeColorsMade ) { hPrintf("Chromosome Color Key:
"); hPrintf("
\n"); } if (doPliColors) { hPrintf("gnomAD Loss-of-Function Constraint (LOEUF) Color Key:
"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); @@ -9445,30 +9434,34 @@ hButtonWithOnClick("hgt.collapseGroups", "Collapse all", "Collapse all track groups", "return vis.expandAllGroups(false)"); hPrintf(""); hPrintf("\n"); hPrintf(""); + // since this is all a huge table (which it shouldn't be), the only way to add whitespace between two rows is to add an empty row + // since padding and margin are not allowed on table rows. (One day, we will remove this table) + hPrintf("\n"); + cg = startControlGrid(MAX_CONTROL_COLUMNS, "left"); struct hash *superHash = hashNew(8); for (group = groupList; group != NULL; group = group->next) { if ((group->trackList == NULL) && (group->errMessage == NULL)) continue; struct trackRef *tr; /* check if group section should be displayed */ char *otherState; char *indicator; char *indicatorImg; boolean isOpen = !isCollapsedGroup(group); collapseGroupGoodies(isOpen, TRUE, &indicatorImg,
< 0.1< 0.2< 0.3< 0.4< 0.5\n", MAX_CONTROL_COLUMNS - 2); printShortcutButtons(cart, hasCustomTracks, revCmplDisp, multiRegionButtonTop); hPrintf(""); hButtonWithOnClick("hgt.expandGroups", "Expand all", "Expand all track groups", "return vis.expandAllGroups(true)"); hPrintf("