2
import "Storage.js" as Storage
7
width: menuPanelVisible ? main_row.width : 0
13
PropertyAction { target: flash; properties: "width"; value: main_window.width }
15
PropertyAction { target: flash; property: "height"; value: main_window.height }
17
PauseAnimation { duration: 200 }
19
PropertyAction { target: flash; properties: "width"; value: 0 }
21
PropertyAction { target: flash; property: "height"; value: 0 }
30
verticalCenter: parent.verticalCenter
38
img_source: "ui/home-btn.svg"
39
img_press_source: "ui/home-btn-press.svg"
40
img_width: parent.width
42
menuPanelVisible = false
50
visible: menuPanelVisible && play_field.children.length > 0
53
img_source: "ui/camera-btn.svg"
54
img_press_source: "ui/camera-btn-press.svg"
55
img_width: parent.width
57
var stamp = Date.now().toString()
58
var backurl = backgroundImg
61
Storage.saveBacks(stamp, backurl)
63
for (var i = 0; i < play_field.children.length; i++ ) {
64
var iurl = play_field.children[i].elemImg
65
var ix = play_field.children[i].x
66
var iy = play_field.children[i].y
67
var is = play_field.children[i].scale
68
var iMirror = play_field.children[i].isMirror
69
var iwidth = play_field.children[i].width / units.gu(1)
70
Storage.saveSnaps(stamp, iurl, ix, iy, is, iMirror, iwidth)
73
play_field.grabToImage(function(result) {
74
createSnapImage(result.url)
84
visible: menuPanelVisible && play_field.children.length > 0
87
img_source: "ui/bin-btn.svg"
88
img_press_source: "ui/bin-btn-press.svg"
89
img_width: parent.width
91
for (var i = 0; i < play_field.children.length; i++ ) {
92
play_field.children[i].remove_anim.start()
93
play_field.children[i].destroy(150)