ca897f76d90fda34e0d396dd0493f56f9bf5e2a7
[app.Builder.js] / ClutterTest / Window.bjs
1 {
2     "id": "file-gtk-12",
3     "name": "Window",
4     "parent": "",
5     "title": false,
6     "path": "/home/alan/gitlive/app.Builder.js/ClutterTest/Window.bjs",
7     "items": [
8         {
9             "default_height": 900,
10             "default_width": 900,
11             "xtype": "Window",
12             "|init": "function() {\n    XObject.prototype.init.call(this);\n    this.el.show_all();\n}\n",
13             "|xns": "Gtk",
14             "items": [
15                 {
16                     "listeners": {
17                         "show": "function() { \n   var stage = this.el.get_stage(); \n   print(this.items.length);\n   this.items.forEach( \n      function(e) { \n          print(e.xtype);\n          stage.add_actor(e.el);\n        }\n     );\n}"
18                     },
19                     "pack": "add",
20                     "xtype": "Embed",
21                     "|xns": "GtkClutter",
22                     "items": [
23                         {
24                             "pack": false,
25                             "x": 10,
26                             "xtype": "Actor",
27                             "y": 10,
28                             "|init": "function() {\n\n    var child = new XObject(this.items[0]);\n    child.init();\n    child.parent = this;\n    //var contents = new Gtk.Button({ label: 'test' }); \n    var contents = child.el;\n   \n    print(JSON.stringify(this.items));\n    \n    \n    this.el = new GtkClutter.Actor.with_contents (  contents) ;\n    XObject.prototype.init.call(this);\n}\n",
29                             "|xns": "GtkClutter",
30                             "items": [
31                                 {
32                                     "listeners": {
33                                         "clicked": "function (self) {\n   Clutter = imports.gi.Clutter;\n        var animate = this.parent.el.animate(\n\t\tClutter.AnimationMode.EASE_OUT_ELASTIC, 2000,\n\t\t{\n\t\t\t   scale_x : 5,\n\t\t\t  scale_y: 5,\n\n\t\t}\n\t\t);\n\t\tanimate.timeline.start();\n\n}"
34                                     },
35                                     "height_request": 100,
36                                     "label": "project list",
37                                     "pack": false,
38                                     "width_request": 100,
39                                     "xtype": "Button",
40                                     "|xns": "Gtk"
41                                 }
42                             ]
43                         },
44                         {
45                             "pack": false,
46                             "x": 10,
47                             "xtype": "Actor",
48                             "y": 150,
49                             "|init": "function() {\n\n    var child = new XObject(this.items[0]);\n    child.init();\n    child.parent = this;\n    //var contents = new Gtk.Button({ label: 'test' }); \n    var contents = child.el;\n    print (\"actor.items\");\n    print(JSON.stringify(this.items));\n    \n    \n    this.el = new GtkClutter.Actor.with_contents (  contents) ;\n    XObject.prototype.init.call(this);\n}\n",
50                             "|xns": "GtkClutter",
51                             "items": [
52                                 {
53                                     "listeners": {
54                                         "clicked": "function (self) {\n   Clutter = imports.gi.Clutter;\n        var animate = this.parent.el.animate(\n\t\tClutter.AnimationMode.EASE_OUT_ELASTIC, 2000,\n\t\t{\n\t\t\t   scale_x : 5,\n\t\t\t  scale_y: 5,\n\n\t\t}\n\t\t);\n\t\tanimate.timeline.start();\n\n}"
55                                     },
56                                     "height_request": 100,
57                                     "label": "file list",
58                                     "pack": false,
59                                     "width_request": 100,
60                                     "xtype": "Button",
61                                     "|xns": "Gtk"
62                                 }
63                             ]
64                         },
65                         {
66                             "pack": false,
67                             "x": 10,
68                             "xtype": "Actor",
69                             "y": 300,
70                             "|init": "function() {\n\n    var child = new XObject(this.items[0]);\n    child.init();\n    child.parent = this;\n    //var contents = new Gtk.Button({ label: 'test' }); \n    var contents = child.el;\n   \n    print(JSON.stringify(this.items));\n    \n    \n    this.el = new GtkClutter.Actor.with_contents (  contents) ;\n    XObject.prototype.init.call(this);\n}\n",
71                             "|xns": "GtkClutter",
72                             "items": [
73                                 {
74                                     "listeners": {
75                                         "clicked": "function (self) {\n   Clutter = imports.gi.Clutter;\n        var animate = this.parent.el.animate(\n\t\tClutter.AnimationMode.EASE_OUT_ELASTIC, 2000,\n\t\t{\n\t\t\t   scale_x : 5,\n\t\t\t  scale_y: 5,\n\n\t\t}\n\t\t);\n\t\tanimate.timeline.start();\n\n}"
76                                     },
77                                     "height_request": 100,
78                                     "label": "tree of parts",
79                                     "pack": false,
80                                     "width_request": 100,
81                                     "xtype": "Button",
82                                     "|xns": "Gtk"
83                                 }
84                             ]
85                         },
86                         {
87                             "pack": false,
88                             "x": 10,
89                             "xtype": "Actor",
90                             "y": 450,
91                             "|init": "function() {\n\n    var child = new XObject(this.items[0]);\n    child.init();\n    child.parent = this;\n    //var contents = new Gtk.Button({ label: 'test' }); \n    var contents = child.el;\n   \n    print(JSON.stringify(this.items));\n    \n    \n    this.el = new GtkClutter.Actor.with_contents (  contents) ;\n    XObject.prototype.init.call(this);\n}\n",
92                             "|xns": "GtkClutter",
93                             "items": [
94                                 {
95                                     "listeners": {
96                                         "clicked": "function (self) {\n   Clutter = imports.gi.Clutter;\n        var animate = this.parent.el.animate(\n\t\tClutter.AnimationMode.EASE_OUT_ELASTIC, 2000,\n\t\t{\n\t\t\t   scale_x : 5,\n\t\t\t  scale_y: 5,\n\n\t\t}\n\t\t);\n\t\tanimate.timeline.start();\n\n}"
97                                     },
98                                     "height_request": 100,
99                                     "label": "property editor",
100                                     "pack": false,
101                                     "width_request": 100,
102                                     "xtype": "Button",
103                                     "|xns": "Gtk"
104                                 }
105                             ]
106                         },
107                         {
108                             "pack": false,
109                             "x": 150,
110                             "xtype": "Actor",
111                             "y": 450,
112                             "|init": "function() {\n\n    var child = new XObject(this.items[0]);\n    child.init();\n    child.parent = this;\n    //var contents = new Gtk.Button({ label: 'test' }); \n    var contents = child.el;\n   \n    print(JSON.stringify(this.items));\n    \n    \n    this.el = new GtkClutter.Actor.with_contents (  contents) ;\n    XObject.prototype.init.call(this);\n}\n",
113                             "|xns": "GtkClutter",
114                             "items": [
115                                 {
116                                     "listeners": {
117                                         "clicked": "function (self) {\n   Clutter = imports.gi.Clutter;\n        var animate = this.parent.el.animate(\n\t\tClutter.AnimationMode.EASE_OUT_ELASTIC, 2000,\n\t\t{\n\t\t\t   scale_x : 5,\n\t\t\t  scale_y: 5,\n\n\t\t}\n\t\t);\n\t\tanimate.timeline.start();\n\n}"
118                                     },
119                                     "height_request": 100,
120                                     "label": "text editor",
121                                     "pack": false,
122                                     "width_request": 100,
123                                     "xtype": "Button",
124                                     "|xns": "Gtk"
125                                 }
126                             ]
127                         },
128                         {
129                             "pack": false,
130                             "x": 150,
131                             "xtype": "Actor",
132                             "y": 10,
133                             "|init": "function() {\n\n    var child = new XObject(this.items[0]);\n    child.init();\n    child.parent = this;\n    //var contents = new Gtk.Button({ label: 'test' }); \n    var contents = child.el;\n   \n    print(JSON.stringify(this.items));\n    \n    \n    this.el = new GtkClutter.Actor.with_contents (  contents) ;\n    XObject.prototype.init.call(this);\n}\n",
134                             "|xns": "GtkClutter",
135                             "items": [
136                                 {
137                                     "listeners": {
138                                         "clicked": "function (self) {\n   Clutter = imports.gi.Clutter;\n        var animate = this.parent.el.animate(\n\t\tClutter.AnimationMode.EASE_OUT_ELASTIC, 2000,\n\t\t{\n\t\t\t   scale_x : 5,\n\t\t\t  scale_y: 5,\n\n\t\t}\n\t\t);\n\t\tanimate.timeline.start();\n\n}"
139                                     },
140                                     "height_request": 100,
141                                     "label": "preview app",
142                                     "pack": false,
143                                     "width_request": 100,
144                                     "xtype": "Button",
145                                     "|xns": "Gtk"
146                                 }
147                             ]
148                         },
149                         {
150                             "pack": false,
151                             "x": 100,
152                             "xtype": "Actor",
153                             "y": 300,
154                             "|init": "function() {\n\n    var child = new XObject(this.items[0]);\n    child.init();\n    child.parent = this;\n    //var contents = new Gtk.Button({ label: 'test' }); \n    var contents = child.el;\n   \n    print(JSON.stringify(this.items));\n    \n    \n    this.el = new GtkClutter.Actor.with_contents (  contents) ;\n    XObject.prototype.init.call(this);\n}\n",
155                             "|xns": "GtkClutter",
156                             "items": [
157                                 {
158                                     "listeners": {
159                                         "clicked": "function (self) {\n   Clutter = imports.gi.Clutter;\n        var animate = this.parent.el.animate(\n\t\tClutter.AnimationMode.EASE_OUT_ELASTIC, 2000,\n\t\t{\n\t\t\t   scale_x : 5,\n\t\t\t  scale_y: 5,\n\n\t\t}\n\t\t);\n\t\tanimate.timeline.start();\n\n}"
160                                     },
161                                     "height_request": 100,
162                                     "label": "palete",
163                                     "pack": false,
164                                     "width_request": 100,
165                                     "xtype": "Button",
166                                     "|xns": "Gtk"
167                                 }
168                             ]
169                         }
170                     ]
171                 }
172             ]
173         }
174     ]
175 }