5 "# Editor editor" : "",
9 " this.editor = new Editor();",
10 " this.el.add(this.editor.el);",
14 "Gtk.PositionType position" : "Gtk.PositionType.RIGHT",
15 "Xcls_MainWindow win" : "",
16 "bool active" : false,
17 "bool hexpand" : false,
19 "id" : "PopoverEditor",
20 "int height_request" : 800,
21 "int width_request" : 900,
26 "\t _this.editor.saveContents();",
30 "string prop_or_listener" : "\"\"",
32 "| void setMainWindow" : [
33 "(Xcls_MainWindow win) {",
35 "\tthis.editor.window = win;",
40 "(Gtk.Widget on_el, JsRender.JsRender file, JsRender.Node? node, string ptype, string key) {",
41 "\tthis.editor.show( file, node, ptype, key);",
44 " this.win.el.get_size(out w, out h);",
46 " // left tree = 250, editor area = 500?",
49 "\t// max hieght ...",
51 "\tvar ww = on_el.get_allocated_width();",
53 "\t// width = should be max = w-ww , or 600 at best..?",
55 " this.el.set_size_request( int.min(800,(w - ww)), h);",
58 "\tthis.el.set_modal(true);",
59 "\tthis.el.set_relative_to(on_el);",
61 "\tthis.el.set_position(Gtk.PositionType.TOP);",
63 "\t// window + header?",
65 "\tthis.el.show_all();",
66 " //while(Gtk.events_pending()) { ",
67 " // Gtk.main_iteration(); // why?",
76 "name" : "PopoverEditor",
78 "path" : "/home/alan/gitlive/roobuilder/src/Builder4/PopoverEditor.bjs",