New static libray VGeomerty. Need for unit testing.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-05-07 15:31:53 +03:00
parent 5abac4a384
commit af2e0fb509
114 changed files with 423 additions and 161 deletions

View File

@ -13,7 +13,8 @@ DEPENDPATH += \
../src/libs/vpropertyexplorer \ ../src/libs/vpropertyexplorer \
../src/libs/ifc \ ../src/libs/ifc \
../src/libs/vobj \ ../src/libs/vobj \
../src/libs/vlayout ../src/libs/vlayout \
../src/libs/vgeometry
include(../src/app/app.pri) include(../src/app/app.pri)
include(../src/libs/qmuparser/qmuparser.pri) include(../src/libs/qmuparser/qmuparser.pri)
@ -21,6 +22,7 @@ include(../src/libs/vpropertyexplorer/vpropertyexplorer.pri)
include(../src/libs/ifc/ifc.pri) include(../src/libs/ifc/ifc.pri)
include(../src/libs/vobj/vobj.pri) include(../src/libs/vobj/vobj.pri)
include(../src/libs/vlayout/vlayout.pri) include(../src/libs/vlayout/vlayout.pri)
include(../src/libs/vgeometry/vgeometry.pri)
# Add here path to new translation file with name "valentina_*_*.ts" if you want to add new language. # Add here path to new translation file with name "valentina_*_*.ts" if you want to add new language.
# Same paths in variable INSTALL_TRANSLATIONS (app.pro). # Same paths in variable INSTALL_TRANSLATIONS (app.pro).

View File

