1 /********************************************************************************************** 2 Copyright (C) 2014 Oliver Eichler <oliver.eichler@gmx.de> 3 Copyright (C) 2017 Norbert Truchsess <norbert.truchsess@t-online.de> 4 5 This program is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation, either version 3 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18 **********************************************************************************************/ 19 20 #ifndef CSCROPTWPTRADIUS_H 21 #define CSCROPTWPTRADIUS_H 22 23 #include "gis/IGisItem.h" 24 #include "mouse/IScrOpt.h" 25 26 #include "ui_IScrOptWptRadius.h" 27 #include <QWidget> 28 29 class CGisItemWpt; 30 class IMouse; 31 32 class CScrOptWptRadius : public IScrOpt, private Ui::IScrOptWptRadius 33 { 34 Q_OBJECT 35 public: 36 CScrOptWptRadius(CGisItemWpt* wpt, const QPoint& point, IMouse* parent); 37 virtual ~CScrOptWptRadius(); 38 39 void draw(QPainter& p) override; 40 41 private slots: 42 void slotDelete(); 43 void slotNogoArea(); 44 void slotEdit(); 45 46 private: 47 IGisItem::key_t key; 48 QPointF anchor; 49 }; 50 51 #endif //CSCROPTWPTRADIUS_H 52 53