2eb4c6d91873ad7c8f68f8e2e419e3382d46a16f tdreszer Thu Oct 20 17:37:48 2011 -0700 Added file list caching to hgFileUi and extended the filterBox logic to include non-multiSelect options. Redmine 5527 for the fileBoxes. diff --git src/hg/inc/fileUi.h src/hg/inc/fileUi.h index 0f4d6e9..1a6432a 100644 --- src/hg/inc/fileUi.h +++ src/hg/inc/fileUi.h @@ -1,26 +1,29 @@ /* hui - human genome browser user interface controls that are shared * between more than one CGI. */ #ifndef FILEUI_H #define FILEUI_H #include "cart.h" #include "trackDb.h" #define DOWNLOADS_ONLY_TITLE "Downloadable Files" #define FILE_SORT_ORDER "fileSortOrder" +// Miscellaneous but useful defines +#define ENCODE_DCC_DOWNLOADS "encodeDCC" + struct fileDb // File in a list of downloadable files { struct fileDb *next; // single link list char *fileName; // File Name char *fileType; // File Type, taken directly from .* suffix, but with .gz removed unsigned long fileSize; // File size char *fileDate; // File Modified? date and time struct mdbObj *mdb; // The files are not trackDb entries but are found in the metaDb only char **sortFields; // Array of strings to sort on in sort Order boolean *reverse; // Direction of sort for array }; struct fileDb *fileDbGet(char *db, char *dir, char *subDir, char *fileName);