Mon, 30 Jan 2017 02:41:45 +0200
Removed some unnecessary #include-directives.
--- a/src/basics.cpp Mon Jan 30 02:33:17 2017 +0200 +++ b/src/basics.cpp Mon Jan 30 02:41:45 2017 +0200 @@ -16,13 +16,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <QObject> -#include <QStringList> -#include <QTextStream> -#include <QFile> -#include <assert.h> -#include "main.h" -#include "basics.h" #include "miscallenous.h" #include "ldObject.h" #include "ldDocument.h"
--- a/src/colors.cpp Mon Jan 30 02:33:17 2017 +0200 +++ b/src/colors.cpp Mon Jan 30 02:41:45 2017 +0200 @@ -18,12 +18,7 @@ #include <QFile> #include <QMessageBox> -#include "main.h" #include "colors.h" -#include "ldDocument.h" -#include "miscallenous.h" -#include "mainwindow.h" -#include "documentmanager.h" #include "ldpaths.h" static ColorData* colorData = nullptr;
--- a/src/dialogs.cpp Mon Jan 30 02:33:17 2017 +0200 +++ b/src/dialogs.cpp Mon Jan 30 02:41:45 2017 +0200 @@ -16,26 +16,11 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <QDialog> -#include <QLineEdit> -#include <QSpinBox> -#include <QDialogButtonBox> #include <QFileDialog> -#include <QLabel> -#include <QPushButton> -#include <QBoxLayout> -#include <QGridLayout> -#include <QProgressBar> -#include <QCheckBox> -#include <QDesktopServices> -#include <QMessageBox> -#include <QUrl> #include "dialogs.h" -#include "radioGroup.h" #include "mainwindow.h" #include "glRenderer.h" #include "documentation.h" -#include "ldDocument.h" #include "dialogs.h" #include "ui_overlay.h" #include "ui_extprogpath.h"
--- a/src/documentloader.cpp Mon Jan 30 02:33:17 2017 +0200 +++ b/src/documentloader.cpp Mon Jan 30 02:41:45 2017 +0200 @@ -16,7 +16,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <QFile> #include "documentloader.h" #include "ldDocument.h" #include "ldObject.h"
--- a/src/documentmanager.cpp Mon Jan 30 02:33:17 2017 +0200 +++ b/src/documentmanager.cpp Mon Jan 30 02:41:45 2017 +0200 @@ -18,7 +18,6 @@ #include <QApplication> #include <QFileInfo> -#include <QFile> #include "documentmanager.h" #include "ldDocument.h" #include "mainwindow.h"
--- a/src/glCompiler.cpp Mon Jan 30 02:33:17 2017 +0200 +++ b/src/glCompiler.cpp Mon Jan 30 02:41:45 2017 +0200 @@ -20,12 +20,7 @@ #include <GL/glu.h> #include <GL/glext.h> #include "glCompiler.h" -#include "ldObject.h" -#include "colors.h" -#include "ldDocument.h" #include "miscallenous.h" -#include "glRenderer.h" -#include "dialogs.h" #include "guiutilities.h" #include "documentmanager.h" #include "grid.h"
--- a/src/glRenderer.cpp Mon Jan 30 02:33:17 2017 +0200 +++ b/src/glRenderer.cpp Mon Jan 30 02:41:45 2017 +0200 @@ -19,13 +19,8 @@ #define GL_GLEXT_PROTOTYPES #include <GL/glu.h> #include <GL/glext.h> -#include <QGLWidget> -#include <QWheelEvent> -#include <QMouseEvent> #include <QContextMenuEvent> -#include <QInputDialog> #include <QToolTip> -#include <QTextDocument> #include <QTimer> #include <GL/glu.h> #include "main.h"
--- a/src/hierarchyelement.cpp Mon Jan 30 02:33:17 2017 +0200 +++ b/src/hierarchyelement.cpp Mon Jan 30 02:41:45 2017 +0200 @@ -16,7 +16,6 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <stdio.h> #include <QMetaObject> #include "hierarchyelement.h" #include "mainwindow.h"
--- a/src/ldDocument.cpp Mon Jan 30 02:33:17 2017 +0200 +++ b/src/ldDocument.cpp Mon Jan 30 02:41:45 2017 +0200 @@ -18,18 +18,10 @@ #include <QMessageBox> #include <QFileDialog> -#include <QDir> -#include <QTime> -#include <QApplication> -#include "main.h" #include "ldDocument.h" #include "miscallenous.h" #include "mainwindow.h" -#include "editHistory.h" -#include "glRenderer.h" #include "glCompiler.h" -#include "partdownloader.h" -#include "ldpaths.h" #include "documentloader.h" #include "dialogs/openprogressdialog.h" #include "documentmanager.h"
--- a/src/ldDocument.h Mon Jan 30 02:33:17 2017 +0200 +++ b/src/ldDocument.h Mon Jan 30 02:41:45 2017 +0200 @@ -24,10 +24,7 @@ #include "glShared.h" #include "model.h" -class EditHistory; -class OpenProgressDialog; struct LDGLData; -class GLCompiler; class DocumentManager; //
--- a/src/ldObject.cpp Mon Jan 30 02:33:17 2017 +0200 +++ b/src/ldObject.cpp Mon Jan 30 02:41:45 2017 +0200 @@ -17,7 +17,6 @@ */ #include <assert.h> -#include "main.h" #include "documentmanager.h" #include "ldObject.h" #include "ldDocument.h"
--- a/src/main.cpp Mon Jan 30 02:33:17 2017 +0200 +++ b/src/main.cpp Mon Jan 30 02:41:45 2017 +0200 @@ -17,8 +17,6 @@ */ #include <QApplication> -#include "main.h" -#include "colors.h" #include "crashCatcher.h" #include "ldpaths.h" #include "documentmanager.h"
--- a/src/mainwindow.cpp Mon Jan 30 02:33:17 2017 +0200 +++ b/src/mainwindow.cpp Mon Jan 30 02:41:45 2017 +0200 @@ -16,38 +16,21 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <QGridLayout> #include <QMessageBox> -#include <QEvent> #include <QContextMenuEvent> -#include <QMenuBar> -#include <QSplitter> -#include <QListWidget> #include <QToolButton> -#include <QComboBox> -#include <QDialogButtonBox> -#include <QToolBar> -#include <QProgressBar> -#include <QLabel> #include <QFileDialog> #include <QPushButton> -#include <QCoreApplication> -#include <QTimer> -#include <QMetaMethod> #include <QSettings> #include "main.h" #include "glRenderer.h" #include "mainwindow.h" #include "ldDocument.h" #include "miscallenous.h" -#include "colors.h" -#include "editHistory.h" -#include "radioGroup.h" #include "messageLog.h" #include "ui_mainwindow.h" #include "primitives.h" #include "editmodes/abstractEditMode.h" -#include "toolsets/extprogramtoolset.h" #include "toolsets/toolset.h" #include "dialogs/configdialog.h" #include "guiutilities.h"
--- a/src/partdownloader.cpp Mon Jan 30 02:33:17 2017 +0200 +++ b/src/partdownloader.cpp Mon Jan 30 02:41:45 2017 +0200 @@ -16,15 +16,12 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <QDir> #include <QPushButton> #include <QFileDialog> #include <QMessageBox> -#include <QTableWidget> #include "partdownloader.h" #include "partdownloadrequest.h" #include "ui_partdownloader.h" -#include "basics.h" #include "mainwindow.h" #include "ldDocument.h" #include "glRenderer.h"