<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>MainView.mxml</title>
<link rel="stylesheet" type="text/css" href="../../../../../SourceStyles.css"/>
</head>

<body><pre><span class="MXMLProcessing_Instruction">&lt;?xml version="1.0" encoding="utf-8"?&gt;</span>
<span class="MXMLComponent_Tag">&lt;s:Group</span><span class="MXMLDefault_Text"> xmlns:fx="</span><span class="MXMLString">http://ns.adobe.com/mxml/2009</span><span class="MXMLDefault_Text">" 
         xmlns:s="</span><span class="MXMLString">library://ns.adobe.com/flex/spark</span><span class="MXMLDefault_Text">" 
         xmlns:mx="</span><span class="MXMLString">library://ns.adobe.com/flex/halo</span><span class="MXMLDefault_Text">" xmlns:components="</span><span class="MXMLString">uk.co.mikecann.views.components.*</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
    <span class="MXMLSpecial_Tag">&lt;fx:Script&gt;</span>
        <span class="ActionScriptReserved">&lt;![CDATA[
            import mx.collections.ArrayCollection;
            
            import uk.co.mikecann.consts.Consts;
            import uk.co.mikecann.events.BooksEvent;
            import uk.co.mikecann.events.SettingsEvent;
            import uk.co.mikecann.events.SourcesEvent;
            import uk.co.mikecann.views.renderers.ListenedItemRenderer;
            import mx.effects.easing.*;
            
            [Bindable] public var sources : ArrayCollection;    
            [Bindable] public var books : ArrayCollection;    

        ]]&gt;</span>
    <span class="MXMLSpecial_Tag">&lt;/fx:Script&gt;</span>
    <span class="MXMLSpecial_Tag">&lt;fx:Declarations&gt;</span>
        <span class="MXMLComment">&lt;!--</span><span class="MXMLComment"> Place non-visual elements (e.g., services, value objects) here </span><span class="MXMLComment">--&gt;</span>
    <span class="MXMLSpecial_Tag">&lt;/fx:Declarations&gt;</span>
    
    <span class="MXMLComment">&lt;!--</span><span class="MXMLComment">ns1:BookBG x="10" y="-20" width="473.6" height="717.1" /</span><span class="MXMLComment">--&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:Accordion</span><span class="MXMLDefault_Text"> bottom="</span><span class="MXMLString">20</span><span class="MXMLDefault_Text">" right="</span><span class="MXMLString">10</span><span class="MXMLDefault_Text">" left="</span><span class="MXMLString">10</span><span class="MXMLDefault_Text">" top="</span><span class="MXMLString">100</span><span class="MXMLDefault_Text">" openDuration="</span><span class="MXMLString">400</span><span class="MXMLDefault_Text">" openEasingFunction="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">Quadratic</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">easeOut</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">" </span><span class="MXMLComponent_Tag">&gt;</span>
        <span class="MXMLComponent_Tag">&lt;s:NavigatorContent</span><span class="MXMLDefault_Text"> label="</span><span class="MXMLString">Sources</span><span class="MXMLDefault_Text">" width="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">" height="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
            <span class="MXMLComponent_Tag">&lt;s:Button</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">addFolderButton</span><span class="MXMLDefault_Text">" x="</span><span class="MXMLString">10</span><span class="MXMLDefault_Text">" y="</span><span class="MXMLString">10</span><span class="MXMLDefault_Text">" label="</span><span class="MXMLString">Add Folder</span><span class="MXMLDefault_Text">" 
                      click="</span><span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">dispatchEvent</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">SourcesEvent</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">SourcesEvent</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">ADD</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">}</span><span class="MXMLDefault_Text">" </span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;s:Button</span><span class="MXMLDefault_Text"> x="</span><span class="MXMLString">108</span><span class="MXMLDefault_Text">" y="</span><span class="MXMLString">10</span><span class="MXMLDefault_Text">" label="</span><span class="MXMLString">Remove Selected Folder</span><span class="MXMLDefault_Text">" 
                      click="</span><span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">dispatchEvent</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">SourcesEvent</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">SourcesEvent</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">REMOVE</span><span class="ActionScriptOperator">,</span><span class="ActionScriptDefault_Text">sourcesList</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">selectedItem</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">}</span><span class="MXMLDefault_Text">" </span><span class="MXMLComponent_Tag">/&gt;</span>
            <span class="MXMLComponent_Tag">&lt;s:List</span><span class="MXMLDefault_Text"> id="</span><span class="MXMLString">sourcesList</span><span class="MXMLDefault_Text">" left="</span><span class="MXMLString">10</span><span class="MXMLDefault_Text">" right="</span><span class="MXMLString">10</span><span class="MXMLDefault_Text">" top="</span><span class="MXMLString">39</span><span class="MXMLDefault_Text">" bottom="</span><span class="MXMLString">10</span><span class="MXMLDefault_Text">" dataProvider="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">sources</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">" </span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;/s:NavigatorContent&gt;</span>        
        <span class="MXMLComponent_Tag">&lt;s:NavigatorContent</span><span class="MXMLDefault_Text"> label="</span><span class="MXMLString">Books</span><span class="MXMLDefault_Text">" width="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">" height="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
            <span class="MXMLComponent_Tag">&lt;mx:DataGrid</span><span class="MXMLDefault_Text"> width="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">" height="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">" dataProvider="</span><span class="MXMLString">{</span><span class="ActionScriptDefault_Text">books</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">" editable="</span><span class="MXMLString">true</span><span class="MXMLDefault_Text">" 
                         itemEditEnd="</span><span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">dispatchEvent</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">BooksEvent</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">BooksEvent</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">PROPERTY_CHANGED</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">)</span>;<span class="ActionScriptBracket/Brace">}</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
                <span class="MXMLComponent_Tag">&lt;mx:columns&gt;</span>
                    <span class="MXMLComponent_Tag">&lt;mx:DataGridColumn</span><span class="MXMLDefault_Text"> width="</span><span class="MXMLString">68</span><span class="MXMLDefault_Text">" headerText="</span><span class="MXMLString">Listened</span><span class="MXMLDefault_Text">" editable="</span><span class="MXMLString">false</span><span class="MXMLDefault_Text">" dataField="</span><span class="MXMLString">listened</span><span class="MXMLDefault_Text">" itemRenderer="</span><span class="MXMLString">uk.co.mikecann.views.renderers.ListenedItemRenderer</span><span class="MXMLDefault_Text">" </span><span class="MXMLComponent_Tag">/&gt;</span>                    
                    <span class="MXMLComponent_Tag">&lt;mx:DataGridColumn</span><span class="MXMLDefault_Text"> headerText="</span><span class="MXMLString">Name</span><span class="MXMLDefault_Text">" dataField="</span><span class="MXMLString">name</span><span class="MXMLDefault_Text">" editable="</span><span class="MXMLString">false</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
                    <span class="MXMLComponent_Tag">&lt;mx:DataGridColumn</span><span class="MXMLDefault_Text"> width="</span><span class="MXMLString">50</span><span class="MXMLDefault_Text">" headerText="</span><span class="MXMLString">Rating</span><span class="MXMLDefault_Text">" dataField="</span><span class="MXMLString">rating</span><span class="MXMLDefault_Text">" editable="</span><span class="MXMLString">true</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
                <span class="MXMLComponent_Tag">&lt;/mx:columns&gt;</span>
            <span class="MXMLComponent_Tag">&lt;/mx:DataGrid&gt;</span>
            
        <span class="MXMLComponent_Tag">&lt;/s:NavigatorContent&gt;</span>
        <span class="MXMLComponent_Tag">&lt;s:NavigatorContent</span><span class="MXMLDefault_Text"> label="</span><span class="MXMLString">Settings</span><span class="MXMLDefault_Text">" width="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">" height="</span><span class="MXMLString">100%</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">&gt;</span>
            <span class="MXMLComponent_Tag">&lt;s:Button</span><span class="MXMLDefault_Text"> x="</span><span class="MXMLString">10</span><span class="MXMLDefault_Text">" y="</span><span class="MXMLString">10</span><span class="MXMLDefault_Text">" label="</span><span class="MXMLString">Reset All Data</span><span class="MXMLDefault_Text">" click="</span><span class="ActionScriptBracket/Brace">{</span><span class="ActionScriptDefault_Text">dispatchEvent</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">SettingsEvent</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">SettingsEvent</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">CLEAR_DATA</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptBracket/Brace">}</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
        <span class="MXMLComponent_Tag">&lt;/s:NavigatorContent&gt;</span>
    <span class="MXMLComponent_Tag">&lt;/mx:Accordion&gt;</span>
    <span class="MXMLComponent_Tag">&lt;mx:Image</span><span class="MXMLDefault_Text"> x="</span><span class="MXMLString">10</span><span class="MXMLDefault_Text">" y="</span><span class="MXMLString">10</span><span class="MXMLDefault_Text">" source="</span><span class="MXMLString">@Embed(source='assets/logo.png')</span><span class="MXMLDefault_Text">" width="</span><span class="MXMLString">500</span><span class="MXMLDefault_Text">" height="</span><span class="MXMLString">80</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
    <span class="MXMLComponent_Tag">&lt;s:Label</span><span class="MXMLDefault_Text"> right="</span><span class="MXMLString">5</span><span class="MXMLDefault_Text">" top="</span><span class="MXMLString">20</span><span class="MXMLDefault_Text">" text="</span><span class="MXMLString">{</span><span class="ActionScriptString">'v'</span><span class="ActionScriptOperator">+</span><span class="ActionScriptDefault_Text">Consts</span><span class="ActionScriptOperator">.</span><span class="ActionScriptDefault_Text">VERSION</span><span class="MXMLString">}</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
    <span class="MXMLComponent_Tag">&lt;s:Label</span><span class="MXMLDefault_Text"> text="</span><span class="MXMLString">www.mikecann.co.uk</span><span class="MXMLDefault_Text">" right="</span><span class="MXMLString">5</span><span class="MXMLDefault_Text">" top="</span><span class="MXMLString">5</span><span class="MXMLDefault_Text">"</span><span class="MXMLComponent_Tag">/&gt;</span>
<span class="MXMLComponent_Tag">&lt;/s:Group&gt;</span></pre></body>
</html>