@ -572,9 +572,14 @@ DEPENDPATH += $$PWD/../libs/vlayout
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../libs/vlayout/$${DESTDIR}/vlayout.lib win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../libs/vlayout/$${DESTDIR}/vlayout.lib
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../libs/vlayout/$${DESTDIR}/libvlayout.a else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../libs/vlayout/$${DESTDIR}/libvlayout.a
# For build qt backport code # VGeometry static library
win32: LIBS+= libole32 libuuid unix|win32: LIBS += -L$$OUT_PWD/../libs/vgeometry/$${DESTDIR}/ -lvgeometry
INCLUDEPATH += $$PWD/../libs/vgeometry
DEPENDPATH += $$PWD/../libs/vgeometry
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../libs/vgeometry/$${DESTDIR}/vgeometry.lib
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../libs/vgeometry/$${DESTDIR}/libvgeometry.a
# Strip after you link all libaries. # Strip after you link all libaries.
CONFIG(release, debug|release){ CONFIG(release, debug|release){

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "varclength.h" #include "varclength.h"
#include "../geometry/vabstractcurve.h" #include "../libs/vgeometry/vabstractcurve.h"
#include "../core/vapplication.h" #include "../core/vapplication.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -29,7 +29,7 @@
#include "vcurvelength.h" #include "vcurvelength.h"
#include "vcurvelength_p.h" #include "vcurvelength_p.h"
#include "../core/vapplication.h" #include "../core/vapplication.h"
#include "../geometry/vabstractcurve.h" #include "../libs/vgeometry/vabstractcurve.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
VCurveLength::VCurveLength() VCurveLength::VCurveLength()

View File

@ -28,7 +28,7 @@
#include "vlineangle.h" #include "vlineangle.h"
#include "vlineangle_p.h" #include "vlineangle_p.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../core/vapplication.h" #include "../core/vapplication.h"
#include <QLineF> #include <QLineF>

View File

@ -28,7 +28,7 @@
#include "vlinelength.h" #include "vlinelength.h"
#include "vlinelength_p.h" #include "vlinelength_p.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../core/vapplication.h" #include "../core/vapplication.h"
#include <QLineF> #include <QLineF>

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "vsplinelength.h" #include "vsplinelength.h"
#include "../geometry/vabstractcurve.h" #include "../libs/vgeometry/vabstractcurve.h"
#include "../core/vapplication.h" #include "../core/vapplication.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -28,8 +28,8 @@
#include "vcontainer.h" #include "vcontainer.h"
#include "../core/vapplication.h" #include "../core/vapplication.h"
#include "../geometry/varc.h" #include "../libs/vgeometry/varc.h"
#include "../geometry/vsplinepath.h" #include "../libs/vgeometry/vsplinepath.h"
#include "../../utils/logging.h" #include "../../utils/logging.h"
#include <QLineF> #include <QLineF>

View File

@ -31,9 +31,9 @@
#include "variables.h" #include "variables.h"
#include "../geometry/vdetail.h" #include "../geometry/vdetail.h"
#include "../geometry/vgobject.h" #include "../libs/vgeometry/vgobject.h"
#include "../libs/ifc/exception/vexceptionbadid.h" #include "../libs/ifc/exception/vexceptionbadid.h"
#include "../geometry/vabstractcurve.h" #include "../libs/vgeometry/vabstractcurve.h"
#include <QCoreApplication> #include <QCoreApplication>
#include <QHash> #include <QHash>

View File

@ -28,9 +28,9 @@
#include "dialoghistory.h" #include "dialoghistory.h"
#include "ui_dialoghistory.h" #include "ui_dialoghistory.h"
#include "../../geometry/varc.h" #include "../../libs/vgeometry/varc.h"
#include "../../geometry/vsplinepath.h" #include "../../libs/vgeometry/vsplinepath.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../tools/vabstracttool.h" #include "../../tools/vabstracttool.h"
#include "../../tools/drawTools/vtoolcutspline.h" #include "../../tools/drawTools/vtoolcutspline.h"
#include "../../tools/drawTools/vtoolcutsplinepath.h" #include "../../tools/drawTools/vtoolcutsplinepath.h"

View File

@ -32,7 +32,7 @@
#include <QPushButton> #include <QPushButton>
#include <QTimer> #include <QTimer>
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../libs/ifc/xml/vdomdocument.h" #include "../../libs/ifc/xml/vdomdocument.h"
#include "../../visualization/vistoolarc.h" #include "../../visualization/vistoolarc.h"

View File

@ -29,7 +29,7 @@
#include "dialogbisector.h" #include "dialogbisector.h"
#include "ui_dialogbisector.h" #include "ui_dialogbisector.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../visualization/vistoolbisector.h" #include "../../visualization/vistoolbisector.h"
#include "../../widgets/vmaingraphicsscene.h" #include "../../widgets/vmaingraphicsscene.h"

View File

@ -29,7 +29,7 @@
#include "dialogcurveintersectaxis.h" #include "dialogcurveintersectaxis.h"
#include "ui_dialogcurveintersectaxis.h" #include "ui_dialogcurveintersectaxis.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../visualization/vistoolcurveintersectaxis.h" #include "../../visualization/vistoolcurveintersectaxis.h"
#include "../../widgets/vmaingraphicsscene.h" #include "../../widgets/vmaingraphicsscene.h"

View File

@ -29,7 +29,7 @@
#include "dialogcutarc.h" #include "dialogcutarc.h"
#include "ui_dialogcutarc.h" #include "ui_dialogcutarc.h"
#include "../../geometry/varc.h" #include "../../libs/vgeometry/varc.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../visualization/vistoolcutarc.h" #include "../../visualization/vistoolcutarc.h"
#include "../../widgets/vmaingraphicsscene.h" #include "../../widgets/vmaingraphicsscene.h"

View File

@ -29,7 +29,7 @@
#include "dialogcutspline.h" #include "dialogcutspline.h"
#include "ui_dialogcutspline.h" #include "ui_dialogcutspline.h"
#include "../../geometry/vspline.h" #include "../../libs/vgeometry/vspline.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../xml/vpattern.h" #include "../../xml/vpattern.h"
#include "../../visualization/vistoolcutspline.h" #include "../../visualization/vistoolcutspline.h"

View File

@ -29,7 +29,7 @@
#include "dialogcutsplinepath.h" #include "dialogcutsplinepath.h"
#include "ui_dialogcutsplinepath.h" #include "ui_dialogcutsplinepath.h"
#include "../../geometry/vsplinepath.h" #include "../../libs/vgeometry/vsplinepath.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../xml/vpattern.h" #include "../../xml/vpattern.h"
#include "../../visualization/vistoolcutsplinepath.h" #include "../../visualization/vistoolcutsplinepath.h"

View File

@ -30,9 +30,9 @@
#include <QDebug> #include <QDebug>
#include "../../geometry/varc.h" #include "../../libs/vgeometry/varc.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../geometry/vsplinepath.h" #include "../../libs/vgeometry/vsplinepath.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../libs/ifc/xml/vdomdocument.h" #include "../../libs/ifc/xml/vdomdocument.h"
#include "../../xml/vabstractmeasurements.h" #include "../../xml/vabstractmeasurements.h"

View File

@ -29,7 +29,7 @@
#include "dialogendline.h" #include "dialogendline.h"
#include "ui_dialogendline.h" #include "ui_dialogendline.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../visualization/vistoolendline.h" #include "../../visualization/vistoolendline.h"
#include "../../widgets/vmaingraphicsscene.h" #include "../../widgets/vmaingraphicsscene.h"

View File

@ -29,7 +29,7 @@
#include "dialogheight.h" #include "dialogheight.h"
#include "ui_dialogheight.h" #include "ui_dialogheight.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../tools/vabstracttool.h" #include "../../tools/vabstracttool.h"
#include "../visualization/vistoolheight.h" #include "../visualization/vistoolheight.h"

View File

@ -29,7 +29,7 @@
#include "dialogline.h" #include "dialogline.h"
#include "ui_dialogline.h" #include "ui_dialogline.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../visualization/vistoolline.h" #include "../../visualization/vistoolline.h"
#include "../../core/vapplication.h" #include "../../core/vapplication.h"

View File

@ -29,7 +29,7 @@
#include "dialoglineintersect.h" #include "dialoglineintersect.h"
#include "ui_dialoglineintersect.h" #include "ui_dialoglineintersect.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../visualization/vistoollineintersect.h" #include "../../visualization/vistoollineintersect.h"
#include "../../widgets/vmaingraphicsscene.h" #include "../../widgets/vmaingraphicsscene.h"

View File

@ -29,7 +29,7 @@
#include "dialoglineintersectaxis.h" #include "dialoglineintersectaxis.h"
#include "ui_dialoglineintersectaxis.h" #include "ui_dialoglineintersectaxis.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../visualization/vistoollineintersectaxis.h" #include "../../visualization/vistoollineintersectaxis.h"
#include "../../widgets/vmaingraphicsscene.h" #include "../../widgets/vmaingraphicsscene.h"

View File

@ -28,7 +28,7 @@
#include "dialogpointofcontact.h" #include "dialogpointofcontact.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../visualization/vistoolpointofcontact.h" #include "../../visualization/vistoolpointofcontact.h"
#include "../../widgets/vmaingraphicsscene.h" #include "../../widgets/vmaingraphicsscene.h"

View File

@ -29,7 +29,7 @@
#include "dialogpointofintersection.h" #include "dialogpointofintersection.h"
#include "ui_dialogpointofintersection.h" #include "ui_dialogpointofintersection.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../visualization/vistoolpointofintersection.h" #include "../../visualization/vistoolpointofintersection.h"
#include "../../widgets/vmaingraphicsscene.h" #include "../../widgets/vmaingraphicsscene.h"

View File

@ -29,7 +29,7 @@
#include "dialogshoulderpoint.h" #include "dialogshoulderpoint.h"
#include "ui_dialogshoulderpoint.h" #include "ui_dialogshoulderpoint.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../visualization/vistoolshoulderpoint.h" #include "../../visualization/vistoolshoulderpoint.h"
#include "../../widgets/vmaingraphicsscene.h" #include "../../widgets/vmaingraphicsscene.h"

View File

@ -29,7 +29,7 @@
#include "dialogspline.h" #include "dialogspline.h"
#include "ui_dialogspline.h" #include "ui_dialogspline.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../visualization/vistoolspline.h" #include "../../visualization/vistoolspline.h"
#include <QDebug> #include <QDebug>

View File

@ -28,7 +28,7 @@
#include "dialogsplinepath.h" #include "dialogsplinepath.h"
#include "ui_dialogsplinepath.h" #include "ui_dialogsplinepath.h"
#include "../../geometry/vsplinepoint.h" #include "../../libs/vgeometry/vsplinepoint.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../visualization/vistoolsplinepath.h" #include "../../visualization/vistoolsplinepath.h"

View File

@ -30,7 +30,7 @@
#define DIALOGSPLINEPATH_H #define DIALOGSPLINEPATH_H
#include "dialogtool.h" #include "dialogtool.h"
#include "../../geometry/vsplinepath.h" #include "../../libs/vgeometry/vsplinepath.h"
namespace Ui namespace Ui
{ {

View File

@ -29,9 +29,9 @@
#include "dialogtool.h" #include "dialogtool.h"
#include "../../container/calculator.h" #include "../../container/calculator.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../geometry/varc.h" #include "../../libs/vgeometry/varc.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../geometry/vsplinepath.h" #include "../../libs/vgeometry/vsplinepath.h"
#include "../../tools/vabstracttool.h" #include "../../tools/vabstracttool.h"
#include "../../../libs/qmuparser/qmuparsererror.h" #include "../../../libs/qmuparser/qmuparsererror.h"
#include "../../libs/ifc/xml/vdomdocument.h" #include "../../libs/ifc/xml/vdomdocument.h"

View File

@ -28,7 +28,7 @@
#include "dialogtriangle.h" #include "dialogtriangle.h"
#include "ui_dialogtriangle.h" #include "ui_dialogtriangle.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vcontainer.h" #include "../../container/vcontainer.h"
#include "../../visualization/vistooltriangle.h" #include "../../visualization/vistooltriangle.h"
#include "../../widgets/vmaingraphicsscene.h" #include "../../widgets/vmaingraphicsscene.h"

View File

@ -2,31 +2,11 @@
# This need for corect working file translations.pro # This need for corect working file translations.pro
HEADERS += \ HEADERS += \
$$PWD/vsplinepoint.h \
$$PWD/vsplinepath.h \
$$PWD/vspline.h \
$$PWD/vnodedetail.h \ $$PWD/vnodedetail.h \
$$PWD/vdetail.h \ $$PWD/vdetail.h \
$$PWD/varc.h \
$$PWD/vgobject.h \
$$PWD/vpointf.h \
$$PWD/vabstractcurve.h \
$$PWD/vnodedetail_p.h \ $$PWD/vnodedetail_p.h \
$$PWD/vdetail_p.h \ $$PWD/vdetail_p.h
$$PWD/vgobject_p.h \
$$PWD/varc_p.h \
$$PWD/vspline_p.h \
$$PWD/vsplinepoint_p.h \
$$PWD/vsplinepath_p.h \
$$PWD/vpointf_p.h
SOURCES += \ SOURCES += \
$$PWD/vsplinepoint.cpp \
$$PWD/vsplinepath.cpp \
$$PWD/vspline.cpp \
$$PWD/vnodedetail.cpp \ $$PWD/vnodedetail.cpp \
$$PWD/vdetail.cpp \ $$PWD/vdetail.cpp
$$PWD/varc.cpp \
$$PWD/vgobject.cpp \
$$PWD/vpointf.cpp \
$$PWD/vabstractcurve.cpp

View File

@ -28,7 +28,7 @@
#include "mainwindow.h" #include "mainwindow.h"
#include "ui_mainwindow.h" #include "ui_mainwindow.h"
#include "geometry/vspline.h" #include "../libs/vgeometry/vspline.h"
#include "exception/vexceptionobjecterror.h" #include "exception/vexceptionobjecterror.h"
#include "exception/vexceptionconversionerror.h" #include "exception/vexceptionconversionerror.h"
#include "exception/vexceptionemptyparameter.h" #include "exception/vexceptionemptyparameter.h"

View File

@ -189,9 +189,6 @@ const QString depthWaistSecond_M = QStringLiteral("depth_waist_
//variables //variables
const QString line_ = QStringLiteral("Line_"); const QString line_ = QStringLiteral("Line_");
const QString angleLine_ = QStringLiteral("AngleLine_"); const QString angleLine_ = QStringLiteral("AngleLine_");
const QString arc_ = QStringLiteral("Arc_");
const QString spl_ = QStringLiteral("Spl_");
const QString splPath = QStringLiteral("SplPath");
//functions //functions
const QString sin_F = QStringLiteral("sin"); const QString sin_F = QStringLiteral("sin");

View File

@ -30,6 +30,7 @@
#define OPTIONS_H #define OPTIONS_H
#include "../libs/ifc/ifcdef.h" #include "../libs/ifc/ifcdef.h"
#include "../libs/vgeometry/vgeometrydef.h"
#include "../../utils/def.h" #include "../../utils/def.h"
#ifdef Q_OS_WIN32 #ifdef Q_OS_WIN32
@ -119,11 +120,8 @@ enum class Vis : unsigned char
}; };
enum class Source : char { FromGui, FromFile, FromTool }; enum class Source : char { FromGui, FromFile, FromTool };
enum class Draw : char { Calculation, Modeling };
enum class NodeDetail : char { Contour, Modeling }; enum class NodeDetail : char { Contour, Modeling };
enum class Contour : char { OpenContour, CloseContour }; enum class Contour : char { OpenContour, CloseContour };
enum class GOType : char { Point, Arc, Spline, SplinePath, Unknown };
enum class SplinePointPosition : char { FirstPoint, LastPoint };
enum class VarType : char { Measurement, Increment, LineLength, SplineLength, ArcLength, LineAngle, Unknown }; enum class VarType : char { Measurement, Increment, LineLength, SplineLength, ArcLength, LineAngle, Unknown };
enum class GHeights : unsigned char { ALL, enum class GHeights : unsigned char { ALL,
@ -281,9 +279,6 @@ extern const QString depthWaistSecond_M;
// variables name // variables name
extern const QString line_; extern const QString line_;
extern const QString angleLine_; extern const QString angleLine_;
extern const QString arc_;
extern const QString spl_;
extern const QString splPath;
// functions // functions
extern const QString sin_F; extern const QString sin_F;

View File

@ -29,7 +29,7 @@
#include "vtoolalongline.h" #include "vtoolalongline.h"
#include "../../container/calculator.h" #include "../../container/calculator.h"
#include "../../dialogs/tools/dialogalongline.h" #include "../../dialogs/tools/dialogalongline.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../libs/ifc/exception/vexceptionobjecterror.h" #include "../../libs/ifc/exception/vexceptionobjecterror.h"
#include "../../visualization/vistoolalongline.h" #include "../../visualization/vistoolalongline.h"

View File

@ -29,7 +29,7 @@
#include "vtoolarc.h" #include "vtoolarc.h"
#include "../../container/calculator.h" #include "../../container/calculator.h"
#include "../../dialogs/tools/dialogarc.h" #include "../../dialogs/tools/dialogarc.h"
#include "../../geometry/varc.h" #include "../../libs/vgeometry/varc.h"
#include "../container/vformula.h" #include "../container/vformula.h"
#include "../../visualization/vistoolarc.h" #include "../../visualization/vistoolarc.h"
@ -222,7 +222,7 @@ void VToolArc::SetFormulaRadius(const VFormula &value)
{ {
QSharedPointer<VGObject> obj = VAbstractTool::data.GetGObject(id); QSharedPointer<VGObject> obj = VAbstractTool::data.GetGObject(id);
QSharedPointer<VArc> arc = qSharedPointerDynamicCast<VArc>(obj); QSharedPointer<VArc> arc = qSharedPointerDynamicCast<VArc>(obj);
arc->SetFormulaRadius(value); arc->SetFormulaRadius(value.GetFormula(FormulaType::FromUser), value.getDoubleValue());
SaveOption(obj); SaveOption(obj);
} }
} }
@ -251,7 +251,7 @@ void VToolArc::SetFormulaF1(const VFormula &value)
if (qFuzzyCompare(value.getDoubleValue() + 1, arc->GetF2() + 1)==false)// Angles can't be equal if (qFuzzyCompare(value.getDoubleValue() + 1, arc->GetF2() + 1)==false)// Angles can't be equal
{ {
arc->SetFormulaF1(value); arc->SetFormulaF1(value.GetFormula(FormulaType::FromUser), value.getDoubleValue());
SaveOption(obj); SaveOption(obj);
} }
} }
@ -279,7 +279,7 @@ void VToolArc::SetFormulaF2(const VFormula &value)
QSharedPointer<VArc> arc = qSharedPointerDynamicCast<VArc>(obj); QSharedPointer<VArc> arc = qSharedPointerDynamicCast<VArc>(obj);
if (qFuzzyCompare(value.getDoubleValue() + 1, arc->GetF1() + 1)==false)// Angles can't be equal if (qFuzzyCompare(value.getDoubleValue() + 1, arc->GetF1() + 1)==false)// Angles can't be equal
{ {
arc->SetFormulaF2(value); arc->SetFormulaF2(value.GetFormula(FormulaType::FromUser), value.getDoubleValue());
SaveOption(obj); SaveOption(obj);
} }
} }

