ladybird/Userland/Applications/PixelPaint
Mustafa Quraish 351dee4f8f PixelPaint: Properly transfer active tool to editor on tab close
Previously the code assumed that the active tool had a reference to
the old editor, which is the only way we had to check if it is
active without having a reference to the editor. However, when a
tab in PixelPaint is closed, the editor is destroyed, so the `WeakPtr`
in a tool referencing the old editor is no longer valid.

This made it so that if you closed a tab, the tool would appear to be
selected in the ToolBox, but the editor would not know about it at all.
2021-09-13 13:43:53 +02:00
..
BrushTool.cpp PixelPaint: Reoriganize drawing in BrushTool to allow more code reuse 2021-09-09 11:35:50 +02:00
BrushTool.h PixelPaint: Reoriganize drawing in BrushTool to allow more code reuse 2021-09-09 11:35:50 +02:00
BucketTool.cpp PixelPaint: Fix BucketTool out of memory crashes 2021-09-09 11:27:48 +02:00
BucketTool.h
CMakeLists.txt PixelPaint: Use LibConfig to allow custom pixel grid threshold 2021-09-12 00:17:04 +02:00
CreateNewImageDialog.cpp
CreateNewImageDialog.h
CreateNewLayerDialog.cpp
CreateNewLayerDialog.h
EditGuideDialog.cpp
EditGuideDialog.gml
EditGuideDialog.h
EllipseTool.cpp PixelPaint: Use correct thickness in EllipseTool::on_second_paint() 2021-09-07 16:53:40 +02:00
EllipseTool.h PixelPaint: Use correct thickness in EllipseTool::on_second_paint() 2021-09-07 16:53:40 +02:00
EraseTool.cpp PixelPaint: Add "Brush Mode" to EraseTool :^) 2021-09-09 11:35:50 +02:00
EraseTool.h PixelPaint: Add "Brush Mode" to EraseTool :^) 2021-09-09 11:35:50 +02:00
FilterParams.h PixelPaint: Add invert filter 2021-09-04 03:35:17 +02:00
Guide.h AK: Rename create<T> => make_ref_counted<T> 2021-09-03 02:36:09 +02:00
GuideTool.cpp PixelPaint: Make tools use the new API for property change shortcuts 2021-09-04 03:33:44 +02:00
GuideTool.h
Image.cpp PixelPaint: Let PickerTool optionally sample all layers 2021-09-12 17:48:14 +02:00
Image.h PixelPaint: Let PickerTool optionally sample all layers 2021-09-12 17:48:14 +02:00
ImageEditor.cpp PixelPaint: Use config to get default values for Guides/Rulers/PixelGrid 2021-09-12 17:15:30 +02:00
ImageEditor.h PixelPaint: Add setter/getter for ImageEditor::m_pan_origin 2021-09-12 17:14:57 +02:00
Layer.cpp
Layer.h
LayerListWidget.cpp PixelPaint: Draw layers from the top of LayerList 2021-09-13 13:43:53 +02:00
LayerListWidget.h PixelPaint: Draw layers from the top of LayerList 2021-09-13 13:43:53 +02:00
LayerPropertiesWidget.cpp
LayerPropertiesWidget.h
LineTool.cpp PixelPaint: Use correct thickness in LineTool::on_second_paint() 2021-09-07 16:53:40 +02:00
LineTool.h
main.cpp PixelPaint: Use FileSystemAccessServer exclusively, remove unveil 2021-09-12 00:17:04 +02:00
MainWidget.cpp PixelPaint: Properly transfer active tool to editor on tab close 2021-09-13 13:43:53 +02:00
MainWidget.h PixelPaint: Remove unused methods to access files directly 2021-09-12 00:17:04 +02:00
Mask.cpp
Mask.h
MoveTool.cpp PixelPaint: Allow panning when right-clicking with MoveTool 2021-09-12 17:14:57 +02:00
MoveTool.h PixelPaint: Allow panning when right-clicking with MoveTool 2021-09-12 17:14:57 +02:00
PaletteWidget.cpp
PaletteWidget.h
PenTool.cpp PixelPaint: Make PenTool inherit from BrushTool 2021-09-09 11:35:50 +02:00
PenTool.h PixelPaint: Make PenTool inherit from BrushTool 2021-09-09 11:35:50 +02:00
PickerTool.cpp PixelPaint: Let PickerTool optionally sample all layers 2021-09-12 17:48:14 +02:00
PickerTool.h PixelPaint: Let PickerTool optionally sample all layers 2021-09-12 17:48:14 +02:00
PixelPaintWindow.gml
ProjectLoader.cpp PixelPaint: Remove unused methods to access files directly 2021-09-12 00:17:04 +02:00
ProjectLoader.h PixelPaint: Remove unused methods to access files directly 2021-09-12 00:17:04 +02:00
RectangleSelectTool.cpp PixelPaint: Make tools use the new API for property change shortcuts 2021-09-04 03:33:44 +02:00
RectangleSelectTool.h
RectangleTool.cpp PixelPaint: Register RectangleTool thickness slider as primary 2021-09-07 16:53:40 +02:00
RectangleTool.h PixelPaint: Use correct thickness in RectangleTool::on_second_paint() 2021-09-07 16:53:40 +02:00
Selection.cpp
Selection.h
SprayTool.cpp PixelPaint: Make tools use the new API for property change shortcuts 2021-09-04 03:33:44 +02:00
SprayTool.h
Tool.cpp PixelPaint: Add mechanism for tools to use keyboard shortcuts 2021-09-04 03:33:44 +02:00
Tool.h PixelPaint: Add mechanism for tools to use keyboard shortcuts 2021-09-04 03:33:44 +02:00
ToolboxWidget.cpp PixelPaint: Have ToolboxWidget keep track of active tool 2021-09-13 13:43:53 +02:00
ToolboxWidget.h PixelPaint: Have ToolboxWidget keep track of active tool 2021-09-13 13:43:53 +02:00
ToolPropertiesWidget.cpp
ToolPropertiesWidget.h
ZoomTool.cpp PixelPaint: Make tools use the new API for property change shortcuts 2021-09-04 03:33:44 +02:00
ZoomTool.h PixelPaint: Use Zoom and Eyedropper cursors 2021-09-04 03:35:23 +02:00