PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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