src/hg/inc/hui.h 1.152

1.152 2010/05/17 02:28:45 kent
implementing compositeGroupLabel and compositeGroupId functions, and exposing existing static function as compositeLabelWithVocabLink
Index: src/hg/inc/hui.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/inc/hui.h,v
retrieving revision 1.151
retrieving revision 1.152
diff -b -B -U 4 -r1.151 -r1.152
--- src/hg/inc/hui.h	13 May 2010 21:43:21 -0000	1.151
+++ src/hg/inc/hui.h	17 May 2010 02:28:45 -0000	1.152
@@ -880,8 +880,19 @@
  * 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
  * var with that name so it looks like it was pressed. */
 
+char *compositeGroupLabel(struct trackDb *childTdb, char *group, char *id);
+/* Given ID from group, return corresponding label,  looking through parent's subGroupN's */
+
+char *compositeGroupId(struct trackDb *tdb, char *group, char *id);
+/* Given label, return id,  looking through parent's subGroupN's */
+
+char *compositeLabelWithVocabLink(char *db,struct trackDb *parentTdb, struct trackDb *childTdb, 
+	char *vocabType, char *label);
+/* If the parentTdb has a controlledVocabulary setting and the vocabType is found,
+   then label will be wrapped with the link to display it.  Return string is cloned. */
+
 boolean superTrackDropDown(struct cart *cart, struct trackDb *tdb,
                                 int visibleChild);
 /* Displays hide/show dropdown for supertrack.
  * Set visibleChild to indicate whether 'show' should be grayed