MCPcopy Create free account
hub / github.com/LibreCAD/LibreCAD / removeEntity

Method removeEntity

librecad/src/main/doc_plugin_interface.cpp:1077–1087  ·  view source on GitHub ↗

TODO RLZ: add undo support in this method*/

Source from the content-addressed store, hash-verified

1075
1076/*TODO RLZ: add undo support in this method*/
1077void Doc_plugin_interface::removeEntity(Plug_Entity *ent){
1078 RS_Entity *e = (reinterpret_cast<Plugin_Entity*>(ent))->getEnt();
1079 if (doc && e) {
1080 LC_UndoSection undo(doc);
1081 e->setSelected(false);
1082 e->changeUndoState();
1083 undo.addUndoable(e);
1084
1085 gView->redraw(RS2::RedrawDrawing);
1086 }
1087}
1088
1089void Doc_plugin_interface::updateEntity(RS_Entity *org, RS_Entity *newe){
1090 if (doc) {

Callers 4

undoMethod · 0.45
removeOldFilletMethod · 0.45
triggerMethod · 0.45
mouseMoveEventMethod · 0.45

Calls 5

getEntMethod · 0.45
setSelectedMethod · 0.45
changeUndoStateMethod · 0.45
addUndoableMethod · 0.45
redrawMethod · 0.45

Tested by

no test coverage detected