Ejemplo n.º 1
0
void QG_ActionHandler::slotSnapOnEntity() {
    disableSnaps();
    if (snapOnEntity!=NULL) {
        snapOnEntity->setChecked(true);
    }
    if (cadToolBarSnap!=NULL) {
        cadToolBarSnap->setSnapMode(RS2::SnapOnEntity);
    }
    setCurrentAction(RS2::ActionSnapOnEntity);
}
Ejemplo n.º 2
0
void QG_ActionHandler::slotSnapIntersection() {
    disableSnaps();
    if (snapIntersection!=NULL) {
        snapIntersection->setChecked(true);
    }
    if (cadToolBarSnap!=NULL) {
        cadToolBarSnap->setSnapMode(RS2::SnapIntersection);
    }
    setCurrentAction(RS2::ActionSnapIntersection);
}
Ejemplo n.º 3
0
void QG_ActionHandler::slotSnapEndpoint() {
    disableSnaps();
    if (snapEndpoint!=NULL) {
        snapEndpoint->setChecked(true);
    }
    if (cadToolBarSnap!=NULL) {
        cadToolBarSnap->setSnapMode(RS2::SnapEndpoint);
    }
    setCurrentAction(RS2::ActionSnapEndpoint);
}
Ejemplo n.º 4
0
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);
}