9825f518b3bf4d6ffd2d41c1bc9f4cc61d23c650 tdreszer Tue Apr 5 16:11:04 2011 -0700 Renamed lib file searchTracks.c and .h to search.c and .h to avoid conflict with hgTracks file searchTracks.c and to emphasize that this is common code to both track and file seartch. diff --git src/hg/inc/searchTracks.h src/hg/inc/searchTracks.h deleted file mode 100644 index 2236cb6..0000000 --- src/hg/inc/searchTracks.h +++ /dev/null @@ -1,49 +0,0 @@ -/* trackDb.h was originally generated by the autoSql program, which also - * generated trackDb.c and trackDb.sql. This header links the database and - * the RAM representation of objects. */ - -#ifndef SEARCHTRACKS_H -#define SEARCHTRACKS_H - -#include "common.h" -#include "cart.h" - -// UNCOMMENT TRACK_SEARCH to turn on 'Track Search' functionality -#define TRACK_SEARCH "hgt_tSearch" -#define TRACK_SEARCH_PAGER "hgt_tsPage" -#define TRACK_SEARCH_ADD_ROW "hgt_tsAddRow" -#define TRACK_SEARCH_DEL_ROW "hgt_tsDelRow" -#define TRACK_SEARCH_BUTTON "track search" -#define TRACK_SEARCH_HINT "Search for tracks in this genome assembly" - -#define ANYLABEL "Any" - -#define METADATA_NAME_PREFIX "hgt_mdbVar" -#define METADATA_VALUE_PREFIX "hgt_mdbVal" - -// Currently selected tab -enum searchTab { - simpleTab = 0, - advancedTab = 1, - filesTab = 2, -}; - -void getSearchTrixFile(char *database, char *buf, int len); -// Fill-in the name of the track search trix file - -boolean isSearchTracksSupported(char *database, struct cart *cart); -// Return TRUE if searchTracks is supported for this database and javascript is supported too - -struct slPair *fileFormatSearchWhiteList(void); -// Gets the whitelist of approved file formats that is allowed for search - -char *fileFormatSelectHtml(char *name, char *selected, char *extraHtml); -// returns an allocated string of HTML for the fileType select drop down - -struct slPair *mdbSelectPairs(struct cart *cart,enum searchTab selectedTab, struct slPair *mdbVars); -// Returns the current mdb vars and vals in the table of drop down selects - -char *mdbSelectsHtmlRows(struct sqlConnection *conn,struct slPair *mdbSelects, struct slPair *mdbVars,int cols,boolean fileSearch); -// generates the html for the table rows containing mdb var and val selects. Assume tableSearch unless fileSearch - -#endif /* SEARCHTRACKS_H */