1 // 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 "actionselectbase.h"
17 #include "graphicview.h"
19 ActionSelectBase::ActionSelectBase(const char * name,
20 RS_EntityContainer & container, GraphicView & graphicView):
21 ActionInterface(name, container, graphicView)
25 ActionSelectBase::~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 ActionSelectBase::keyReleaseEvent(QKeyEvent * e)
35 if (e->key() == Qt::Key_Return && predecessor)
39 void ActionSelectBase::updateMouseCursor()
41 graphicView->setMouseCursor(RS2::SelectCursor);