/dports/cad/librecad/LibreCAD-2.2.0-rc2/librecad/src/lib/modification/ |
H A D | rs_selection.cpp | 48 this->graphicView = graphicView; in RS_Selection() 78 if (graphicView) { in selectAll() 92 if (graphicView) { in selectAll() 94 graphicView->redraw(); in selectAll() 104 if (graphicView) { in invertSelection() 117 if (graphicView) { in invertSelection() 119 graphicView->redraw(); in invertSelection() 137 if (graphicView) { in selectWindow() 138 graphicView->redraw(); in selectWindow() 229 if (graphicView) { in selectContour() [all …]
|
/dports/graphics/cenon/Cenon/graphicsUndo.subproj/ |
H A D | GridChange.m | 12 graphicView = aGraphicView; 24 oldSpacing = [graphicView gridSpacing]; 25 oldGray = [graphicView gridGray]; 26 oldVisible = [graphicView gridIsVisible]; 27 oldEnabled = [graphicView gridIsEnabled]; 32 newSpacing = [graphicView gridSpacing]; 33 newGray = [graphicView gridGray]; 39 [graphicView setGridVisible:oldVisible]; 40 [graphicView setGridEnabled:oldEnabled]; 49 [graphicView setGridVisible:newVisible]; [all …]
|
H A D | SplitGraphicsChange.m | 39 graphicView = aGraphicView; 65 NSArray *slayList = [graphicView slayList]; 130 [graphicView removeGraphic:nextGroup]; 142 [graphicView getSelection]; 144 [graphicView cache:affectedBounds]; 145 [[graphicView window] flushWindow]; 154 NSArray *layerList = [graphicView layerList]; 168 [graphicView removeGraphic:group]; // do everything 174 [graphicView getSelection]; 175 [graphicView cache:affectedBounds]; [all …]
|
H A D | UngroupGraphicsChange.m | 39 graphicView = aGraphicView; 75 NSArray *slayList = [graphicView slayList]; 109 NSArray *layerList = [graphicView layerList]; 121 [graphicView removeGraphic:graphic]; 126 [graphicView getSelection]; 128 [graphicView cache:affectedBounds]; 129 [[graphicView window] flushWindow]; 152 [graphicView removeGraphic:group]; 158 [graphicView getSelection]; 159 [graphicView cache:affectedBounds]; [all …]
|
/dports/cad/librecad/LibreCAD-2.2.0-rc2/librecad/src/actions/ |
H A D | rs_actionpolylinetrim.cpp | 41 RS_GraphicView& graphicView) in RS_ActionPolylineTrim() argument 43 container, graphicView) { in RS_ActionPolylineTrim() 61 graphicView->drawEntity(delEntity); in trigger() 63 RS_Modification m(*container, graphicView); in trigger() 73 graphicView->redraw(); in trigger() 113 graphicView->drawEntity(delEntity); in mouseReleaseEvent() 116 graphicView->redraw(); in mouseReleaseEvent() 134 graphicView->toGraphY(e->y())), &dist, RS2::ResolveNone); in mouseReleaseEvent() 168 graphicView->drawEntity(delEntity); in mouseReleaseEvent() 170 graphicView->redraw(); in mouseReleaseEvent() [all …]
|
H A D | rs_actionprintpreview.cpp | 51 container, graphicView) in RS_ActionPrintPreview() 250 graphicView->zoomPage(); in center() 251 graphicView->redraw(); in center() 275 graphicView->zoomPage(); in fit() 276 graphicView->redraw(); in fit() 286 graphicView->redraw(); in setScale() 304 graphicView->setLineWidthScaling(state); in setLineWidthScaling() 305 graphicView->redraw(); in setLineWidthScaling() 316 graphicView->redraw(); in setBlackWhite() 358 graphicView->zoomPage(); in calcPagesNum() [all …]
|
H A D | rs_actiondrawlineorthtan.cpp | 46 RS_GraphicView& graphicView) in RS_ActionDrawLineOrthTan() argument 69 graphicView->redraw(RS2::RedrawDrawing); in trigger() 83 graphicView->redraw(RS2::RedrawDrawing); in trigger() 94 RS_Vector mouse(graphicView->toGraphX(e->x()), in mouseMoveEvent() 95 graphicView->toGraphY(e->y())); in mouseMoveEvent() 109 graphicView->redraw(RS2::RedrawDrawing); in mouseMoveEvent() 131 graphicView->drawEntity(p); in clearLines() 157 graphicView->drawEntity(normal); in mouseReleaseEvent() 161 graphicView->drawEntity(normal); in mouseReleaseEvent() 202 graphicView->setMouseCursor(RS2::ArrowCursor); in updateMouseCursor() [all …]
|
H A D | rs_actiondrawlinetangent1.cpp | 41 RS_GraphicView& graphicView) in RS_ActionDrawLineTangent1() argument 64 graphicView->drawEntity(circle); in trigger() 78 graphicView->redraw(RS2::RedrawDrawing); in trigger() 94 RS_Vector mouse(graphicView->toGraphX(e->x()), in mouseMoveEvent() 95 graphicView->toGraphY(e->y())); in mouseMoveEvent() 108 graphicView->drawEntity(en); in mouseMoveEvent() 112 graphicView->drawEntity(en); in mouseMoveEvent() 144 graphicView->drawEntity(circle); in mouseReleaseEvent() 169 graphicView->moveRelativeZero(*point); in coordinateEvent() 199 graphicView->setMouseCursor(RS2::CadCursor); in updateMouseCursor() [all …]
|
H A D | rs_actionpolylinedelbetween.cpp | 45 RS_GraphicView& graphicView) in RS_ActionPolylineDelBetween() argument 47 container, graphicView) in RS_ActionPolylineDelBetween() 72 graphicView->drawEntity(delEntity); in trigger() 74 RS_Modification m(*container, graphicView); in trigger() 84 graphicView->redraw(); in trigger() 127 double dist = graphicView->toGraphDX(snapRange)*0.9; in mouseReleaseEvent() 133 graphicView->drawEntity(delEntity); in mouseReleaseEvent() 136 graphicView->redraw(); in mouseReleaseEvent() 176 graphicView->drawEntity(delEntity); in mouseReleaseEvent() 178 graphicView->redraw(); in mouseReleaseEvent() [all …]
|
H A D | rs_actionmodifytrim.cpp | 47 RS_GraphicView& graphicView, bool both) in RS_ActionModifyTrim() argument 49 container, graphicView) in RS_ActionModifyTrim() 81 RS_Modification m(*container, graphicView); in trigger() 89 graphicView->drawEntity(limitEntity); in trigger() 104 RS_Vector mouse = graphicView->toGraph(e->x(), e->y()); in mouseMoveEvent() 130 RS_Vector mouse = graphicView->toGraph(e->x(), e->y()); in mouseReleaseEvent() 139 graphicView->drawEntity(limitEntity); in mouseReleaseEvent() 159 graphicView->drawEntity(limitEntity); in mouseReleaseEvent() 202 graphicView->setMouseCursor(RS2::SelectCursor); in updateMouseCursor() 206 if (graphicView != nullptr && graphicView->isCleanUp()==false){ in unhighlightLimitingEntity() [all …]
|
H A D | rs_actionpolylineadd.cpp | 38 RS_GraphicView& graphicView) in RS_ActionPolylineAdd() argument 40 container, graphicView) in RS_ActionPolylineAdd() 65 graphicView->drawEntity(addEntity); in trigger() 67 RS_Modification m(*container, graphicView); in trigger() 78 graphicView->redraw(RS2::RedrawDrawing); in trigger() 115 graphicView->drawEntity(addEntity); in mouseReleaseEvent() 118 graphicView->redraw(RS2::RedrawDrawing); in mouseReleaseEvent() 132 double dist = graphicView->toGraphDX(snapRange)*0.9; in mouseReleaseEvent() 151 graphicView->drawEntity(addEntity); in mouseReleaseEvent() 153 graphicView->redraw(RS2::RedrawDrawing); in mouseReleaseEvent() [all …]
|
H A D | rs_actionzoomin.cpp | 39 RS_GraphicView& graphicView, in RS_ActionZoomIn() argument 44 :RS_ActionInterface("Zoom in", container, graphicView) in RS_ActionZoomIn() 63 graphicView->zoomInX(); in trigger() 65 graphicView->zoomOutX(); in trigger() 71 graphicView->zoomInY(); in trigger() 73 graphicView->zoomOutY(); in trigger() 79 graphicView->zoomIn(zoom_factor, *center); in trigger() 81 graphicView->zoomOut(zoom_factor, *center); in trigger()
|
H A D | rs_actionpolylinedel.cpp | 39 RS_GraphicView& graphicView) in RS_ActionPolylineDel() argument 41 container, graphicView) in RS_ActionPolylineDel() 65 graphicView->drawEntity(delEntity); in trigger() 67 RS_Modification m(*container, graphicView); in trigger() 75 graphicView->redraw(); in trigger() 116 graphicView->drawEntity(delEntity); in mouseReleaseEvent() 119 graphicView->redraw(); in mouseReleaseEvent() 146 graphicView->drawEntity(delEntity); in mouseReleaseEvent() 148 graphicView->redraw(); in mouseReleaseEvent() 174 graphicView->setMouseCursor(RS2::SelectCursor); in updateMouseCursor()
|
H A D | rs_actiondefault.cpp | 53 container, graphicView) in RS_ActionDefault() 136 graphicView->moveRelativeZero(pPoints->v1); in mouseMoveEvent() 244 pPoints->v1 = graphicView->toGraph(e->x(), e->y()); in mousePressEvent() 256 RS_Modification m(*container, graphicView); in mousePressEvent() 276 RS_Modification m(*container, graphicView); in mousePressEvent() 304 pPoints->v2 = graphicView->toGraph(e->x(), e->y()); in mouseReleaseEvent() 313 RS_Selection s(*container, graphicView); in mouseReleaseEvent() 330 pPoints->v2 = graphicView->toGraph(e->x(), e->y()); in mouseReleaseEvent() 337 RS_Selection s(*container, graphicView); in mouseReleaseEvent() 410 graphicView->setMouseCursor(RS2::ArrowCursor); in updateMouseCursor() [all …]
|
H A D | rs_actiondrawlinetangent2.cpp | 40 RS_GraphicView& graphicView) in RS_ActionDrawLineTangent2() argument 41 :RS_PreviewActionInterface("Draw Tangents 2", container, graphicView) in RS_ActionDrawLineTangent2() 56 graphicView->drawEntity(circle1); in finish() 89 graphicView->drawEntity(*p); in clearHighlighted() 103 graphicView->drawEntity(circle2); in mouseMoveEvent() 107 graphicView->drawEntity(circle2); in mouseMoveEvent() 109 RS_Vector mouse(graphicView->toGraphX(e->x()), in mouseMoveEvent() 110 graphicView->toGraphY(e->y())); in mouseMoveEvent() 142 graphicView->drawEntity(circle1); in mouseReleaseEvent() 170 graphicView->setMouseCursor(RS2::SelectCursor); in updateMouseCursor()
|
H A D | rs_actioninfodist2.cpp | 39 RS_GraphicView& graphicView) in RS_ActionInfoDist2() argument 41 container, graphicView) in RS_ActionInfoDist2() 49 if(graphicView != NULL && graphicView->isCleanUp()==false){ in ~RS_ActionInfoDist2() 52 graphicView->redraw(RS2::RedrawDrawing); in ~RS_ActionInfoDist2() 73 graphicView->redraw(RS2::RedrawDrawing); in trigger() 113 graphicView->redraw(RS2::RedrawDrawing); in mouseReleaseEvent() 141 graphicView->moveRelativeZero(*point); in coordinateEvent() 170 graphicView->setMouseCursor(RS2::CadCursor); in updateMouseCursor()
|
H A D | rs_actionpolylineappend.cpp | 75 RS_GraphicView& graphicView) in RS_ActionPolylineAppend() argument 76 :RS_ActionDrawPolyline(container, graphicView) { in RS_ActionPolylineAppend() 107 graphicView->moveRelativeZero(RS_Vector(0.0,0.0)); in trigger() 108 graphicView->deleteEntity(originalPolyline); in trigger() 109 graphicView->drawEntity(pPoints->polyline); in trigger() 110 graphicView->moveRelativeZero(pPoints->polyline->getEndpoint()); in trigger() 139 double dist = graphicView->toGraphDX(snapRange)*0.9; in mouseReleaseEvent() 141 graphicView->toGraphY(e->y())), &dist, RS2::ResolveNone); in mouseReleaseEvent() 184 graphicView->moveRelativeZero(pPoints->point); in coordinateEvent() 189 graphicView->moveRelativeZero(mouse); in coordinateEvent() [all …]
|
H A D | rs_actionsetrelativezero.cpp | 36 RS_GraphicView& graphicView) in RS_ActionSetRelativeZero() argument 38 container, graphicView) in RS_ActionSetRelativeZero() 57 bool wasLocked = graphicView->isRelativeZeroLocked(); in trigger() 59 graphicView->lockRelativeZero(false); in trigger() 60 graphicView->moveRelativeZero(*pt); in trigger() 61 graphicView->lockRelativeZero(wasLocked); in trigger() 109 graphicView->setMouseCursor(RS2::CadCursor); in updateMouseCursor()
|
H A D | rs_actionzoompan.cpp | 39 RS_GraphicView& graphicView) in RS_ActionZoomPan() argument 40 :RS_ActionInterface("Zoom Panning", container, graphicView) {} in RS_ActionZoomPan() 61 graphicView->zoomPan(x2-x1, y2-y1); in trigger() 68 graphicView->setPanning(false); in trigger() 69 graphicView->redraw(); in trigger() 95 graphicView->setPanning(true); in mousePressEvent() 134 graphicView->setMouseCursor(RS2::OpenHandCursor); in updateMouseCursor() 137 graphicView->setMouseCursor(RS2::ClosedHandCursor); in updateMouseCursor()
|
H A D | rs_actiondrawlinebisector.cpp | 49 RS_GraphicView& graphicView) in RS_ActionDrawLineBisector() argument 95 graphicView->redraw(RS2::RedrawDrawing); in init() 107 graphicView->redraw(RS2::RedrawDrawing); in trigger() 109 RS_Creation creation(container, graphicView); in trigger() 123 RS_Vector mouse = RS_Vector(graphicView->toGraphX(e->x()), in mouseMoveEvent() 124 graphicView->toGraphY(e->y())); in mouseMoveEvent() 140 graphicView->redraw(RS2::RedrawDrawing); in mouseMoveEvent() 155 graphicView->redraw(RS2::RedrawDrawing); in mouseMoveEvent() 179 RS_Vector mouse = RS_Vector(graphicView->toGraphX(e->x()), in mouseReleaseEvent() 189 graphicView->redraw(RS2::RedrawDrawing); in mouseReleaseEvent() [all …]
|
H A D | rs_actionzoomscroll.cpp | 32 RS_GraphicView& graphicView) in RS_ActionZoomScroll() argument 33 :RS_ActionInterface("Zoom scroll", container, graphicView) in RS_ActionZoomScroll() 41 RS_GraphicView& graphicView) in RS_ActionZoomScroll() argument 42 :RS_ActionInterface("Zoom scroll", container, graphicView) in RS_ActionZoomScroll() 51 graphicView->zoomPan(offsetX, offsetY); in trigger() 53 graphicView->zoomScroll(direction); in trigger()
|
H A D | rs_actionorder.cpp | 39 RS_GraphicView& graphicView, RS2::ActionType type) in RS_ActionOrder() argument 41 container, graphicView) in RS_ActionOrder() 70 graphicView->drawEntity(targetEntity); in trigger() 127 graphicView->drawEntity(targetEntity); in mouseReleaseEvent() 128 graphicView->redraw(); in mouseReleaseEvent() 139 graphicView->drawEntity(targetEntity); in mouseReleaseEvent() 140 graphicView->redraw(); in mouseReleaseEvent() 162 graphicView->setMouseCursor(RS2::CadCursor); in updateMouseCursor()
|
/dports/cad/librecad/LibreCAD-2.2.0-rc2/librecad/src/main/ |
H A D | qc_mdiwindow.cpp | 81 setWidget(graphicView); in QC_MDIWindow() 109 if(!(graphicView && graphicView->isCleanUp())){ in ~QC_MDIWindow() 132 return (graphicView) ? graphicView : nullptr; in getGraphicView() 145 if (graphicView) { in getEventHandler() 255 if (document && graphicView) { in slotFileNew() 257 graphicView->redraw(); in slotFileNew() 278 graphicView->zoomAuto(false); in slotFileNewTemplate() 314 graphicView->redraw(); in slotFileOpen() 329 if(graphicView){ in slotZoomAuto() 331 graphicView->zoomPage(); in slotZoomAuto() [all …]
|
/dports/cad/librecad/LibreCAD-2.2.0-rc2/librecad/src/lib/gui/ |
H A D | rs_grid.cpp | 51 RS_Grid::RS_Grid(RS_GraphicView* graphicView) in RS_Grid() argument 52 :graphicView(graphicView) in RS_Grid() 80 if (!graphicView->isGridOn()) return; in updatePointArray() 147 graphicView->toGuiDX(gridWidth.x)>2 && in updatePointArray() 148 graphicView->toGuiDY(gridWidth.y)>2) { in updatePointArray() 153 double right = (int)(graphicView->toGraphX(graphicView->getWidth()) / in updatePointArray() 158 (int)(graphicView->toGraphY(graphicView->getHeight()) / in updatePointArray() 400 graphicView->toGuiDX(metaGridWidth.x)>2 && in createOrthogonalGrid() 401 graphicView->toGuiDY(metaGridWidth.y)>2) { in createOrthogonalGrid() 405 double mright = (int)(graphicView->toGraphX(graphicView->getWidth()) / in createOrthogonalGrid() [all …]
|
/dports/cad/librecad/LibreCAD-2.2.0-rc2/librecad/src/lib/actions/ |
H A D | rs_snapper.cpp | 177 ,graphicView(&graphicView) in RS_Snapper() 192 snapMode = graphicView->getDefaultSnapMode(); in init() 359 RS_Vector rz = graphicView->getRelativeZero(); in snapPoint() 405 if (graphicView) { in getSnapRange() 544 RS_Vector rz = graphicView->getRelativeZero(); in restrictOrthogonal() 567 RS_Vector rz = graphicView->getRelativeZero(); in restrictHorizontal() 581 RS_Vector rz = graphicView->getRelativeZero(); in restrictVertical() 724 {graphicView->toGraphX(e->x()), graphicView->toGraphY(e->y())}, in catchEntity() 732 RS_Vector coord{graphicView->toGraphX(e->x()), graphicView->toGraphY(e->y())}; in catchEntity() 883 double l=graphicView->getWidth()+graphicView->getHeight(); in drawSnapper() [all …]
|