void MorphObject::EndEditParams( IObjParam *ip, ULONG flags,Animatable *next) { //ip->DeleteMode(pickMode); //delete pickMode; //pickMode = NULL; ip->ClearPickMode(); editOb = NULL; creating = FALSE; addTargMethod = AddTargMethod(); if (flags&END_EDIT_REMOVEUI) { ip->UnRegisterDlgWnd(hParams1); ip->DeleteRollupPage(hParams1); hParams1 = NULL; ip->UnRegisterDlgWnd(hParams2); ip->DeleteRollupPage(hParams2); hParams2 = NULL; } else { DLSetWindowLongPtr(hParams1, NULL); DLSetWindowLongPtr(hParams2, NULL); } ip = NULL; }
void BombObject::EndEditParams(IObjParam *ip,ULONG flags,Animatable *next) { if (flags&END_EDIT_REMOVEUI) { ip->DeleteRollupPage(hParam); ip->DeleteRollupPage(hSot); hParam = NULL; hSot = NULL; } else { DLSetWindowLongPtr(hParam, 0); } if (GetFalloffOn(ip->GetTime())) { NotifyDependents(FOREVER,0,REFMSG_CHANGE); ip->RedrawViews(ip->GetTime()); } this->ip = NULL; }
void PinObject::EndEditParams(IObjParam *ip,ULONG flags,Animatable *next) { SimpleWSMObject::EndEditParams(ip,flags,next); this->ip = NULL; if (flags&END_EDIT_REMOVEUI ) { DestroyCPParamMap(pmapParam); ip->DeleteRollupPage(hSot); pmapParam = NULL; } }
void ForceObject::EndEditParams(IObjParam *ip,ULONG flags,Animatable *next) { SimpleWSMObject::EndEditParams(ip,flags,next); this->ip = NULL; if (flags & END_EDIT_REMOVEUI ) { DestroyCPParamMap(pmapParam); ip->DeleteRollupPage(hSot); pmapParam = NULL; } else { pmapParam->SetUserDlgProc(nullptr); pmapParam->SetParamBlock(nullptr); } }
void WindObject::EndEditParams( IObjParam *ip, ULONG flags,Animatable *next) { SimpleWSMObject::EndEditParams(ip,flags,next); this->ip = NULL; windDesc.EndEditParams(ip, this, flags, next); if (flags&END_EDIT_REMOVEUI ) { if (hSot) // DestroyCPParamMap(pmapParam); { ip->DeleteRollupPage(hSot); hSot = NULL; } // pmapParam = NULL; } }
void SWrapObject::EndEditParams( IObjParam *ip, ULONG flags,Animatable *next) { // SimpleWSMObject::EndEditParams(ip,flags,next); this->ip = NULL; if (flags&END_EDIT_REMOVEUI ) { // russom - 12/04/01 // Added NULL ptr detection - used for NO_CREATE_TASK if( pmapParam ) { DestroyCPParamMap(pmapParam); pmapParam = NULL; } if( hSot ) { ip->DeleteRollupPage(hSot); } } ip->ClearPickMode(); ip= NULL; creating = FALSE; }
void EditFaceDataMod::EndEditParams (IObjParam *ip,ULONG flags,Animatable *next) { if (flags&END_EDIT_REMOVEUI ) { if (hParams) { ip->DeleteRollupPage(hParams); hParams = NULL; } } if (selectMode) { ip->DeleteMode(selectMode); delete selectMode; } selectMode = NULL; this->ip = NULL; editMod = NULL; TimeValue t = ip->GetTime(); NotifyDependents(Interval(t,t), PART_ALL, REFMSG_END_EDIT); NotifyDependents(Interval(t,t), PART_ALL, REFMSG_MOD_DISPLAY_OFF); ClearAFlag(A_MOD_BEING_EDITED); }
void OrientConstRotation::EndEditParams( IObjParam *ip, ULONG flags,Animatable *next ) { if(editCont!=NULL) { editCont = NULL; IParamMap2* pmap = pblock->GetMap(); if (pmap != NULL) { if (next && next->ClassID() == ClassID() && ((OrientConstRotation*)next)->pblock&&((OrientConstRotation*)next)->GetLocked()==false) { pmap->SetParamBlock(((OrientConstRotation*)next)->pblock); ip->ClearPickMode(); } else orientCD.EndEditParams(ip, this, flags | END_EDIT_REMOVEUI, next); } else { int index = aprops.FindProperty(PROPID_INTERPUI); if (index>=0) { InterpCtrlUI *ui = (InterpCtrlUI*)aprops[index]; if (ui->hParams) { ip->UnRegisterDlgWnd(ui->hParams); ip->DeleteRollupPage(ui->hParams); } index = aprops.FindProperty(PROPID_INTERPUI); if (index>=0) { delete aprops[index]; aprops.Delete(index,1); } } } ip->UnRegisterTimeChangeCallback(&orientConstTimeChangeCallback); ip->ClearPickMode(); // need this, otherwise will crash on undo, while pickmode is active. this->ip = NULL; hWnd = NULL; } }