1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-20 09:30:59 +00:00
serenity/Applications/PixelPaint
Andreas Kling 7dc5a3ead8 LibGUI: Rewrite layout system in terms of min and max sizes
This patch removes size policies and preferred sizes, and replaces them
with min-size and max-size for each widget.

Box layout now works in 3 passes:

    1) Set all items (widgets/spacers) to their min-size
    2) Distribute remaining space evenly, respecting max-size
    3) Place widgets one after the other, adding spacing in between

I've also added convenience helpers for setting a fixed size (which is
the same as setting min-size and max-size to the same value.)

This significantly reduces the verbosity of widget layout and makes GML
a bit more pleasant to write, too. :^)
2020-12-30 01:36:41 +01:00
..
BrushTool.cpp LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
BrushTool.h PixelPaint: Undo and redo actions 2020-11-22 16:07:00 +01:00
BucketTool.cpp LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
BucketTool.h PixelPaint: Tool properties panel 2020-10-16 00:03:53 +02:00
CMakeLists.txt Build: Embed application icons directly in the executables. 2020-12-21 00:12:59 +01:00
CreateNewImageDialog.cpp PixelPaint: Export image as BMP 2020-11-22 16:07:00 +01:00
CreateNewImageDialog.h PixelPaint: Export image as BMP 2020-11-22 16:07:00 +01:00
CreateNewLayerDialog.cpp Applications: Use application icons for dialog windows 2020-10-31 13:48:15 +01:00
CreateNewLayerDialog.h Meta+Applications: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
EllipseTool.cpp PixelPaint: Undo and redo actions 2020-11-22 16:07:00 +01:00
EllipseTool.h Meta+Applications: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
EraseTool.cpp PixelPaint: Undo and redo actions 2020-11-22 16:07:00 +01:00
EraseTool.h PixelPaint: Undo and redo actions 2020-11-22 16:07:00 +01:00
FilterParams.h LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
Image.cpp PixelPaint: Use UndoStack instead of History 2020-11-22 16:07:00 +01:00
Image.h PixelPaint: Use UndoStack instead of History 2020-11-22 16:07:00 +01:00
ImageEditor.cpp PixelPaint: Use UndoStack instead of History 2020-11-22 16:07:00 +01:00
ImageEditor.h PixelPaint: Use UndoStack instead of History 2020-11-22 16:07:00 +01:00
Layer.cpp PixelPaint: Undo and redo actions 2020-11-22 16:07:00 +01:00
Layer.h PixelPaint: Undo and redo actions 2020-11-22 16:07:00 +01:00
LayerListWidget.cpp LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize 2020-06-10 10:59:04 +02:00
LayerListWidget.h LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize 2020-06-10 10:59:04 +02:00
LayerPropertiesWidget.cpp LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
LayerPropertiesWidget.h PixelPaint: Add GUI for editing layer names :^) 2020-07-23 20:48:28 +02:00
LineTool.cpp PixelPaint: Undo and redo actions 2020-11-22 16:07:00 +01:00
LineTool.h LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize 2020-06-10 10:59:04 +02:00
main.cpp LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
MoveTool.cpp PixelPaint: Undo and redo actions 2020-11-22 16:07:00 +01:00
MoveTool.h LibGfx: Rename Rect,Point,Size => IntRect,IntPoint,IntSize 2020-06-10 10:59:04 +02:00
PaletteWidget.cpp LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
PaletteWidget.h PixelPaint: Rename from PaintBrush :^) 2020-05-20 20:35:35 +02:00
PenTool.cpp LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
PenTool.h PixelPaint: Tool properties panel 2020-10-16 00:03:53 +02:00
PickerTool.cpp PixelPaint: Rename from PaintBrush :^) 2020-05-20 20:35:35 +02:00
PickerTool.h Meta+Applications: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
RectangleTool.cpp PixelPaint: Undo and redo actions 2020-11-22 16:07:00 +01:00
RectangleTool.h Meta+Applications: Make clang-format-10 clean 2020-09-25 21:18:17 +02:00
SprayTool.cpp LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
SprayTool.h PixelPaint: Tool properties panel 2020-10-16 00:03:53 +02:00
Tool.cpp AK: Make RefPtr, NonnullRefPtr, WeakPtr thread safe 2020-11-10 19:11:52 +01:00
Tool.h PixelPaint: Tool properties panel 2020-10-16 00:03:53 +02:00
ToolboxWidget.cpp LibGUI: Rewrite layout system in terms of min and max sizes 2020-12-30 01:36:41 +01:00
ToolboxWidget.h PixelPaint: Scope tool actions to the containing window 2020-07-23 19:53:48 +02:00
ToolPropertiesWidget.cpp PixelPaint: Tool properties panel 2020-10-16 00:03:53 +02:00
ToolPropertiesWidget.h PixelPaint: Tool properties panel 2020-10-16 00:03:53 +02:00