a6d90ca7ebf3efec499da8d81d4f8fdfea5098fa
max
Wed Dec 17 09:31:35 2014 -0800
adding a bit of javascript to the wiggle drawing options that grey outthe min/max fields if auto-scaling is "on". Also move the auto-scaling
dropdown box up one line, so it's easier to see that a part below is
greyed out. refs #14561
diff --git src/hg/lib/hui.c src/hg/lib/hui.c
index 8ce9737..626f405 100644
--- src/hg/lib/hui.c
+++ src/hg/lib/hui.c
@@ -4603,30 +4603,53 @@
{
char *canDoCoverage = cfgOptionEnvDefault("HGDB_CAN_DO_COVERAGE",
CanDoCoverageConfVariable, "off");
if (differentString(canDoCoverage, "on"))
return;
printf("
Display data as a density graph: ");
char varName[64];
safef(varName, sizeof(varName), "%s.doWiggle", name);
boolean option = cartUsualBoolean(cart, varName, FALSE);
cgiMakeCheckBox(varName, option);
printf("
\n");
wigCfgUi(cart,tdb,name,title,TRUE);
}
+void wiggleScaleDropDownJavascript(char *name)
+/* print some js that deactivates the min/max range if autoscaling is activated */
+{
+printf("\n");
+}
+
void wigCfgUi(struct cart *cart, struct trackDb *tdb, char *name, char *title, boolean boxed)
/* UI for the wiggle track */
{
char *typeLine = NULL; /* to parse the trackDb type line */
char *words[8]; /* to parse the trackDb type line */
int wordCount = 0; /* to parse the trackDb type line */
char option[256];
double minY; /* from trackDb or cart */
double maxY; /* from trackDb or cart */
double tDbMinY; /* data range limits from trackDb type line */
double tDbMaxY; /* data range limits from trackDb type line */
int defaultHeight; /* pixels per item */
char *horizontalGrid = NULL; /* Grid lines, off by default */
char *transformFunc = NULL; /* function to transform data points */
char *alwaysZero = NULL; /* Always include 0 in range */
@@ -4690,49 +4713,50 @@
wiggleGraphDropDown(option, lineBar);
if (boxed)
{
printf("