Beispiel #1
0
void doMiddle(struct cart *cart)
/* Write body of web page. */
{
struct trackDb *tdbList = NULL;
char *organism = NULL;
char *db = NULL;
getDbAndGenome(cart, &db, &organism, NULL);
char *chrom = cartUsualString(cart, "c", hDefaultChrom(db));
measureTiming = isNotEmpty(cartOptionalString(cart, "measureTiming"));

// QUESTION: Do We need track list ???  trackHash ??? Can't we just get one track and no children
trackHash = trackHashMakeWithComposites(db,chrom,&tdbList,FALSE);

cartWebStart(cart, db, "Search for " FILE_SEARCH_WHAT " in the %s %s Assembly", 
             organism, hFreezeFromDb(db));

webIncludeResourceFile("HGStyle.css");
webIncludeResourceFile("jquery-ui.css");
webIncludeResourceFile("ui.dropdownchecklist.css");
jsIncludeFile("jquery.js", NULL);
jsIncludeFile("jquery-ui.js", NULL);
jsIncludeFile("ui.dropdownchecklist.js",NULL);
jsIncludeFile("utils.js",NULL);

// This line is needed to get the multi-selects initialized
jsIncludeFile("ddcl.js",NULL);
printf("<script type='text/javascript'>$(document).ready(function() "
       "{ findTracks.updateMdbHelp(0); });</script>\n");

doFileSearch(db,organism,cart,tdbList);


printf("<BR>\n");
webEnd();
}
Beispiel #2
0
/*=========================================================================
  slot handleSearchFromPath 
=========================================================================*/
void MainWindow::handleSearchFromPath (const QString &path) 
  {
  bool ok = false;
  QString text = QInputDialog::getText (this, tr("Search"),
    tr("Find files with name:"), QLineEdit::Normal, "", &ok);
  if (ok && !text.isEmpty())
    {
    QStringList dummy;
    KFileList *fileList = 
      openNewFileListTab (tr("Search"), tr("Filenames containing") 
        + " " + text + " " + tr("in") + " " + path, path, dummy);

    doFileSearch (path, text, fileList); 
    } 
  }