2015-09-07 21:47:02 +02:00
|
|
|
/************************************************************************
|
|
|
|
**
|
2017-06-29 17:56:52 +02:00
|
|
|
** @file dxfdef.h
|
2015-09-07 21:47:02 +02:00
|
|
|
** @author Roman Telezhynskyi <dismine(at)gmail.com>
|
|
|
|
** @date 31 8, 2015
|
|
|
|
**
|
|
|
|
** @brief
|
|
|
|
** @copyright
|
2017-10-05 11:20:01 +02:00
|
|
|
** This source code is part of the Valentina project, a pattern making
|
2015-09-07 21:47:02 +02:00
|
|
|
** program, whose allow create and modeling patterns of clothing.
|
|
|
|
** Copyright (C) 2015 Valentina project
|
2020-01-31 07:00:05 +01:00
|
|
|
** <https://gitlab.com/smart-pattern/valentina> All Rights Reserved.
|
2015-09-07 21:47:02 +02: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 DXFDEF_H
|
|
|
|
#define DXFDEF_H
|
|
|
|
|
2015-10-18 21:30:51 +02:00
|
|
|
#include <QtGlobal>
|
2018-12-11 21:27:55 +01:00
|
|
|
#include <ciso646>
|
2023-02-14 13:52:48 +01:00
|
|
|
#include <QtCore/qcontainerfwd.h>
|
2020-01-20 11:28:35 +01:00
|
|
|
|
2020-01-07 11:54:01 +01:00
|
|
|
enum class VarMeasurement : quint8 { English=0, Metric=1 };
|
2015-09-07 21:47:02 +02:00
|
|
|
|
|
|
|
//Default drawing units for AutoCAD DesignCenter blocks:
|
2020-01-07 11:54:01 +01:00
|
|
|
enum class VarInsunits : quint8 { Inches=1, Millimeters=4, Centimeters=5 };
|
2015-09-07 21:47:02 +02:00
|
|
|
|
2017-06-29 17:56:52 +02:00
|
|
|
// Helps mark end of string. See VDxfEngine::drawTextItem for more details
|
|
|
|
extern const QString endStringPlaceholder;
|
|
|
|
|
2023-05-03 13:07:02 +02:00
|
|
|
Q_REQUIRED_RESULT static inline auto DL_FuzzyComparePossibleNulls(double p1, double p2) -> bool;
|
|
|
|
static inline auto DL_FuzzyComparePossibleNulls(double p1, double p2) -> bool
|
2015-10-02 04:46:10 +02:00
|
|
|
{
|
|
|
|
if(qFuzzyIsNull(p1))
|
|
|
|
{
|
|
|
|
return qFuzzyIsNull(p2);
|
|
|
|
}
|
2023-05-03 13:07:02 +02:00
|
|
|
if (qFuzzyIsNull(p2))
|
2015-10-02 04:46:10 +02:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return qFuzzyCompare(p1, p2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-03 13:07:02 +02:00
|
|
|
auto LocaleMap() -> QMap<QString, QString>;
|
2020-01-16 13:10:49 +01:00
|
|
|
|
2015-09-07 21:47:02 +02:00
|
|
|
#endif // DXFDEF_H
|