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 "actioneditundo.h"
17 #include "rs_dialogfactory.h"
18 #include "graphicview.h"
23 * @param undo true for undo and false for redo.
25 ActionEditUndo::ActionEditUndo(bool undo, RS_EntityContainer & container, GraphicView & graphicView): ActionInterface("Edit Undo", container, graphicView)
30 ActionEditUndo::~ActionEditUndo()
34 void ActionEditUndo::init(int status)
36 ActionInterface::init(status);
40 void ActionEditUndo::trigger()
47 document->updateInserts();
49 graphicView->redraw();
52 RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected());