Used new compilator GCC 4.8 and key -Og. Optimization included files. Deleted
key -Wsign-conversion. --HG-- branch : feature
This commit is contained in:
parent
1a678ab2e2
commit
aa6778427c
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
# Use out-of-source builds (shadow builds)
|
# Use out-of-source builds (shadow builds)
|
||||||
|
|
||||||
QT += core gui widgets xml svg printsupport
|
QT += core gui widgets xml svg
|
||||||
|
|
||||||
TARGET = Valentina
|
TARGET = Valentina
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
@ -234,10 +234,10 @@ CONFIG(debug, debug|release){
|
||||||
# Debug
|
# Debug
|
||||||
QMAKE_CXXFLAGS += -isystem "/usr/include/qt5" -isystem "/usr/include/qt5/QtWidgets" \
|
QMAKE_CXXFLAGS += -isystem "/usr/include/qt5" -isystem "/usr/include/qt5/QtWidgets" \
|
||||||
-isystem "/usr/include/qt5/QtXml" -isystem "/usr/include/qt5/QtGui" \
|
-isystem "/usr/include/qt5/QtXml" -isystem "/usr/include/qt5/QtGui" \
|
||||||
-isystem "/usr/include/qt5/QtCore" -O0 -Wall -Wextra -pedantic -Weffc++ \
|
-isystem "/usr/include/qt5/QtCore" -isystem "$$OUT_PWD/uic" -isystem "$$OUT_PWD/moc/" \
|
||||||
-isystem "$$OUT_PWD/uic" \
|
-Og -Wall -Wextra -pedantic -Weffc++ -Woverloaded-virtual -Wctor-dtor-privacy \
|
||||||
-Woverloaded-virtual -Wctor-dtor-privacy -Wnon-virtual-dtor -Wold-style-cast \
|
-Wnon-virtual-dtor -Wold-style-cast -Wconversion -Winit-self \
|
||||||
-Wconversion -Wsign-conversion -Winit-self -Wunreachable-code
|
-Wunreachable-code
|
||||||
}else{
|
}else{
|
||||||
# Release
|
# Release
|
||||||
QMAKE_CXXFLAGS += -O1
|
QMAKE_CXXFLAGS += -O1
|
||||||
|
@ -249,6 +249,17 @@ CONFIG(debug, debug|release){
|
||||||
lrelease.CONFIG += no_link target_predeps
|
lrelease.CONFIG += no_link target_predeps
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message(Qt version: $$[QT_VERSION])
|
||||||
|
message(Qt is installed in $$[QT_INSTALL_PREFIX])
|
||||||
|
message(Qt resources can be found in the following locations:)
|
||||||
|
message(Documentation: $$[QT_INSTALL_DOCS])
|
||||||
|
message(Header files: $$[QT_INSTALL_HEADERS])
|
||||||
|
message(Libraries: $$[QT_INSTALL_LIBS])
|
||||||
|
message(Binary files (executables): $$[QT_INSTALL_BINS])
|
||||||
|
message(Plugins: $$[QT_INSTALL_PLUGINS])
|
||||||
|
message(Data files: $$[QT_INSTALL_DATA])
|
||||||
|
message(Translation files: $$[QT_INSTALL_TRANSLATIONS])
|
||||||
|
message(Settings: $$[QT_INSTALL_SETTINGS])
|
||||||
|
message(Examples: $$[QT_INSTALL_EXAMPLES])
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,13 +22,9 @@
|
||||||
#ifndef VCONTAINER_H
|
#ifndef VCONTAINER_H
|
||||||
#define VCONTAINER_H
|
#define VCONTAINER_H
|
||||||
|
|
||||||
#include <QMap>
|
|
||||||
#include <QTableWidget>
|
#include <QTableWidget>
|
||||||
#include "options.h"
|
|
||||||
#include "vpointf.h"
|
|
||||||
#include "vstandarttablecell.h"
|
#include "vstandarttablecell.h"
|
||||||
#include "vincrementtablerow.h"
|
#include "vincrementtablerow.h"
|
||||||
#include "geometry/vspline.h"
|
|
||||||
#include "geometry/varc.h"
|
#include "geometry/varc.h"
|
||||||
#include "geometry/vsplinepath.h"
|
#include "geometry/vsplinepath.h"
|
||||||
#include "geometry/vdetail.h"
|
#include "geometry/vdetail.h"
|
||||||
|
|
|
@ -23,8 +23,6 @@
|
||||||
#define DIALOGALONGLINE_H
|
#define DIALOGALONGLINE_H
|
||||||
|
|
||||||
#include "dialogtool.h"
|
#include "dialogtool.h"
|
||||||
#include "options.h"
|
|
||||||
#include "container/vcontainer.h"
|
|
||||||
#include "container/calculator.h"
|
#include "container/calculator.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
#define DIALOGARC_H
|
#define DIALOGARC_H
|
||||||
|
|
||||||
#include "dialogtool.h"
|
#include "dialogtool.h"
|
||||||
#include "container/vcontainer.h"
|
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class DialogArc;
|
class DialogArc;
|
||||||
|
|
|
@ -23,11 +23,7 @@
|
||||||
#define DIALOGBISECTOR_H
|
#define DIALOGBISECTOR_H
|
||||||
|
|
||||||
#include "dialogtool.h"
|
#include "dialogtool.h"
|
||||||
#include <QPushButton>
|
|
||||||
#include <QListWidgetItem>
|
#include <QListWidgetItem>
|
||||||
#include <QTimer>
|
|
||||||
#include "options.h"
|
|
||||||
#include "container/vcontainer.h"
|
|
||||||
#include "container/calculator.h"
|
#include "container/calculator.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
|
|
|
@ -24,11 +24,9 @@
|
||||||
|
|
||||||
#include "ui_dialogdetail.h"
|
#include "ui_dialogdetail.h"
|
||||||
#include "dialogtool.h"
|
#include "dialogtool.h"
|
||||||
#include "container/vcontainer.h"
|
|
||||||
#include "geometry/vdetail.h"
|
#include "geometry/vdetail.h"
|
||||||
|
|
||||||
class DialogDetail : public DialogTool
|
class DialogDetail : public DialogTool{
|
||||||
{
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit DialogDetail(const VContainer *data, Draw::Draws mode, QWidget *parent = 0);
|
explicit DialogDetail(const VContainer *data, Draw::Draws mode, QWidget *parent = 0);
|
||||||
|
|
|
@ -23,11 +23,7 @@
|
||||||
#define DIALOGENDLINE_H
|
#define DIALOGENDLINE_H
|
||||||
|
|
||||||
#include "dialogtool.h"
|
#include "dialogtool.h"
|
||||||
#include <QPushButton>
|
|
||||||
#include <QListWidgetItem>
|
#include <QListWidgetItem>
|
||||||
#include <QTimer>
|
|
||||||
#include "options.h"
|
|
||||||
#include "container/vcontainer.h"
|
|
||||||
#include "container/calculator.h"
|
#include "container/calculator.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
|
|
|
@ -23,9 +23,7 @@
|
||||||
#define DIALOGINCREMENTS_H
|
#define DIALOGINCREMENTS_H
|
||||||
|
|
||||||
#include "dialogtool.h"
|
#include "dialogtool.h"
|
||||||
#include <QPushButton>
|
|
||||||
#include "xml/vdomdocument.h"
|
#include "xml/vdomdocument.h"
|
||||||
#include "container/vcontainer.h"
|
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class DialogIncrements;
|
class DialogIncrements;
|
||||||
|
|
|
@ -23,10 +23,6 @@
|
||||||
#define DIALOGLINE_H
|
#define DIALOGLINE_H
|
||||||
|
|
||||||
#include "dialogtool.h"
|
#include "dialogtool.h"
|
||||||
#include <QComboBox>
|
|
||||||
#include "container/vcontainer.h"
|
|
||||||
#include "options.h"
|
|
||||||
|
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class DialogLine;
|
class DialogLine;
|
||||||
|
|
|
@ -23,11 +23,7 @@
|
||||||
#define DIALOGNORMAL_H
|
#define DIALOGNORMAL_H
|
||||||
|
|
||||||
#include "dialogtool.h"
|
#include "dialogtool.h"
|
||||||
#include <QPushButton>
|
|
||||||
#include <QListWidgetItem>
|
#include <QListWidgetItem>
|
||||||
#include <QTimer>
|
|
||||||
#include "options.h"
|
|
||||||
#include "container/vcontainer.h"
|
|
||||||
#include "container/calculator.h"
|
#include "container/calculator.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
|
|
||||||
#include "ui_dialogpointofcontact.h"
|
#include "ui_dialogpointofcontact.h"
|
||||||
#include "dialogtool.h"
|
#include "dialogtool.h"
|
||||||
#include "options.h"
|
|
||||||
#include "container/vcontainer.h"
|
|
||||||
#include "container/calculator.h"
|
#include "container/calculator.h"
|
||||||
|
|
||||||
class DialogPointOfContact : public DialogTool
|
class DialogPointOfContact : public DialogTool
|
||||||
|
|
|
@ -23,8 +23,6 @@
|
||||||
#define DIALOGSHOULDERPOINT_H
|
#define DIALOGSHOULDERPOINT_H
|
||||||
|
|
||||||
#include "dialogtool.h"
|
#include "dialogtool.h"
|
||||||
#include "options.h"
|
|
||||||
#include "container/vcontainer.h"
|
|
||||||
#include "container/calculator.h"
|
#include "container/calculator.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
#define DIALOGSINGLEPOINT_H
|
#define DIALOGSINGLEPOINT_H
|
||||||
|
|
||||||
#include "dialogtool.h"
|
#include "dialogtool.h"
|
||||||
#include "container/vcontainer.h"
|
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class DialogSinglePoint;
|
class DialogSinglePoint;
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
#define DIALOGSPLINE_H
|
#define DIALOGSPLINE_H
|
||||||
|
|
||||||
#include "dialogtool.h"
|
#include "dialogtool.h"
|
||||||
#include "container/vcontainer.h"
|
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class DialogSpline;
|
class DialogSpline;
|
||||||
|
|
|
@ -23,7 +23,6 @@
|
||||||
#define DIALOGSPLINEPATH_H
|
#define DIALOGSPLINEPATH_H
|
||||||
|
|
||||||
#include "dialogtool.h"
|
#include "dialogtool.h"
|
||||||
#include "container/vcontainer.h"
|
|
||||||
#include "geometry/vsplinepath.h"
|
#include "geometry/vsplinepath.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
|
|
|
@ -32,10 +32,8 @@
|
||||||
#include <QRadioButton>
|
#include <QRadioButton>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
#include "container/vcontainer.h"
|
#include "container/vcontainer.h"
|
||||||
#include "options.h"
|
|
||||||
|
|
||||||
class DialogTool : public QDialog
|
class DialogTool : public QDialog{
|
||||||
{
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
DialogTool(const VContainer *data, Draw::Draws mode = Draw::Calculation,
|
DialogTool(const VContainer *data, Draw::Draws mode = Draw::Calculation,
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#define VEXCEPTIONEMPTYPARAMETER_H
|
#define VEXCEPTIONEMPTYPARAMETER_H
|
||||||
|
|
||||||
#include "vexception.h"
|
#include "vexception.h"
|
||||||
#include "QDomElement"
|
#include <QDomElement>
|
||||||
|
|
||||||
class VExceptionEmptyParameter : public VException
|
class VExceptionEmptyParameter : public VException
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,10 +22,6 @@
|
||||||
#ifndef VARC_H
|
#ifndef VARC_H
|
||||||
#define VARC_H
|
#define VARC_H
|
||||||
|
|
||||||
#include <QPainterPath>
|
|
||||||
#include <QVector>
|
|
||||||
#include <QMap>
|
|
||||||
#include "container/vpointf.h"
|
|
||||||
#include "vspline.h"
|
#include "vspline.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
#include <QVector>
|
#include <QVector>
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
#include "container/vpointf.h"
|
#include "container/vpointf.h"
|
||||||
#include "options.h"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief VSpline клас, що реалізує сплайн.
|
* @brief VSpline клас, що реалізує сплайн.
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
#include "vsplinepoint.h"
|
#include "vsplinepoint.h"
|
||||||
#include "vspline.h"
|
#include "vspline.h"
|
||||||
#include "options.h"
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
|
||||||
namespace SplinePoint{
|
namespace SplinePoint{
|
||||||
|
|
4
main.cpp
4
main.cpp
|
@ -20,7 +20,7 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include <QApplication>
|
#include "widgets/vapplication.h"
|
||||||
#include <QTextCodec>
|
#include <QTextCodec>
|
||||||
#include "tablewindow.h"
|
#include "tablewindow.h"
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QS
|
||||||
|
|
||||||
int main(int argc, char *argv[]){
|
int main(int argc, char *argv[]){
|
||||||
qInstallMessageHandler(myMessageOutput);
|
qInstallMessageHandler(myMessageOutput);
|
||||||
QApplication app(argc, argv);
|
VApplication app(argc, argv);
|
||||||
|
|
||||||
QTranslator qtTranslator;
|
QTranslator qtTranslator;
|
||||||
qtTranslator.load("qt_" + QLocale::system().name(),
|
qtTranslator.load("qt_" + QLocale::system().name(),
|
||||||
|
|
|
@ -35,8 +35,6 @@
|
||||||
#include "tools/drawTools/drawtools.h"
|
#include "tools/drawTools/drawtools.h"
|
||||||
#include "tools/modelingTools/modelingtools.h"
|
#include "tools/modelingTools/modelingtools.h"
|
||||||
#include "xml/vdomdocument.h"
|
#include "xml/vdomdocument.h"
|
||||||
#include "container/vcontainer.h"
|
|
||||||
#include "options.h"
|
|
||||||
#include "tools/vtooldetail.h"
|
#include "tools/vtooldetail.h"
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
|
|
|
@ -27,8 +27,6 @@
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
#include "options.h"
|
#include "options.h"
|
||||||
#include <QtSvg/QtSvg>
|
#include <QtSvg/QtSvg>
|
||||||
#undef PaperSize
|
|
||||||
#include <QtPrintSupport/QPrinter>
|
|
||||||
|
|
||||||
TableWindow::TableWindow(QWidget *parent) :
|
TableWindow::TableWindow(QWidget *parent) :
|
||||||
QMainWindow(parent), numberDetal(0), colission(0), ui(new Ui::TableWindow),
|
QMainWindow(parent), numberDetal(0), colission(0), ui(new Ui::TableWindow),
|
||||||
|
@ -143,7 +141,7 @@ void TableWindow::StopTable(){
|
||||||
}
|
}
|
||||||
|
|
||||||
void TableWindow::saveScene(){
|
void TableWindow::saveScene(){
|
||||||
QString name = QFileDialog::getSaveFileName(0, "Зберегти розкладку", "", "Images (*.png);;Svg files (*.svg);;Ps files (*.ps)");
|
QString name = QFileDialog::getSaveFileName(0, "Зберегти розкладку", "", "Images (*.png);;Svg files (*.svg)");
|
||||||
if(name.isNull()){
|
if(name.isNull()){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -164,8 +162,6 @@ void TableWindow::saveScene(){
|
||||||
SvgFile(name);
|
SvgFile(name);
|
||||||
} else if(fi.suffix() == "png"){
|
} else if(fi.suffix() == "png"){
|
||||||
PngFile(name);
|
PngFile(name);
|
||||||
} else if(fi.suffix() == "ps"){
|
|
||||||
PsFile(name);
|
|
||||||
}
|
}
|
||||||
// if(name.indexOf(".svg",name.size()-4)<0){
|
// if(name.indexOf(".svg",name.size()-4)<0){
|
||||||
// name.append(".svg");
|
// name.append(".svg");
|
||||||
|
@ -348,28 +344,3 @@ void TableWindow::PngFile(const QString &name) const{
|
||||||
currentScene->render(&painter);
|
currentScene->render(&painter);
|
||||||
image.save(name);
|
image.save(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TableWindow::PsFile(const QString &name) const{
|
|
||||||
|
|
||||||
QPrinter printer(QPrinter::HighResolution);
|
|
||||||
//printer.setOutputFormat(QPrinter::PostScriptFormat);
|
|
||||||
|
|
||||||
printer.setOutputFileName(name);
|
|
||||||
QRectF r = paper->rect();
|
|
||||||
qreal x=0, y=0, w=0, h=0;
|
|
||||||
r.getRect(&x,&y,&w,&h);
|
|
||||||
printer.setResolution(PrintDPI);
|
|
||||||
qDebug()<<printer.resolution();
|
|
||||||
printer.setPaperSize ( QSizeF(w/printer.resolution()*25.4, h/printer.resolution()*25.4), QPrinter::Millimeter );
|
|
||||||
QPainter painter;
|
|
||||||
if (! painter.begin( &printer )) { // failed to open file
|
|
||||||
qCritical("Не можу відкрити файл %s",qPrintable(name));
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
painter.setFont( QFont( "Arial", 8, QFont::Normal ) );
|
|
||||||
painter.setRenderHint(QPainter::Antialiasing, true);
|
|
||||||
painter.setPen(QPen(Qt::black, widthMainLine, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin));
|
|
||||||
painter.setBrush ( QBrush ( Qt::NoBrush ) );
|
|
||||||
currentScene->render(&painter);
|
|
||||||
painter.end();
|
|
||||||
}
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ protected:
|
||||||
if(!ignoreContextMenuEvent){
|
if(!ignoreContextMenuEvent){
|
||||||
QMenu menu;
|
QMenu menu;
|
||||||
QAction *actionOption = menu.addAction(tr("Options"));
|
QAction *actionOption = menu.addAction(tr("Options"));
|
||||||
QAction *actionRemove;
|
QAction *actionRemove = 0;
|
||||||
if(showRemove){
|
if(showRemove){
|
||||||
actionRemove = menu.addAction(tr("Delete"));
|
actionRemove = menu.addAction(tr("Delete"));
|
||||||
if(_referens > 1){
|
if(_referens > 1){
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
|
|
||||||
#include "vtoolalongline.h"
|
#include "vtoolalongline.h"
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QMenu>
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include "container/calculator.h"
|
#include "container/calculator.h"
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "vtoolarc.h"
|
#include "vtoolarc.h"
|
||||||
#include <QMenu>
|
|
||||||
#include "container/calculator.h"
|
#include "container/calculator.h"
|
||||||
|
|
||||||
VToolArc::VToolArc(VDomDocument *doc, VContainer *data, qint64 id, Tool::Sources typeCreation,
|
VToolArc::VToolArc(VDomDocument *doc, VContainer *data, qint64 id, Tool::Sources typeCreation,
|
||||||
|
|
|
@ -23,24 +23,23 @@
|
||||||
#define VTOOLARC_H
|
#define VTOOLARC_H
|
||||||
|
|
||||||
#include "vdrawtool.h"
|
#include "vdrawtool.h"
|
||||||
#include "xml/vdomdocument.h"
|
|
||||||
#include <QGraphicsPathItem>
|
#include <QGraphicsPathItem>
|
||||||
#include "dialogs/dialogarc.h"
|
#include "dialogs/dialogarc.h"
|
||||||
#include "widgets/vcontrolpointspline.h"
|
#include "widgets/vcontrolpointspline.h"
|
||||||
#include "container/vcontainer.h"
|
|
||||||
|
|
||||||
class VToolArc :public VDrawTool, public QGraphicsPathItem
|
class VToolArc :public VDrawTool, public QGraphicsPathItem{
|
||||||
{
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolArc(VDomDocument *doc, VContainer *data, qint64 id, Tool::Sources typeCreation,
|
VToolArc(VDomDocument *doc, VContainer *data, qint64 id,
|
||||||
QGraphicsItem * parent = 0);
|
Tool::Sources typeCreation, QGraphicsItem * parent = 0);
|
||||||
virtual void setDialog();
|
virtual void setDialog();
|
||||||
static void Create(QSharedPointer<DialogArc> &dialog, VMainGraphicsScene *scene, VDomDocument *doc,
|
static void Create(QSharedPointer<DialogArc> &dialog, VMainGraphicsScene *scene,
|
||||||
|
VDomDocument *doc,
|
||||||
VContainer *data);
|
VContainer *data);
|
||||||
static void Create(const qint64 _id, const qint64 ¢er, const QString &radius,
|
static void Create(const qint64 _id, const qint64 ¢er, const QString &radius,
|
||||||
const QString &f1, const QString &f2, VMainGraphicsScene *scene, VDomDocument *doc,
|
const QString &f1, const QString &f2, VMainGraphicsScene *scene,
|
||||||
VContainer *data, const Document::Documents &parse, Tool::Sources typeCreation);
|
VDomDocument *doc, VContainer *data, const Document::Documents &parse,
|
||||||
|
Tool::Sources typeCreation);
|
||||||
public slots:
|
public slots:
|
||||||
virtual void FullUpdateFromFile();
|
virtual void FullUpdateFromFile();
|
||||||
virtual void FullUpdateFromGui(int result);
|
virtual void FullUpdateFromGui(int result);
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "vtoolbisector.h"
|
#include "vtoolbisector.h"
|
||||||
#include <QMenu>
|
|
||||||
|
|
||||||
VToolBisector::VToolBisector(VDomDocument *doc, VContainer *data, const qint64 &id,
|
VToolBisector::VToolBisector(VDomDocument *doc, VContainer *data, const qint64 &id,
|
||||||
const QString &typeLine, const QString &formula, const qint64 &firstPointId,
|
const QString &typeLine, const QString &formula, const qint64 &firstPointId,
|
||||||
|
|
|
@ -22,12 +22,10 @@
|
||||||
#ifndef VTOOLBISECTOR_H
|
#ifndef VTOOLBISECTOR_H
|
||||||
#define VTOOLBISECTOR_H
|
#define VTOOLBISECTOR_H
|
||||||
|
|
||||||
#include <QSharedPointer>
|
|
||||||
#include "vtoollinepoint.h"
|
#include "vtoollinepoint.h"
|
||||||
#include "dialogs/dialogbisector.h"
|
#include "dialogs/dialogbisector.h"
|
||||||
|
|
||||||
class VToolBisector : public VToolLinePoint
|
class VToolBisector : public VToolLinePoint{
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
VToolBisector(VDomDocument *doc, VContainer *data, const qint64 &id,
|
VToolBisector(VDomDocument *doc, VContainer *data, const qint64 &id,
|
||||||
const QString &typeLine, const QString &formula, const qint64 &firstPointId,
|
const QString &typeLine, const QString &formula, const qint64 &firstPointId,
|
||||||
|
|
|
@ -22,12 +22,10 @@
|
||||||
#ifndef VTOOLENDLINE_H
|
#ifndef VTOOLENDLINE_H
|
||||||
#define VTOOLENDLINE_H
|
#define VTOOLENDLINE_H
|
||||||
|
|
||||||
#include <QSharedPointer>
|
|
||||||
#include "vtoollinepoint.h"
|
#include "vtoollinepoint.h"
|
||||||
#include "dialogs/dialogendline.h"
|
#include "dialogs/dialogendline.h"
|
||||||
|
|
||||||
class VToolEndLine : public VToolLinePoint
|
class VToolEndLine : public VToolLinePoint{
|
||||||
{
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolEndLine(VDomDocument *doc, VContainer *data, const qint64 &id,
|
VToolEndLine(VDomDocument *doc, VContainer *data, const qint64 &id,
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "vtoolline.h"
|
#include "vtoolline.h"
|
||||||
#include <QMenu>
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
VToolLine::VToolLine(VDomDocument *doc, VContainer *data, qint64 id, qint64 firstPoint, qint64 secondPoint,
|
VToolLine::VToolLine(VDomDocument *doc, VContainer *data, qint64 id, qint64 firstPoint, qint64 secondPoint,
|
||||||
|
|
|
@ -26,8 +26,7 @@
|
||||||
#include "QGraphicsLineItem"
|
#include "QGraphicsLineItem"
|
||||||
#include "dialogs/dialogline.h"
|
#include "dialogs/dialogline.h"
|
||||||
|
|
||||||
class VToolLine: public VDrawTool, public QGraphicsLineItem
|
class VToolLine: public VDrawTool, public QGraphicsLineItem{
|
||||||
{
|
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
VToolLine(VDomDocument *doc, VContainer *data, qint64 id, qint64 firstPoint,
|
VToolLine(VDomDocument *doc, VContainer *data, qint64 id, qint64 firstPoint,
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "vtoolnormal.h"
|
#include "vtoolnormal.h"
|
||||||
#include <QMenu>
|
|
||||||
|
|
||||||
VToolNormal::VToolNormal(VDomDocument *doc, VContainer *data, const qint64 &id,
|
VToolNormal::VToolNormal(VDomDocument *doc, VContainer *data, const qint64 &id,
|
||||||
const QString &typeLine,
|
const QString &typeLine,
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
#ifndef VTOOLNORMAL_H
|
#ifndef VTOOLNORMAL_H
|
||||||
#define VTOOLNORMAL_H
|
#define VTOOLNORMAL_H
|
||||||
|
|
||||||
#include <QSharedPointer>
|
|
||||||
#include "vtoollinepoint.h"
|
#include "vtoollinepoint.h"
|
||||||
#include "dialogs/dialognormal.h"
|
#include "dialogs/dialognormal.h"
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
#include <QBrush>
|
#include <QBrush>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QGraphicsItem>
|
#include <QGraphicsItem>
|
||||||
#include "container/vpointf.h"
|
|
||||||
|
|
||||||
|
|
||||||
VToolPoint::VToolPoint(VDomDocument *doc, VContainer *data, qint64 id,
|
VToolPoint::VToolPoint(VDomDocument *doc, VContainer *data, qint64 id,
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
#include "vdrawtool.h"
|
#include "vdrawtool.h"
|
||||||
#include "widgets/vgraphicssimpletextitem.h"
|
#include "widgets/vgraphicssimpletextitem.h"
|
||||||
#include "options.h"
|
|
||||||
|
|
||||||
class VToolPoint: public VDrawTool, public QGraphicsEllipseItem{
|
class VToolPoint: public VDrawTool, public QGraphicsEllipseItem{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
|
|
||||||
#include "vtoolshoulderpoint.h"
|
#include "vtoolshoulderpoint.h"
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QMenu>
|
|
||||||
|
|
||||||
VToolShoulderPoint::VToolShoulderPoint(VDomDocument *doc, VContainer *data, const qint64 &id,
|
VToolShoulderPoint::VToolShoulderPoint(VDomDocument *doc, VContainer *data, const qint64 &id,
|
||||||
const QString &typeLine, const QString &formula, const qint64 &p1Line,
|
const QString &typeLine, const QString &formula, const qint64 &p1Line,
|
||||||
|
|
|
@ -24,11 +24,7 @@
|
||||||
#include <QBrush>
|
#include <QBrush>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QGraphicsItem>
|
#include <QGraphicsItem>
|
||||||
#include <QMenu>
|
|
||||||
#include <QGraphicsSceneContextMenuEvent>
|
#include <QGraphicsSceneContextMenuEvent>
|
||||||
#include <cmath>
|
|
||||||
#include "options.h"
|
|
||||||
#include "container/vpointf.h"
|
|
||||||
|
|
||||||
VToolSinglePoint::VToolSinglePoint (VDomDocument *doc, VContainer *data, qint64 id, Tool::Sources typeCreation,
|
VToolSinglePoint::VToolSinglePoint (VDomDocument *doc, VContainer *data, qint64 id, Tool::Sources typeCreation,
|
||||||
QGraphicsItem * parent ):VToolPoint(doc, data, id, parent),
|
QGraphicsItem * parent ):VToolPoint(doc, data, id, parent),
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
#ifndef VTOOLSINGLEPOINT_H
|
#ifndef VTOOLSINGLEPOINT_H
|
||||||
#define VTOOLSINGLEPOINT_H
|
#define VTOOLSINGLEPOINT_H
|
||||||
|
|
||||||
#include "container/vcontainer.h"
|
|
||||||
#include "xml/vdomdocument.h"
|
|
||||||
#include "dialogs/dialogsinglepoint.h"
|
#include "dialogs/dialogsinglepoint.h"
|
||||||
#include "vtoolpoint.h"
|
#include "vtoolpoint.h"
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "vtoolspline.h"
|
#include "vtoolspline.h"
|
||||||
#include <QMenu>
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include "geometry/vspline.h"
|
#include "geometry/vspline.h"
|
||||||
|
|
||||||
|
|
|
@ -23,11 +23,9 @@
|
||||||
#define VTOOLSPLINE_H
|
#define VTOOLSPLINE_H
|
||||||
|
|
||||||
#include "vdrawtool.h"
|
#include "vdrawtool.h"
|
||||||
#include "xml/vdomdocument.h"
|
|
||||||
#include <QGraphicsPathItem>
|
#include <QGraphicsPathItem>
|
||||||
#include "dialogs/dialogspline.h"
|
#include "dialogs/dialogspline.h"
|
||||||
#include "widgets/vcontrolpointspline.h"
|
#include "widgets/vcontrolpointspline.h"
|
||||||
#include "container/vcontainer.h"
|
|
||||||
#include "geometry/vsplinepath.h"
|
#include "geometry/vsplinepath.h"
|
||||||
|
|
||||||
class VToolSpline:public VDrawTool, public QGraphicsPathItem
|
class VToolSpline:public VDrawTool, public QGraphicsPathItem
|
||||||
|
|
|
@ -23,11 +23,9 @@
|
||||||
#define VTOOLSPLINEPATH_H
|
#define VTOOLSPLINEPATH_H
|
||||||
|
|
||||||
#include "vdrawtool.h"
|
#include "vdrawtool.h"
|
||||||
#include "xml/vdomdocument.h"
|
|
||||||
#include <QGraphicsPathItem>
|
#include <QGraphicsPathItem>
|
||||||
#include "dialogs/dialogsplinepath.h"
|
#include "dialogs/dialogsplinepath.h"
|
||||||
#include "widgets/vcontrolpointspline.h"
|
#include "widgets/vcontrolpointspline.h"
|
||||||
#include "container/vcontainer.h"
|
|
||||||
|
|
||||||
class VToolSplinePath:public VDrawTool, public QGraphicsPathItem{
|
class VToolSplinePath:public VDrawTool, public QGraphicsPathItem{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
|
|
||||||
#include "vmodelingalongline.h"
|
#include "vmodelingalongline.h"
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QMenu>
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include "container/calculator.h"
|
#include "container/calculator.h"
|
||||||
|
|
||||||
|
|
|
@ -23,11 +23,9 @@
|
||||||
#define VMODELINGARC_H
|
#define VMODELINGARC_H
|
||||||
|
|
||||||
#include "vmodelingtool.h"
|
#include "vmodelingtool.h"
|
||||||
#include "xml/vdomdocument.h"
|
|
||||||
#include <QGraphicsPathItem>
|
#include <QGraphicsPathItem>
|
||||||
#include "dialogs/dialogarc.h"
|
#include "dialogs/dialogarc.h"
|
||||||
#include "widgets/vcontrolpointspline.h"
|
#include "widgets/vcontrolpointspline.h"
|
||||||
#include "container/vcontainer.h"
|
|
||||||
|
|
||||||
class VModelingArc :public VModelingTool, public QGraphicsPathItem{
|
class VModelingArc :public VModelingTool, public QGraphicsPathItem{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
#ifndef VMODELINGBISECTOR_H
|
#ifndef VMODELINGBISECTOR_H
|
||||||
#define VMODELINGBISECTOR_H
|
#define VMODELINGBISECTOR_H
|
||||||
|
|
||||||
#include <QSharedPointer>
|
|
||||||
#include "vmodelinglinepoint.h"
|
#include "vmodelinglinepoint.h"
|
||||||
#include "dialogs/dialogbisector.h"
|
#include "dialogs/dialogbisector.h"
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
#ifndef VMODELINGENDLINE_H
|
#ifndef VMODELINGENDLINE_H
|
||||||
#define VMODELINGENDLINE_H
|
#define VMODELINGENDLINE_H
|
||||||
|
|
||||||
#include <QSharedPointer>
|
|
||||||
#include "vmodelinglinepoint.h"
|
#include "vmodelinglinepoint.h"
|
||||||
#include "dialogs/dialogendline.h"
|
#include "dialogs/dialogendline.h"
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "vmodelingline.h"
|
#include "vmodelingline.h"
|
||||||
#include <QMenu>
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
VModelingLine::VModelingLine(VDomDocument *doc, VContainer *data, qint64 id, qint64 firstPoint,
|
VModelingLine::VModelingLine(VDomDocument *doc, VContainer *data, qint64 id, qint64 firstPoint,
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "vmodelinglineintersect.h"
|
#include "vmodelinglineintersect.h"
|
||||||
#include <QMenu>
|
|
||||||
|
|
||||||
VModelingLineIntersect::VModelingLineIntersect(VDomDocument *doc, VContainer *data, const qint64 &id,
|
VModelingLineIntersect::VModelingLineIntersect(VDomDocument *doc, VContainer *data, const qint64 &id,
|
||||||
const qint64 &p1Line1, const qint64 &p2Line1, const qint64 &p1Line2,
|
const qint64 &p1Line1, const qint64 &p2Line1, const qint64 &p1Line2,
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include "vmodelingnormal.h"
|
#include "vmodelingnormal.h"
|
||||||
#include <QMenu>
|
|
||||||
|
|
||||||
VModelingNormal::VModelingNormal(VDomDocument *doc, VContainer *data, const qint64 &id,
|
VModelingNormal::VModelingNormal(VDomDocument *doc, VContainer *data, const qint64 &id,
|
||||||
const QString &typeLine,
|
const QString &typeLine,
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
#ifndef VMODELINGNORMAL_H
|
#ifndef VMODELINGNORMAL_H
|
||||||
#define VMODELINGNORMAL_H
|
#define VMODELINGNORMAL_H
|
||||||
|
|
||||||
#include <QSharedPointer>
|
|
||||||
#include "vmodelinglinepoint.h"
|
#include "vmodelinglinepoint.h"
|
||||||
#include "dialogs/dialognormal.h"
|
#include "dialogs/dialognormal.h"
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
#include "vmodelingtool.h"
|
#include "vmodelingtool.h"
|
||||||
#include "widgets/vgraphicssimpletextitem.h"
|
#include "widgets/vgraphicssimpletextitem.h"
|
||||||
#include "options.h"
|
|
||||||
|
|
||||||
class VModelingPoint: public VModelingTool, public QGraphicsEllipseItem{
|
class VModelingPoint: public VModelingTool, public QGraphicsEllipseItem{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
|
|
||||||
#include "vmodelingshoulderpoint.h"
|
#include "vmodelingshoulderpoint.h"
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QMenu>
|
|
||||||
|
|
||||||
VModelingShoulderPoint::VModelingShoulderPoint(VDomDocument *doc, VContainer *data, const qint64 &id,
|
VModelingShoulderPoint::VModelingShoulderPoint(VDomDocument *doc, VContainer *data, const qint64 &id,
|
||||||
const QString &typeLine, const QString &formula, const qint64 &p1Line,
|
const QString &typeLine, const QString &formula, const qint64 &p1Line,
|
||||||
|
|
|
@ -23,11 +23,9 @@
|
||||||
#define VMODELINGSPLINE_H
|
#define VMODELINGSPLINE_H
|
||||||
|
|
||||||
#include "vmodelingtool.h"
|
#include "vmodelingtool.h"
|
||||||
#include "xml/vdomdocument.h"
|
|
||||||
#include <QGraphicsPathItem>
|
#include <QGraphicsPathItem>
|
||||||
#include "dialogs/dialogspline.h"
|
#include "dialogs/dialogspline.h"
|
||||||
#include "widgets/vcontrolpointspline.h"
|
#include "widgets/vcontrolpointspline.h"
|
||||||
#include "container/vcontainer.h"
|
|
||||||
#include "geometry/vsplinepath.h"
|
#include "geometry/vsplinepath.h"
|
||||||
|
|
||||||
class VModelingSpline:public VModelingTool, public QGraphicsPathItem{
|
class VModelingSpline:public VModelingTool, public QGraphicsPathItem{
|
||||||
|
|
|
@ -23,11 +23,9 @@
|
||||||
#define VMODELINGSPLINEPATH_H
|
#define VMODELINGSPLINEPATH_H
|
||||||
|
|
||||||
#include "vmodelingtool.h"
|
#include "vmodelingtool.h"
|
||||||
#include "xml/vdomdocument.h"
|
|
||||||
#include <QGraphicsPathItem>
|
#include <QGraphicsPathItem>
|
||||||
#include "dialogs/dialogsplinepath.h"
|
#include "dialogs/dialogsplinepath.h"
|
||||||
#include "widgets/vcontrolpointspline.h"
|
#include "widgets/vcontrolpointspline.h"
|
||||||
#include "container/vcontainer.h"
|
|
||||||
|
|
||||||
class VModelingSplinePath:public VModelingTool, public QGraphicsPathItem{
|
class VModelingSplinePath:public VModelingTool, public QGraphicsPathItem{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
#include "xml/vdomdocument.h"
|
#include "xml/vdomdocument.h"
|
||||||
#include "vdatatool.h"
|
#include "vdatatool.h"
|
||||||
#include "container/vcontainer.h"
|
|
||||||
|
|
||||||
class VAbstractTool: public VDataTool{
|
class VAbstractTool: public VDataTool{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
#include <QGraphicsEllipseItem>
|
#include <QGraphicsEllipseItem>
|
||||||
#include <QGraphicsLineItem>
|
#include <QGraphicsLineItem>
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
#include "options.h"
|
|
||||||
#include "geometry/vsplinepath.h"
|
#include "geometry/vsplinepath.h"
|
||||||
|
|
||||||
class VControlPointSpline : public QObject, public QGraphicsEllipseItem
|
class VControlPointSpline : public QObject, public QGraphicsEllipseItem
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
#include <QDomDocument>
|
#include <QDomDocument>
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
#include <QComboBox>
|
#include <QComboBox>
|
||||||
#include "container/vcontainer.h"
|
|
||||||
#include "widgets/vmaingraphicsscene.h"
|
#include "widgets/vmaingraphicsscene.h"
|
||||||
#include "tools/vdatatool.h"
|
#include "tools/vdatatool.h"
|
||||||
#include "vtoolrecord.h"
|
#include "vtoolrecord.h"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user