OSDN Git Service

Header cleanup in various plugins.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Thu, 18 Aug 2011 13:04:13 +0000 (15:04 +0200)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>
Thu, 18 Aug 2011 13:05:00 +0000 (15:05 +0200)
Change-Id: I16b273cc792bfd2035d35e7c67675f039cd387b9
Reviewed-on: http://codereview.qt.nokia.com/3185
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
12 files changed:
src/libs/cplusplus/ModelManagerInterface.h
src/plugins/cppeditor/cppinsertqtpropertymembers.cpp
src/plugins/cppeditor/cppquickfix.h
src/plugins/cpptools/abstracteditorsupport.cpp
src/plugins/cpptools/abstracteditorsupport.h
src/plugins/cpptools/cppqtstyleindenter.h
src/plugins/cpptools/insertionpointlocator.cpp
src/plugins/cpptools/insertionpointlocator.h
src/plugins/find/findplugin.h
src/plugins/glsleditor/glslcompletionassist.h
src/plugins/glsleditor/glsleditor.h
src/plugins/glsleditor/glslhoverhandler.cpp

index 23f34bf..0a9cf6e 100644 (file)
@@ -53,10 +53,6 @@ namespace ProjectExplorer {
     class Project;
 }
 
-namespace TextEditor {
-    class ITextEditor;
-}
-
 namespace CppTools {
     class AbstractEditorSupport;
 }
index 9945746..ed1d992 100644 (file)
@@ -36,6 +36,7 @@
 #include <AST.h>
 #include <Token.h>
 #include <cplusplus/Overview.h>
+#include <cplusplus/Symbols.h>
 #include <cpptools/insertionpointlocator.h>
 #include <cpptools/cpprefactoringchanges.h>
 #include <cppeditor/cppquickfix.h>
index d2e9131..3d93b41 100644 (file)
 #define CPPQUICKFIX_H
 
 #include "cppeditor_global.h"
-#include "cppsemanticinfo.h"
-
-#include <ASTfwd.h>
-#include <cplusplus/CppDocument.h>
 #include <texteditor/quickfix.h>
 
 namespace CppTools {
index 7d0212f..02bb21d 100644 (file)
@@ -37,6 +37,7 @@
 #include <cplusplus/Overview.h>
 #include <cplusplus/CppDocument.h>
 #include <cplusplus/ExpressionUnderCursor.h>
+#include <cplusplus/ModelManagerInterface.h>
 #include <CoreTypes.h>
 #include <Names.h>
 #include <Symbols.h>
index 79e2e9b..916d504 100644 (file)
 
 #include "cpptools_global.h"
 
-#include <cplusplus/ModelManagerInterface.h>
+#include <QtCore/QString>
+
+namespace CPlusPlus {
+class CppModelManagerInterface;
+}
 
 namespace CppTools {
 
index deeb5a1..b4fb2ee 100644 (file)
@@ -34,8 +34,8 @@
 #define CPPQTSTYLEINDENTER_H
 
 #include "cpptools_global.h"
+
 #include <texteditor/indenter.h>
-#include "cppcodestylesettingspage.h"
 
 namespace TextEditor
 {
@@ -43,6 +43,8 @@ class IFallbackPreferences;
 }
 
 namespace CppTools {
+class CppCodeStyleSettings;
+class CppCodeStylePreferences;
 
 class CPPTOOLS_EXPORT CppQtStyleIndenter : public TextEditor::Indenter
 {
index 7aeb5de..af8aa1f 100644 (file)
@@ -38,6 +38,7 @@
 #include <ASTVisitor.h>
 #include <TranslationUnit.h>
 #include <Literals.h>
+#include <Symbols.h>
 
 #include <coreplugin/icore.h>
 #include <coreplugin/mimedatabase.h>
index d530f82..b3506ec 100644 (file)
@@ -37,7 +37,6 @@
 
 #include <ASTfwd.h>
 #include <CPlusPlusForwardDeclarations.h>
-#include <Symbols.h>
 
 #include <cplusplus/CppDocument.h>
 
index ec96c54..4cc936a 100644 (file)
@@ -38,8 +38,6 @@
 
 #include <extensionsystem/iplugin.h>
 
-#include <QtGui/QTextDocument>
-
 QT_BEGIN_NAMESPACE
 class QStringListModel;
 QT_END_NAMESPACE
index 78daea8..92be9c8 100644 (file)
 #include <QtCore/QScopedPointer>
 #include <QtGui/QIcon>
 
+namespace GLSL {
+class Function;
+}
+
 namespace TextEditor {
 class BasicProposalItem;
 }
index 7035693..13fbfba 100644 (file)
 #define GLSLEDITOR_H
 
 #include "glsleditor_global.h"
-#include "glsleditoreditable.h"
-
-#include <glsl/glsl.h>
 
 #include <texteditor/basetexteditor.h>
-#include <texteditor/quickfix.h>
 
 #include <QtCore/QSharedPointer>
 #include <QtCore/QSet>
@@ -49,12 +45,21 @@ class QComboBox;
 class QTimer;
 QT_END_NAMESPACE
 
+namespace GLSL {
+class Engine;
+class TranslationUnitAST;
+class Scope;
+}
+
 namespace Core {
 class ICore;
 }
 
 namespace GLSLEditor {
 class GLSLTextEditorWidget;
+namespace Internal {
+class GLSLEditorEditable;
+}
 
 class GLSLEDITOR_EXPORT Document
 {
index e862555..3de9449 100644 (file)
@@ -32,6 +32,7 @@
 
 #include "glslhoverhandler.h"
 #include "glsleditor.h"
+#include "glsleditoreditable.h"
 
 #include <coreplugin/editormanager/ieditor.h>
 #include <coreplugin/editormanager/editormanager.h>