{
- "name" : "DialogConfirm",
- "parent" : "",
- "title" : "",
- "path" : "/home/alan/gitlive/app.Builder.js/src/Builder4/DialogConfirm.bjs",
- "permname" : "",
- "modOrder" : "",
"build_module" : "builder",
+ "gen_extended" : true,
"items" : [
{
- "listeners" : {
- "delete_event" : " (event) => {\n this.el.response(Gtk.ResponseType.CANCEL);\n this.el.hide();\n return true;\n \n}\n \n\n\n"
- },
+ "$ buttons" : "Gtk.ButtonsType.YES_NO",
"$ message_type" : "Gtk.MessageType.QUESTION",
- "text" : "Tests",
- "title" : "Please Confirm d",
- "xtype" : "MessageDialog",
"$ modal" : true,
- "| int show" : " (string title, string msg) {\n //if (!this.el) { this.init(); } \n //this.success = success;\n this.el.title = title;\n this.el.text = msg;\n this.el.show_all();\n var ret = this.el.run();\n //print(\"ret got %d\", ret);\n this.el.hide();\n return ret;\n \n\n}\n \n\n\n\n",
- "$ buttons" : "Gtk.ButtonsType.YES_NO",
+ "$ use_markup" : true,
"$ xns" : "Gtk",
"flags" : "Gtk.DialogFlags.MODAL",
- "$ use_markup" : true,
- "name" : "DialogConfirm"
+ "listeners" : {
+ "close_request" : [
+ " (event) => {",
+ " this.el.response(Gtk.ResponseType.CANCEL);",
+ " this.el.hide();",
+ " return true;",
+ "}",
+ ""
+ ]
+ },
+ "name" : "DialogConfirm",
+ "text" : "Test",
+ "title" : "Please Confirm ",
+ "xtype" : "MessageDialog",
+ "| void showIt" : [
+ " // caller needs to connect to the response - to get the result.",
+ " ",
+ " (string title, string msg) {",
+ " //if (!this.el) { this.init(); } ",
+ " //this.success = success;",
+ " this.el.title = title;",
+ " this.el.text = msg;",
+ " this.el.show();",
+ " ",
+ " ",
+ "}",
+ " "
+ ]
}
- ]
+ ],
+ "name" : "DialogConfirm"
}
\ No newline at end of file