1 /**************************************************************************** 2 ** 3 ** This file is part of the LibreCAD project, a 2D CAD program 4 ** 5 ** Copyright (C) 2010 R. van Twisk (librecad@rvt.dds.nl) 6 ** Copyright (C) 2014 Dongxu Li (dongxuli2011@gmail.com) 7 8 This program is free software; you can redistribute it and/or 9 modify it under the terms of the GNU General Public License 10 as published by the Free Software Foundation; either version 2 11 of the License, or (at your option) any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program; if not, write to the Free Software 20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 **********************************************************************/ 22 #ifndef QG_CADTOOLBARSPLINES_H 23 #define QG_CADTOOLBARSPLINES_H 24 25 class QG_CadToolBar; 26 class QG_ActionHandler; 27 28 #include "lc_cadtoolbarinterface.h" 29 30 class QG_CadToolBarSplines : public LC_CadToolBarInterface 31 { 32 Q_OBJECT 33 34 public: 35 QG_CadToolBarSplines(QG_CadToolBar* parent = 0, Qt::WindowFlags fl = 0); 36 ~QG_CadToolBarSplines() = default; 37 //restore action from checked button 38 virtual void restoreAction(); rtti()39 RS2::ToolBarId rtti() const 40 { 41 return RS2::ToolBarSplines; 42 } 43 virtual void addSubActions(const std::vector<QAction*>& actions, bool addGroup); 44 45 46 public slots: 47 virtual void resetToolBar(); 48 virtual void showCadToolBar(RS2::ActionType actionType); 49 50 private slots: 51 void on_bBack_clicked(); 52 private: 53 QAction *bSpline=nullptr, *bSplineInt=nullptr; 54 }; 55 56 #endif // QG_CADTOOLBARSPLINES_H 57