<?xml version="1.0" encoding="utf-8"?>
<Application>
	<AppTitle>Untitled Application</AppTitle>
	<AppShortName>MyApp</AppShortName>
	<Author>Author name</Author>
	<Version>1.0</Version>
	<DesignDeviceName>Desktop</DesignDeviceName>
	<Variables>[base64data],[data],[initialized]</Variables>
	<VariablesScanned>True</VariablesScanned>
	<PageWidth>1280</PageWidth>
	<PageHeight>800</PageHeight>
	<AutoSizeWidth>True</AutoSizeWidth>
	<AutoSizeHeight>True</AutoSizeHeight>
	<HideScrollbars>False</HideScrollbars>
	<ResponsiveSize>False</ResponsiveSize>
	<PublishPlatform>WebApp</PublishPlatform>
	<EmptyBuildFolder>False</EmptyBuildFolder>
	<AppIcon>default-icon.png</AppIcon>
	<LanguageCode>en</LanguageCode>
	<DisplayMode>standalone</DisplayMode>
	<ServiceWorker>Offline page</ServiceWorker>
	<ThemeColor>#000000</ThemeColor>
	<PwaScope>/</PwaScope>
	<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="cropEvent">
					<Code>SetVar [data] [eventData]
ConsoleLog [data]</Code>
					<Params>[eventData]|STRING|Event data</Params>
				</Function>
				<Function name="initialize">
					<Code>SetObjectAttribute &quot;Image1&quot; &quot;src&quot; [base64data]
SetVar [initialized] true</Code>
				</Function>
				<Function name="initialize2">
					<Code>neoCropInitialize &quot;Image1&quot; &quot;1280/720&quot; &quot;Container2&quot;</Code>
				</Function>
			</Components>
		</FunctionList>
		<LibraryList name="Libraries"/>
		<PageList name="Main">
			<Components>
				<Page id="NewPage">
					<Components>
						<Container id="Container11">
							<left>199px</left>
							<top>46px</top>
							<width>882px</width>
							<height>754px</height>
							<style>background-color:#fff;border-style:dotted;border-width:1px</style>
							<margin_left>200px</margin_left>
							<Components>
								<Container id="Container4">
									<left>137px</left>
									<top>54px</top>
									<width>604px</width>
									<height>634px</height>
									<style>background-color:#fff;border-color:#707070;border-style:solid;border-width:1px</style>
								</Container>
							</Components>
						</Container>
						<Container id="Container12">
							<left>34px</left>
							<top>2px</top>
							<width>200px</width>
							<height>606px</height>
							<style>background-color:#fff;border-style:dotted;border-width:1px</style>
							<align>left</align>
						</Container>
						<Container id="Container3">
							<left>1072px</left>
							<top>133px</top>
							<width>200px</width>
							<height>415px</height>
							<style>background-color:#fff;border-style:dotted;border-width:1px;min-width:200</style>
							<align>right</align>
							<margin_left>200px</margin_left>
							<Components>
								<PushButton id="PushButton1">
									<left>7px</left>
									<top>6px</top>
									<width>183px</width>
									<height>35px</height>
									<style>background-color:#E0E0E0</style>
									<caption>Εισαγωγή εικόνας</caption>
									<icon>glyphicon-folder-open</icon>
									<click>OpenDialog &quot;NewDialog&quot;</click>
								</PushButton>
							</Components>
						</Container>
					</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>38px</left>
							<top>78px</top>
							<width>800px</width>
							<height>600px</height>
							<caption>Περικοπή εικόνας</caption>
							<close_button>True</close_button>
							<kind>primary</kind>
							<Components>
								<PushButton id="PushButton4">
									<left>637px</left>
									<top>541px</top>
									<width>150px</width>
									<height>41px</height>
									<click>CloseDialog</click>
								</PushButton>
								<Container id="Container1">
									<left>14px</left>
									<top>72px</top>
									<width>512px</width>
									<height>460px</height>
									<style>border-width:1px;border-style:solid;background-color:#fff;</style>
									<Components>
										<Image id="Image1">
											<left>-1px</left>
											<top>-27px</top>
											<width>514px</width>
											<height>510px</height>
											<style>min-height:50px;min-width:50px</style>
											<css_class>neo-middle-center</css_class>
											<source>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=</source>
										</Image>
									</Components>
								</Container>
								<Container id="Container2">
									<left>576px</left>
									<top>75px</top>
									<width>180px</width>
									<height>180px</height>
									<style>background-color:#fff;border-style:solid;border-width:1px</style>
								</Container>
								<PushButton id="PushButton5">
									<left>582px</left>
									<top>279px</top>
									<width>170px</width>
									<height>40px</height>
									<caption>Download cropped image</caption>
									<click>If [initialized] == true
  .The snapshot image is encoded into base64 data
  neoCropToBase64Jpg &quot;Image1&quot; .8 400 0 [base64data]
  .Download as a .jpg image file
  Base64ToLocalFile [base64data] &quot;cropped-image.jpg&quot;