View File

@ -29,7 +29,7 @@
#include "vtoolbisector.h" #include "vtoolbisector.h"
#include "../../container/calculator.h" #include "../../container/calculator.h"
#include "../../dialogs/tools/dialogbisector.h" #include "../../dialogs/tools/dialogbisector.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../visualization/vistoolbisector.h" #include "../../visualization/vistoolbisector.h"
const QString VToolBisector::ToolType = QStringLiteral("bisector"); const QString VToolBisector::ToolType = QStringLiteral("bisector");

View File

@ -31,7 +31,7 @@
#include "../../container/calculator.h" #include "../../container/calculator.h"
#include "../../dialogs/tools/dialogcurveintersectaxis.h" #include "../../dialogs/tools/dialogcurveintersectaxis.h"
#include "../../dialogs/tools/dialogeditwrongformula.h" #include "../../dialogs/tools/dialogeditwrongformula.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "./../visualization/vistoolcurveintersectaxis.h" #include "./../visualization/vistoolcurveintersectaxis.h"
const QString VToolCurveIntersectAxis::ToolType = QStringLiteral("curveIntersectAxis"); const QString VToolCurveIntersectAxis::ToolType = QStringLiteral("curveIntersectAxis");

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "vtoolcut.h" #include "vtoolcut.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vformula.h" #include "../../container/vformula.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -29,8 +29,8 @@
#include "vtoolcutarc.h" #include "vtoolcutarc.h"
#include "../../container/calculator.h" #include "../../container/calculator.h"
#include "../../dialogs/tools/dialogcutarc.h" #include "../../dialogs/tools/dialogcutarc.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../geometry/varc.h" #include "../../libs/vgeometry/varc.h"
#include "../../visualization/vistoolcutarc.h" #include "../../visualization/vistoolcutarc.h"
const QString VToolCutArc::ToolType = QStringLiteral("cutArc"); const QString VToolCutArc::ToolType = QStringLiteral("cutArc");

