3 Pango = imports.gi.Pango;
4 GLib = imports.gi.GLib;
6 GObject = imports.gi.GObject;
7 GtkSource = imports.gi.GtkSource;
8 WebKit = imports.gi.WebKit;
10 GtkClutter = imports.gi.GtkClutter;
11 console = imports.console;
12 XObject = imports.XObject.XObject;
18 XObject.prototype.init.call(this);
23 xtype: GtkClutter.Embed,
26 var stage = this.el.get_stage();
27 print(this.items.length);
31 stage.add_actor(e.el);
39 xtype: GtkClutter.Actor,
45 var child = new XObject(this.items[0]);
48 //var contents = new Gtk.Button({ label: 'test' });
49 var contents = child.el;
51 print(JSON.stringify(this.items));
54 this.el = new GtkClutter.Actor.with_contents ( contents) ;
55 XObject.prototype.init.call(this);
61 clicked : function (self) {
62 Clutter = imports.gi.Clutter;
63 var animate = this.parent.el.animate(
64 Clutter.AnimationMode.EASE_OUT_ELASTIC, 2000,
71 animate.timeline.start();
76 label : "project list",
83 xtype: GtkClutter.Actor,
89 var child = new XObject(this.items[0]);
92 //var contents = new Gtk.Button({ label: 'test' });
93 var contents = child.el;
94 print ("actor.items");
95 print(JSON.stringify(this.items));
98 this.el = new GtkClutter.Actor.with_contents ( contents) ;
99 XObject.prototype.init.call(this);
105 clicked : function (self) {
106 Clutter = imports.gi.Clutter;
107 var animate = this.parent.el.animate(
108 Clutter.AnimationMode.EASE_OUT_ELASTIC, 2000,
115 animate.timeline.start();
119 height_request : 100,
127 xtype: GtkClutter.Actor,
133 var child = new XObject(this.items[0]);
136 //var contents = new Gtk.Button({ label: 'test' });
137 var contents = child.el;
139 print(JSON.stringify(this.items));
142 this.el = new GtkClutter.Actor.with_contents ( contents) ;
143 XObject.prototype.init.call(this);
149 clicked : function (self) {
150 Clutter = imports.gi.Clutter;
151 var animate = this.parent.el.animate(
152 Clutter.AnimationMode.EASE_OUT_ELASTIC, 2000,
159 animate.timeline.start();
163 height_request : 100,
164 label : "tree of parts",
171 xtype: GtkClutter.Actor,
177 var child = new XObject(this.items[0]);
180 //var contents = new Gtk.Button({ label: 'test' });
181 var contents = child.el;
183 print(JSON.stringify(this.items));
186 this.el = new GtkClutter.Actor.with_contents ( contents) ;
187 XObject.prototype.init.call(this);
193 clicked : function (self) {
194 Clutter = imports.gi.Clutter;
195 var animate = this.parent.el.animate(
196 Clutter.AnimationMode.EASE_OUT_ELASTIC, 2000,
203 animate.timeline.start();
207 height_request : 100,
208 label : "property editor",
215 xtype: GtkClutter.Actor,
221 var child = new XObject(this.items[0]);
224 //var contents = new Gtk.Button({ label: 'test' });
225 var contents = child.el;
227 print(JSON.stringify(this.items));
230 this.el = new GtkClutter.Actor.with_contents ( contents) ;
231 XObject.prototype.init.call(this);
237 clicked : function (self) {
238 Clutter = imports.gi.Clutter;
239 var animate = this.parent.el.animate(
240 Clutter.AnimationMode.EASE_OUT_ELASTIC, 2000,
247 animate.timeline.start();
251 height_request : 100,
252 label : "text editor",
259 xtype: GtkClutter.Actor,
265 var child = new XObject(this.items[0]);
268 //var contents = new Gtk.Button({ label: 'test' });
269 var contents = child.el;
271 print(JSON.stringify(this.items));
274 this.el = new GtkClutter.Actor.with_contents ( contents) ;
275 XObject.prototype.init.call(this);
281 clicked : function (self) {
282 Clutter = imports.gi.Clutter;
283 var animate = this.parent.el.animate(
284 Clutter.AnimationMode.EASE_OUT_ELASTIC, 2000,
291 animate.timeline.start();
295 height_request : 100,
296 label : "preview app",
303 xtype: GtkClutter.Actor,
309 var child = new XObject(this.items[0]);
312 //var contents = new Gtk.Button({ label: 'test' });
313 var contents = child.el;
315 print(JSON.stringify(this.items));
318 this.el = new GtkClutter.Actor.with_contents ( contents) ;
319 XObject.prototype.init.call(this);
325 clicked : function (self) {
326 Clutter = imports.gi.Clutter;
327 var animate = this.parent.el.animate(
328 Clutter.AnimationMode.EASE_OUT_ELASTIC, 2000,
335 animate.timeline.start();
339 height_request : 100,
351 XObject.cache['/Window'] = Window;