Seamly2D
Code documentation
vpatternlabeldata.h
Go to the documentation of this file.
1 /************************************************************************
2  **
3  ** @file vpatternlabeldata.h
4  ** @author Bojan Kverh
5  ** @date June 16, 2016
6  **
7  ** @brief
8  ** @copyright
9  ** This source code is part of the Valentine project, a pattern making
10  ** program, whose allow create and modeling patterns of clothing.
11  ** Copyright (C) 2013-2022 Seamly2D project
12  ** <https://github.com/fashionfreedom/seamly2d> All Rights Reserved.
13  **
14  ** Seamly2D is free software: you can redistribute it and/or modify
15  ** it under the terms of the GNU General Public License as published by
16  ** the Free Software Foundation, either version 3 of the License, or
17  ** (at your option) any later version.
18  **
19  ** Seamly2D is distributed in the hope that it will be useful,
20  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
21  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  ** GNU General Public License for more details.
23  **
24  ** You should have received a copy of the GNU General Public License
25  ** along with Seamly2D. If not, see <http://www.gnu.org/licenses/>.
26  **
27  *************************************************************************/
28 
29 #ifndef VPATTERNINFOGEOMETRY_H
30 #define VPATTERNINFOGEOMETRY_H
31 
32 #include <QPointF>
33 
34 #include "vabstractfloatitemdata.h"
35 
37 
38 /**
39  * @brief The VPatternLabelData class holds the information about pattern info label geometry
40  */
42 {
43 public:
46 
47  virtual ~VPatternLabelData();
48 
50 #ifdef Q_COMPILER_RVALUE_REFS
51  VPatternLabelData &operator=(VPatternLabelData &&data) Q_DECL_NOTHROW;
52 #endif
53 
54  void Swap(VPatternLabelData &data) Q_DECL_NOTHROW;
55 
56  // methods, which set up label parameters
57  QString GetLabelWidth() const;
58  void SetLabelWidth(const QString &dLabelW);
59 
60  QString GetLabelHeight() const;
61  void SetLabelHeight(const QString &dLabelH);
62 
63  int getFontSize() const;
64  void SetFontSize(int iSize);
65 
66  QString GetRotation() const;
67  void SetRotation(const QString &dRot);
68 
69  quint32 centerAnchorPoint() const;
70  void setCenterAnchorPoint(const quint32 &centerAnchorPoint);
71 
72  quint32 topLeftAnchorPoint() const;
73  void setTopLeftAnchorPoint(const quint32 &topLeftAnchorPoint);
74 
75  quint32 bottomRightAnchorPoint() const;
77 
78 private:
79  QSharedDataPointer<VPatternLabelDataPrivate> d;
80 };
81 
82 #endif // VPATTERNINFOGEOMETRY_H
The VPatternLabelData class holds the information about pattern info label geometry.
void setBottomRightAnchorPoint(const quint32 &bottomRightAnchorPoint)
void Swap(VPatternLabelData &data) Q_DECL_NOTHROW
void setCenterAnchorPoint(const quint32 &centerAnchorPoint)
VPatternLabelData & operator=(const VPatternLabelData &data)
void SetLabelHeight(const QString &dLabelH)
void SetFontSize(int iSize)
quint32 centerAnchorPoint() const
QSharedDataPointer< VPatternLabelDataPrivate > d
void SetRotation(const QString &dRot)
quint32 topLeftAnchorPoint() const
QString GetLabelWidth() const
void SetLabelWidth(const QString &dLabelW)
QString GetRotation() const
void setTopLeftAnchorPoint(const quint32 &topLeftAnchorPoint)
quint32 bottomRightAnchorPoint() const
QString GetLabelHeight() const