1 // rs_actioneditundo.cpp
3 // Part of the Architektonas Project
4 // Originally part of QCad Community Edition by Andrew Mustun
5 // Extensively rewritten and refactored by James L. Hammons
6 // (C) 2010 Underground Software
8 // JLH = James L. Hammons <jlhamm@acm.org>
11 // --- ---------- -----------------------------------------------------------
12 // JLH 05/22/2010 Added this text. :-)
15 #include "rs_actioneditundo.h"
17 #include "rs_dialogfactory.h"
18 #include "graphicview.h"
23 * @param undo true for undo and false for redo.
25 RS_ActionEditUndo::RS_ActionEditUndo(bool undo, RS_EntityContainer & container, GraphicView & graphicView): RS_ActionInterface("Edit Undo", container, graphicView)
30 RS_ActionEditUndo::~RS_ActionEditUndo()
34 void RS_ActionEditUndo::init(int status)
36 RS_ActionInterface::init(status);
40 void RS_ActionEditUndo::trigger()
47 document->updateInserts();
49 graphicView->redraw();
52 RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected());