blob: 8db0672d1bcf8a4057b4054ca9464c045c8a6946 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
pragma Singleton
import Quickshell
import "."
Singleton {
id: root
function doLayout( layoutAlgorithm, windowList, width, height) {
var doLayout = null
switch (layoutAlgorithm) {
case 'smartgrid':
doLayout = SmartGridLayout.doLayout
break
case 'justified':
doLayout = JustifiedLayout.doLayout
break
case 'bands':
doLayout = BandsLayout.doLayout
break
case 'masonry':
doLayout = MasonryLayout.doLayout
break
case 'hero':
doLayout = HeroLayout.doLayout
break
case 'spiral':
doLayout = SpiralLayout.doLayout
break
case 'satellite':
doLayout = SatelliteLayout.doLayout
break
case 'staggered':
doLayout = StarggeredLayout.doLayout
break
case 'columnar':
doLayout = ColumnarLayout.doLayout
break
case 'vortex':
doLayout = VortexLayout.doLayout
break
default:
doLayout = SmartGridLayout.doLayout
}
return doLayout( windowList, width, height)
}
}
|