Changeset 1573


Ignore:
Timestamp:
10/04/11 09:07:29 (13 years ago)
Author:
twagoo
Message:

Moved AboutBox? in its own class (no longer in main). About takes version from parameter set compile time through definesDeclaration in pom

Location:
ComponentRegistry/trunk/ComponentBrowserGui
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentBrowserGui/pom.xml

    r1572 r1573  
    8282                    <generateHtmlWrapper>true</generateHtmlWrapper>
    8383                    <targetPlayer>10.0.0</targetPlayer>
     84                    <definesDeclaration>
     85                                          <property>
     86                                                <name>APPINFO::version</name>
     87                                                <value>"${ComponentBrowserGui.version}"</value>
     88                                          </property>
     89                                        </definesDeclaration>                   
    8490                </configuration>
    8591                <dependencies>
  • ComponentRegistry/trunk/ComponentBrowserGui/src/main/flex/main.mxml

    r1571 r1573  
    99        <mx:Script>
    1010                <![CDATA[
     11                        import clarin.cmdi.componentregistry.common.AboutPopup;
    1112                        import clarin.cmdi.componentregistry.common.Credentials;
    1213                        import clarin.cmdi.componentregistry.services.Config;
     
    5152                        }
    5253                       
    53                         private function showAbout(evt:ContextMenuEvent):void{
    54                                 aboutWindow.x = appPanel.width/2 - aboutWindow.width/2;
    55                                 aboutWindow.y = appPanel.height/2 - aboutWindow.height/2;
    56                                 aboutWindow.visible = true;
    57                         }
    58                        
    59                         private function closeAbout():void{
    60                                 aboutWindow.visible = false;
     54                        private function showAbout(event:ContextMenuEvent):void{
     55                                var aboutBox:AboutPopup = new AboutPopup();
     56                                aboutBox.x = appPanel.width/2 - aboutBox.width/2;
     57                                aboutBox.y = appPanel.height/2 - aboutBox.height/2;
     58                                PopUpManager.addPopUp(aboutBox, event.mouseTarget);
    6159                        }
    6260
     
    108106                </mx:VBox>
    109107        </mx:Panel>
    110        
    111         <mx:TitleWindow
    112                 id="aboutWindow"
    113                 title="About the Clarin Component Registry"
    114                 visible="false">
    115                 <mx:Text>                       
    116                         <mx:htmlText>
    117 <![CDATA[Description...
    118 
    119 <a href="http://www.clarin.eu/cmdi">www.clarin.eu/cmdi</a>
    120 
    121 Written by: Patrick Duin and Twan Goosen
    122 Contact: <a href="mailto:cmdi@clarin.eu">cmdi@clarin.eu</a>
    123 ]]>
    124                         </mx:htmlText>
    125                 </mx:Text>
    126                 <mx:Button label="close" click="closeAbout()" />
    127         </mx:TitleWindow>
    128108               
    129109</mx:Application>
Note: See TracChangeset for help on using the changeset viewer.