Pman.Tab.MTrackMerger.bjs
[Pman.MTrack] / Pman.Tab.MTrackMerger.bjs
1 {
2     "id": "roo-file-160",
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             "region": "center",
10             "title": "Merger",
11             "xtype": "NestedLayoutPanel",
12             "|xns": "Roo",
13             "items": [
14                 {
15                     "|xns": "Roo",
16                     "xtype": "BorderLayout",
17                     "*prop": "layout",
18                     "items": [
19                         {
20                             "*prop": "west",
21                             "width": 200,
22                             "xtype": "LayoutRegion",
23                             "|xns": "Roo"
24                         },
25                         {
26                             "*prop": "center",
27                             "xtype": "LayoutRegion",
28                             "|xns": "Roo"
29                         },
30                         {
31                             "*prop": "south",
32                             "xtype": "LayoutRegion",
33                             "|xns": "Roo"
34                         },
35                         {
36                             "autoScroll": true,
37                             "fitToFrame": true,
38                             "region": "west",
39                             "xtype": "TreePanel",
40                             "|xns": "Roo",
41                             "items": [
42                                 {
43                                     "|xns": "Roo.tree",
44                                     "xtype": "TreePanel",
45                                     "*prop": "tree",
46                                     "items": [
47                                         {
48                                             "*prop": "loader",
49                                             "baseParams": "{ _tree : 1 }",
50                                             "requestMethod": "GET",
51                                             "root": "data",
52                                             "xtype": "TreeLoader",
53                                             "|dataUrl": "rootURL + '/MTrack/Merger'",
54                                             "|xns": "Roo.tree"
55                                         },
56                                         {
57                                             "*prop": "root",
58                                             "text": "All Changes",
59                                             "xtype": "TreeNode",
60                                             "|xns": "Roo.tree"
61                                         }
62                                     ]
63                                 }
64                             ]
65                         },
66                         {
67                             "|xns": "Roo",
68                             "xtype": "GridPanel",
69                             "title": "core_enum",
70                             "fitToframe": true,
71                             "fitContainer": true,
72                             "tableName": "core_enum",
73                             "background": true,
74                             "region": "center",
75                             "listeners": {
76                                 "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
77                             },
78                             "items": [
79                                 {
80                                     "*prop": "grid",
81                                     "xtype": "Grid",
82                                     "autoExpandColumn": "etype",
83                                     "loadMask": true,
84                                     "listeners": {
85                                         "|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}",
86                                         "|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"
87                                     },
88                                     "|xns": "Roo.grid",
89                                     "items": [
90                                         {
91                                             "*prop": "dataSource",
92                                             "xtype": "Store",
93                                             "remoteSort": true,
94                                             "|sortInfo": "{ field : 'etype', direction: 'ASC' }",
95                                             "|xns": "Roo.data",
96                                             "items": [
97                                                 {
98                                                     "*prop": "proxy",
99                                                     "xtype": "HttpProxy",
100                                                     "method": "GET",
101                                                     "|url": "baseURL + '/Roo/core_enum.php'",
102                                                     "|xns": "Roo.data"
103                                                 },
104                                                 {
105                                                     "|xns": "Roo.data",
106                                                     "xtype": "JsonReader",
107                                                     "totalProperty": "total",
108                                                     "root": "data",
109                                                     "*prop": "reader",
110                                                     "id": "id",
111                                                     "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'etype',\n        'type': 'string'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'active',\n        'type': 'int'\n    },\n    {\n        'name': 'seqid',\n        'type': 'int'\n    }\n]"
112                                                 }
113                                             ]
114                                         },
115                                         {
116                                             "|xns": "Roo.grid",
117                                             "xtype": "RowSelectionModel",
118                                             "*prop": "sm"
119                                         },
120                                         {
121                                             "*prop": "footer",
122                                             "xtype": "PagingToolbar",
123                                             "pageSize": 25,
124                                             "displayInfo": true,
125                                             "displayMsg": "Displaying core_enum{0} - {1} of {2}",
126                                             "emptyMsg": "No core_enum found",
127                                             "|xns": "Roo"
128                                         },
129                                         {
130                                             "*prop": "toolbar",
131                                             "xtype": "Toolbar",
132                                             "|xns": "Roo",
133                                             "items": [
134                                                 {
135                                                     "listeners": {
136                                                         "|click": "function()\n{\n   \n}\n"
137                                                     },
138                                                     "cls": "x-btn-text-icon",
139                                                     "text": "Create Commit",
140                                                     "xtype": "Button",
141                                                     "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
142                                                     "|xns": "Roo.Toolbar"
143                                                 }
144                                             ]
145                                         },
146                                         {
147                                             "*prop": "colModel[]",
148                                             "dataIndex": "file",
149                                             "header": "File",
150                                             "width": 200,
151                                             "xtype": "ColumnModel",
152                                             "|renderer": "function(v) { return String.format('{0}', v); }",
153                                             "|xns": "Roo.grid"
154                                         },
155                                         {
156                                             "*prop": "colModel[]",
157                                             "dataIndex": "changed",
158                                             "header": "Lines Changed",
159                                             "width": 200,
160                                             "xtype": "ColumnModel",
161                                             "|renderer": "function(v) { return String.format('{0}', v); }",
162                                             "|xns": "Roo.grid"
163                                         },
164                                         {
165                                             "xtype": "ColumnModel",
166                                             "header": "Seqid",
167                                             "width": 75,
168                                             "dataIndex": "seqid",
169                                             "|renderer": "function(v) { return String.format('{0}', v); }",
170                                             "|xns": "Roo.grid",
171                                             "*prop": "colModel[]"
172                                         }
173                                     ]
174                                 }
175                             ]
176                         }
177                     ]
178                 }
179             ]
180         }
181     ],
182     "permname": "",
183     "modOrder": "400"
184 }