126f828d2278fa12d52ddd1448106f09b2d42299
[Packages/TYPO3.CMS.git] / typo3 / js / extjs / viewportConfiguration.js
1 /***************************************************************
2 * Copyright notice
3 *
4 * (c) 2010-2011 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 * The backend viewport configuration
28 *
29 * @author Stefan Galinski <stefan.galinski@gmail.com>
30 */
31 Ext.ns('TYPO3.Viewport');
32 TYPO3.Viewport.configuration = {
33 layout: 'border',
34 id: 'typo3-viewport',
35 renderTo: Ext.getBody(),
36 border: false,
37 items: [
38 {
39 layout: 'absolute',
40 region: 'north',
41 id: 'typo3-topbar',
42 height: TYPO3.configuration.topBarHeight,
43 contentEl: 'typo3-top-container',
44 border: false
45 },
46 {
47 layout: 'fit',
48 region: 'west',
49 id: 'typo3-module-menu',
50 animCollapse: false,
51 autoScroll: true,
52 border: 0,
53 frame: false,
54 collapsible: false,
55 floatable: true,
56 hideCollapseTool: true,
57 name: 'modulePanel',
58 split: true,
59 useSplitTips: true,
60 splitTip: top.TYPO3.LLL.viewPort.tooltipModuleMenuSplit,
61 enableChildSplit: true,
62 width: TYPO3.configuration.moduleMenuWidth
63 },
64 {
65 region: 'center',
66 layout: 'border',
67 border: false,
68 items: [
69 {
70 region: 'west',
71 layout: 'fit',
72 id: 'typo3-navigationContainer',
73 autoScroll: true,
74 width: 300,
75 minWidth: 20,
76 floatable: true,
77 animCollapse: false,
78 split: true,
79 enableChildSplit: true,
80 collapsible: true,
81 collapseMode: 'mini',
82 useSplitTips: true,
83 collapsibleSplitTip: top.TYPO3.LLL.viewPort.tooltipNavigationContainerSplitDrag,
84 hideCollapseTool: true,
85 hidden: true,
86 border: false,
87 name: 'navigation',
88 items: [
89 {
90 id: 'typo3-navigationIframe',
91 border: false,
92 hidden: true,
93 layout: {
94 type: 'vbox',
95 align: 'stretch'
96 },
97 xtype: 'iframePanel',
98 name: 'navigation'
99 }
100 ]
101 },
102 {
103 region: 'center',
104 layout: 'border',
105 items: [
106 {
107 id: 'typo3-navigationDummy',
108 region: 'west',
109 layout: 'fit',
110 border: false,
111 hidden: true,
112 floatable: true,
113 xtype: 'iframePanel',
114 width: 0
115 },
116 {
117 id: 'typo3-contentContainer',
118 border: false,
119 layout: 'fit',
120 name: 'content',
121 region: 'center',
122 xtype: 'iframePanel'
123 }
124 ]
125 },
126 {
127 region: 'south',
128 xtype: 'typo3DebugPanel',
129 collapsible: true,
130 collapseMode: 'mini',
131 collapsed: true,
132 hideCollapseTool: true,
133 animCollapse: false,
134 split: true,
135 useSplitTips: true,
136 collapsibleSplitTip: top.TYPO3.LLL.viewPort.tooltipDebugPanelSplitDrag,
137 autoScroll: true,
138 hidden: true,
139 height: 200,
140 id: 'typo3-debug-console',
141 border: false
142 }
143 ]
144 }
145 ]
146 };