1 // rs_actionselectinvert.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 06/05/2010 Added this text. :-)
15 #include "rs_actionselectinvert.h"
17 #include "rs_dialogfactory.h"
18 #include "rs_selection.h"
20 RS_ActionSelectInvert::RS_ActionSelectInvert(RS_EntityContainer & container,
21 GraphicView & graphicView): RS_ActionInterface("Invert Selection",
22 container, graphicView)
26 RS_ActionSelectInvert::~RS_ActionSelectInvert()
30 /*virtual*/ RS2::ActionType RS_ActionSelectInvert::rtti()
32 return RS2::ActionSelectInvert;
35 void RS_ActionSelectInvert::init(int status)
37 RS_ActionInterface::init(status);
42 void RS_ActionSelectInvert::trigger()
44 RS_Selection s(*container, graphicView);
47 RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected());