Gui: Optimize includes to reduce compile time
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#define GUI_ActiveObjectList_H
|
||||
|
||||
#include <map>
|
||||
#include "Tree.h"
|
||||
#include <Gui/TreeItemMode.h>
|
||||
|
||||
|
||||
namespace App {
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
# include <QMessageBox>
|
||||
# include <QMessageLogContext>
|
||||
# include <QStatusBar>
|
||||
# include <QStyle>
|
||||
# include <QTextStream>
|
||||
# include <QTimer>
|
||||
# include <QWindow>
|
||||
|
||||
@@ -27,13 +27,13 @@
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <boost_signals2.hpp>
|
||||
#include <QString>
|
||||
|
||||
#include <Base/Persistence.h>
|
||||
|
||||
#include <Gui/TreeItemMode.h>
|
||||
|
||||
class SoNode;
|
||||
class SoPath;
|
||||
class QString;
|
||||
|
||||
namespace Base {
|
||||
class Matrix4D;
|
||||
@@ -56,8 +56,6 @@ class ViewProviderDocumentObject;
|
||||
class Application;
|
||||
class DocumentPy;
|
||||
class TransactionViewProvider;
|
||||
enum class HighlightMode;
|
||||
enum class TreeItemMode;
|
||||
|
||||
/** The Gui Document
|
||||
* This is the document on GUI level. Its main responsibility is keeping
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "Window.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QLineEdit;
|
||||
class QPlainTextEdit;
|
||||
class QPrinter;
|
||||
class QHBoxLayout;
|
||||
|
||||
@@ -23,8 +23,10 @@
|
||||
#ifndef GUI_MDIVIEW_H
|
||||
#define GUI_MDIVIEW_H
|
||||
|
||||
#include <boost_signals2.hpp>
|
||||
#include <QMainWindow>
|
||||
#include "ActiveObjectList.h"
|
||||
#include <Gui/ActiveObjectList.h>
|
||||
#include <Gui/View.h>
|
||||
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include <Base/Persistence.h>
|
||||
#include <Gui/DockWindow.h>
|
||||
#include <Gui/Selection.h>
|
||||
#include <Gui/TreeItemMode.h>
|
||||
|
||||
class QLineEdit;
|
||||
|
||||
@@ -47,26 +48,6 @@ typedef std::shared_ptr<DocumentObjectData> DocumentObjectDataPtr;
|
||||
|
||||
class DocumentItem;
|
||||
|
||||
/// highlight modes for the tree items
|
||||
enum class HighlightMode {
|
||||
Underlined,
|
||||
Italic,
|
||||
Overlined,
|
||||
Bold,
|
||||
Blue,
|
||||
LightBlue,
|
||||
UserDefined
|
||||
};
|
||||
|
||||
/// highlight modes for the tree items
|
||||
enum class TreeItemMode {
|
||||
ExpandItem,
|
||||
ExpandPath,
|
||||
CollapseItem,
|
||||
ToggleItem
|
||||
};
|
||||
|
||||
|
||||
/** Tree view that allows drag & drop of document objects.
|
||||
* @author Werner Mayer
|
||||
*/
|
||||
|
||||
49
src/Gui/TreeItemMode.h
Normal file
49
src/Gui/TreeItemMode.h
Normal file
@@ -0,0 +1,49 @@
|
||||
/***************************************************************************
|
||||
* Copyright (c) 2004 Jürgen Riegel <juergen.riegel@web.de> *
|
||||
* *
|
||||
* This file is part of the FreeCAD CAx development system. *
|
||||
* *
|
||||
* This library is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU Library General Public *
|
||||
* License as published by the Free Software Foundation; either *
|
||||
* version 2 of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This library 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 Library General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU Library General Public *
|
||||
* License along with this library; see the file COPYING.LIB. If not, *
|
||||
* write to the Free Software Foundation, Inc., 59 Temple Place, *
|
||||
* Suite 330, Boston, MA 02111-1307, USA *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#ifndef GUI_TREEITEMMODE_H
|
||||
#define GUI_TREEITEMMODE_H
|
||||
|
||||
namespace Gui {
|
||||
|
||||
/// highlight modes for the tree items
|
||||
enum class HighlightMode {
|
||||
Underlined,
|
||||
Italic,
|
||||
Overlined,
|
||||
Bold,
|
||||
Blue,
|
||||
LightBlue,
|
||||
UserDefined
|
||||
};
|
||||
|
||||
/// highlight modes for the tree items
|
||||
enum class TreeItemMode {
|
||||
ExpandItem,
|
||||
ExpandPath,
|
||||
CollapseItem,
|
||||
ToggleItem
|
||||
};
|
||||
}
|
||||
|
||||
#endif // GUI_TREEITEMMODE_H
|
||||
@@ -30,6 +30,7 @@
|
||||
# include <QImage>
|
||||
#endif
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <App/Document.h>
|
||||
#include <App/DocumentObject.h>
|
||||
#include <App/DocumentObjectPy.h>
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
# include <QPlainTextEdit>
|
||||
#endif
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <Base/Type.h>
|
||||
|
||||
#include "ViewProviderTextDocument.h"
|
||||
|
||||
@@ -54,9 +54,11 @@
|
||||
#endif
|
||||
|
||||
#include "DrawingView.h"
|
||||
#include <Base/Parameter.h>
|
||||
#include <Base/Stream.h>
|
||||
#include <Base/gzstream.h>
|
||||
#include <Base/PyObjectBase.h>
|
||||
#include <App/Application.h>
|
||||
#include <App/Document.h>
|
||||
#include <Gui/Document.h>
|
||||
#include <Gui/ViewProvider.h>
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
#include "ImageView.h"
|
||||
#include "../App/ImageBase.h"
|
||||
#include "XpmImages.h"
|
||||
#include <Base/Parameter.h>
|
||||
#include <App/Application.h>
|
||||
|
||||
using namespace ImageGui;
|
||||
|
||||
|
||||
@@ -39,6 +39,7 @@ class SoSeparator;
|
||||
class SoSwitch;
|
||||
class QCheckBox;
|
||||
class QTextEdit;
|
||||
class QTreeView;
|
||||
|
||||
namespace PartGui {
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
#include <QObject>
|
||||
#include <QPainter>
|
||||
#include <QStyleOptionGraphicsItem>
|
||||
|
||||
#include <Mod/TechDraw/App/Geometry.h>
|
||||
#include "QGIView.h"
|
||||
|
||||
Reference in New Issue
Block a user