resources/RooUsage.txt
[app.Builder.js] / src / Builder4 / RooProjectProperties.bjs
1 {
2  "name" : "RooProjectProperties",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/app.Builder.js/src/Builder4/RooProjectProperties.bjs",
6  "permname" : "",
7  "modOrder" : "",
8  "build_module" : "",
9  "items" : [
10   {
11    "listeners" : {
12     "delete_event" : "  (self, event) => {\n    this.el.hide();\n     return true;\n}",
13     "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}"
14    },
15    "default_width" : 500,
16    "| 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",
17    "# Project.Project project" : "",
18    "xtype" : "Dialog",
19    "$ modal" : true,
20    "$ xns" : "Gtk",
21    "items" : [
22     {
23      "$ pack" : " get_content_area().add\n",
24      "xtype" : "Box",
25      "$ xns" : "Gtk",
26      "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
27      "border_width" : 5,
28      "items" : [
29       {
30        "label" : "HTML To insert at end of <HEAD>",
31        "* pack" : "pack_start,false,false,0",
32        "xtype" : "Label",
33        "$ xns" : "Gtk"
34       },
35       {
36        "* pack" : "pack_end,true,true,0",
37        "xtype" : "ScrolledWindow",
38        "$ xns" : "Gtk",
39        "items" : [
40         {
41          "id" : "view",
42          "* pack" : "add",
43          "xtype" : "SourceView",
44          "$ xns" : "Gtk"
45         }
46        ]
47       }
48      ]
49     },
50     {
51      "label" : "OK",
52      "* pack" : "add_action_widget,1",
53      "xtype" : "Button",
54      "$ xns" : "Gtk"
55     },
56     {
57      "label" : "Cancel",
58      "* pack" : "add_action_widget,0",
59      "xtype" : "Button",
60      "$ xns" : "Gtk"
61     }
62    ]
63   }
64  ]
65 }