<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Untitled Application</AppTitle>
	<VariablesScanned>False</VariablesScanned>
	<PageWidth>1024</PageWidth>
	<PageHeight>670</PageHeight>
	<AutoSizeWidth>False</AutoSizeWidth>
	<AutoSizeHeight>False</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<PublishPlatform>WebApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<LanguageCode>en</LanguageCode>
	<MobileOSTypes>[AndroidOS,iOS,WindowsPhoneOS]</MobileOSTypes>
	<WindowState>normal</WindowState>
	<TitleBar>True</TitleBar>
	<Sizeable>True</Sizeable>
	<MaximizeBtn>False</MaximizeBtn>
	<MinimizeBtn>True</MinimizeBtn>
	<SystemMenu>True</SystemMenu>
	<ContextMenu>False</ContextMenu>
	<AlwaysOnTop>False</AlwaysOnTop>
	<ShowInTaskbar>True</ShowInTaskbar>
	<SingleInstance>False</SingleInstance>
	<ChromeKioskMode>False</ChromeKioskMode>
	<Components>
		<FunctionList name="Subroutines">
			<Components>
				<Function name="handleImageFile">
					<Code>var files = evt.target.files; // FileList object
for (var i = 0, f; f = files[i]; i++){
      var reader = new FileReader();
      reader.onload = (function(theFile){
          return function(e){
             var texto=e.target.result;
             fabLoadImage(&quot;Container1&quot;,&quot;&quot;,texto,20,20);
          };
      })(f);
      reader.readAsDataURL(f);
}</Code>
					<Params>evt|MIXED|Event</Params>
					<ScriptLanguage>JavaScript</ScriptLanguage>
				</Function>
			</Components>
		</FunctionList>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<pageenter>fabInitialize &quot;Container1&quot;
SetVar [thecolor] &quot;black&quot;
BeginJS
funciones = angular.element(document.getElementById(&quot;ng-view&quot;)).scope();
document.getElementById(&apos;MyInputFile&apos;).addEventListener(&apos;change&apos;, funciones.handleImageFile, false);
EndJS
</pageenter>
					<Components>
						<Container id="Container1">
							<left>144px</left>
							<top>24px</top>
							<width>856px</width>
							<height>624px</height>
							<style>border-width:1px;border-style:solid;background-color:#fff;</style>
						</Container>
						<PushButton id="PushButton1">
							<left>24px</left>
							<top>24px</top>
							<width>96px</width>
							<height>40px</height>
							<caption>Draw</caption>
							<icon>glyphicon-pencil</icon>
							<click>fabDrawingMode &quot;Container1&quot; true &quot;[thecolor]&quot; 2</click>
						</PushButton>
						<PushButton id="PushButton2">
							<left>24px</left>
							<top>72px</top>
							<width>96px</width>
							<height>40px</height>
							<caption>Clear</caption>
							<icon>glyphicon-remove</icon>
							<click>fabClear &quot;Container1&quot;</click>
						</PushButton>
						<Container id="Container3">
							<left>-154px</left>
							<top>0px</top>
							<width>144px</width>
							<height>80px</height>
							<style>background-color:#FABC02;border-style:solid;border-width:1px;padding-bottom:10px;padding-left:10px;padding-right:10px;padding-top:10px</style>
							<visible>False</visible>
							<html>Look at this hidden Container HTML content&lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;input type=&quot;file&quot; id=&quot;MyInputFile&quot; name=&quot;InputFile3&quot; class=&quot;file&quot;  data-browse-class=&quot;btn btn-primary btn-block&quot; data-browse-label=&quot;&quot; data-show-upload=&quot;false&quot; data-show-preview=&quot;false&quot; data-show-caption=&quot;false&quot;&gt;
</html>
						</Container>
						<PushButton id="PushButton5">
							<left>24px</left>
							<top>120px</top>
							<width>96px</width>
							<height>40px</height>
							<caption>Save</caption>
							<icon>glyphicon-floppy-disk</icon>
							<click>BeginJS
    containername=&quot;Container1&quot;;
    var mycanvas = document.getElementById(containername+&quot;Canvas&quot;);
    mycanvas.toBlob(function(blob) {
        saveAs(blob, &quot;miimagen.png&quot;);
    });
EndJS</click>
						</PushButton>
						<PushButton id="PushButton6">
							<left>24px</left>
							<top>168px</top>
							<width>96px</width>
							<height>40px</height>
							<caption>Load</caption>
							<icon>glyphicon-folder-open</icon>
							<click>ClickObject &quot;MyInputFile&quot;</click>
						</PushButton>
						<ColorInput id="ColorInput1">
							<left>24px</left>
							<top>224px</top>
							<width>40px</width>
							<height>40px</height>
							<style>padding-bottom:2px;padding-left:2px;padding-right:2px;padding-top:2px</style>
							<variable>[thecolor]</variable>
							<change>fabDrawingMode &quot;Container1&quot; true &quot;[thecolor]&quot; 2</change>
						</ColorInput>
					</Components>
				</Page>
			</Components>
		</PageList>
		<PageList name="Master">
			<Components>
				<Page id="MasterPage"/>
			</Components>
		</PageList>
		<PageList name="Dialog">
			<Components>
				<Page id="NewDialog">
					<Components>
						<DialogContainer id="DialogContainer1">
							<left>0px</left>
							<top>0px</top>
							<width>1024px</width>
							<height>670px</height>
							<close_button>False</close_button>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
