045bf892d71688bd712181fc5565ce21159bcdc2
[roobuilder] / src / Builder4 / DialogConfirm.bjs
1 {
2  "build_module" : "builder",
3  "gen_extended" : true,
4  "items" : [
5   {
6    "$ buttons" : "Gtk.ButtonsType.YES_NO",
7    "$ message_type" : "Gtk.MessageType.QUESTION",
8    "$ modal" : true,
9    "$ use_markup" : true,
10    "$ xns" : "Gtk",
11    "flags" : "Gtk.DialogFlags.MODAL",
12    "listeners" : {
13     "close_request" : [
14      " (event) => {",
15      "   this.el.response(Gtk.ResponseType.CANCEL);",
16      "    this.el.hide();",
17      "    return true;",
18      " ",
19      "}",
20      ""
21     ]
22    },
23    "name" : "DialogConfirm",
24    "text" : "Test",
25    "title" : "Please Confirm ",
26    "xtype" : "MessageDialog",
27    "| void showIt" : [
28     "  // caller needs to connect to the  response -  to get the result.",
29     "  ",
30     "  (string title, string msg) {",
31     "     //if (!this.el) { this.init(); } ",
32     "     //this.success = success;",
33     "     this.el.title = title;",
34     "    this.el.text =  msg;",
35     "    this.el.show();",
36     "   ",
37     "   ",
38     "}",
39     "  "
40    ]
41   }
42  ],
43  "name" : "DialogConfirm"
44 }