1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

VisualBuilder: Multiple-widget selection support.

This is pretty damn nice, now I can move and resize entire groups of widgets
together. Diagonal group resizing feels a bit strange but I wasn't expecting
it not to. :^)
This commit is contained in:
Andreas Kling 2019-04-19 22:46:16 +02:00
parent e001954193
commit 440700b4cb
5 changed files with 123 additions and 55 deletions

View file

@ -25,6 +25,8 @@ VBWidget::VBWidget(VBWidgetType type, VBForm& form)
VBWidget::~VBWidget()
{
m_form.m_gwidget_map.remove(m_gwidget);
m_form.m_selected_widgets.remove(this);
delete m_gwidget;
}
Rect VBWidget::rect() const
@ -174,3 +176,8 @@ void VBWidget::property_did_change()
{
m_form.update();
}
void VBWidget::capture_transform_origin_rect()
{
m_transform_origin_rect = rect();
}