7c1ff50243eaad4de34e0d3e35a85df47c8a66a5
[Packages/TYPO3.CMS.git] / typo3 / js / extjs / viewportConfiguration.js
1 /***************************************************************
2 * Copyright notice
3 *
4 * (c) 2010 Stefan Galinski <stefan.galinski@gmail.com>
5 * All rights reserved
6 *
7 * This script is part of the TYPO3 project. The TYPO3 project is
8 * free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * The GNU General Public License can be found at
14 * http://www.gnu.org/copyleft/gpl.html.
15 * A copy is found in the textfile GPL.txt and important notices to the license
16 * from the author is found in LICENSE.txt distributed with these scripts.
17 *
18 *
19 * This script is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * This copyright notice MUST APPEAR in all copies of the script!
25 ***************************************************************/
26
27 Ext.ns('TYPO3');
28
29 /**
30 * The backend viewport configuration
31 *
32 * @author Stefan Galinski <stefan.galinski@gmail.com>
33 */
34 TYPO3.Viewport.configuration = {
35 layout: 'border',
36 id: 'typo3-viewport',
37 renderTo: Ext.getBody(),
38 border: false,
39 items: [
40 {
41 layout: 'absolute',
42 region: 'north',
43 id: 'typo3-topbar',
44 height: 42,
45 contentEl: 'typo3-top-container',
46 border: false
47 },
48 {
49 layout: 'fit',
50 region: 'west',
51 id: 'typo3-module-menu',
52 collapsible: false,
53 collapseMode: null,
54 floatable: true,
55 hideCollapseTool: true,
56 split: true,
57 enableChildSplit: true,
58 border: false,
59 autoScroll: true
60 },
61 {
62 region: 'center',
63 layout: 'border',
64 border: false,
65 items: [
66 {
67 region: 'west',
68 layout: 'fit',
69 id: 'typo3-navigationContainer',
70 width: 300,
71 minWidth: 20,
72 floatable: true,
73 animCollapse: false,
74 split: true,
75 enableChildSplit: true,
76 collapsible: true,
77 collapseMode: 'mini',
78 hideCollapseTool: true,
79 hidden: true,
80 border: false,
81 name: 'navigation',
82 autoScroll: true,
83 items: [
84 {
85 id: 'typo3-navigationIframe',
86 border: false,
87 hidden: true,
88 xtype: 'iframePanel'
89 }
90 ]
91 },
92 {
93 region: 'center',
94 layout: 'border',
95 items: [
96 {
97 id: 'typo3-navigationDummy',
98 region: 'west',
99 layout: 'fit',
100 border: false,
101 hidden: true,
102 floatable: true,
103 xtime: 'iframePanel',
104 width: 5
105 },
106 {
107 id: 'typo3-contentContainer',
108 region: 'center',
109 anchor: '100% 100%',
110 border: false,
111 xtype: 'iframePanel',
112 name: 'content'
113 }
114 ]
115 },
116 {
117 region: 'south',
118 xtype: 'typo3DebugPanel',
119 collapsible: true,
120 collapseMode: 'mini',
121 collapsed: true,
122 hideCollapseTool: true,
123 animCollapse: false,
124 split: true,
125 autoScroll: true,
126 hidden: true,
127 height: 200,
128 id: 'typo3-debug-console',
129 border: false
130 }
131 ]
132 }
133 ]
134 };