Sample/RooProjectProperties.bjs
[app.Builder.js] / Sample / RooProjectProperties.bjs
1 {"id":"file-gtk-9","name":"RooProjectProperties","parent":"","title":false,"path":"/home/alan/gitlive/app.Builder.js/Sample/RooProjectProperties.bjs","items":[{"|xns":"Gtk","xtype":"Dialog","|modal":true,"|show":"function() {\n    // get the active project.\n    var file = this.get('/Window.LeftTree').getActiveFile();\n    if (!file) {\n        this.get('/StandardErrorDialog').show(\"No file is currently active\");\n        return;\n    }\n    var project = this.get('/Window.LeftTree').getActiveFile().project;\n    print (project.fn);\n\n    this.el.show_all();\n}\n","default_width":500,"listeners":{"delete_event":"function (self, event) {\n    this.el.hide()\n    return true;\n}","response":"function (self, response_id) {\n   print(response_id);\n   if (!response_id) {\n      this.el.hide();\n      return;\n   }\n   // ok pressed..\n   this.el.hide();\n}"},"items":[{"|xns":"Gtk","xtype":"VBox","|pack":" function(p,e) {\n            p.el.get_content_area().add(e.el);\n            e.border_width  =5;\n        }\n","items":[{"|xns":"Gtk","xtype":"HBox","pack":"pack_start,true,false,0","items":[{"|xns":"Gtk","xtype":"Label","pack":"add"},{"|xns":"Gtk","xtype":"Entry","pack":"add"}]},{"|xns":"Gtk","xtype":"Entry","pack":"add"}]},{"|xns":"Gtk","xtype":"Button","pack":"add_action_widget,1","label":"OK"},{"|xns":"Gtk","xtype":"Button","pack":"add_action_widget,0","label":"Cancel"}]}]}