void dispatchLocation() /* When this is called no output has been written at all. We * look at command variables in cart and figure out if we just * are going write an HTTP location line, which happens when we * want to invoke say the genome browser or gene sorter without * another intermediate page. If we need to do more than that * then we call hggDoUsualHttp. */ { struct sqlConnection *conn = NULL; getDbAndGenome(cart, &database, &genome, oldVars); setUdcCacheDir(); cartSetString(cart, "db", database); /* Some custom tracks code needs this */ withLabels = cartUsualBoolean(cart, hggLabels, TRUE); conn = hAllocConn(database); getGenoGraphs(conn); /* Handle cases that just want a HTTP Location line: */ if (cartVarExists(cart, hggClickX)) { clickOnImage(conn); return; } hFreeConn(&conn); /* For other cases we want to print out some of the usual HTTP * lines including content-type */ hggDoUsualHttp(); }
bool QtImgBrowser::qt_invoke( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->slotOffset() ) { case 0: load((vector<QImage>&)*((vector<QImage>*)static_QUType_ptr.get(_o+1))); break; case 1: load((vector<QImage>&)*((vector<QImage>*)static_QUType_ptr.get(_o+1)),(bool)static_QUType_bool.get(_o+2)); break; case 2: load((vector<QImage>&)*((vector<QImage>*)static_QUType_ptr.get(_o+1)),(vector<OpGrayImage>&)*((vector<OpGrayImage>*)static_QUType_ptr.get(_o+2))); break; case 3: load((vector<QImage>&)*((vector<QImage>*)static_QUType_ptr.get(_o+1)),(vector<OpGrayImage>&)*((vector<OpGrayImage>*)static_QUType_ptr.get(_o+2)),(bool)static_QUType_bool.get(_o+3)); break; case 4: display((int)static_QUType_int.get(_o+1)); break; case 5: clickOnImage((int)static_QUType_int.get(_o+1),(int)static_QUType_int.get(_o+2)); break; default: return QWidget::qt_invoke( _id, _o ); } return TRUE; }