bf9606e4e09c5d48048ca399ba2cc2400d140f79
max
Wed Nov 30 21:54:20 2016 -0800
adding note for keyboard shortcuts to hgTracks and documenting new zoom
buttons, refs #18367
diff --git src/hg/hgTracks/hgTracks.c src/hg/hgTracks/hgTracks.c
index 863c293..0abdb0a 100644
--- src/hg/hgTracks/hgTracks.c
+++ src/hg/hgTracks/hgTracks.c
@@ -7918,30 +7918,31 @@
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("");
hPrintf("
| \n");
#endif//ndef USE_NAVIGATION_LINKS
hPrintf(""); // allow this text to wrap
hWrites("Click on a feature for details. ");
hWrites("Click or drag in the base position track to zoom in. ");
hWrites("Click 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. ");
hPrintf(" | ");
#ifndef USE_NAVIGATION_LINKS
hPrintf(" | \n");
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(" | ");
#endif//ndef USE_NAVIGATION_LINKS
hPrintf("\n");
/* Display bottom control panel. */
@@ -9458,31 +9459,37 @@
hPrintf(" left one screen | J | default order | d then o |
\n");
hPrintf(" right 10% | ctrl+l | hide all | h then a |
\n"); // percent sign
hPrintf(" right 1/2 screen | l | custom tracks | c then t |
\n");
hPrintf(" right one screen | L | track hubs | t then h |
\n");
hPrintf(" zoom in 1.5x | ctrl+i | configure | c then f |
\n");
hPrintf(" zoom in 3x | i | reverse | r then v |
\n");
hPrintf(" zoom in 10x | I | resize | r then s |
\n");
hPrintf(" zoom in base level | b | refresh | r then f |
\n");
hPrintf(" zoom out 1.5x | ctrl+k | jump to position box | / |
\n");
hPrintf(" zoom out 3x | k | ");
if (gotExtTools)
hPrintf("send to external tool | s then t | ");
hPrintf("
\n");
hPrintf(" zoom out 10x | K | exon view | e then v |
\n");
hPrintf(" zoom out 100x | 0 | default view | d then v |
\n");
-hPrintf(" | | view DNA | v then d |
\n");
+hPrintf(" zoom to ... | | view DNA | v then d |
\n");
+hPrintf(" 10bp (1 zero) | 1 | | |
\n");
+hPrintf(" 100bp (2 zeroes) | 2 | | |
\n");
+hPrintf(" 1000bp (3 zeroes) | 3 | | |
\n");
+hPrintf(" 50kbp (4 zeroes) | 4 | | |
\n");
+hPrintf(" 100kbp (5 zoroes) | 5 | | |
\n");
+hPrintf(" 1Mbp (6 zeroes) | 6 | | |
\n");
hPrintf("\n");
hPrintf("
");
hPrintf("\n");
}
void doMiddle(struct cart *theCart)
/* Print the body of an html file. */
{
cart = theCart;
measureTiming = hPrintStatus() && isNotEmpty(cartOptionalString(cart, "measureTiming"));
if (measureTiming)
measureTime("Startup");
hgBotDelay();
if (measureTiming)