[Gui] ViewProviderLink etc.: remove unused includes

- also put headers to PreCompiled.h
This commit is contained in:
Uwe
2022-03-06 01:11:42 +01:00
parent e0e7bc7072
commit a65c88d3c5
9 changed files with 32 additions and 41 deletions

View File

@@ -20,10 +20,10 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <cctype>
# include <QApplication>
# include <QFileInfo>
# include <QMessageBox>
@@ -32,8 +32,6 @@
# include <Inventor/nodes/SoSeparator.h>
#endif
#include <cctype>
#include <App/AutoTransaction.h>
#include <App/DocumentObject.h>
#include <App/DocumentObjectGroup.h>
@@ -61,7 +59,8 @@
#include "ViewProviderDocumentObjectGroup.h"
#include "WaitCursor.h"
FC_LOG_LEVEL_INIT("Gui",true,true)
FC_LOG_LEVEL_INIT("Gui", true, true)
using namespace Gui;
namespace bp = boost::placeholders;

View File

@@ -59,12 +59,15 @@
#include <shellapi.h>
#endif
// null-terminated byte string
#include <cctype.h>
// streams
#include <iostream>
#include <iomanip>
// STL
#include <atomic>
#include <vector>
#include <map>
#include <string>
@@ -89,7 +92,6 @@
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/exception.hpp>
// Python
#include <Python.h>

View File

@@ -20,26 +20,23 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <QMessageBox>
#endif
//#include "ViewProviderGroupExtensionPy.h"
#include "ViewProviderGroupExtension.h"
#include "Command.h"
#include "Application.h"
#include "Document.h"
#include "MainWindow.h"
#include <Base/Tools.h>
#include <App/Document.h>
#include <App/DocumentObject.h>
#include <App/GroupExtension.h>
#include <App/Expression.h>
#include <Base/Console.h>
#include <QMessageBox>
#include <Base/Tools.h>
#include "ViewProviderGroupExtension.h"
#include "Command.h"
#include "Document.h"
#include "MainWindow.h"
using namespace Gui;

View File

@@ -20,13 +20,12 @@
* *
***************************************************************************/
#ifndef GUI_VIEWPROVIDERGROUPEXTENSION_H
#define GUI_VIEWPROVIDERGROUPEXTENSION_H
#include <App/Extension.h>
#include "ViewProviderExtensionPython.h"
namespace Gui
{

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
@@ -31,13 +30,12 @@
# include <QFile>
#endif
#include "ViewProviderInventorObject.h"
#include <Gui/SoFCSelection.h>
#include <App/InventorObject.h>
#include <App/Document.h>
#include <Base/FileInfo.h>
#include <Base/Stream.h>
#include <sstream>
#include <App/InventorObject.h>
#include "ViewProviderInventorObject.h"
#include "SoFCSelection.h"
using namespace Gui;

View File

@@ -21,22 +21,20 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <Inventor/nodes/SoAsciiText.h>
# include <Inventor/nodes/SoCoordinate3.h>
# include <Inventor/nodes/SoFont.h>
# include <Inventor/nodes/SoIndexedLineSet.h>
# include <Inventor/nodes/SoPickStyle.h>
# include <Inventor/nodes/SoSeparator.h>
# include <Inventor/nodes/SoTranslation.h>
#endif
#include "ViewProviderLine.h"
#include "ViewProviderOrigin.h"
#include "ViewProviderLine.h"
using namespace Gui;

View File

@@ -23,6 +23,9 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <atomic>
# include <cctype>
# include <Inventor/SoPickedPoint.h>
# include <Inventor/actions/SoGetBoundingBoxAction.h>
# include <Inventor/details/SoDetail.h>
# include <Inventor/draggers/SoCenterballDragger.h>
@@ -37,21 +40,17 @@
# include <Inventor/nodes/SoSwitch.h>
# include <Inventor/nodes/SoTransform.h>
# include <Inventor/sensors/SoNodeSensor.h>
# include <Inventor/SoPickedPoint.h>
#include <QApplication>
#include <QMenu>
#endif
#include <atomic>
#include <boost/algorithm/string/predicate.hpp>
#include <boost_bind_bind.hpp>
#include <cctype>
#include <App/ComplexGeoData.h>
#include <Base/BoundBoxPy.h>
#include <Base/MatrixPy.h>
#include <Base/PlacementPy.h>
#include <Base/Tools.h>
#include <Gui/BitmapFactory.h>
#include "ViewProviderLink.h"
#include "ViewProviderLinkPy.h"
@@ -69,7 +68,7 @@
#include "ViewProviderGeometryObject.h"
FC_LOG_LEVEL_INIT("App::Link",true,true)
FC_LOG_LEVEL_INIT("App::Link", true, true)
using namespace Gui;
using namespace Base;

View File

@@ -20,17 +20,16 @@
* *
****************************************************************************/
#ifndef GUI_VIEWPROVIDER_LINK_H
#define GUI_VIEWPROVIDER_LINK_H
#include <boost/preprocessor/seq/for_each.hpp>
#include <App/PropertyGeo.h>
#include <App/Link.h>
#include "SoFCUnifiedSelection.h"
#include "ViewProviderPythonFeature.h"
#include "ViewProviderDocumentObject.h"
#include "ViewProviderExtension.h"
#include "ViewProviderPythonFeature.h"
class SoBase;
class SoDragger;

View File

@@ -26,13 +26,13 @@
# include <sstream>
#endif
#include "Gui/ViewProviderLink.h"
#include <App/DocumentObject.h>
#include <Base/PlacementPy.h>
// inclusion of the generated files (generated out of ViewProviderLinkPy.xml)
#include "ViewProviderLinkPy.h"
#include "ViewProviderLinkPy.cpp"
using namespace Gui;
// returns a string which represents the object e.g. when printed in python