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

Last change on this file since 281 was 281, checked in by patdui, 14 years ago
  • more little bug fixes and layout changes, trying to use shibboleth for authorisation
File size: 2.2 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="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="clearBtn"
19                                           label="clear"
20                                           click="clearEditor()"/>
21                        <mx:Button id="saveBtn"
22                                           label="save"
23                                           click="saveSpec()"/>
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                                         width="100%">
42                                <mx:Label text="Drag items onto edit canvas"/>
43                                <mx:HBox id="palette">
44                                        <mx:Button height="30"
45                                                           id="ComponentDrag"
46                                                           label="Component"
47                                                           toolTip="Drag component to add a new empty component"
48                                                           mouseMove="enableComponentDrag(event);">
49                                        </mx:Button>
50                                        <mx:Button height="30"
51                                                           id="ElementDrag"
52                                                           label="Element"
53                                                           toolTip="Drag element onto components"
54                                                           mouseMove="enableElementDrag(event);">
55                                        </mx:Button>
56                                        <mx:Button height="30"
57                                                           id="AttributeDrag"
58                                                           label="Attribute"
59                                                           toolTip="Drag attribute onto an attribute list"
60                                                           mouseMove="enableAttributeDrag(event);">
61                                        </mx:Button>
62                                </mx:HBox>
63                                <browser:BrowserOverviewList id="componentsPaletteOverview"
64                                                                                         width="100%"
65                                                                                         browserDataProvider="{componentsSrv.itemDescriptions}"
66                                                                                         browserColumns="{browserColumns.getComponentColumns()}"
67                                                                                         creationComplete="initPaletteOverview();"/>
68                        </mx:VBox>
69                </mx:VBox>
70        </mx:VBox>
71
72</mx:Canvas>
Note: See TracBrowser for help on using the repository browser.