Attribute changed old-javascript
[app.Builder.js] / old-javascript / Builder4 / RooProjectProperties.bjs
1 {
2     "id": "file-gtk-8",
3     "name": "RooProjectProperties",
4     "parent": "",
5     "title": false,
6     "path": "/home/alan/gitlive/app.Builder.js/Builder4/RooProjectProperties.bjs",
7     "items": [
8         {
9             "listeners": {
10                 "delete_event": "  (self, event) => {\n    this.el.hide();\n     return true;\n}",
11                 "response": "  (self, response_id)  => {\n   //print(response_id);\n   if (response_id< 1 ) {\n      this.el.hide();\n    \n      return;\n   }\n   \n   var buf =    view.el.get_buffer();\n   Gtk.TextIter s;\n     Gtk.TextIter e;\n    buf.get_start_iter(out s);\n    buf.get_end_iter(out e);\n    var str = buf.get_text(s,e,true);\n    // ideally we should syntax check it.. but it's html!?\n    \n   //var project = this.get('/Window.LeftTree').getActiveFile().project;\n   \n   \n   _this.project.runhtml = str;\n   _this.project.save();\n   \n  // imports.Builder.Provider.ProjectManager.ProjectManager.saveConfig();\n//   print (str);\n   //    this.get('view').el.get_buffer().get_text(project.runjs, project.runjs.length);\n   // ok pressed..\n   this.el.hide();\n}"
12             },
13             ".Project.Project:project": "",
14             "default_width": 500,
15             "xtype": "Dialog",
16             "|modal": "true",
17             "|void:show": " (Project.Project project) {\n    _this.project = project;\n    // get the active project.\n    \n    //print (project.fn);\n    //project.runhtml = project.runhtml || '';\n    _this.view.el.get_buffer().set_text(project.runhtml);\n    \n    this.el.show_all();\n}\n",
18             "|xns": "Gtk",
19             "items": [
20                 {
21                     "border_width": 5,
22                     "xtype": "VBox",
23                     "|pack": " get_content_area().add\n",
24                     "|xns": "Gtk",
25                     "items": [
26                         {
27                             "|xns": "Gtk",
28                             "xtype": "Label",
29                             "pack": "pack_start,false,false,0",
30                             "label": "HTML To insert at end of <HEAD>"
31                         },
32                         {
33                             "|xns": "Gtk",
34                             "xtype": "ScrolledWindow",
35                             "pack": "pack_end,true,true,0",
36                             "items": [
37                                 {
38                                     "|xns": "GtkSource",
39                                     "xtype": "View",
40                                     "pack": "add",
41                                     "id": "view"
42                                 }
43                             ]
44                         }
45                     ]
46                 },
47                 {
48                     "|xns": "Gtk",
49                     "xtype": "Button",
50                     "pack": "add_action_widget,1",
51                     "label": "OK"
52                 },
53                 {
54                     "|xns": "Gtk",
55                     "xtype": "Button",
56                     "pack": "add_action_widget,0",
57                     "label": "Cancel"
58                 }
59             ]
60         }
61     ],
62     "permname": "",
63     "modOrder": ""
64 }