int test_loc2(int argc, char** argv) { int j = 0; int i = 0; const char* str; DtMmdbInfoRequest* req ; switch ( argc ) { case 5: { i = DtMmdbOpenInfoLib(argv[2], argv[3], DtMmdbFalse); j = DtMmdbGetBookCaseByName(i, argv[3]); req = newDtMmdbInfoRequestWithPrimaryOid(j, argv[4]); showLocator(req); DtMmdbFreeInfoRequest(req); DtMmdbCloseInfoLib(i); break; } default: fprintf(stderr, "invalid arguments\n"); } fprintf(stderr, "infolib desc=%d\n", i); return 0; }
long GUISUMOViewParent::onCmdLocateShape(FXObject *sender,FXSelector,void*) { showLocator(GLO_SHAPE, GUIIconSubSys::getIcon(ICON_LOCATESHAPE), "Shape Chooser"); return 1; }
long GUISUMOViewParent::onCmdLocateAdd(FXObject *,FXSelector,void*) { showLocator(GLO_ADDITIONAL, GUIIconSubSys::getIcon(ICON_LOCATEADD), "Additional Objects Chooser"); return 1; }
long GUISUMOViewParent::onCmdLocateTLS(FXObject *,FXSelector,void*) { showLocator(GLO_TLLOGIC, GUIIconSubSys::getIcon(ICON_LOCATETLS), "Traffic Lights Chooser"); return 1; }
long GUISUMOViewParent::onCmdLocateVehicle(FXObject *,FXSelector,void*) { showLocator(GLO_VEHICLE, GUIIconSubSys::getIcon(ICON_LOCATEVEHICLE), "Vehicle Chooser"); return 1; }
long GUISUMOViewParent::onCmdLocateEdge(FXObject *,FXSelector,void*) { showLocator(GLO_EDGE, GUIIconSubSys::getIcon(ICON_LOCATEEDGE), "Edge Chooser"); return 1; }
long GUISUMOViewParent::onCmdLocateJunction(FXObject *,FXSelector,void*) { showLocator(GLO_JUNCTION, GUIIconSubSys::getIcon(ICON_LOCATEJUNCTION), "Junction Chooser"); return 1; }