1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:18:12 +00:00

LibGUI: Add forwarding header

This patch adds <LibGUI/Forward.h> and uses it a bunch.
It also dragged various header dependency reduction changes into it.
This commit is contained in:
Andreas Kling 2020-02-16 09:17:49 +01:00
parent 2e6ab58117
commit 2143da6434
115 changed files with 220 additions and 338 deletions

View file

@ -28,12 +28,9 @@
#include "Tool.h"
#include <AK/HashMap.h>
#include <LibGUI/Forward.h>
#include <LibGfx/Point.h>
namespace GUI {
class Widget;
}
class CursorTool final : public Tool {
public:
explicit CursorTool(FormEditorWidget& editor)

View file

@ -28,10 +28,6 @@
#include <LibGUI/Widget.h>
namespace GUI {
class Label;
}
class Editor;
class EditorWrapper : public GUI::Widget {

View file

@ -28,12 +28,6 @@
#include <LibGUI/Widget.h>
namespace GUI {
class Button;
class TableView;
class TextBox;
}
class FindInFilesWidget final : public GUI::Widget {
C_OBJECT(FindInFilesWidget)
public:

View file

@ -26,6 +26,7 @@
#pragma once
#include <AK/HashTable.h>
#include <LibGUI/ScrollableWidget.h>
class FormWidget;

View file

@ -28,11 +28,6 @@
#include <LibGUI/Widget.h>
namespace GUI {
class ModelIndex;
class TableView;
}
class LocatorTextBox;
class Locator final : public GUI::Widget {

View file

@ -28,10 +28,6 @@
#include <LibGUI/Widget.h>
namespace GUI {
class Label;
}
class ProcessStateWidget final : public GUI::Widget {
C_OBJECT(ProcessStateWidget)
public:

View file

@ -28,6 +28,11 @@
#include <LibCore/File.h>
#include <string.h>
ProjectFile::ProjectFile(const String& name)
: m_name(name)
{
}
const GUI::TextDocument& ProjectFile::document() const
{
if (!m_document) {

View file

@ -44,10 +44,7 @@ public:
const GUI::TextDocument& document() const;
private:
explicit ProjectFile(const String& name)
: m_name(name)
{
}
explicit ProjectFile(const String& name);
String m_name;
mutable RefPtr<GUI::TextDocument> m_document;

View file

@ -27,16 +27,10 @@
#pragma once
#include <AK/Noncopyable.h>
#include <LibGUI/Forward.h>
class FormEditorWidget;
namespace GUI {
class KeyEvent;
class MouseEvent;
class PaintEvent;
class Painter;
}
class Tool {
AK_MAKE_NONCOPYABLE(Tool)
AK_MAKE_NONMOVABLE(Tool)