Palette globals are updated
Clone method for grids
Removed grid main selection dependency
Reorganized transforming, made before/after grid display
I'm bad at updating comments...
Previewing in clear tab
Fix missing globals in test cloning
Remove now unused function
Remove unneeded size recompute in clear