00001 /* This file is part of Rocs, 00002 Copyright (C) 2008 by: 00003 Tomaz Canabrava <tomaz.canabrava@gmail.com> 00004 Ugo Sangiori <ugorox@gmail.com> 00005 00006 Rocs is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 Rocs is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with Step; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00020 00021 #ifndef DELETEACTION_H 00022 #define DELETEACTION_H 00023 00024 #include "AbstractAction.h" 00025 00027 class DeleteAction : public AbstractAction 00028 { 00029 Q_OBJECT 00030 public: 00035 DeleteAction( GraphScene* scene, QObject* parent ); 00036 00040 void executePress( QPointF pos ); 00041 00045 void executeKeyRelease( QKeyEvent* keyEvent ); 00046 signals: 00047 void deleteSceneItem( QString, QString ); 00048 }; 00049 00050 #endif // DELETEACTION_H