1 /**************************************************************************** 2 ** 3 ** This file is part of the LibreCAD project, a 2D CAD program 4 ** 5 ** Copyright (C) 2015 Dongxu Li (dongxuli2011 at gmail.com) 6 ** Copyright (C) 2010 R. van Twisk (librecad@rvt.dds.nl) 7 ** Copyright (C) 2001-2003 RibbonSoft. All rights reserved. 8 ** 9 ** 10 ** This file may be distributed and/or modified under the terms of the 11 ** GNU General Public License version 2 as published by the Free Software 12 ** Foundation and appearing in the file gpl-2.0.txt included in the 13 ** packaging of this file. 14 ** 15 ** This program is distributed in the hope that it will be useful, 16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 ** GNU General Public License for more details. 19 ** 20 ** You should have received a copy of the GNU General Public License 21 ** along with this program; if not, write to the Free Software 22 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 23 ** 24 ** This copyright notice MUST APPEAR in all copies of the script! 25 ** 26 **********************************************************************/ 27 #ifndef QG_CADTOOLBARSELECT_H 28 #define QG_CADTOOLBARSELECT_H 29 30 class QG_CadToolBar; 31 class QG_ActionHandler; 32 class RS_ActionInterface; 33 34 #include "lc_cadtoolbarinterface.h" 35 36 class QG_CadToolBarSelect : public LC_CadToolBarInterface 37 { 38 Q_OBJECT 39 40 public: 41 QG_CadToolBarSelect(QG_CadToolBar* parent = 0, Qt::WindowFlags fl = 0); 42 ~QG_CadToolBarSelect() = default; rtti()43 RS2::ToolBarId rtti() const 44 { 45 return RS2::ToolBarSelect; 46 } 47 48 public slots: 49 virtual void setSelectAction( RS_ActionInterface * selectAction ); 50 virtual void setNextAction( int nextAction ); 51 virtual void runNextAction(); 52 virtual void mousePressEvent( QMouseEvent * e ); 53 54 private slots: 55 void on_bBack_clicked(); 56 57 private: 58 int nextAction; 59 RS_ActionInterface* selectAction; 60 }; 61 62 #endif // QG_CADTOOLBARSELECT_H 63