View File

@ -29,10 +29,10 @@
#include "vtoolcutspline.h" #include "vtoolcutspline.h"
#include "../../container/calculator.h" #include "../../container/calculator.h"
#include "../../dialogs/tools/dialogcutspline.h" #include "../../dialogs/tools/dialogcutspline.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../visualization/vistoolcutspline.h" #include "../../visualization/vistoolcutspline.h"
#include "vabstractspline.h" #include "vabstractspline.h"
#include "../../geometry/vspline.h" #include "../../libs/vgeometry/vspline.h"
const QString VToolCutSpline::ToolType = QStringLiteral("cutSpline"); const QString VToolCutSpline::ToolType = QStringLiteral("cutSpline");
const QString VToolCutSpline::AttrSpline = QStringLiteral("spline"); const QString VToolCutSpline::AttrSpline = QStringLiteral("spline");

View File

@ -29,11 +29,10 @@
#include "vtoolcutsplinepath.h" #include "vtoolcutsplinepath.h"
#include "../../container/calculator.h" #include "../../container/calculator.h"
#include "../../dialogs/tools/dialogcutsplinepath.h" #include "../../dialogs/tools/dialogcutsplinepath.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../visualization/vistoolcutsplinepath.h" #include "../../visualization/vistoolcutsplinepath.h"
#include "vabstractspline.h" #include "vabstractspline.h"
#include "../../libs/vgeometry/vsplinepath.h"
#include "../../geometry/vsplinepath.h"
const QString VToolCutSplinePath::ToolType = QStringLiteral("cutSplinePath"); const QString VToolCutSplinePath::ToolType = QStringLiteral("cutSplinePath");
const QString VToolCutSplinePath::AttrSplinePath = QStringLiteral("splinePath"); const QString VToolCutSplinePath::AttrSplinePath = QStringLiteral("splinePath");

View File

@ -31,7 +31,7 @@
#include "../../container/calculator.h" #include "../../container/calculator.h"
#include "../../dialogs/tools/dialogendline.h" #include "../../dialogs/tools/dialogendline.h"
#include "../../dialogs/tools/dialogeditwrongformula.h" #include "../../dialogs/tools/dialogeditwrongformula.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "./../visualization/vistoolendline.h" #include "./../visualization/vistoolendline.h"
const QString VToolEndLine::ToolType = QStringLiteral("endLine"); const QString VToolEndLine::ToolType = QStringLiteral("endLine");

View File

@ -28,7 +28,7 @@
#include "vtoolheight.h" #include "vtoolheight.h"
#include "../../dialogs/tools/dialogheight.h" #include "../../dialogs/tools/dialogheight.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../visualization/vistoolheight.h" #include "../../visualization/vistoolheight.h"
const QString VToolHeight::ToolType = QStringLiteral("height"); const QString VToolHeight::ToolType = QStringLiteral("height");

View File

@ -29,7 +29,7 @@
#include "vtoolline.h" #include "vtoolline.h"
#include "../../dialogs/tools/dialogline.h" #include "../../dialogs/tools/dialogline.h"
#include <QKeyEvent> #include <QKeyEvent>
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../dialogs/tools/dialogline.h" #include "../../dialogs/tools/dialogline.h"
#include "../../visualization/vistoolline.h" #include "../../visualization/vistoolline.h"

View File

