Seamly2D
Code documentation
point_intersectxy_dialog.h
Go to the documentation of this file.
1 /**************************************************************************
2  **
3  ** @file point_intersectxy_dialog.h
4  ** @author Roman Telezhynskyi <dismine(at)gmail.com>
5  ** @date November 15, 2013
6  **
7  ** @author Douglas S Caskey
8  ** @date 7.21.2022
9  **
10  ** @brief
11  ** @copyright
12  ** This source code is part of the Valentine project, a pattern making
13  ** program, whose allow create and modeling patterns of clothing.
14  ** Copyright (C) 2013-2022 Seamly2D project
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 by
19  ** the Free Software Foundation, either version 3 of the License, or
20  ** (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 POINT_INTERSECTXY_DIALOG_H
33 #define POINT_INTERSECTXY_DIALOG_H
34 
35 #include "dialogtool.h"
36 #include "../vmisc/def.h"
37 
38 #include <qcompilerdetection.h>
39 #include <QMetaObject>
40 #include <QObject>
41 #include <QString>
42 #include <QtGlobal>
43 
44 namespace Ui
45 {
47 }
48 
49 /**
50  * @brief The PointIntersectXYDialog class dialog for ToolPointOfIntersection. Help create point and edit option.
51  */
53 {
54  Q_OBJECT
55 
56 public:
57  PointIntersectXYDialog(const VContainer *data, const quint32 &toolId, QWidget *parent = nullptr);
58  virtual ~PointIntersectXYDialog() Q_DECL_OVERRIDE;
59 
60  void setPointName(const QString &value);
61 
62  quint32 getFirstPointId() const;
63  void setFirstPointId(const quint32 &value);
64 
65  quint32 getSecondPointId() const;
66  void setSecondPointId(const quint32 &value);
67 
68  QString getLineType() const;
69  void setLineType(const QString &value);
70 
71  QString getLineWeight() const;
72  void setLineWeight(const QString &value);
73 
74  QString getLineColor() const;
75  void setLineColor(const QString &value);
76 
77 public slots:
78  virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE;
79  void pointChanged();
80 
81 protected:
82  virtual void ShowVisualization() Q_DECL_OVERRIDE;
83  virtual void SaveData() Q_DECL_OVERRIDE;
84 
85 private:
86  Q_DISABLE_COPY(PointIntersectXYDialog)
87 
88  Ui::PointIntersectXYDialog *ui; /** @brief ui keeps information about user interface */
89 };
90 
91 #endif // POINT_INTERSECTXY_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
The PointIntersectXYDialog class dialog for ToolPointOfIntersection. Help create point and edit optio...
virtual void ShowVisualization() Q_DECL_OVERRIDE
virtual ~PointIntersectXYDialog() Q_DECL_OVERRIDE
void setLineType(const QString &value)
setLineType set type of the lines
quint32 getSecondPointId() const
getSecondPointId return id of second point
virtual void ChosenObject(quint32 id, const SceneObject &type) Q_DECL_OVERRIDE
ChoosedObject gets id and type of selected object. Save right data and ignore wrong.
virtual void SaveData() Q_DECL_OVERRIDE
SaveData Put dialog data in local variables.
void setSecondPointId(const quint32 &value)
setSecondPointId set id of second point
void setLineWeight(const QString &value)
setLineWeight set weight of the lines
QString getLineType() const
getLineType return type of the lines
QString getLineColor() const
getLineColor get the color of lines
void setFirstPointId(const quint32 &value)
setFirstPointId set id of first point
quint32 getFirstPointId() const
getFirstPointId return id of first point
QString getLineWeight() const
getLineWeight return weight of the lines
PointIntersectXYDialog(const VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
PointIntersectXYDialog create dialog.
void setLineColor(const QString &value)
setLineColor set color of the lines
void setPointName(const QString &value)
setPointName set name of point
Ui::PointIntersectXYDialog * ui
The VContainer class container of all variables.
Definition: vcontainer.h:141
SceneObject
Definition: def.h:103