1 // rs_actionselectbase.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/04/2010 Added this text. :-)
15 #include "rs_actionselectbase.h"
17 #include "graphicview.h"
19 RS_ActionSelectBase::RS_ActionSelectBase(const char * name,
20 RS_EntityContainer & container, GraphicView & graphicView):
21 RS_ActionInterface(name, container, graphicView)
25 RS_ActionSelectBase::~RS_ActionSelectBase()
30 * Default behaviour of this method is triggering the predecesing
31 * action and finishing this one when the enter key is pressed.
33 void RS_ActionSelectBase::keyReleaseEvent(QKeyEvent * e)
35 if (e->key() == Qt::Key_Return && predecessor != NULL)
39 void RS_ActionSelectBase::updateMouseCursor()
41 graphicView->setMouseCursor(RS2::SelectCursor);