[TD] DrawR* - DrawT*: remove unused includes

- also sort includes
This commit is contained in:
Uwe
2022-10-08 12:21:25 +02:00
parent 71e841fbe5
commit edba5ac85c
11 changed files with 31 additions and 90 deletions

View File

@@ -22,18 +22,9 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#endif
#include <App/Application.h>
#include <Base/Console.h>
#include <Base/Exception.h>
#include <Base/Parameter.h>
#include "DrawUtil.h"
#include <Mod/TechDraw/App/DrawRichAnnoPy.h> // generated from DrawRichAnnoPy.xml
#include "DrawRichAnno.h"
#include "DrawRichAnnoPy.h" // generated from DrawRichAnnoPy.xml
using namespace TechDraw;

View File

@@ -23,13 +23,13 @@
#ifndef TechDraw_DrawRichAnno_h_
#define TechDraw_DrawRichAnno_h_
#include <App/DocumentObject.h>
#include <App/FeaturePython.h>
#include <Mod/TechDraw/TechDrawGlobal.h>
# include <App/DocumentObject.h>
# include <App/FeaturePython.h>
#include "DrawView.h"
namespace TechDraw
{

View File

@@ -24,40 +24,26 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#include <sstream>
#include <QDomDocument>
#include <QFile>
# include <sstream>
# include <QDomDocument>
# include <QDomNodeModel.h>
# include <QFile>
# include <QXmlQuery>
# include <QXmlResultItems>
#endif
#include <QXmlQuery>
#include <QXmlResultItems>
#include "QDomNodeModel.h"
#include <Base/Exception.h>
#include <App/Application.h>
#include <Base/Console.h>
#include <Base/Interpreter.h>
#include <Base/FileInfo.h>
#include <Base/PyObjectBase.h>
#include <Base/Quantity.h>
#include <Base/Tools.h>
#include <App/Application.h>
#include <boost/regex.hpp>
#include <boost/graph/graph_concepts.hpp>
#include <iostream>
#include <iterator>
#include <QDebug>
#include "DrawUtil.h"
#include "DrawPage.h"
#include "DrawSVGTemplate.h"
#include "DrawSVGTemplatePy.h"
#include "DrawUtil.h"
#include <Mod/TechDraw/App/DrawSVGTemplatePy.h>
using namespace TechDraw;
using namespace std;
PROPERTY_SOURCE(TechDraw::DrawSVGTemplate, TechDraw::DrawTemplate)
@@ -163,8 +149,8 @@ App::DocumentObjectExecReturn * DrawSVGTemplate::execute()
if (!qDocImage.isEmpty()) {
// make a temp file for FileIncluded Property
string tempName = PageResult.getExchangeTempFile();
ofstream outfinal(tempName.c_str());
std::string tempName = PageResult.getExchangeTempFile();
std::ofstream outfinal(tempName.c_str());
std::string result = Base::Tools::toStdString(qDocImage);
outfinal << result;
outfinal.close();

View File

@@ -23,10 +23,9 @@
#ifndef TECHDRAW_DrawSVGTemplate_h_
#define TECHDRAW_DrawSVGTemplate_h_
#include <Mod/TechDraw/TechDrawGlobal.h>
#include <App/FeaturePython.h>
#include <App/PropertyFile.h>
#include <Mod/TechDraw/TechDrawGlobal.h>
#include "DrawTemplate.h"

View File

@@ -26,22 +26,14 @@
# include <sstream>
#endif
#include <Base/Exception.h>
#include <Base/Console.h>
#include <Base/Interpreter.h>
#include <Base/FileInfo.h>
#include <App/Application.h>
#include <iostream>
#include <iterator>
#include "DrawPage.h"
#include "DrawTemplate.h"
#include <Mod/TechDraw/App/DrawTemplatePy.h>
#include "DrawTemplatePy.h"
#include "DrawPage.h"
using namespace TechDraw;
using namespace std;
PROPERTY_SOURCE(TechDraw::DrawTemplate, App::DocumentObject)
@@ -50,8 +42,6 @@ const char* DrawTemplate::OrientationEnums[]= {"Portrait",
"Landscape",
nullptr};
DrawTemplate::DrawTemplate()
{
const char *group = "Page Properties";

View File

@@ -23,11 +23,10 @@
#ifndef TECHDRAW_DrawTemplate_h_
#define TECHDRAW_DrawTemplate_h_
#include <Mod/TechDraw/TechDrawGlobal.h>
#include <App/DocumentObject.h>
#include <App/FeaturePython.h>
#include <App/PropertyUnits.h>
#include <Mod/TechDraw/TechDrawGlobal.h>
namespace TechDraw

View File

@@ -22,18 +22,9 @@
#include "PreCompiled.h"
#ifndef _PreComp_
#endif
#include <App/Application.h>
#include <Base/Console.h>
#include <Base/Exception.h>
#include <Base/Parameter.h>
#include "DrawUtil.h"
#include <Mod/TechDraw/App/DrawTilePy.h> // generated from DrawTilePy.xml
#include "DrawTile.h"
#include "DrawTilePy.h" // generated from DrawTilePy.xml
using namespace TechDraw;

View File

@@ -23,13 +23,13 @@
#ifndef TechDraw_DrawTile_h_
#define TechDraw_DrawTile_h_
#include <App/DocumentObject.h>
#include <App/FeaturePython.h>
#include <Mod/TechDraw/TechDrawGlobal.h>
# include <App/DocumentObject.h>
# include <App/FeaturePython.h>
#include "DrawView.h"
namespace TechDraw
{

View File

@@ -21,20 +21,13 @@
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
#endif
#include <Base/Console.h>
#include <Base/PyObjectBase.h>
#include <Base/Vector3D.h>
#include "DrawTile.h"
// inclusion of the generated files (generated out of DrawTilePy.xml)
#include <Base/VectorPy.h>
#include <Mod/TechDraw/App/DrawTilePy.h>
#include <Mod/TechDraw/App/DrawTilePy.cpp>
using namespace TechDraw;
// returns a string which represents the object e.g. when printed in python

View File

@@ -23,22 +23,16 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <sstream>
#endif
#include <sstream>
#include <fstream>
#include <App/Application.h>
#include <App/Document.h>
#include <Base/Console.h>
#include <Base/Exception.h>
#include <Base/Parameter.h>
#include <Base/Tools.h>
#include "DrawTileWeld.h"
#include "DrawTileWeldPy.h" // generated from DrawTileWeldPy.xml
#include "DrawUtil.h"
#include <Mod/TechDraw/App/DrawTileWeldPy.h> // generated from DrawTileWeldPy.xml
#include "DrawTileWeld.h"
using namespace TechDraw;

View File

@@ -23,12 +23,10 @@
#ifndef TechDraw_DrawTileWeld_h_
#define TechDraw_DrawTileWeld_h_
#include <Mod/TechDraw/TechDrawGlobal.h>
#include <App/DocumentObject.h>
#include <App/FeaturePython.h>
#include <App/PropertyFile.h>
#include <App/PropertyStandard.h>
#include <Mod/TechDraw/TechDrawGlobal.h>
#include "DrawTile.h"