mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-14 01:04:38 +03:00
a655cf5b41
This function was unbearably huge. Handle each event type in its own function instead so you can see what's going on.
95 lines
2.5 KiB
C++
95 lines
2.5 KiB
C++
/*
|
|
* Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
|
|
* All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions are met:
|
|
*
|
|
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
* list of conditions and the following disclaimer.
|
|
*
|
|
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
* this list of conditions and the following disclaimer in the documentation
|
|
* and/or other materials provided with the distribution.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace GUI {
|
|
|
|
class AbstractButton;
|
|
class AbstractTableView;
|
|
class AbstractView;
|
|
class Action;
|
|
class ActionGroup;
|
|
class Application;
|
|
class BoxLayout;
|
|
class Button;
|
|
class CheckBox;
|
|
class Command;
|
|
class DragEvent;
|
|
class DropEvent;
|
|
class FileSystemModel;
|
|
class Frame;
|
|
class GroupBox;
|
|
class HorizontalBoxLayout;
|
|
class HorizontalSlider;
|
|
class IconView;
|
|
class JsonArrayModel;
|
|
class KeyEvent;
|
|
class Label;
|
|
class Layout;
|
|
class ListView;
|
|
class Menu;
|
|
class MenuBar;
|
|
class MenuItem;
|
|
class Model;
|
|
class ModelEditingDelegate;
|
|
class ModelIndex;
|
|
class MouseEvent;
|
|
class MultiPaintEvent;
|
|
class MultiView;
|
|
class PaintEvent;
|
|
class Painter;
|
|
class ResizeCorner;
|
|
class ResizeEvent;
|
|
class ScrollBar;
|
|
class Slider;
|
|
class SortingProxyModel;
|
|
class SpinBox;
|
|
class Splitter;
|
|
class StackWidget;
|
|
class StatusBar;
|
|
class SyntaxHighlighter;
|
|
class TabWidget;
|
|
class TableView;
|
|
class TextBox;
|
|
class TextDocument;
|
|
class TextDocumentLine;
|
|
class TextDocumentUndoCommand;
|
|
class TextEditor;
|
|
class ThemeChangeEvent;
|
|
class ToolBar;
|
|
class ToolBarContainer;
|
|
class TreeView;
|
|
class Variant;
|
|
class VerticalBoxLayout;
|
|
class VerticalSlider;
|
|
class WMEvent;
|
|
class Widget;
|
|
class Window;
|
|
class WindowServerConnection;
|
|
|
|
}
|