src/hg/hgTracks/config.c 1.88

1.88 2010/01/07 23:49:29 markd
added configuration option for the width of the label area
Index: src/hg/hgTracks/config.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/config.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -b -B -U 4 -r1.87 -r1.88
--- src/hg/hgTracks/config.c	8 Dec 2009 18:44:27 -0000	1.87
+++ src/hg/hgTracks/config.c	7 Jan 2010 23:49:29 -0000	1.88
@@ -328,14 +328,27 @@
 webStartWrapperDetailedNoArgs(cart, database, "", title->string, FALSE, FALSE, FALSE, FALSE);
 cartSaveSession(cart);
 
 hPrintf("<INPUT TYPE=HIDDEN NAME=\"hgTracksConfigPage\" VALUE=\"\">");
+/* do not want all the submit buttons named the same thing, this one is: */
+cgiMakeButton("topSubmit", "submit");
 
-hPrintf(" image width: ");
+// 3 column table
+hPrintf("<TABLE style=\"border:0px; \">\n");
+hPrintf("<TR><TD>image width:");
+hPrintf("<TD style=\"text-align: right\">");
 hIntVar("pix", tl.picWidth, 4);
-hPrintf(" text size: ");
+hPrintf("<TD>pixels</TR>");
+
+hPrintf("<TR><TD>label area width:");
+hPrintf("<TD style=\"text-align: right\">");
+hIntVar("hgt.labelWidth", leftLabelWidthChars, 2);
+hPrintf("<TD>characters<TD></TR>");
+
+hPrintf("<TR><TD>text size:");
+hPrintf("<TD style=\"text-align: right\">");
 textSizeDropDown();
-hPrintf("&nbsp;");
+hPrintf("<TD>");
 if (trackLayoutInclFontExtras())
     {
     char *defaultStyle = cartUsualString(cart, "fontType", "medium");
     cartMakeRadioButton(cart, "fontType", "medium", defaultStyle);
@@ -345,11 +358,9 @@
     cartMakeRadioButton(cart, "fontType", "bold", defaultStyle);
     hPrintf("&nbsp;bold&nbsp;");
     hPrintf("&nbsp;");
     }
-/* do not want all the submit buttons named the same thing, this one is: */
-cgiMakeButton("topSubmit", "submit");
-hPrintf("<P>");
+hPrintf("<TR><BR>");
 hTableStart();
 if (ideoTrack != NULL)
     {
     hPrintf("<TR><TD>");