source: ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/Editor.mxml @ 1086

Last change on this file since 1086 was 1086, checked in by patdui, 13 years ago

http://trac.clarin.eu/ticket/91

File size: 1.9 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
3                   xmlns:browser="clarin.cmdi.componentregistry.browser.*"
4                   xmlns:common="clarin.cmdi.componentregistry.common.*"
5                   xmlns:editor="clarin.cmdi.componentregistry.editor.*"
6                   width="100%"
7                   height="100%"
8                   label="Edit..."
9                   creationComplete="init()"
10                   implements="clarin.cmdi.componentregistry.common.components.RegistryView">
11
12        <mx:Script source="EditorAS.as"/>
13
14        <mx:VBox width="100%"
15                         height="100%">
16
17                <editor:EditorButtonBar width="100%"
18                                                                height="40"
19                                                                saveClick="saveSpec(true, UploadService.UPDATE)"
20                                                        saveAsNewClick="saveSpec(true, UploadService.NEW)"
21                                                                publishClick="publishSpec()"/>
22                <mx:Text id="errorMessageField"
23                                 text="{uploadService.message}"
24                                 visible='{errorMessageField.text != ""}'
25                                 includeInLayout='{errorMessageField.text != ""}'/>
26                <mx:ProgressBar id="uploadProgress"
27                                                label=""
28                                                mode="manual"
29                                                visible="false"
30                                                includeInLayout="false"/>
31
32                <mx:VBox width="100%"
33                                 height="80%">
34                        <editor:CMDComponentXMLEditor id="xmlEditor"
35                                                                                  cmdSpec="{cmdSpec}"
36                                                                                  editorChange="handleEditorChange(event)"/>
37                        <editor:EditorButtonBar width="100%"
38                                                                        height="40"
39                                                                saveClick="saveSpec(true, UploadService.UPDATE)"
40                                                                saveAsNewClick="saveSpec(true, UploadService.NEW)"
41                                                                        publishClick="publishSpec()"/>
42
43                        <mx:VBox styleName="borderStyles"
44                                         width="100%">
45                                <mx:Label text="Drag existing components onto edit canvas"/>
46                                <browser:BrowserOverviewList id="componentsPaletteOverview"
47                                                                                         width="100%"
48                                                                                         browserDataProvider="{componentsSrv.itemDescriptions}"
49                                                                                         browserColumns="{browserColumns.getComponentColumns()}"
50                                                                                         creationComplete="initPaletteOverview();"/>
51                        </mx:VBox>
52                </mx:VBox>
53        </mx:VBox>
54
55</mx:Canvas>
Note: See TracBrowser for help on using the repository browser.