valentina/src/app/puzzle/vpsettings.h

122 lines
4.1 KiB
C
Raw Normal View History

2020-02-16 18:18:39 +01:00
/************************************************************************
**
2020-05-23 15:44:44 +02:00
** @file vpsettings.h
2020-02-16 18:18:39 +01:00
** @author Roman Telezhynskyi <dismine(at)gmail.com>
** @date 16 2, 2020
**
** @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) 2020 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/>.
**
*************************************************************************/
2020-05-23 15:44:44 +02:00
#ifndef VPSETTINGS_H
#define VPSETTINGS_H
2020-02-16 18:18:39 +01:00
#include <QByteArray>
#include "../vmisc/vcommonsettings.h"
2020-02-16 18:18:39 +01:00
2020-05-23 15:44:44 +02:00
class VPSettings : public VCommonSettings
2020-02-16 18:18:39 +01:00
{
2022-08-12 17:50:13 +02:00
Q_OBJECT // NOLINT
2023-06-08 12:20:20 +02:00
2020-02-16 18:18:39 +01:00
public:
VPSettings(Format format, Scope scope, const QString &organization, const QString &application = QString(),
QObject *parent = nullptr);
2020-05-23 15:44:44 +02:00
VPSettings(const QString &fileName, Format format, QObject *parent = nullptr);
2023-05-03 13:07:02 +02:00
~VPSettings() override = default;
2021-08-21 15:13:56 +02:00
auto IsDockWidgetPropertiesActive() const -> bool;
static auto GetDefDockWidgetPropertiesActive() -> bool;
void SetDockWidgetPropertiesActive(bool value);
2021-08-21 15:13:56 +02:00
auto IsDockWidgetPropertiesContentsActive() const -> bool;
static auto GetDefDockWidgetPropertiesContentsActive() -> bool;
void SetDockWidgetPropertiesContentsActive(bool value);
2020-02-16 18:18:39 +01:00
auto GetPathRawLayoutData() const -> QString;
void SetPathRawLayoutData(const QString &value);
2021-08-21 15:13:56 +02:00
void SetLayoutUnit(Unit unit);
auto LayoutUnit() const -> Unit;
void SetLayoutSheetPaperWidth(qreal width);
auto GetLayoutSheetPaperWidth() const -> qreal;
void SetLayoutSheetPaperHeight(qreal height);
auto GetLayoutSheetPaperHeight() const -> qreal;
void SetLayoutTilePaperWidth(qreal width);
auto GetLayoutTilePaperWidth() const -> qreal;
void SetLayoutTilePaperHeight(qreal height);
auto GetLayoutTilePaperHeight() const -> qreal;
void SetLayoutSheetMargins(const QMarginsF &margins);
auto GetLayoutSheetMargins() const -> QMarginsF;
void SetLayoutTileMargins(const QMarginsF &margins);
auto GetLayoutTileMargins() const -> QMarginsF;
void SetLayoutSheetIgnoreMargins(bool value);
auto GetLayoutSheetIgnoreMargins() const -> bool;
void SetLayoutTileIgnoreMargins(bool value);
auto GetLayoutTileIgnoreMargins() const -> bool;
void SetLayoutTileShowTiles(bool value);
auto GetLayoutTileShowTiles() const -> bool;
2021-09-11 18:39:38 +02:00
void SetLayoutTileShowWatermark(bool value);
auto GetLayoutTileShowWatermark() const -> bool;
2021-08-21 15:13:56 +02:00
void SetLayoutWarningPiecesSuperposition(bool value);
auto GetLayoutWarningPiecesSuperposition() const -> bool;
void SetLayoutStickyEdges(bool value);
auto GetLayoutStickyEdges() const -> bool;
void SetLayoutWarningPiecesOutOfBound(bool value);
auto GetLayoutWarningPiecesOutOfBound() const -> bool;
void SetLayoutFollowGrainline(bool value);
auto GetLayoutFollowGrainline() const -> bool;
2021-08-25 15:58:50 +02:00
static auto GetMaxLayoutPieceGap() -> qreal;
2021-08-21 15:13:56 +02:00
void SetLayoutPieceGap(qreal value);
auto GetLayoutPieceGap() const -> qreal;
2021-09-06 14:31:19 +02:00
auto GetLayoutExportFormat() const -> qint8;
void SetLayoutExportFormat(qint8 format);
auto GetDxfCompatibility() const -> qint8;
void SetDxfCompatibility(qint8 type);
auto GetLayoutLineWidth() const -> int;
2022-02-09 16:49:14 +01:00
void SetLayoutLineWidth(int width);
2023-05-03 13:07:02 +02:00
auto GetShowGrainline() const -> bool;
void SetShowGrainline(bool value);
private:
Q_DISABLE_COPY_MOVE(VPSettings) // NOLINT
2020-02-16 18:18:39 +01:00
};
2020-05-23 15:44:44 +02:00
#endif // VPSETTINGS_H