src/hg/inc/hgFind.h 1.21

1.21 2010/05/18 20:05:59 kent
Renaming carefulTrackOpenVis to hCarefulTrackUpenVis and making it global.
Index: src/hg/inc/hgFind.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/inc/hgFind.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -b -B -U 1000000 -r1.20 -r1.21
--- src/hg/inc/hgFind.h	3 Sep 2008 19:19:11 -0000	1.20
+++ src/hg/inc/hgFind.h	18 May 2010 20:05:59 -0000	1.21
@@ -1,78 +1,82 @@
 /* hgFind.h - Find things in human genome annotations. */
 
 #ifndef HGFIND_H
 #define HGFIND_H
 
 #ifndef CART_H
 #include "cart.h"
 #endif
 
 #ifndef HGFINDSPEC_H
 #include "hgFindSpec.h"
 #endif
 
 struct hgPositions *hgPositionsFind(char *db, char *query, char *extraCgi, 
 	char *hgAppName, struct cart *cart, boolean multiTerm);
 /* Return table of positions that match query or NULL if none such. */
 
 struct hgPositions *findGenomePos(char *db, char *spec, char **retChromName, int *retWinStart, int *retWinEnd, struct cart *cart);
 /* Search for positions in genome that match user query.   
  * Return an hgp if the query results in a unique position.  
  * Otherwise display list of positions, put # of positions in retWinStart,
  * and return NULL. */
 
 struct hgPositions *findGenomePosWeb(char *db, char *spec, char **retChromName, 
 	int *retWinStart, int *retWinEnd, struct cart *cart,
 	boolean useWeb, char *hgAppName);
 /* Search for positions in genome that match user query.   
  * Use the web library to print out HTML headers if necessary, and use 
  * hgAppName when forming URLs (instead of "hgTracks").  
  * Return an hgp if the query results in a unique position.  
  * Otherwise display list of positions, put # of positions in retWinStart,
  * and return NULL. */
 
 
 struct hgPositions 
 /* A bunch of positions in genome. */
     {
     struct hgPositions *next;	  /* Next in list. */
     char *query;		  /* Query string that led to positions. */
     char *database;               /* Name of database.  Not allocated here. */
     struct hgPosTable *tableList; /* List of tables. */
     int posCount;                 /* Number of positions in all tables. */
     struct hgPos *singlePos;      /* If resolves to a single position, reference to that here. */
     char *extraCgi;		  /* Extra info to embed in CGI requests to browser. */
     boolean useAlias;             /* Set if an alias is used */
     };
 
 struct hgPosTable
 /* A collection of position lists, one for each type of position. */
     {
     struct hgPosTable *next;	/* Next table in list. */
     char *name;			/* Name of table.  Not allocated here. */
     char *description;          /* Table description. No allocated here */
     struct hgPos *posList;      /* List of positions in this table. */
     void (*htmlStart)(struct hgPosTable *table, FILE *f);   /* Print preamble to positions. */
     void (*htmlOnePos)(struct hgPosTable *table, struct hgPos *pos, FILE *f); /* Print one position. */
     void (*htmlEnd)(struct hgPosTable *table, FILE *f);    /* Print end. */
     };
 
 struct hgPos
 /* A list of positions. */
      {
      struct hgPos *next;	/* Next in list. */
      char *chrom;		/* Chromosome.  Not allocated here. */
      int chromStart;		/* Start position in chromosome. */
      int chromEnd;		/* End position in chromosome. */
      char *name;		/* Name of position - one word. */
      char *description;		/* Position description - a sentence or so. */
      char *browserName;		/* name as in hgTracks tg->itemName(). */
      };
 
 
 void hgPositionsHelpHtml(char *organism, char *database);
 /* Display contents of dbDb.htmlPath for database, or print an HTML comment 
  * explaining what's missing. */
 
+char *hCarefulTrackOpenVis(char *db, char *trackName);
+/* If track is already in full mode, return full; otherwise, return
+ * hTrackOpenVis. */
+
 #endif /* HGFIND_H */