1 // rs_actionselectall.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/22/2010 Added this text. :-)
15 #include "rs_actionselectall.h"
17 #include "rs_dialogfactory.h"
18 #include "rs_selection.h"
20 RS_ActionSelectAll::RS_ActionSelectAll(RS_EntityContainer & container,
21 GraphicView & graphicView, bool select):
22 RS_ActionInterface("Select All Entities", container, graphicView)
24 this->select = select;
27 RS_ActionSelectAll::~RS_ActionSelectAll()
31 /*virtual*/ RS2::ActionType RS_ActionSelectAll::rtti()
33 return RS2::ActionSelectAll;
36 void RS_ActionSelectAll::init(int status)
38 RS_ActionInterface::init(status);
43 void RS_ActionSelectAll::trigger()
45 RS_Selection s(*container, graphicView);
48 RS_DIALOGFACTORY->updateSelectionWidget(container->countSelected());