ae9de008e7786f3fccd9f52db6514540b1c995d5 kent Thu Mar 31 05:52:43 2011 -0700 Smoothing out the handling of the track->children pointer and track->subtracks pointer so that it works the same in hgTrackUi as elsewhere. The children pointers are set after pruning the track list for ones where the data table is not available. diff --git src/hg/inc/hui.h src/hg/inc/hui.h index c24fc89..dc3741a 100644 --- src/hg/inc/hui.h +++ src/hg/inc/hui.h @@ -1056,30 +1056,34 @@ /* Put up UI for filtering wgEnocde peaks based on score, Pval and Qval */ void genePredCfgUi(struct cart *cart, struct trackDb *tdb, char *name, char *title, boolean boxed); /* Put up genePred-specific controls */ void wigMafCfgUi(struct cart *cart, struct trackDb *tdb,char *name, char *title, boolean boxed, char *db); /* UI for maf/wiggle track */ void bamCfgUi(struct cart *cart, struct trackDb *tdb, char *name, char *title, boolean boxed); /* BAM: short-read-oriented alignment file format. */ boolean tdbSortPrioritiesFromCart(struct cart *cart, struct trackDb **tdbList); /* Updates the tdb->priority from cart then sorts the list anew. Returns TRUE if priorities obtained from cart */ +boolean tdbRefSortPrioritiesFromCart(struct cart *cart, struct slRef **tdbRefList); +/* Updates the tdb->priority from cart then sorts the list anew. + Returns TRUE if priorities obtained from cart */ + enum trackVisibility visCompositeViewDefault(struct trackDb *parentTdb,char *view); /* returns the default track visibility of particular view within a composite track */ boolean isNameAtCompositeLevel(struct trackDb *tdb,char *name); /* cfgUi controls are passed a prefix name that may be at the composite or at the subtrack level returns TRUE for composite level name */ boolean hSameTrackDbType(char *type1, char *type2); /* Compare type strings: require same string unless both are wig tracks. */ typedef struct _sortOrder { // Sort order is used for sorting trackDb entries (hgTrackDb) and setting up javascript sorting (hui.c) int count; char*sortOrder; // from cart (eg: CEL=+ FAC=- view=-) char*htmlId; // {tableName}.sortOrder