Attribute changed old-javascript
[app.Builder.js] / old-javascript / Builder4 / GtkView.bjs
1 {
2     "name" : "GtkView",
3     "parent" : "",
4     "title" : "",
5     "path" : "/home/alan/gitlive/app.Builder.js/Builder4/GtkView.bjs",
6     "permname" : "",
7     "modOrder" : "",
8     "items" : [
9         {
10             "id" : "GtkView",
11             "# Gtk.Widget lastObj" : "null",
12             "| void createThumb" : "() {\n    \n    \n    if (this.file == null) {\n        return;\n    }\n    var filename = this.file.getIconFileName(false);\n    \n    var  win = this.el.get_parent_window();\n    var width = win.get_width();\n    var height = win.get_height();\n\n    Gdk.Pixbuf screenshot = Gdk.pixbuf_get_from_window(win, 0, 0, width, height); // this.el.position?\n\n    screenshot.save(filename,\"png\");\n    return;\n    \n    \n    \n    \n    \n     \n    \n    // should we hold until it's printed...\n    \n      \n\n    \n    \n\n\n    \n     \n}\n",
13             "| void loadFile" : "(JsRender.JsRender file) \n{\n    \n        this.el.set_position((int)(this.el.max_position * 0.7));\n        this.file = null;\n        \n        if (file.tree == null) {\n            return;\n        }\n        this.file = file;\n        if (this.lastObj != null) {\n            this.container.el.remove(this.lastObj);\n        }\n \n\tvar x = new JsRender.NodeToGtk(file.tree);\n        var obj = x.munge() as Gtk.Widget;\n        this.lastObj = null;\n\tif (obj == null) {\n        \treturn;\n\t}\n\tthis.lastObj = obj;\n        \n        this.container.el.add(obj);\n        obj.show_all();\n}\n ",
14             "xtype" : "VPaned",
15             "# JsRender.JsRender file" : "null",
16             "$ xns" : "Gtk",
17             "items" : [
18                 {
19                     "* pack" : "pack1,true,true",
20                     "xtype" : "Viewport",
21                     "$ xns" : "Gtk",
22                     "items" : [
23                         {
24                             "id" : "container",
25                             "* pack" : "add",
26                             "xtype" : "HBox",
27                             "$ xns" : "Gtk"
28                         }
29                     ]
30                 },
31                 {
32                     "* pack" : "pack2,true,true",
33                     "xtype" : "VBox",
34                     "gboolean homogeneous" : false,
35                     "$ xns" : "Gtk",
36                     "items" : [
37                         {
38                             "* pack" : "pack_start,false,false,0",
39                             "xtype" : "HBox",
40                             "$ xns" : "Gtk",
41                             "items" : [
42                                 {
43                                     "* pack" : "pack_start,true,true,0",
44                                     "xtype" : "Button",
45                                     "$ xns" : "Gtk",
46                                     "utf8 label" : "Full Compile"
47                                 }
48                             ]
49                         },
50                         {
51                             "* pack" : "pack_start,true,true,0",
52                             "xtype" : "HBox",
53                             "gboolean homogeneous" : true,
54                             "$ xns" : "Gtk",
55                             "items" : [
56                                 {
57                                     "* pack" : "add",
58                                     "xtype" : "TreeView",
59                                     "$ xns" : "Gtk",
60                                     "items" : [
61                                         {
62                                             "gint n_columns" : 1,
63                                             "columns" : "  typeof(string)",
64                                             "* pack" : "set_model",
65                                             "xtype" : "ListStore",
66                                             "$ xns" : "Gtk"
67                                         },
68                                         {
69                                             "utf8 title" : "Compile output",
70                                             "xtype" : "TreeViewColumn",
71                                             "string id" : "column",
72                                             "$ xns" : "Gtk",
73                                             "items" : [
74                                                 {
75                                                     "* pack" : "pack_start,false",
76                                                     "xtype" : "CellRendererText",
77                                                     "$ xns" : "Gtk"
78                                                 }
79                                             ]
80                                         }
81                                     ]
82                                 },
83                                 {
84                                     "* pack" : "pack_start,true,true,0",
85                                     "xtype" : "ScrolledWindow",
86                                     "$ xns" : "Gtk",
87                                     "items" : [
88                                         {
89                                             "gboolean show_line_marks" : true,
90                                             "* pack" : "add",
91                                             "xtype" : "View",
92                                             "$ xns" : "GtkSource",
93                                             "gboolean show_line_numbers" : true,
94                                             "gboolean editable" : false
95                                         }
96                                     ]
97                                 }
98                             ]
99                         }
100                     ]
101                 }
102             ]
103         }
104     ]
105 }