@ -28,7 +28,7 @@
#include "vtoollineintersect.h" #include "vtoollineintersect.h"
#include "../../dialogs/tools/dialoglineintersect.h" #include "../../dialogs/tools/dialoglineintersect.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../visualization/vistoollineintersect.h" #include "../../visualization/vistoollineintersect.h"
const QString VToolLineIntersect::ToolType = QStringLiteral("lineIntersect"); const QString VToolLineIntersect::ToolType = QStringLiteral("lineIntersect");

View File

@ -31,7 +31,7 @@
#include "../../container/calculator.h" #include "../../container/calculator.h"
#include "../../dialogs/tools/dialoglineintersectaxis.h" #include "../../dialogs/tools/dialoglineintersectaxis.h"
#include "../../dialogs/tools/dialogeditwrongformula.h" #include "../../dialogs/tools/dialogeditwrongformula.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "./../visualization/vistoollineintersectaxis.h" #include "./../visualization/vistoollineintersectaxis.h"
const QString VToolLineIntersectAxis::ToolType = QStringLiteral("lineIntersectAxis"); const QString VToolLineIntersectAxis::ToolType = QStringLiteral("lineIntersectAxis");

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "vtoollinepoint.h" #include "vtoollinepoint.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
/** /**

View File

@ -29,7 +29,7 @@
#include "vtoolnormal.h" #include "vtoolnormal.h"
#include "../../container/calculator.h" #include "../../container/calculator.h"
#include "../../dialogs/tools/dialognormal.h" #include "../../dialogs/tools/dialognormal.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../visualization/vistoolnormal.h" #include "../../visualization/vistoolnormal.h"
const QString VToolNormal::ToolType = QStringLiteral("normal"); const QString VToolNormal::ToolType = QStringLiteral("normal");

View File

@ -28,7 +28,7 @@
#include "vtoolpoint.h" #include "vtoolpoint.h"
#include "../../utils/logging.h" #include "../../utils/logging.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../visualization/vgraphicssimpletextitem.h" #include "../../visualization/vgraphicssimpletextitem.h"
#include "../../undocommands/movelabel.h" #include "../../undocommands/movelabel.h"

View File

@ -29,7 +29,7 @@
#include "vtoolpointofcontact.h" #include "vtoolpointofcontact.h"
#include "../../container/calculator.h" #include "../../container/calculator.h"
#include "../../dialogs/tools/dialogpointofcontact.h" #include "../../dialogs/tools/dialogpointofcontact.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../container/vformula.h" #include "../../container/vformula.h"
#include "../../visualization/vistoolpointofcontact.h" #include "../../visualization/vistoolpointofcontact.h"
#include <QtCore/qmath.h> #include <QtCore/qmath.h>

View File

@ -28,7 +28,7 @@
#include "vtoolpointofintersection.h" #include "vtoolpointofintersection.h"
#include "../../dialogs/tools/dialogpointofintersection.h" #include "../../dialogs/tools/dialogpointofintersection.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../visualization/vistoolpointofintersection.h" #include "../../visualization/vistoolpointofintersection.h"
const QString VToolPointOfIntersection::ToolType = QStringLiteral("pointOfIntersection"); const QString VToolPointOfIntersection::ToolType = QStringLiteral("pointOfIntersection");

View File

@ -29,7 +29,7 @@
#include "vtoolshoulderpoint.h" #include "vtoolshoulderpoint.h"
#include "../../container/calculator.h" #include "../../container/calculator.h"
#include "../../dialogs/tools/dialogshoulderpoint.h" #include "../../dialogs/tools/dialogshoulderpoint.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../visualization/vistoolshoulderpoint.h" #include "../../visualization/vistoolshoulderpoint.h"
const QString VToolShoulderPoint::ToolType = QStringLiteral("shoulder"); const QString VToolShoulderPoint::ToolType = QStringLiteral("shoulder");

View File

@ -32,7 +32,7 @@
#include "../../undocommands/movespoint.h" #include "../../undocommands/movespoint.h"
#include "../../undocommands/addpatternpiece.h" #include "../../undocommands/addpatternpiece.h"
#include "../../undocommands/deletepatternpiece.h" #include "../../undocommands/deletepatternpiece.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../options.h" #include "../../options.h"
#include <QMessageBox> #include <QMessageBox>

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "vtoolspline.h" #include "vtoolspline.h"
#include "../../geometry/vspline.h" #include "../../libs/vgeometry/vspline.h"
#include "../../dialogs/tools/dialogspline.h" #include "../../dialogs/tools/dialogspline.h"
#include "../../undocommands/movespline.h" #include "../../undocommands/movespline.h"
#include "../../visualization/vistoolspline.h" #include "../../visualization/vistoolspline.h"

View File

@ -28,7 +28,7 @@
#include "vtooltriangle.h" #include "vtooltriangle.h"
#include "../../dialogs/tools/dialogtriangle.h" #include "../../dialogs/tools/dialogtriangle.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../visualization/vistooltriangle.h" #include "../../visualization/vistooltriangle.h"
#include <QtCore/qmath.h> #include <QtCore/qmath.h>

View File

@ -29,7 +29,7 @@
#include "vnodearc.h" #include "vnodearc.h"
#include "../../core/vapplication.h" #include "../../core/vapplication.h"
#include "../../geometry/varc.h" #include "../../libs/vgeometry/varc.h"
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include <QPen> #include <QPen>

View File

@ -29,7 +29,7 @@
#include "vnodepoint.h" #include "vnodepoint.h"
#include "../../core/vapplication.h" #include "../../core/vapplication.h"
#include "../../geometry/vpointf.h" #include "../../libs/vgeometry/vpointf.h"
#include "../../visualization/vgraphicssimpletextitem.h" #include "../../visualization/vgraphicssimpletextitem.h"
#include <QPen> #include <QPen>
#include <QBrush> #include <QBrush>

View File

@ -29,7 +29,7 @@
#include "vnodespline.h" #include "vnodespline.h"
#include "../../core/vapplication.h" #include "../../core/vapplication.h"
#include "../../geometry/vspline.h" #include "../../libs/vgeometry/vspline.h"
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include <QPen> #include <QPen>

View File

@ -29,7 +29,7 @@
#include "vnodesplinepath.h" #include "vnodesplinepath.h"
#include "../../core/vapplication.h" #include "../../core/vapplication.h"
#include "../../geometry/vsplinepath.h" #include "../../libs/vgeometry/vsplinepath.h"
#include <QGraphicsSceneMouseEvent> #include <QGraphicsSceneMouseEvent>
#include <QPen> #include <QPen>

View File

@ -35,7 +35,7 @@
#include "../../libs/vpropertyexplorer/checkablemessagebox.h" #include "../../libs/vpropertyexplorer/checkablemessagebox.h"
#include "../undocommands/deltool.h" #include "../undocommands/deltool.h"
#include "../core/vapplication.h" #include "../core/vapplication.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../undocommands/savetooloptions.h" #include "../undocommands/savetooloptions.h"
#include "../widgets/vmaingraphicsview.h" #include "../widgets/vmaingraphicsview.h"
#include "../core/vsettings.h" #include "../core/vsettings.h"

View File

@ -28,8 +28,8 @@
#include "vtooldetail.h" #include "vtooldetail.h"
#include "nodeDetails/nodedetails.h" #include "nodeDetails/nodedetails.h"
#include "../geometry/varc.h" #include "../libs/vgeometry/varc.h"
#include "../geometry/vsplinepath.h" #include "../libs/vgeometry/vsplinepath.h"
#include "../widgets/vmaingraphicsscene.h" #include "../widgets/vmaingraphicsscene.h"
#include "../dialogs/tools/dialogtool.h" #include "../dialogs/tools/dialogtool.h"
#include "../dialogs/tools/dialogdetail.h" #include "../dialogs/tools/dialogdetail.h"

View File

@ -29,9 +29,9 @@
#include "vtooluniondetails.h" #include "vtooluniondetails.h"
#include "nodeDetails/nodedetails.h" #include "nodeDetails/nodedetails.h"
#include "vtooldetail.h" #include "vtooldetail.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../geometry/varc.h" #include "../libs/vgeometry/varc.h"
#include "../geometry/vsplinepath.h" #include "../libs/vgeometry/vsplinepath.h"
#include "../dialogs/tools/dialoguniondetails.h" #include "../dialogs/tools/dialoguniondetails.h"
#include "../undocommands/adduniondetails.h" #include "../undocommands/adduniondetails.h"

View File

@ -30,7 +30,7 @@
#define MOVESPLINE_H #define MOVESPLINE_H
#include "vundocommand.h" #include "vundocommand.h"
#include "../geometry/vspline.h" #include "../libs/vgeometry/vspline.h"
class QGraphicsScene; class QGraphicsScene;

View File

@ -30,7 +30,7 @@
#define MOVESPLINEPATH_H #define MOVESPLINEPATH_H
#include "vundocommand.h" #include "vundocommand.h"
#include "../geometry/vsplinepath.h" #include "../libs/vgeometry/vsplinepath.h"
class QGraphicsScene; class QGraphicsScene;

View File

@ -31,7 +31,8 @@
#include <QGraphicsEllipseItem> #include <QGraphicsEllipseItem>
#include <QObject> #include <QObject>
#include "../geometry/vsplinepath.h" #include "../libs/vgeometry/vsplinepath.h"
#include "../options.h"
/** /**
* @brief The VControlPointSpline class control spline point. * @brief The VControlPointSpline class control spline point.

View File

@ -28,7 +28,7 @@
#include "vistoolalongline.h" #include "vistoolalongline.h"
#include "../container/vcontainer.h" #include "../container/vcontainer.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
VisToolAlongLine::VisToolAlongLine(const VContainer *data, QGraphicsItem *parent) VisToolAlongLine::VisToolAlongLine(const VContainer *data, QGraphicsItem *parent)

View File

@ -27,8 +27,8 @@
*************************************************************************/ *************************************************************************/
#include "vistoolarc.h" #include "vistoolarc.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../geometry/varc.h" #include "../libs/vgeometry/varc.h"
#include "../container/vcontainer.h" #include "../container/vcontainer.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "vistoolbisector.h" #include "vistoolbisector.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../container/vcontainer.h" #include "../container/vcontainer.h"
#include "../tools/drawTools/vtoolbisector.h" #include "../tools/drawTools/vtoolbisector.h"

