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 //Gdl = imports.gi.Gdl;
12 console = imports.console;
13 XObject = imports.XObject.XObject;
14 RooProjectProperties=new XObject({
18 // get the active project.
19 var file = this.get('/Window.LeftTree').getActiveFile();
21 this.get('/StandardErrorDialog').show("No file is currently active");
24 var project = this.get('/Window.LeftTree').getActiveFile().project;
26 project.runhtml = project.runhtml || '';
27 this.get('view').el.get_buffer().set_text(project.runhtml, project.runhtml.length);
33 delete_event : function (self, event) {
37 response : function (self, response_id) {
44 var buf = this.get('view').el.get_buffer()
48 buf.get_start_iter(s);
51 var str = this.el.get_text(s.iter,e.iter,true);
53 // ideally we should syntax check it.. but it's html!?
55 var project = this.get('/Window.LeftTree').getActiveFile().project;
58 project.runhtml = str;
60 imports.Builder.Provider.ProjectManager.ProjectManager.saveConfig();
62 // this.get('view').el.get_buffer().get_text(project.runjs, project.runjs.length);
70 pack : function(p,e) {
71 p.el.get_content_area().add(e.el);
77 pack : "pack_start,false,false,0",
78 label : "HTML To insert at end of <HEAD>"
81 xtype: Gtk.ScrolledWindow,
82 pack : "pack_end,true,true,0",
85 xtype: GtkSource.View,
95 pack : "add_action_widget,1",
100 pack : "add_action_widget,0",
105 RooProjectProperties.init();
106 XObject.cache['/RooProjectProperties'] = RooProjectProperties;