valentina/src/libs/vpatterndb/floatItemData/vpiecelabeldata.h

95 lines
2.9 KiB
C
Raw Normal View History

/************************************************************************
**
** @file vpiecelabeldata.h
** @author Bojan Kverh
** @date June 16, 2016
**
** @brief
** @copyright
** This source code is part of the Valentina project, a pattern making
** program, whose allow create and modeling patterns of clothing.
** Copyright (C) 2013-2015 Valentina project
** <https://gitlab.com/smart-pattern/valentina> All Rights Reserved.
**
** 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 VPATTERNPIECEDATA_H
#define VPATTERNPIECEDATA_H
#include <QString>
#include "vpatternlabeldata.h"
class VPieceLabelDataPrivate;
2017-08-21 19:14:39 +02:00
struct VLabelTemplateLine;
/**
* @brief The VPieceLabelData class holds some information about a single
* piece like letter, name, material type, cut number and placement.
*/
class VPieceLabelData : public VPatternLabelData
{
public:
VPieceLabelData();
VPieceLabelData(const VPieceLabelData &data);
2023-05-08 16:50:22 +02:00
~VPieceLabelData() override;
2023-05-03 13:07:02 +02:00
auto operator=(const VPieceLabelData &data) -> VPieceLabelData &;
#ifdef Q_COMPILER_RVALUE_REFS
2022-08-12 17:50:13 +02:00
VPieceLabelData(VPieceLabelData &&data) Q_DECL_NOTHROW;
2023-05-03 13:07:02 +02:00
auto operator=(VPieceLabelData &&data) Q_DECL_NOTHROW->VPieceLabelData &;
#endif
void Clear();
// methods, which operate on other members
2023-05-03 13:07:02 +02:00
auto GetLetter() const -> QString;
2023-05-08 16:50:22 +02:00
void SetLetter(const QString &qsLetter);
2023-05-03 13:07:02 +02:00
auto GetAnnotation() const -> QString;
2023-05-08 16:50:22 +02:00
void SetAnnotation(const QString &val);
2023-05-03 13:07:02 +02:00
auto GetOrientation() const -> QString;
2023-05-08 16:50:22 +02:00
void SetOrientation(const QString &val);
2023-05-03 13:07:02 +02:00
auto GetRotationWay() const -> QString;
2023-05-08 16:50:22 +02:00
void SetRotationWay(const QString &val);
2023-05-03 13:07:02 +02:00
auto GetTilt() const -> QString;
2023-05-08 16:50:22 +02:00
void SetTilt(const QString &val);
2023-05-03 13:07:02 +02:00
auto GetFoldPosition() const -> QString;
2023-05-08 16:50:22 +02:00
void SetFoldPosition(const QString &val);
2023-05-03 13:07:02 +02:00
auto GetQuantity() const -> quint16;
2023-05-08 16:50:22 +02:00
void SetQuantity(quint16 val);
2023-05-03 13:07:02 +02:00
auto IsOnFold() const -> bool;
void SetOnFold(bool onFold);
2023-05-16 16:37:53 +02:00
auto GetAreaShortName() const -> QString;
void SetAreaShortName(const QString &val);
2023-05-03 13:07:02 +02:00
auto GetLabelTemplate() const -> QVector<VLabelTemplateLine>;
2023-05-08 16:50:22 +02:00
void SetLabelTemplate(const QVector<VLabelTemplateLine> &lines);
private:
QSharedDataPointer<VPieceLabelDataPrivate> d;
};
#endif // VPATTERNPIECEDATA_H