View File

@ -28,7 +28,7 @@
#include "vistoolcurveintersectaxis.h" #include "vistoolcurveintersectaxis.h"
#include "../container/vcontainer.h" #include "../container/vcontainer.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../tools/drawTools/vtoolcurveintersectaxis.h" #include "../tools/drawTools/vtoolcurveintersectaxis.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "vistoolcutarc.h" #include "vistoolcutarc.h"
#include "../geometry/varc.h" #include "../libs/vgeometry/varc.h"
#include "../container/vcontainer.h" #include "../container/vcontainer.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "vistoolcutspline.h" #include "vistoolcutspline.h"
#include "../geometry/vspline.h" #include "../libs/vgeometry/vspline.h"
#include "../container/vcontainer.h" #include "../container/vcontainer.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -28,7 +28,7 @@
#include "vistoolcutsplinepath.h" #include "vistoolcutsplinepath.h"
#include "../container/vcontainer.h" #include "../container/vcontainer.h"
#include "../geometry/vsplinepath.h" #include "../libs/vgeometry/vsplinepath.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
VisToolCutSplinePath::VisToolCutSplinePath(const VContainer *data, QGraphicsItem *parent) VisToolCutSplinePath::VisToolCutSplinePath(const VContainer *data, QGraphicsItem *parent)

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "vistoolendline.h" #include "vistoolendline.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../container/vcontainer.h" #include "../container/vcontainer.h"
#include "../tools/vabstracttool.h" #include "../tools/vabstracttool.h"

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "vistoolheight.h" #include "vistoolheight.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../tools/drawTools/vtoolheight.h" #include "../tools/drawTools/vtoolheight.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -28,7 +28,7 @@
#include "vistoolline.h" #include "vistoolline.h"
#include "../container/vcontainer.h" #include "../container/vcontainer.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../tools/drawTools/vdrawtool.h" #include "../tools/drawTools/vdrawtool.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "vistoollineintersect.h" #include "vistoollineintersect.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../container/vcontainer.h" #include "../container/vcontainer.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -28,7 +28,7 @@
#include "vistoollineintersectaxis.h" #include "vistoollineintersectaxis.h"
#include "../container/vcontainer.h" #include "../container/vcontainer.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../tools/drawTools/vtoollineintersectaxis.h" #include "../tools/drawTools/vtoollineintersectaxis.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "vistoolnormal.h" #include "vistoolnormal.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../tools/drawTools/vtoolnormal.h" #include "../tools/drawTools/vtoolnormal.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "vistoolpointofcontact.h" #include "vistoolpointofcontact.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../tools/drawTools/vtoolpointofcontact.h" #include "../tools/drawTools/vtoolpointofcontact.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "vistoolpointofintersection.h" #include "vistoolpointofintersection.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../container/vcontainer.h" #include "../container/vcontainer.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -28,7 +28,7 @@
#include "vistoolshoulderpoint.h" #include "vistoolshoulderpoint.h"
#include "../tools/drawTools/vtoolshoulderpoint.h" #include "../tools/drawTools/vtoolshoulderpoint.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
VisToolShoulderPoint::VisToolShoulderPoint(const VContainer *data, QGraphicsItem *parent) VisToolShoulderPoint::VisToolShoulderPoint(const VContainer *data, QGraphicsItem *parent)

