/src/org/ishafoundation/archives/transcript/components/generic/AboutBox.mxml

http://transcriptstudio4isha.googlecode.com/ · Macromedia eXtensible Markup Language · 59 lines · 49 code · 10 blank · 0 comment · 0 complexity · 95002a0cc572d951f77624355305ac13 MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Transcript Studio for Isha Foundation: An XML based application that allows users to define
  4. and store contextual metadata for contiguous sections within a text document.
  5. Copyright 2008 Mark Carter, Swami Kevala
  6. This file is part of Transcript Studio for Isha Foundation.
  7. Transcript Studio for Isha Foundation is free software: you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the Free Software
  9. Foundation, either version 3 of the License, or (at your option) any later version.
  10. Transcript Studio for Isha Foundation is distributed in the hope that it will be useful, but
  11. WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License along with
  14. Transcript Studio for Isha Foundation. If not, see http://www.gnu.org/licenses/.
  15. -->
  16. <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" x="40" y="40" title="About..." width="410" borderThickness="1" alpha="2.0" layout="absolute">
  17. <mx:Script>
  18. <![CDATA[
  19. import org.ishafoundation.archives.transcript.db.User;
  20. import org.ishafoundation.archives.transcript.db.DatabaseConstants;
  21. import org.ishafoundation.archives.transcript.util.ApplicationUtils;
  22. import name.carter.mark.flex.util.Utils;
  23. import mx.binding.utils.BindingUtils;
  24. import mx.managers.PopUpManager;
  25. import flash.system.Capabilities;
  26. private static const flexSdkVersion:String = mx_internal::VERSION;
  27. private static const flashPlayerVersion:String = Capabilities.version + " (" + Capabilities.playerType + (Capabilities.isDebugger ? " Debug" : "") + ")";
  28. private static const message:String = "<br/>Written for the Isha Foundation.<br/><br/>Main Contributors: Mark Carter, Swami Kevala.<br/><br/>Please visit the website for more details:<br/><br/><u><a href='" + ApplicationUtils.getApplicationWebsite() + "' target='_blank'>" + ApplicationUtils.getApplicationWebsite() + "</a></u>";
  29. private var databaseURL:String = DatabaseConstants.EXIST_URL;
  30. [Bindable]
  31. private var databaseUrlHTML:String = "<u><a href='" + databaseURL + "' target='_blank'>" + databaseURL + "</a></u>";
  32. [Bindable]
  33. public var user:User;
  34. ]]>
  35. </mx:Script>
  36. <mx:VBox width="100%" height="100%" horizontalAlign="center" verticalAlign="top" borderThickness="10" fontSize="12">
  37. <mx:Image horizontalAlign="center" source="{Utils.DEFAULT_ICON_CLASS}"/>
  38. <mx:Text fontSize="16" width="100%" textAlign="center" htmlText="&lt;b&gt;{ApplicationUtils.getApplicationName()}&lt;br/&gt;{ApplicationUtils.getApplicationVersion()}&lt;/b&gt;"/>
  39. <mx:Text fontSize="14" width="100%" htmlText="{message}"/>
  40. <mx:Text fontSize="14" paddingTop="10" width="100%" text="Technical Info:"/>
  41. <mx:VBox paddingTop="5" paddingBottom="10">
  42. <mx:Text width="100%" text="Flash Player: {flashPlayerVersion}"/>
  43. <mx:Text width="100%" text="Flex SDK: {flexSdkVersion}"/>
  44. <mx:Text width="100%" htmlText="Database URL: {databaseUrlHTML}"/>
  45. <mx:Text width="100%" text="Username: {user.username} (groups: {user.groupNames})"/>
  46. </mx:VBox>
  47. <mx:Button label="Ok" textAlign="center" click="{PopUpManager.removePopUp(this)}"/>
  48. </mx:VBox>
  49. </mx:Panel>