pro swe_snap_layout, layout
common snap_layout, Dopt, Sopt, Popt, Nopt, Copt, Eopt, Hopt
if (size(layout,/type) eq 0) then begin
print,"Hardware-dependent positions for snapshot windows (optional)."
print," 0 --> Default. No fixed window positions."
print," 1 --> Macbook 1440x900 with Dell 1920x1200 (above)"
print," 2 --> Twin Dell 1920x1200 (left, right)"
print," 3 --> Macbook 1440x900 with ViewSonic 1680x1050 (above)"
print," 4 --> Macbook 1440x900 with Samsung 1600x900 (left)"
print," 5 --> Macbook 1440x900 (below) with twin Dell 1920x1200 (left, right)"
print,""
layout = 0
read, layout, prompt='Layout > '
endif
case layout[0] of
1 : begin
Dopt = {xsize:800, ysize:600, xpos:300, ypos:-600}
Sopt = {xsize:450, ysize:600, xpos:1130, ypos:-600}
Popt = {xsize:800, ysize:600, xpos:300, ypos:-600}
Nopt = {xsize:450, ysize:600, xpos:1130, ypos:-600}
Copt = {xsize:500, ysize:700, xpos:1000, ypos:-700}
Eopt = {xsize:400, ysize:600, xpos:720, ypos:-600}
Hopt = {xsize:225, ysize:545, xpos:480, ypos:-600}
end
2 : begin
Dopt = {xsize:800, ysize:600, xpos:1120, ypos:640}
Sopt = {xsize:450, ysize:600, xpos:880, ypos:500}
Popt = {xsize:800, ysize:600, xpos:1120, ypos:640}
Nopt = {xsize:450, ysize:600, xpos:880, ypos:500}
Copt = {xsize:500, ysize:700, xpos:1000, ypos:-700}
Eopt = {xsize:400, ysize:600, xpos:1120, ypos:640}
Hopt = {xsize:200, ysize:545, xpos:880, ypos:500}
end
3 : begin
Dopt = {xsize:800, ysize:600, xpos:240, ypos:-600}
Sopt = {xsize:450, ysize:600, xpos:1100, ypos:-600}
Popt = {xsize:800, ysize:600, xpos:240, ypos:-600}
Nopt = {xsize:600, ysize:450, xpos:1050, ypos:-600}
Copt = {xsize:500, ysize:700, xpos:1000, ypos:-700}
Eopt = {xsize:400, ysize:600, xpos:240, ypos:-600}
Hopt = {xsize:200, ysize:545, xpos:700, ypos:-540}
end
4 : begin
Dopt = {xsize:800, ysize:600, xpos:1600, ypos:300}
Sopt = {xsize:450, ysize:600, xpos:2420, ypos:300}
Popt = {xsize:800, ysize:600, xpos:1600, ypos:300}
Nopt = {xsize:600, ysize:450, xpos:2420, ypos:450}
Copt = {xsize:500, ysize:700, xpos:1000, ypos:-700}
Eopt = {xsize:400, ysize:600, xpos:1600, ypos:300}
Hopt = {xsize:200, ysize:545, xpos:2020, ypos:355}
end
5 : begin
Dopt = {xsize:800, ysize:600, xpos:1920+100, ypos:640}
Sopt = {xsize:450, ysize:600, xpos:1920+1000, ypos:640}
Popt = {xsize:800, ysize:600, xpos:1920+100, ypos:640}
Nopt = {xsize:600, ysize:450, xpos:1920+1000, ypos:640}
Copt = {xsize:500, ysize:700, xpos:1000, ypos:-700}
Eopt = {xsize:400, ysize:600, xpos:1920+100, ypos:640}
Hopt = {xsize:200, ysize:545, xpos:1920+600, ypos:640}
end
else : begin
Dopt = {xsize:800, ysize:600, xpos:0, ypos:0}
Sopt = {xsize:450, ysize:600, xpos:0, ypos:0}
Popt = {xsize:800, ysize:600, xpos:0, ypos:0}
Nopt = {xsize:600, ysize:450, xpos:0, ypos:0}
Copt = {xsize:500, ysize:700, xpos:0, ypos:0}
Eopt = {xsize:400, ysize:600, xpos:0, ypos:0}
Hopt = {xsize:200, ysize:545, xpos:0, ypos:0}
end
endcase
return
end