46cacb52f48b67dbdbb131af561827f3f5357a20
braney
  Tue Aug 10 13:20:23 2021 -0700
add utility to make a cartEdit that supports movinb existing tracks to a superTrack .  Add a new cartEdit1 to move a bunch of tracks to three new supertracks

diff --git src/hg/inc/cart.h src/hg/inc/cart.h
index 60e72e6..dcd335c 100644
--- src/hg/inc/cart.h
+++ src/hg/inc/cart.h
@@ -656,17 +656,22 @@
 void cartTdbFetchMinMaxPixels(struct cart *theCart, struct trackDb *tdb,
                                 int defaultMin, int defaultMax, int defaultDefault,
                                 int *retMin, int *retMax, int *retDefault, int *retCurrent);
 /* Configure maximum track height for variable height tracks (e.g. wiggle, barchart)
  *      Initial height and limits may be defined in trackDb with the maxHeightPixels string,
  *      Or user requested limits are defined in the cart. */
 
 unsigned cartGetVersion(struct cart *cart);
 /* Get the current version of the cart, which is stored in the variable "cartVersion" */
 
 void cartSetVersion(struct cart *cart, unsigned version);
 /* Set the current version of the cart, which is stored in the variable "cartVersion" */
 
 void cartRewrite(struct cart *cart, unsigned trackDbCartVersion, unsigned cartVersion);
 /* Rewrite the cart to update it to expectations of trackDb. */
+
+void cartTurnOnSuper(struct cart *cart, char **trackNames, unsigned numTracks, char *superTrackName);
+/* Turn on a supertrack if any of the subtracks are not hidden.  ASSUMES ALL TRACKS ARE HIDDEN
+ * by default.
+ */
 #endif /* CART_H */