Pman.Tab.MTrackMerger.bjs
[Pman.MTrack] / Pman.Tab.MTrackMerger.bjs
1 {
2     "id": "roo-file-106",
3     "name": "Pman.Tab.MTrackMerger",
4     "parent": "Pman.Tab.MTrack",
5     "title": "Pman.Tab.MTrackMerger",
6     "path": "/home/alan/gitlive/Pman.MTrack/Pman.Tab.MTrackMerger.bjs",
7     "items": [
8         {
9             "listeners": {
10                 "activate": "function (_self)\n{\n   try {\n        var t = _this.tree.tree;\n        t.loader.load(t.root);\n    } catch(e) {}\n}"
11             },
12             "background": true,
13             "region": "center",
14             "title": "Merge Commits",
15             "xtype": "NestedLayoutPanel",
16             "|xns": "Roo",
17             "items": [
18                 {
19                     "|xns": "Roo",
20                     "xtype": "BorderLayout",
21                     "*prop": "layout",
22                     "items": [
23                         {
24                             "*prop": "west",
25                             "split": true,
26                             "width": 200,
27                             "xtype": "LayoutRegion",
28                             "|xns": "Roo"
29                         },
30                         {
31                             "*prop": "center",
32                             "xtype": "LayoutRegion",
33                             "|xns": "Roo"
34                         },
35                         {
36                             "*prop": "south",
37                             "height": 200,
38                             "split": true,
39                             "titlebar": true,
40                             "xtype": "LayoutRegion",
41                             "|xns": "Roo"
42                         },
43                         {
44                             "listeners": {
45                                 "render": "function (_self)\n{\n  _this.tree = _self;\n}"
46                             },
47                             "autoScroll": true,
48                             "fitToFrame": true,
49                             "region": "west",
50                             "xtype": "TreePanel",
51                             "|xns": "Roo",
52                             "items": [
53                                 {
54                                     "|xns": "Roo",
55                                     "xtype": "Toolbar",
56                                     "*prop": "toolbar",
57                                     "items": [
58                                         {
59                                             "listeners": {
60                                                 "click": "function (_self, e)\n{\n  var t = _this.tree.tree;\n  t.loader.load(t.root);\n}"
61                                             },
62                                             "text": "Reload",
63                                             "xtype": "Button",
64                                             "|xns": "Roo.Toolbar"
65                                         }
66                                     ]
67                                 },
68                                 {
69                                     "listeners": {
70                                         "click": "function (node, e)\n{\n\n   _this.grid.ds.load.defer(100, _this.grid.ds, [ {} ]);\n}"
71                                     },
72                                     "*prop": "tree",
73                                     "xtype": "TreePanel",
74                                     "|xns": "Roo.tree",
75                                     "items": [
76                                         {
77                                             "listeners": {
78                                                 "beforeload": "function (This, node, callback)\n{\n   _this.tree.el.mask(\"Loading\");\n}",
79                                                 "load": "function (This, node, response)\n{\n     _this.tree.el.unmask();\n     _this.tree.tree.root.expand(false,true);\n}",
80                                                 "loadexception": "function (This, node, response)\n{\n _this.tree.el.unmask();\n}"
81                                             },
82                                             "*prop": "loader",
83                                             "requestMethod": "GET",
84                                             "root": "data",
85                                             "xtype": "TreeLoader",
86                                             "|baseParams": "{ _tree : 1 }",
87                                             "|dataUrl": "baseURL + '/MTrack/Merger'",
88                                             "|xns": "Roo.tree"
89                                         },
90                                         {
91                                             "*prop": "root",
92                                             "text": "All Changes",
93                                             "xtype": "TreeNode",
94                                             "|xns": "Roo.tree"
95                                         }
96                                     ]
97                                 }
98                             ]
99                         },
100                         {
101                             "listeners": {
102                                 "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        //_this.grid.footer.onClick('first');\n    }\n}"
103                             },
104                             "background": true,
105                             "fitContainer": true,
106                             "fitToframe": true,
107                             "region": "center",
108                             "tableName": "core_enum",
109                             "title": "core_enum",
110                             "xtype": "GridPanel",
111                             "|xns": "Roo",
112                             "items": [
113                                 {
114                                     "listeners": {
115                                         "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       //this.footer.onClick('first');\n    }\n}",
116                                         "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
117                                     },
118                                     "*prop": "grid",
119                                     "autoExpandColumn": "etype",
120                                     "loadMask": true,
121                                     "xtype": "Grid",
122                                     "|xns": "Roo.grid",
123                                     "items": [
124                                         {
125                                             "listeners": {
126                                                 "beforeload": "function (_self, options)\n{\n   if (!_this.tree.tree.selModel.getSelectedNode()) {\n       return false;\n   }\n   \n   options.params = {   \n      _changedFiles : _this.tree.tree.selModel.getSelectedNode().attributes.rev\n      };\n}"
127                                             },
128                                             "*prop": "dataSource",
129                                             "remoteSort": false,
130                                             "xtype": "Store",
131                                             "|sortInfo": "{ field: 'filename', dir : 'ASC' }",
132                                             "|xns": "Roo.data",
133                                             "items": [
134                                                 {
135                                                     "*prop": "proxy",
136                                                     "method": "GET",
137                                                     "xtype": "HttpProxy",
138                                                     "|url": "baseURL + '/MTrack/Merger.php'",
139                                                     "|xns": "Roo.data"
140                                                 },
141                                                 {
142                                                     "*prop": "reader",
143                                                     "id": "id",
144                                                     "root": "data",
145                                                     "totalProperty": "total",
146                                                     "xtype": "JsonReader",
147                                                     "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'filename',\n        'type': 'string'\n    },\n    {\n        'name': 'added',\n        'type': 'int'\n    },\n    {\n        'name': 'removed',\n        'type': 'int'\n    }\n\n]",
148                                                     "|xns": "Roo.data"
149                                                 }
150                                             ]
151                                         },
152                                         {
153                                             "*prop": "sm",
154                                             "singleSelect": false,
155                                             "xtype": "RowSelectionModel",
156                                             "|xns": "Roo.grid"
157                                         },
158                                         {
159                                             "*prop": "toolbar",
160                                             "xtype": "Toolbar",
161                                             "|xns": "Roo",
162                                             "items": [
163                                                 {
164                                                     "listeners": {
165                                                         "|click": "function()\n{\n   \n}\n"
166                                                     },
167                                                     "cls": "x-btn-text-icon",
168                                                     "text": "Create Commit",
169                                                     "xtype": "Button",
170                                                     "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
171                                                     "|xns": "Roo.Toolbar"
172                                                 }
173                                             ]
174                                         },
175                                         {
176                                             "*prop": "colModel[]",
177                                             "dataIndex": "filename",
178                                             "header": "File",
179                                             "width": 200,
180                                             "xtype": "ColumnModel",
181                                             "|renderer": "function(v) { return String.format('{0}', v); }",
182                                             "|xns": "Roo.grid"
183                                         },
184                                         {
185                                             "*prop": "colModel[]",
186                                             "dataIndex": "added",
187                                             "header": "Added",
188                                             "width": 50,
189                                             "xtype": "ColumnModel",
190                                             "|renderer": "function(v) { return String.format('{0}', v); }",
191                                             "|xns": "Roo.grid"
192                                         },
193                                         {
194                                             "*prop": "colModel[]",
195                                             "dataIndex": "removed",
196                                             "header": "Removed",
197                                             "width": 50,
198                                             "xtype": "ColumnModel",
199                                             "|renderer": "function(v) { return String.format('{0}', v); }",
200                                             "|xns": "Roo.grid"
201                                         }
202                                     ]
203                                 }
204                             ]
205                         },
206                         {
207                             "region": "south",
208                             "title": "Review Changes",
209                             "xtype": "ContentPanel",
210                             "|xns": "Roo"
211                         }
212                     ]
213                 }
214             ]
215         }
216     ],
217     "permname": "",
218     "modOrder": "400"
219 }