a44421a79fb36cc2036fe116b97ea3bc9590cd0c braney Fri Dec 2 09:34:39 2011 -0800 removed rcsid (#295) diff --git src/hg/hgGenome/configure.c src/hg/hgGenome/configure.c index 497e0d5..92f24df 100644 --- src/hg/hgGenome/configure.c +++ src/hg/hgGenome/configure.c @@ -1,155 +1,154 @@ #include "common.h" #include "hash.h" #include "jksql.h" #include "hCommon.h" #include "cart.h" #include "cheapcgi.h" #include "chromGraph.h" #include "web.h" #include "hPrint.h" #include "hui.h" #include "hgGenome.h" -static char const rcsid[] = "$Id: configure.c,v 1.19 2008/09/03 19:18:54 markd Exp $"; void makeNumMenu(char *varName, int minVal, int maxVal, int defaultVal) /* Make a drop down menu with a limited number of numerical choices. */ { int choiceCount = maxVal - minVal + 1; int i; printf("\n"); } char *chromLayouts[] = { layTwoPerLine, layOnePerLine, layAllOneLine, }; void configurePage() /* Put up configuration page. */ { cartWebStart(cart, database, "Configure Genome Graphs"); hPrintf("
\n"); cartSaveSession(cart); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("\n"); hPrintf("
\n"); hPrintf("image width: "); cgiMakeIntVar(hggImageWidth, cartUsualInt(cart, hggImageWidth, hgDefaultPixWidth), 4); hPrintf("\n"); hPrintf("graph height: "); cgiMakeIntVar(hggGraphHeight, graphHeight(), 3); hPrintf("\n"); hPrintf(" graphs per line: "); makeNumMenu(hggGraphsPerLine, minGraphsPerLine, maxGraphsPerLine, graphsPerLine()); hPrintf("\n"); hPrintf(" lines of graphs: "); makeNumMenu(hggLinesOfGraphs, minLinesOfGraphs, maxLinesOfGraphs, linesOfGraphs()); hPrintf("
\n"); hPrintf("
\n"); hPrintf("chromosome layout: "); cgiMakeDropList(hggChromLayout, chromLayouts, ArraySize(chromLayouts), chromLayout()); hPrintf("
\n"); hPrintf("
\n"); hPrintf("numerical labels: "); cartMakeCheckBox(cart, hggLabels, TRUE); hPrintf(" Label axis on left for first graph and on right for last graph"); hPrintf("
\n"); hPrintf("
\n"); hPrintf("highlight missing: "); cartMakeCheckBox(cart, hggYellowMissing, FALSE); hPrintf(" Highlight background in yellow/gray if there is missing data in first graph"); hPrintf("
\n"); hPrintf("
\n"); hPrintf("region padding: "); cgiMakeIntVar(hggRegionPad, regionPad(), 6); hPrintf(" Number of bases to add to either side of regions over threshold"); hPrintf("
\n"); hPrintf("
\n"); cgiMakeButton("submit", "submit"); hPrintf("
\n"); hPrintf("\n"); hPrintf("
\n"); webNewSection("Configure Graphs"); hPrintf("Click on the hyperlink by the graph name to configure it."); hTableStart(); hPrintf("name"); hPrintf("description"); struct slRef *ref; for (ref = ggList; ref != NULL; ref = ref->next) { struct genoGraph *gg = ref->val; /* Only show custom graphs, stand-alone DB graphs, and composite */ /* graphs. Don't show subGraphs part of a composite. */ if (gg->isSubGraph == FALSE) { char *tmp = cgiEncode(gg->name); hPrintf("", cartSidUrlString(cart), hggConfigureOne, tmp); freeMem(tmp); hPrintf("%s", gg->shortLabel); hPrintf("%s\n", gg->longLabel); } } hTableEnd(); cartWebEnd(); } void configureOnePage() /* Put up configuration for one graph. */ { /* Figure out which graph we're configuring. */ char *graphName = cartString(cart, "g"); struct genoGraph *gg = hashFindVal(ggHash, graphName); if (gg == NULL) { /* Warn/return rather than abort if have problems, so that * cartRemovePrefix(hggDo) is executed to keep us from error * loop forever... */ warn("Graph %s not found", graphName); return; } /* Put up web page with controls */ cartWebStart(cart, database, "Configure %s", gg->shortLabel); hPrintf("
\n"); cartSaveSession(cart); cgiMakeHiddenVar(hggConfigure, "on"); struct chromGraphSettings *cgs = gg->settings; char varName[chromGraphVarNameMaxSize]; chromGraphVarName(gg->name, "minVal", varName); hPrintf("display min value: "); cartMakeIntVar(cart, varName, cgs->minVal, 5); chromGraphVarName(gg->name, "maxVal", varName); hPrintf(" max value: "); cartMakeIntVar(cart, varName, cgs->maxVal, 5); hPrintf("
\n"); hPrintf("draw connecting lines between markers separated by up to "); chromGraphVarName(gg->name, "maxGapToFill", varName); cartMakeIntVar(cart, varName, cgs->maxGapToFill, 8); hPrintf(" bases."); hPrintf("
\n"); cgiMakeButton("submit", "submit"); hPrintf("
\n"); cartWebEnd(); }