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>
|
2015-10-18 21:30:51 +02:00
|
|
|
|
2020-01-20 11:28:35 +01:00
|
|
|
template <class Key, class T> class QMap;
|
|
|
|
|
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;
|
|
|
|
|
2017-07-01 20:38:26 +02:00
|
|
|
Q_REQUIRED_RESULT static inline bool DL_FuzzyComparePossibleNulls(double p1, double p2);
|
2015-10-02 04:46:10 +02:00
|
|
|
static inline bool DL_FuzzyComparePossibleNulls(double p1, double p2)
|
|
|
|
{
|
|
|
|
if(qFuzzyIsNull(p1))
|
|
|
|
{
|
|
|
|
return qFuzzyIsNull(p2);
|
|
|
|
}
|
|
|
|
else if(qFuzzyIsNull(p2))
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return qFuzzyCompare(p1, p2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-16 13:10:49 +01:00
|
|
|
QMap <QString, QString> LocaleMap();
|
|
|
|
|
2015-09-07 21:47:02 +02:00
|
|
|
#endif // DXFDEF_H
|