View File

@ -27,8 +27,8 @@
*************************************************************************/ *************************************************************************/
#include "vistoolspline.h" #include "vistoolspline.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../geometry/vspline.h" #include "../libs/vgeometry/vspline.h"
#include "../container/vcontainer.h" #include "../container/vcontainer.h"
const int EMPTY_ANGLE = -1; const int EMPTY_ANGLE = -1;

View File

@ -30,7 +30,7 @@
#define VISTOOLSPLINEPATH_H #define VISTOOLSPLINEPATH_H
#include "vispath.h" #include "vispath.h"
#include "../geometry/vsplinepath.h" #include "../libs/vgeometry/vsplinepath.h"
enum class Mode : char {Creation, Show}; enum class Mode : char {Creation, Show};

View File

@ -27,7 +27,7 @@
*************************************************************************/ *************************************************************************/
#include "vistooltriangle.h" #include "vistooltriangle.h"
#include "../geometry/vpointf.h" #include "../libs/vgeometry/vpointf.h"
#include "../container/vcontainer.h" #include "../container/vcontainer.h"
#include "../tools/drawTools/vtooltriangle.h" #include "../tools/drawTools/vtooltriangle.h"
#include <QtCore/qmath.h> #include <QtCore/qmath.h>

View File

@ -30,7 +30,8 @@
#define VSIMPLECURVE_H #define VSIMPLECURVE_H
#include <QGraphicsPathItem> #include <QGraphicsPathItem>
#include "../geometry/vabstractcurve.h" #include "../libs/vgeometry/vabstractcurve.h"
#include "../options.h"
enum class SimpleCurvePoint : char { FirstPoint, ForthPoint }; enum class SimpleCurvePoint : char { FirstPoint, ForthPoint };

View File

@ -43,7 +43,7 @@
#include "vstandardmeasurements.h" #include "vstandardmeasurements.h"
#include "vindividualmeasurements.h" #include "vindividualmeasurements.h"
#include "../../libs/qmuparser/qmuparsererror.h" #include "../../libs/qmuparser/qmuparsererror.h"
#include "../geometry/varc.h" #include "../libs/vgeometry/varc.h"
#include <QMessageBox> #include <QMessageBox>
#include <QUndoStack> #include <QUndoStack>

View File

@ -4,4 +4,5 @@ SUBDIRS = qmuparser \
vpropertyexplorer \ vpropertyexplorer \
ifc \ ifc \
vobj \ vobj \
vlayout vlayout \
vgeometry

View File

@ -0,0 +1,30 @@
/************************************************************************
**
** @file stable.cpp
** @author Roman Telezhynskyi <dismine(at)gmail.com>
** @date 10 12, 2014
**
** @brief
** @copyright
** This source code is part of the Valentine project, a pattern making
** program, whose allow create and modeling patterns of clothing.
** Copyright (C) 2013-2015 Valentina project
** <https://bitbucket.org/dismine/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/>.
**
*************************************************************************/
// Build the precompiled headers.
#include "stable.h"

View File

@ -0,0 +1,52 @@
/************************************************************************
**
** @file stable.h
** @author Roman Telezhynskyi <dismine(at)gmail.com>
** @date 10 12, 2014
**
** @brief
** @copyright
** This source code is part of the Valentine project, a pattern making
** program, whose allow create and modeling patterns of clothing.
** Copyright (C) 2013-2015 Valentina project
** <https://bitbucket.org/dismine/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 STABLE_H
#define STABLE_H
/* I like to include this pragma too, so the build log indicates if pre-compiled headers were in use. */
#ifndef __clang__
#pragma message("Compiling precompiled headers for VGeometry library.\n")
#endif
/* Add C includes here */
#if defined __cplusplus
/* Add C++ includes here */
#ifdef QT_CORE_LIB
#include <QtCore>
#endif
#ifdef QT_GUI_LIB
# include <QtGui>
#endif
#endif/*__cplusplus*/
#endif // STABLE_H

View File

@ -30,6 +30,7 @@
#define VABSTRACTCURVE_H #define VABSTRACTCURVE_H
#include "vgobject.h" #include "vgobject.h"
#include "../ifc/ifcdef.h"
#include <QPointF> #include <QPointF>
enum class PathDirection : char { Hide, Show }; enum class PathDirection : char { Hide, Show };

View File

