ladybird/Applications/PaintBrush
Andreas Kling bc319d9e88 LibCore: Make CObject reference-counted
Okay, I've spent a whole day on this now, and it finally kinda works!
With this patch, CObject and all of its derived classes are reference
counted instead of tree-owned.

The previous, Qt-like model was nice and familiar, but ultimately also
outdated and difficult to reason about.

CObject-derived types should now be stored in RefPtr/NonnullRefPtr and
each class can be constructed using the forwarding construct() helper:

    auto widget = GWidget::construct(parent_widget);

Note that construct() simply forwards all arguments to an existing
constructor. It is inserted into each class by the C_OBJECT macro,
see CObject.h to understand how that works.

CObject::delete_later() disappears in this patch, as there is no longer
a single logical owner of a CObject.
2019-09-22 00:25:25 +02:00
..
BucketTool.cpp LibDraw: Introduce (formerly known as SharedGraphics.) 2019-07-18 10:18:16 +02:00
BucketTool.h Add a simple spray fill tool 2019-06-17 05:54:32 +02:00
ColorDialog.cpp LibCore: Make CObject reference-counted 2019-09-22 00:25:25 +02:00
ColorDialog.h LibGUI: Convert GFrame to ObjectPtr 2019-09-21 19:21:36 +02:00
EraseTool.cpp GMenu: Update apps now that you can create a nameless GMenu 2019-09-13 22:14:07 +02:00
EraseTool.h LibDraw: Introduce (formerly known as SharedGraphics.) 2019-07-18 10:18:16 +02:00
main.cpp LibCore: Make CObject reference-counted 2019-09-22 00:25:25 +02:00
Makefile PaintBrush: Add an erase tool 2019-06-28 15:27:23 +02:00
PaintableWidget.cpp PaintBrush: Only send left and right mouse button events to tools 2019-09-12 20:33:05 +02:00
PaintableWidget.h LibCore: Introduce a C_OBJECT macro. 2019-07-25 19:49:28 +02:00
PaletteWidget.cpp LibCore: Make CObject reference-counted 2019-09-22 00:25:25 +02:00
PaletteWidget.h LibGUI: Convert GFrame to ObjectPtr 2019-09-21 19:21:36 +02:00
PenTool.cpp GMenu: Update apps now that you can create a nameless GMenu 2019-09-13 22:14:07 +02:00
PenTool.h LibDraw: Introduce (formerly known as SharedGraphics.) 2019-07-18 10:18:16 +02:00
PickerTool.cpp LibDraw: Introduce (formerly known as SharedGraphics.) 2019-07-18 10:18:16 +02:00
PickerTool.h PaintBrush: Add a color picker tool. 2019-06-22 12:05:35 +02:00
SprayTool.cpp LibCore: Remove CTimer::create() overloads in favor of construct() 2019-09-21 18:13:17 +02:00
SprayTool.h LibCore: Convert CTimer to ObjectPtr 2019-09-20 15:20:10 +02:00
Tool.cpp PaintBrush: Factor out the pen tool into an actual PenTool class. 2019-06-14 18:51:57 +02:00
Tool.h PaintBrush: Implement a thickness setting for the pen tool. 2019-06-23 10:00:02 +02:00
ToolboxWidget.cpp LibGUI: Convert custom widgets and subclasses to ObjectPtr 2019-09-21 20:04:00 +02:00
ToolboxWidget.h LibCore: Introduce a C_OBJECT macro. 2019-07-25 19:49:28 +02:00