2017-02-23 13:36:08 +01:00
|
|
|
/************************************************************************
|
|
|
|
**
|
|
|
|
** @file
|
|
|
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
|
|
|
** @date 23 2, 2017
|
|
|
|
**
|
|
|
|
** @brief
|
|
|
|
** @copyright
|
2017-10-05 11:20:01 +02:00
|
|
|
** This source code is part of the Valentina project, a pattern making
|
2017-02-23 13:36:08 +01:00
|
|
|
** program, whose allow create and modeling patterns of clothing.
|
|
|
|
** Copyright (C) 2017 Valentina project
|
2020-01-31 07:00:05 +01:00
|
|
|
** <https://gitlab.com/smart-pattern/valentina> All Rights Reserved.
|
2017-02-23 13:36:08 +01:00
|
|
|
**
|
|
|
|
** Valentina is free software: you can redistribute it and/or modify
|
|
|
|
** it under the terms of the GNU General Public License as published by
|
|
|
|
** the Free Software Foundation, either version 3 of the License, or
|
|
|
|
** (at your option) any later version.
|
|
|
|
**
|
|
|
|
** Valentina is distributed in the hope that it will be useful,
|
|
|
|
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
** GNU General Public License for more details.
|
|
|
|
**
|
|
|
|
** You should have received a copy of the GNU General Public License
|
|
|
|
** along with Valentina. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
**
|
|
|
|
*************************************************************************/
|
|
|
|
|
|
|
|
#ifndef VPATTERNLABELDATA_P_H
|
|
|
|
#define VPATTERNLABELDATA_P_H
|
|
|
|
|
|
|
|
#include <QPointF>
|
|
|
|
#include <QSharedData>
|
2022-08-17 14:51:35 +02:00
|
|
|
#include <QString>
|
2017-02-23 13:36:08 +01:00
|
|
|
|
2022-08-08 14:25:14 +02:00
|
|
|
#include "../vmisc/typedef.h"
|
2019-07-01 12:49:10 +02:00
|
|
|
#include "../vmisc/defglobal.h"
|
2022-08-17 14:51:35 +02:00
|
|
|
#if QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
|
|
|
|
#include "../vmisc/diagnostic.h"
|
|
|
|
#endif // QT_VERSION < QT_VERSION_CHECK(5, 5, 0)
|
2017-02-23 13:36:08 +01:00
|
|
|
|
|
|
|
QT_WARNING_PUSH
|
|
|
|
QT_WARNING_DISABLE_GCC("-Weffc++")
|
2017-05-30 17:44:16 +02:00
|
|
|
QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor")
|
2017-02-23 13:36:08 +01:00
|
|
|
|
|
|
|
class VPatternLabelDataPrivate : public QSharedData
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
VPatternLabelDataPrivate()
|
2017-03-13 13:27:29 +01:00
|
|
|
: m_dLabelWidth(),
|
|
|
|
m_dLabelHeight(),
|
|
|
|
m_dLabelAngle(),
|
2017-02-23 13:36:08 +01:00
|
|
|
m_iFontSize(0),
|
2017-03-11 14:25:21 +01:00
|
|
|
m_centerPin(NULL_ID),
|
2017-02-23 13:36:08 +01:00
|
|
|
m_topLeftPin(NULL_ID),
|
|
|
|
m_bottomRightPin(NULL_ID)
|
|
|
|
{}
|
|
|
|
|
|
|
|
VPatternLabelDataPrivate(const VPatternLabelDataPrivate &data)
|
|
|
|
: QSharedData(data),
|
|
|
|
m_dLabelWidth(data.m_dLabelWidth),
|
|
|
|
m_dLabelHeight(data.m_dLabelHeight),
|
2017-03-13 13:27:29 +01:00
|
|
|
m_dLabelAngle(data.m_dLabelAngle),
|
2017-02-23 13:36:08 +01:00
|
|
|
m_iFontSize(data.m_iFontSize),
|
2017-03-11 14:25:21 +01:00
|
|
|
m_centerPin(data.m_centerPin),
|
2017-02-23 13:36:08 +01:00
|
|
|
m_topLeftPin(data.m_topLeftPin),
|
|
|
|
m_bottomRightPin(data.m_bottomRightPin)
|
|
|
|
{}
|
|
|
|
|
2022-08-22 15:36:01 +02:00
|
|
|
~VPatternLabelDataPrivate() = default;
|
2017-02-23 13:36:08 +01:00
|
|
|
|
2017-03-13 13:27:29 +01:00
|
|
|
/** @brief m_dLabelWidth formula to calculate the width of label */
|
|
|
|
QString m_dLabelWidth;
|
|
|
|
/** @brief m_dLabelHeight formula to calculate the height of label */
|
|
|
|
QString m_dLabelHeight;
|
|
|
|
/** @brief m_dLabelAngle formula to calculate the rotation angle of label */
|
|
|
|
QString m_dLabelAngle;
|
2017-02-23 13:36:08 +01:00
|
|
|
/** @brief m_iFontSize label text base font size */
|
|
|
|
int m_iFontSize;
|
2017-03-11 14:25:21 +01:00
|
|
|
/** @brief m_centerPin center pin id */
|
|
|
|
quint32 m_centerPin;
|
2017-02-23 13:36:08 +01:00
|
|
|
/** @brief m_topLeftPin top left corner pin id */
|
|
|
|
quint32 m_topLeftPin;
|
|
|
|
/** @brief m_bottomRightPin bottom right corner pin id */
|
|
|
|
quint32 m_bottomRightPin;
|
|
|
|
|
|
|
|
private:
|
2023-05-02 16:38:30 +02:00
|
|
|
Q_DISABLE_ASSIGN_MOVE(VPatternLabelDataPrivate) // NOLINT
|
2017-02-23 13:36:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
QT_WARNING_POP
|
|
|
|
|
|
|
|
#endif // VPATTERNLABELDATA_P_H
|
|
|
|
|