@ -34,9 +34,6 @@
#include <QPointF> #include <QPointF>
#include <QtCore/qmath.h> #include <QtCore/qmath.h>
#include "../container/vformula.h"
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
/** /**
* @brief VArc default constructor. * @brief VArc default constructor.
@ -253,10 +250,10 @@ QString VArc::GetFormulaF1() const
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VArc::SetFormulaF1(const VFormula &value) void VArc::SetFormulaF1(const QString &formula, qreal value)
{ {
d->formulaF1 = value.GetFormula(FormulaType::FromUser); d->formulaF1 = formula;
d->f1 = value.getDoubleValue(); d->f1 = value;
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -280,10 +277,10 @@ QString VArc::GetFormulaF2() const
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VArc::SetFormulaF2(const VFormula &value) void VArc::SetFormulaF2(const QString &formula, qreal value)
{ {
d->formulaF2 = value.GetFormula(FormulaType::FromUser); d->formulaF2 = formula;
d->f2 = value.getDoubleValue(); d->f2 = value;
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -307,10 +304,10 @@ QString VArc::GetFormulaRadius() const
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
void VArc::SetFormulaRadius(const VFormula &value) void VArc::SetFormulaRadius(const QString &formula, qreal value)
{ {
d->formulaRadius = value.GetFormula(FormulaType::FromUser); d->formulaRadius = formula;
d->radius = value.getDoubleValue(); d->radius = value;
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------

View File

@ -35,7 +35,6 @@
class QPainterPath; class QPainterPath;
class VArcData; class VArcData;
class VFormula;
/** /**
* @brief VArc class for anticlockwise arc. * @brief VArc class for anticlockwise arc.
@ -53,15 +52,15 @@ public:
virtual ~VArc(); virtual ~VArc();
QString GetFormulaF1 () const; QString GetFormulaF1 () const;
void SetFormulaF1 (const VFormula &value); void SetFormulaF1 (const QString &formula, qreal value);
qreal GetF1 () const; qreal GetF1 () const;
QString GetFormulaF2 () const; QString GetFormulaF2 () const;
void SetFormulaF2 (const VFormula &value); void SetFormulaF2 (const QString &formula, qreal value);
qreal GetF2 () const; qreal GetF2 () const;
QString GetFormulaRadius () const; QString GetFormulaRadius () const;
void SetFormulaRadius (const VFormula &value); void SetFormulaRadius (const QString &formula, qreal value);
qreal GetRadius () const; qreal GetRadius () const;
VPointF GetCenter () const; VPointF GetCenter () const;

View File

@ -30,7 +30,7 @@
#define VARC_P_H #define VARC_P_H
#include <QSharedData> #include <QSharedData>
#include "../options.h" #include "vgeometrydef.h"
#include "vpointf.h" #include "vpointf.h"
#ifdef Q_CC_GNU #ifdef Q_CC_GNU

View File

@ -0,0 +1,30 @@
# ADD TO EACH PATH $$PWD VARIABLE!!!!!!
# This need for corect working file translations.pro
SOURCES += \
$$PWD/stable.cpp \
$$PWD/vgobject.cpp \
$$PWD/vabstractcurve.cpp \
$$PWD/varc.cpp \
$$PWD/vpointf.cpp \
$$PWD/vspline.cpp \
$$PWD/vsplinepath.cpp \
$$PWD/vsplinepoint.cpp \
$$PWD/vgeometrydef.cpp
HEADERS += \
$$PWD/stable.h \
$$PWD/vgobject.h \
$$PWD/vgobject_p.h \
$$PWD/vabstractcurve.h \
$$PWD/varc.h \
$$PWD/varc_p.h \
$$PWD/vpointf.h \
$$PWD/vpointf_p.h \
$$PWD/vspline.h \
$$PWD/vspline_p.h \
$$PWD/vsplinepath.h \
$$PWD/vsplinepath_p.h \
$$PWD/vsplinepoint.h \
$$PWD/vsplinepoint_p.h \
$$PWD/vgeometrydef.h

View File

@ -0,0 +1,97 @@
#-------------------------------------------------
#
# Project created by QtCreator 2015-05-07T13:42:04
#
#-------------------------------------------------
# File with common stuff for whole project
include(../../../Valentina.pri)
# Name of library
TARGET = vgeometry
# We want create a library
TEMPLATE = lib
CONFIG += \
staticlib \# Making static library
c++11 # We use C++11 standard
# Use out-of-source builds (shadow builds)
CONFIG -= debug_and_release debug_and_release_target
# Since Qt 5.4.0 the source code location is recorded only in debug builds.
# We need this information also in release builds. For this need define QT_MESSAGELOGCONTEXT.
DEFINES += QT_MESSAGELOGCONTEXT
include(vgeometry.pri)
include(../../utils/utils.pri)
# This is static library so no need in "make install"
# directory for executable file
DESTDIR = bin
# files created moc
MOC_DIR = moc
# objecs files
OBJECTS_DIR = obj
# Set using ccache. Function enable_ccache() defined in Valentina.pri.
$$enable_ccache()
# Set precompiled headers. Function set_PCH() defined in Valentina.pri.
$$set_PCH()
CONFIG(debug, debug|release){
# Debug mode
unix {
#Turn on compilers warnings.
*-g++{
QMAKE_CXXFLAGS += \
# Key -isystem disable checking errors in system headers.
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
$$GCC_DEBUG_CXXFLAGS # See Valentina.pri for more details.
#gccs 4.8.0 Address Sanitizer
#http://blog.qt.digia.com/blog/2013/04/17/using-gccs-4-8-0-address-sanitizer-with-qt/
QMAKE_CFLAGS+=-fsanitize=address -fno-omit-frame-pointer
QMAKE_LFLAGS+=-fsanitize=address
}
clang*{
QMAKE_CXXFLAGS += \
# Key -isystem disable checking errors in system headers.
-isystem "$${OUT_PWD}/$${MOC_DIR}" \
$$CLANG_DEBUG_CXXFLAGS # See Valentina.pri for more details.
}
} else {
*-g++{
QMAKE_CXXFLAGS += $$GCC_DEBUG_CXXFLAGS # See Valentina.pri for more details.
}
}
}else{
# Release mode
!unix:*-g++{
QMAKE_CXXFLAGS += -fno-omit-frame-pointer # Need for exchndl.dll
}
!macx:!win32-msvc*{
# Turn on debug symbols in release mode on Unix systems.
# On Mac OS X temporarily disabled. TODO: find way how to strip binary file.
QMAKE_CXXFLAGS_RELEASE += -g -gdwarf-3
QMAKE_CFLAGS_RELEASE += -g -gdwarf-3
QMAKE_LFLAGS_RELEASE =
}
}
# IFC static library
unix|win32: LIBS += -L$$OUT_PWD/../ifc/$${DESTDIR}/ -lifc
INCLUDEPATH += $$PWD/../ifc
DEPENDPATH += $$PWD/../ifc
win32:!win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../ifc/$${DESTDIR}/ifc.lib
else:unix|win32-g++: PRE_TARGETDEPS += $$OUT_PWD/../ifc/$${DESTDIR}/libifc.a

View File

@ -0,0 +1,34 @@
/************************************************************************
**
** @file vgeometrydef.cpp
** @author Roman Telezhynskyi <dismine(at)gmail.com>
** @date 7 5, 2015
**
** @brief
** @copyright
** This source code is part of the Valentine project, a pattern making
** program, whose allow create and modeling patterns of clothing.
** Copyright (C) 2013-2015 Valentina project
** <https://bitbucket.org/dismine/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/>.
**
*************************************************************************/
#include "vgeometrydef.h"
//variables
const QString spl_ = QStringLiteral("Spl_");
const QString arc_ = QStringLiteral("Arc_");
const QString splPath = QStringLiteral("SplPath");

View File

@ -0,0 +1,43 @@
/************************************************************************
**
** @file vgeometrydef.h
** @author Roman Telezhynskyi <dismine(at)gmail.com>
** @date 7 5, 2015
**
** @brief
** @copyright
** This source code is part of the Valentine project, a pattern making
** program, whose allow create and modeling patterns of clothing.
** Copyright (C) 2015 Valentina project
** <https://bitbucket.org/dismine/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 VGEOMETRYDEF_H
#define VGEOMETRYDEF_H
#include <QString>
enum class Draw : char { Calculation, Modeling };
enum class GOType : char { Point, Arc, Spline, SplinePath, Unknown };
enum class SplinePointPosition : char { FirstPoint, LastPoint };
// variables name
extern const QString arc_;
extern const QString spl_;
extern const QString splPath;
#endif // VGEOMETRYDEF_H

Some files were not shown because too many files have changed in this diff Show More