mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:05:07 +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:
parent
2e6ab58117
commit
2143da6434
115 changed files with 220 additions and 338 deletions
|
@ -24,6 +24,7 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <AK/Badge.h>
|
||||
#include <AK/StringBuilder.h>
|
||||
#include <LibCore/Timer.h>
|
||||
#include <LibGUI/TextDocument.h>
|
||||
|
@ -32,6 +33,11 @@
|
|||
|
||||
namespace GUI {
|
||||
|
||||
NonnullRefPtr<TextDocument> TextDocument::create(Client* client)
|
||||
{
|
||||
return adopt(*new TextDocument(client));
|
||||
}
|
||||
|
||||
TextDocument::TextDocument(Client* client)
|
||||
{
|
||||
if (client)
|
||||
|
@ -45,6 +51,10 @@ TextDocument::TextDocument(Client* client)
|
|||
});
|
||||
}
|
||||
|
||||
TextDocument::~TextDocument()
|
||||
{
|
||||
}
|
||||
|
||||
void TextDocument::set_text(const StringView& text)
|
||||
{
|
||||
m_client_notifications_enabled = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue