Changeset 2093


Ignore:
Timestamp:
08/15/12 11:40:29 (12 years ago)
Author:
twagoo
Message:

Added section title bar to Main

Location:
ComponentRegistry/branches/ComponentRegistry-1.12.0/ComponentBrowserGui/src/main
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/branches/ComponentRegistry-1.12.0/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/browser/Browse.mxml

    r2090 r2093  
    66                   width="100%"
    77                   height="100%"
    8                    label="Browser"
    9                    implements="clarin.cmdi.componentregistry.common.components.RegistryView">
     8                   label="Component Browser"
     9                   implements="clarin.cmdi.componentregistry.common.components.RegistryView"
     10                   >
    1011        <mx:Metadata>
    1112                [Event(name="startItemLoaded",type="flash.events.Event")]
  • ComponentRegistry/branches/ComponentRegistry-1.12.0/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/editor/Editor.mxml

    r2080 r2093  
    66                   width="100%"
    77                   height="100%"
    8                    label="Editor"
     8                   label="Component Editor"
    99                   creationComplete="init()"
    1010                   implements="clarin.cmdi.componentregistry.common.components.RegistryView" xmlns:components="clarin.cmdi.componentregistry.common.components.*"
  • ComponentRegistry/branches/ComponentRegistry-1.12.0/ComponentBrowserGui/src/main/flex/clarin/cmdi/componentregistry/importer/Importer.mxml

    r2084 r2093  
    55                   height="100%"
    66                   label="Import file"
    7                    implements="clarin.cmdi.componentregistry.common.components.RegistryView">
     7                   implements="clarin.cmdi.componentregistry.common.components.RegistryView"
     8                   >
    89
    910        <mx:Script>
     
    211212                                                 uploadComplete="registryChange(event)"/>
    212213        <mx:VBox>
     214               
    213215                <mx:Form>
    214216                        <mx:HBox>
  • ComponentRegistry/branches/ComponentRegistry-1.12.0/ComponentBrowserGui/src/main/flex/main.mxml

    r2090 r2093  
    7272                                        flexSpyButton.label="FlexSpy";
    7373                                        flexSpyButton.addEventListener(MouseEvent.CLICK,showFlexSpy);
    74                                         topBar.addChild(flexSpyButton);
     74                                        flexSpyButton.setStyle("right","0");
     75                                        flexSpyButton.setStyle("top","0");
     76                                        addChild(flexSpyButton);
    7577                                }
    7678                        }
     
    8688                          height="100%"
    8789                          layout="absolute"
    88                           title="Clarin Component Browser"
     90                          title="Clarin Component Registry"
    8991                          x="0"
    9092                          y="0">                         
    91 
    92                 <common:RegistryViewStack id="viewStack"
    93                                                                   borderStyle="none"
    94                                                                   height="100%"
    95                                                                   width="100%"/>
    9693               
    97                 <mx:HBox borderStyle="none" id="topBar" right="0">
    98                         <mx:Label text="User: {Credentials.instance.userName}"/>
    99                         <common:LoginLabelButton id="login" includeInLayout="{!Credentials.instance.isLoggedIn()}" visible="{!Credentials.instance.isLoggedIn()}" />
    100                         <common:UserSettingsLabelButton id="userSettings" includeInLayout="{Credentials.instance.isLoggedIn()}" visible="{Credentials.instance.isLoggedIn()}"/>
    101                 </mx:HBox>
     94                <mx:VBox height="100%" width="100%">                   
     95                       
     96                        <mx:HBox width="100%" id="topBar" styleName="topBar" verticalAlign="middle">
     97                                <mx:Label width="20%" styleName="sectionTitle" paddingLeft="5" text="{viewStack.selectedChild.label}" />
     98                       
     99                                <mx:HBox width="80%" horizontalAlign="right" paddingRight="5">                                 
     100                                        <mx:Label text="User: {Credentials.instance.userName}"/>
     101                                        <common:LoginLabelButton id="login" includeInLayout="{!Credentials.instance.isLoggedIn()}" visible="{!Credentials.instance.isLoggedIn()}" />
     102                                        <common:UserSettingsLabelButton id="userSettings" includeInLayout="{Credentials.instance.isLoggedIn()}" visible="{Credentials.instance.isLoggedIn()}"/>
     103                                </mx:HBox>
     104                        </mx:HBox>
     105                       
     106                        <common:RegistryViewStack id="viewStack"
     107                                                                          borderStyle="none"
     108                                                                          height="100%"
     109                                                                          width="100%"/>
     110                </mx:VBox>
    102111        </mx:Panel>
    103112               
  • ComponentRegistry/branches/ComponentRegistry-1.12.0/ComponentBrowserGui/src/main/resources/assets/css/main.css

    r1705 r2093  
    6363}
    6464
     65.topBar{
     66        backgroundColor: #DDE3EF;       
     67}
     68
     69.sectionTitle {
     70    fontWeight: bold;
     71    fontSize: 18px;     
     72}
    6573
    6674
Note: See TracChangeset for help on using the changeset viewer.