4a234f089be336a40604bf7002b3811dc3dad308
kent
  Mon Aug 9 14:58:47 2010 -0700
Adding a trackHash parameter to a bunch of metadata routines so that they could find the track associated with a table.  Fixing clipping bug in hgTracks.c for multiWig labels when in non-overlay mode due to a special case that seems to be obsolete (did fair bit of testing to make sure it's not used.)
diff --git src/hg/inc/hui.h src/hg/inc/hui.h
index cb41ec8..aef9cf7 100644
--- src/hg/inc/hui.h
+++ src/hg/inc/hui.h
@@ -875,7 +875,7 @@
 /* Make drop down of options. */
 
 void hCompositeUi(char *db, struct cart *cart, struct trackDb *tdb,
-		  char *primarySubtrack, char *fakeSubmit, char *formName);
+		  char *primarySubtrack, char *fakeSubmit, char *formName, struct hash *trackHash);
 /* UI for composite tracks: subtrack selection.  If primarySubtrack is
  * non-NULL, don't allow it to be cleared and only offer subtracks
  * that have the same type.  If fakeSubmit is non-NULL, add a hidden
@@ -893,7 +893,7 @@
    then label will be wrapped with the link to display it.  Return string is cloned. */
 
 boolean compositeMetadataToggle(char *db,struct trackDb *tdb,char *title,
-	boolean embeddedInText,boolean showLongLabel);
+        boolean embeddedInText,boolean showLongLabel, struct hash *trackHash);
 /* If metadata from metaTbl if it exists, create a link that will allow toggling it's display */
 
 boolean superTrackDropDown(struct cart *cart, struct trackDb *tdb,
@@ -1112,7 +1112,7 @@
    if 'column' is provided, and there are multiple filterBy columns, only the named column's clause is returned.
    The 'and' param and dyString in/out allows stringing multiple where clauses together
 */
-boolean makeDownloadsLink(char *database, struct trackDb *tdb);
+boolean makeDownloadsLink(char *database, struct trackDb *tdb, struct hash *trackHash);
 // Make a downloads link (if appropriate and then returns TRUE)
 
 boolean makeSchemaLink(char *db,struct trackDb *tdb,char *label);
@@ -1125,7 +1125,7 @@
 #endif//def BIG_UI_NAV_LINKS
 
 
-void extraUiLinks(char *db,struct trackDb *tdb);
+void extraUiLinks(char *db,struct trackDb *tdb, struct hash *trackHash);
 /* Show downloads, schema and metadata links where appropriate */
 
 boolean chainDbNormScoreAvailable(struct trackDb *tdb);