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="Editor..." |
---|
9 | creationComplete="init()"> |
---|
10 | |
---|
11 | <mx:Script source="EditorAS.as"/> |
---|
12 | |
---|
13 | <mx:VBox width="100%" |
---|
14 | height="100%"> |
---|
15 | |
---|
16 | <mx:HBox width="100%" |
---|
17 | height="40"> |
---|
18 | <mx:Button id="createEmptyProfileBtn" |
---|
19 | label="createEmptyProfile" |
---|
20 | click="createEmptyProfile()"/> |
---|
21 | <mx:Button id="saveBtn" |
---|
22 | label="save" |
---|
23 | click="saveProfile()"/> |
---|
24 | </mx:HBox> |
---|
25 | <mx:Text id="errorMessageField" |
---|
26 | text="{uploadService.message}" |
---|
27 | visible='{uploadService.message != ""}' |
---|
28 | includeInLayout='{uploadService.message != ""}'/> |
---|
29 | <mx:ProgressBar id="uploadProgress" |
---|
30 | label="" |
---|
31 | mode="manual" |
---|
32 | visible="false" |
---|
33 | includeInLayout="false"/> |
---|
34 | |
---|
35 | <mx:VBox width="100%" |
---|
36 | height="80%"> |
---|
37 | <editor:CMDComponentXMLEditor id="xmlEditor" |
---|
38 | cmdSpec="{cmdSpec}" |
---|
39 | editorChange="handleEditorChange(event)"/> |
---|
40 | <mx:VBox styleName="borderStyles"> |
---|
41 | <mx:Label text="Drag items onto edit canvas"/> |
---|
42 | <mx:HBox id="palette"> |
---|
43 | <mx:Canvas width="60" |
---|
44 | height="60" |
---|
45 | backgroundColor="blue" |
---|
46 | borderStyle="solid" |
---|
47 | id="ComponentDrag" |
---|
48 | mouseMove="enableComponentDrag(event);"> |
---|
49 | </mx:Canvas> |
---|
50 | <mx:Canvas width="45" |
---|
51 | height="45" |
---|
52 | backgroundColor="green" |
---|
53 | borderStyle="solid" |
---|
54 | id="ElementDrag" |
---|
55 | mouseMove="enableElementDrag(event);"> |
---|
56 | </mx:Canvas> |
---|
57 | <mx:Canvas width="30" |
---|
58 | height="30" |
---|
59 | backgroundColor="red" |
---|
60 | borderStyle="solid" |
---|
61 | id="AttributeDrag" |
---|
62 | mouseMove="enableAttributeDrag(event);"> |
---|
63 | </mx:Canvas> |
---|
64 | </mx:HBox> |
---|
65 | <browser:BrowserOverviewList id="componentsPaletteOverview" |
---|
66 | browserDataProvider="{componentsSrv.itemDescriptions}" |
---|
67 | browserColumns="{browserColumns.getComponentColumns()}" |
---|
68 | creationComplete="initPaletteOverview();"/> |
---|
69 | </mx:VBox> |
---|
70 | </mx:VBox> |
---|
71 | </mx:VBox> |
---|
72 | |
---|
73 | </mx:Canvas> |
---|