void QG_ActionHandler::slotSnapOnEntity() { disableSnaps(); if (snapOnEntity!=NULL) { snapOnEntity->setChecked(true); } if (cadToolBarSnap!=NULL) { cadToolBarSnap->setSnapMode(RS2::SnapOnEntity); } setCurrentAction(RS2::ActionSnapOnEntity); }
void QG_ActionHandler::slotSnapIntersection() { disableSnaps(); if (snapIntersection!=NULL) { snapIntersection->setChecked(true); } if (cadToolBarSnap!=NULL) { cadToolBarSnap->setSnapMode(RS2::SnapIntersection); } setCurrentAction(RS2::ActionSnapIntersection); }
void QG_ActionHandler::slotSnapEndpoint() { disableSnaps(); if (snapEndpoint!=NULL) { snapEndpoint->setChecked(true); } if (cadToolBarSnap!=NULL) { cadToolBarSnap->setSnapMode(RS2::SnapEndpoint); } setCurrentAction(RS2::ActionSnapEndpoint); }
void QG_ActionHandler::slotSnapIntersection() { disableSnaps(); if (snapIntersection!=NULL) { snapIntersection->setOn(true); } #if QT_VERSION>=0x030000 if (cadToolBarSnap!=NULL) { cadToolBarSnap->setSnapMode(RS2::SnapIntersection); } #endif setCurrentAction(RS2::ActionSnapIntersection); }