Else
  AlertBox &quot;Error&quot; &quot;Please load an image first&quot; &quot;&quot;
EndIf</click>
								</PushButton>
								<FileInput id="FileInput1">
									<left>15px</left>
									<top>543px</top>
									<width>160px</width>
									<height>40px</height>
									<style>color:#FFFFFF</style>
									<prop_name>imagefile</prop_name>
									<change>LocalBinaryFileToBase64Var &quot;FileInput1&quot; [base64data]
If [initialized] == true
   neoCropDestroy &quot;Image1&quot;
EndIf

.We wait for the data to be loaded.
SetTimeOut 200 &quot;initialize&quot; [t1]
.We wait again to initialize neocrop.
SetTimeOut 400 &quot;initialize2&quot; [t1]
</change>
									<caption>Load Image</caption>
									<accept>.jpg</accept>
								</FileInput>
								<PushButton id="PushButton6">
									<left>185px</left>
									<top>543px</top>
									<width>55px</width>
									<height>40px</height>
									<caption>+</caption>
									<icon>glyphicon-search</icon>
									<click>neoCropZoomBy &quot;Image1&quot; 0.1</click>
								</PushButton>
								<PushButton id="PushButton7">
									<left>245px</left>
									<top>543px</top>
									<width>55px</width>
									<height>40px</height>
									<caption>-</caption>
									<icon>glyphicon-search</icon>
									<click>neoCropZoomBy &quot;Image1&quot; -0.1</click>
								</PushButton>
								<PushButton id="PushButton8">
									<left>510px</left>
									<top>543px</top>
									<width>100px</width>
									<height>40px</height>
									<caption>Reset</caption>
									<click>neoCropSetAspectRatio &quot;Image1&quot; &quot;1280/720&quot;
neoCropReset &quot;Image1&quot;</click>
								</PushButton>
								<PushButton id="PushButton9">
									<left>305px</left>
									<top>543px</top>
									<width>200px</width>
									<height>40px</height>
									<caption>Set aspect ratio &amp; position</caption>
									<click>neoCropSetAspectRatio &quot;Image1&quot; &quot;1&quot;
neoCropSetCropBoxData &quot;Image1&quot; 0 0 200 200</click>
								</PushButton>
								<PushButton id="PushButton10">
									<left>582px</left>
									<top>327px</top>
									<width>169px</width>
									<height>40px</height>
									<caption>Save to server</caption>
									<click>If [initialized] == true
  .The snapshot image is encoded into base64 data
  neoCropToBase64Jpg &quot;Image1&quot; .8 400 0 [base64data]
  .Save to server a .jpg image file
  neoPhpFileWriteFromBase64 &quot;wert/test.jpg&quot; &quot;[base64data]&quot; &quot;&quot;
Else
  AlertBox &quot;Error&quot; &quot;Please load an image first&quot; &quot;&quot;
EndIf</click>
								</PushButton>
							</Components>
						</DialogContainer>
					</Components>
				</Page>
			</Components>
		</PageList>
	</Components>
</Application>
