Seamly2D
Code documentation
intersect_circletangent_dialog.h
Go to the documentation of this file.
1 /**************************************************************************
2  **
3  ** @file intersect_circletangent_dialog.h
4  ** @author Roman Telezhynskyi <dismine(at)gmail.com>
5  ** @date 3 6, 2015
6  **
7  ** @author Douglas S. Caskey
8  ** @date 7.16.2022
9  **
10  ** @copyright
11  ** Copyright (C) 2013-2022 Seamly2D project.
12  ** This source code is part of the Seamly2D project, a pattern making
13  ** program, whose allow create and modeling patterns of clothing.
14  **
15  ** <https://github.com/fashionfreedom/seamly2d> All Rights Reserved.
16  **
17  ** Seamly2D is free software: you can redistribute it and/or modify
18  ** it under the terms of the GNU General Public License as published
19  ** by the Free Software Foundation, either version 3 of the License,
20  ** or (at your option) any later version.
21  **
22  ** Seamly2D is distributed in the hope that it will be useful,
23  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
24  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25  ** GNU General Public License for more details.
26  **
27  ** You should have received a copy of the GNU General Public License
28  ** along with Seamly2D. If not, see <http://www.gnu.org/licenses/>.
29  **
30  *************************************************************************/
31 
32 #ifndef INTERSECT_CIRCLETANGENT_DIALOG_H
33 #define INTERSECT_CIRCLETANGENT_DIALOG_H
34 
35 #include "dialogtool.h"
36 #include "../ifc/xml/vabstractpattern.h"
37 #include "../vmisc/def.h"
38 
39 #include <qcompilerdetection.h>
40 #include <QMetaObject>
41 #include <QObject>
42 #include <QString>
43 #include <QtGlobal>
44 
45 namespace Ui
46 {
48 }
49 
51 {
52  Q_OBJECT
53 
54 public:
55  IntersectCircleTangentDialog(const VContainer *data, const quint32 &toolId,
56  QWidget *parent = nullptr);
58 
59  void SetPointName(const QString &value);
60 
61  quint32 GetCircleCenterId() const;
62  void SetCircleCenterId(const quint32 &value);
63 
64  QString GetCircleRadius() const;
65  void SetCircleRadius(const QString &value);
66 
67  quint32 GetTangentPointId() const;
68  void SetTangentPointId(const quint32 &value);
69 
72 
73 public slots:
74  virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
75  void PointChanged();
76 
78  void CircleRadiusChanged();
79  void FXCircleRadius();
80  void EvalCircleRadius();
81 
82 protected:
83  virtual void ShowVisualization() Q_DECL_OVERRIDE;
84  /**
85  * @brief SaveData Put dialog data in local variables
86  */
87  virtual void SaveData() Q_DECL_OVERRIDE;
88  virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
89  virtual void CheckState() Q_DECL_FINAL;
90 
91 private:
92  Q_DISABLE_COPY(IntersectCircleTangentDialog)
93 
95 
98  QString circleRadius;
100 };
101 
102 #endif // INTERSECT_CIRCLETANGENT_DIALOG_H
The DialogTool class parent for all dialog of tools.
Definition: dialogtool.h:107
quint32 toolId
Definition: dialogtool.h:225
const VContainer * data
data container with data
Definition: dialogtool.h:177
IntersectCircleTangentDialog(const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE
closeEvent handle when dialog cloded
virtual void SaveData() Q_DECL_OVERRIDE
SaveData Put dialog data in local variables.
virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE
virtual void ShowVisualization() Q_DECL_OVERRIDE
Ui::IntersectCircleTangentDialog * ui
virtual void CheckState() Q_DECL_FINAL
CheckState enable, when all is correct, or disable, when something wrong, button ok.
void setCirclesCrossPoint(const CrossCirclesPoint &p)
The VContainer class container of all variables.
Definition: vcontainer.h:141
SceneObject
Definition: def.h:103
CrossCirclesPoint