[FancyZones] Rework grid editor (#10116)

* Started rewriting

* Making progress

* Fix resizers not moving around

* Implemented splitting, fixed some bugs

* Removed more code, renamed methods

* Merging zones works

* Fix Shift key behavior

* Added spacing (has bugs)

* Implement minimum size restriction

* Match preview and editor visuals

* Snapping works

* Show when splitting is not possible

* Fix spell checker complaining

* Tweak FZ Lib function computing grid zones

* Fix potential crash when loading old zone layouts

* Fix dead objects talking

* Fix splitters being shown when they shouldn't be

* Fix index numbering

* Fix small glitch with the shift key

* Do not snap to borders outside the zone
This commit is contained in:
Ivan Stošić
2021-03-10 13:22:19 +01:00
committed by GitHub
parent 9a2c195f5f
commit e586a7ad64
12 changed files with 897 additions and 2279 deletions

View File

@@ -13,18 +13,15 @@ namespace FancyZonesEditor
{
}
public SplitEventArgs(Orientation orientation, double offset, double thickness)
public SplitEventArgs(Orientation orientation, int offset)
{
Orientation = orientation;
Offset = offset;
Space = thickness;
}
public Orientation Orientation { get; }
public double Offset { get; }
public double Space { get; }
public int Offset { get; }
}
public delegate void SplitEventHandler(object sender, SplitEventArgs args);