1 /****************************************************************************
2 **
3  * Draw ellipse by foci and a point on ellipse
4 
5 Copyright (C) 2012 Dongxu Li (dongxuli2011@gmail.com)
6 Copyright (C) 2012 LibreCAD.org
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_CIRCLETAN2OPTIONS_H
23 #define QG_CIRCLETAN2OPTIONS_H
24 
25 #include<memory>
26 #include<QWidget>
27 
28 class RS_ActionInterface;
29 class RS_ActionDrawCircleTan2;
30 
31 namespace Ui {
32 class Ui_CircleTan2Options;
33 }
34 
35 class QG_CircleTan2Options : public QWidget
36 {
37     Q_OBJECT
38 
39 public:
40     QG_CircleTan2Options(QWidget* parent = 0, Qt::WindowFlags fl = 0);
41     ~QG_CircleTan2Options();
42 
43 public slots:
44     virtual void setAction( RS_ActionInterface * a, bool update );
45     virtual void updateRadius( const QString & l );
46 
47 protected:
48     RS_ActionDrawCircleTan2* action;
49 
50 protected slots:
51     virtual void languageChange();
52 
53 private:
54 	void saveSettings();
55 	std::unique_ptr<Ui::Ui_CircleTan2Options> ui;
56 };
57 
58 #endif
59 // QG_CIRCLETAN2OPTIONS_H
60