1 /****************************************************************************
2 **
3 ** This file is part of the LibreCAD project, a 2D CAD program
4 **
5 ** Copyright (C) 2011 Dongxu Li ( dongxuli2011@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 
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License
13 as published by the Free Software Foundation; either version 2
14 of the License, or (at your option) any later version.
15 
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 GNU General Public License for more details.
20 
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
24 
25 ** This copyright notice MUST APPEAR in all copies of the script!
26 **
27 **********************************************************************/
28 
29 #ifndef QG_MODIFYOFFSETOPTIONS_H
30 #define QG_MODIFYOFFSETOPTIONS_H
31 
32 #include<memory>
33 #include<QWidget>
34 
35 class RS_ActionInterface;
36 class RS_ActionDrawModifyOffset;
37 namespace Ui {
38 class Ui_ModifyOffsetOptions;
39 }
40 
41 class QG_ModifyOffsetOptions : public QWidget
42 {
43     Q_OBJECT
44 
45 public:
46     QG_ModifyOffsetOptions(QWidget* parent = 0, Qt::WindowFlags fl = 0);
47     ~QG_ModifyOffsetOptions();
48 
49 public slots:
50 //    virtual void setAction( RS_ActionInterface * a, bool update );
51     virtual void updateDist( const QString & d );
52     virtual void setDist( double& d , bool initial=true);
53 
54 protected:
55 //    RS_ActionModifyOffset* action;
56     double* dist;
57 
58 protected slots:
59     virtual void languageChange();
60 
61 private:
62 	void saveSettings();
63 	std::unique_ptr<Ui::Ui_ModifyOffsetOptions> ui;
64 };
65 
66 #endif
67 //EOF
68