Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
User
committed
Jun 13, 2014
0 parents
commit efd4782
Showing
104 changed files
with
9,134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<actionScriptProperties mainApplicationPath="Pinta.mxml" version="3"> | ||
<compiler additionalCompilerArguments="-locale en_US -services services-config.xml" copyDependentFiles="true" enableModuleDebug="true" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="false" htmlPlayerVersion="9.0.124" htmlPlayerVersionCheck="true" outputFolderPath="bin-debug" sourceFolderPath="src" strict="true" useApolloConfig="true" verifyDigests="true" warn="true"> | ||
<compilerSourcePath/> | ||
<libraryPath defaultLinkType="1"> | ||
<libraryPathEntry kind="4" path=""/> | ||
<libraryPathEntry kind="1" linkType="1" path="libs"/> | ||
</libraryPath> | ||
<sourceAttachmentPath/> | ||
</compiler> | ||
<applications> | ||
<application path="Pinta.mxml"/> | ||
</applications> | ||
<modules/> | ||
<buildCSSFiles/> | ||
</actionScriptProperties> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<flexProperties flexServerType="0" toolCompile="true" useServerFlexSDK="false" version="1"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#Wed Jul 15 15:25:39 CEST 2009 | ||
eclipse.preferences.version=1 | ||
encoding/<project>=utf-8 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<application xmlns="http://ns.adobe.com/air/application/1.5"> | ||
|
||
<!-- Adobe AIR Application Descriptor File Template. | ||
Specifies parameters for identifying, installing, and launching AIR applications. | ||
xmlns - The Adobe AIR namespace: http://ns.adobe.com/air/application/1.1 | ||
The last segment of the namespace specifies the version | ||
of the AIR runtime required for this application to run. | ||
minimumPatchLevel - The minimum patch level of the AIR runtime required to run | ||
the application. Optional. | ||
--> | ||
|
||
<!-- The application identifier string, unique to this application. Required. --> | ||
<id>fm.axis.Pinta</id> | ||
|
||
<!-- Used as the filename for the application. Required. --> | ||
<filename>Pinta</filename> | ||
|
||
<!-- The name that is displayed in the AIR application installer. | ||
May have multiple values for each language. See samples or xsd schema file. Optional. --> | ||
<name>Pinta AMF debugger</name> | ||
|
||
<!-- An application version designator (such as "v1", "2.5", or "Alpha 1"). Required. --> | ||
<version>1.02</version> | ||
|
||
<!-- Description, displayed in the AIR application installer. | ||
May have multiple values for each language. See samples or xsd schema file. Optional. --> | ||
<description>Utility to place AMF calls en view their outputs.</description> | ||
|
||
<!-- Copyright information. Optional --> | ||
<copyright>Christiaan Ottow (chris@aboutcoding.nl) 2009-2010</copyright> | ||
|
||
<!-- Settings for the application's initial window. Required. --> | ||
<initialWindow> | ||
<!-- The main SWF or HTML file of the application. Required. --> | ||
<!-- Note: In Flex Builder, the SWF reference is set automatically. --> | ||
<content>[This value will be overwritten by Flex Builder in the output app.xml]</content> | ||
|
||
<!-- The title of the main window. Optional. --> | ||
<!-- <title>Pinta AMF debugger</title> --> | ||
|
||
<!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. --> | ||
<systemChrome>standard</systemChrome> | ||
|
||
<!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. --> | ||
<!-- <transparent></transparent> --> | ||
|
||
<!-- Whether the window is initially visible. Optional. Default false. --> | ||
<!-- <visible></visible> --> | ||
|
||
<!-- Whether the user can minimize the window. Optional. Default true. --> | ||
<!-- <minimizable></minimizable> --> | ||
|
||
<!-- Whether the user can maximize the window. Optional. Default true. --> | ||
<!-- <maximizable></maximizable> --> | ||
|
||
<!-- Whether the user can resize the window. Optional. Default true. --> | ||
<!-- <resizable></resizable> --> | ||
|
||
<!-- The window's initial width. Optional. --> | ||
<!-- <width></width> --> | ||
|
||
<!-- The window's initial height. Optional. --> | ||
<!-- <height></height> --> | ||
|
||
<!-- The window's initial x position. Optional. --> | ||
<!-- <x>50</x> --> | ||
|
||
<!-- The window's initial y position. Optional. --> | ||
<!-- <y>50</y> --> | ||
|
||
<!-- The window's minimum size, specified as a width/height pair, such as "400 200". Optional. --> | ||
<!-- <minSize></minSize> --> | ||
|
||
<!-- The window's initial maximum size, specified as a width/height pair, such as "1600 1200". Optional. --> | ||
<!-- <maxSize></maxSize> --> | ||
|
||
</initialWindow> | ||
<!-- The subpath of the standard default installation location to use. Optional. --> | ||
<!-- <installFolder></installFolder> --> | ||
|
||
<!-- The subpath of the Windows Start/Programs menu to use. Optional. --> | ||
<!-- <programMenuFolder></programMenuFolder> --> | ||
|
||
<!-- The icon the system uses for the application. For at least one resolution, | ||
specify the path to a PNG file included in the AIR package. Optional. --> | ||
<icon> | ||
<!-- <image16x16></image16x16> | ||
<image32x32></image32x32> | ||
<image48x48></image48x48> --> | ||
<image128x128>/assets/AMFDebugger128x128.png</image128x128> | ||
</icon> | ||
|
||
<!-- Whether the application handles the update when a user double-clicks an update version | ||
of the AIR file (true), or the default AIR application installer handles the update (false). | ||
Optional. Default false. --> | ||
<!-- <customUpdateUI></customUpdateUI> --> | ||
|
||
<!-- Whether the application can be launched when the user clicks a link in a web browser. | ||
Optional. Default false. --> | ||
<!-- <allowBrowserInvocation></allowBrowserInvocation> --> | ||
|
||
<!-- Listing of file types for which the application can register. Optional. --> | ||
<!-- <fileTypes> --> | ||
|
||
<!-- Defines one file type. Optional. --> | ||
<!-- <fileType> --> | ||
|
||
<!-- The name that the system displays for the registered file type. Required. --> | ||
<!-- <name></name> --> | ||
|
||
<!-- The extension to register. Required. --> | ||
<!-- <extension></extension> --> | ||
|
||
<!-- The description of the file type. Optional. --> | ||
<!-- <description></description> --> | ||
|
||
<!-- The MIME type. Optional. --> | ||
<!-- <contentType></contentType> --> | ||
|
||
<!-- The icon to display for the file type. Optional. --> | ||
<!-- <icon> | ||
<image16x16></image16x16> | ||
<image32x32></image32x32> | ||
<image48x48></image48x48> | ||
<image128x128></image128x128> | ||
</icon> --> | ||
|
||
<!-- </fileType> --> | ||
<!-- </fileTypes> --> | ||
|
||
</application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<mx:WindowedApplication | ||
xmlns:comp="nl.aboutcoding.servicebrowser.view.*" | ||
xmlns:mx="http://www.adobe.com/2006/mxml" | ||
layout="absolute" | ||
width="835" | ||
height="661" | ||
creationComplete="init()" | ||
verticalAlign="middle" | ||
horizontalAlign="center" | ||
borderColor="#000000" | ||
backgroundGradientAlphas="[1.0, 1.0]" | ||
backgroundGradientColors="[#2B2B2B, #757575]" | ||
borderStyle="none" | ||
showTitleBar="false" | ||
showStatusBar="false" | ||
currentState="Connect" minHeight="675" minWidth="837" | ||
> | ||
<mx:states> | ||
<mx:State name="Connect"> | ||
<mx:SetProperty target="{panel1}" name="visible" value="false"/> | ||
<mx:AddChild position="lastChild"> | ||
<comp:ConnectPanel/> | ||
</mx:AddChild> | ||
<mx:SetProperty target="{applicationcontrolbar1}" name="visible" value="false"/> | ||
<mx:SetStyle name="themeColor" value="#A2FF00"/> | ||
<mx:SetProperty target="{callpanel1}" name="visible" value="false"/> | ||
<mx:SetStyle name="backgroundImage"/> | ||
|
||
</mx:State> | ||
<mx:State name="OutputMax"> | ||
<mx:SetProperty target="{panel1}" name="visible" value="false"/> | ||
<mx:SetProperty target="{callpanel1}" name="height"/> | ||
<mx:SetProperty target="{callpanel1}" name="y"/> | ||
<mx:SetStyle target="{callpanel1}" name="bottom" value="10"/> | ||
<mx:SetProperty target="{callpanel1}" name="x"/> | ||
<mx:SetStyle target="{callpanel1}" name="right" value="10"/> | ||
<mx:SetProperty target="{callpanel1}" name="width"/> | ||
<mx:SetStyle target="{callpanel1}" name="left" value="10"/> | ||
<mx:SetStyle target="{callpanel1}" name="top" value="73"/> | ||
<mx:SetStyle target="{button1}" name="icon" value="@Embed(source='assets/bullet_arrow_down.png')"/> | ||
</mx:State> | ||
</mx:states> | ||
<comp:ServicesPanel layout="absolute" left="10" top="73" styleName="lightTitle" id="panel1" minWidth="817" minHeight="273" title="Services and Methods" right="10" height="273"></comp:ServicesPanel> | ||
<mx:ApplicationControlBar height="55" id="applicationcontrolbar1" left="10" top="10" right="10"> | ||
<mx:Button label="Quit" labelPlacement="bottom" icon="@Embed(source='assets/stop.png')" paddingTop="5" click="onQuitClick(event)"/> | ||
<mx:Button label="Gateways" icon="@Embed(source='assets/connect.png')" labelPlacement="bottom" paddingTop="5" click="onConnectClick(event)"/> | ||
<mx:VRule width="2" height="44"/> | ||
<mx:Button label="Output" labelPlacement="bottom" icon="@Embed(source='assets/bullet_arrow_up.png')" paddingTop="5" click="toggleOutputWindow()" id="button1"/> | ||
<mx:VRule width="2" height="44"/> | ||
</mx:ApplicationControlBar> | ||
<comp:CallPanel id="callpanel1" bottom="10" right="10" left="10" top="354"></comp:CallPanel> | ||
|
||
<mx:transitions> | ||
<mx:Transition id="myTransition" fromState="" toState="OutputMax"> | ||
<mx:Parallel target="{callpanel1}"> | ||
<mx:Move duration="400"/> | ||
<mx:Resize duration="400"/> | ||
</mx:Parallel> | ||
</mx:Transition> | ||
<mx:Transition id="second" fromState="OutputMax" toState=""> | ||
<mx:Parallel target="{callpanel1}"> | ||
<mx:Move duration="400"/> | ||
<mx:Resize duration="400"/> | ||
</mx:Parallel> | ||
</mx:Transition> | ||
</mx:transitions> | ||
|
||
<mx:Style source="style.css"/> | ||
|
||
<mx:Script> | ||
<![CDATA[ | ||
import air.update.events.UpdateEvent; | ||
import air.update.ApplicationUpdaterUI; | ||
import gs.TweenLite; | ||
import mx.effects.Tween; | ||
import nl.aboutcoding.servicebrowser.events.StatusChangeEvent; | ||
import mx.events.ListEvent; | ||
import nl.aboutcoding.servicebrowser.model.RMethod; | ||
import mx.controls.Alert; | ||
import mx.events.CollectionEvent; | ||
import nl.aboutcoding.servicebrowser.business.Connector; | ||
import nl.aboutcoding.servicebrowser.controller.EventHub; | ||
import nl.aboutcoding.servicebrowser.model.ServiceInfo; | ||
[Bindable] | ||
private var serviceInfo:ServiceInfo; | ||
private var eventHub:EventHub; | ||
private var connector:Connector; | ||
[Bindable] | ||
private var selectedMethod:RMethod; | ||
private var appUpdater:ApplicationUpdaterUI = new ApplicationUpdaterUI(); | ||
public function init():void | ||
{ | ||
serviceInfo = ServiceInfo.getInstance(); | ||
eventHub = EventHub.getInstance(); | ||
connector = Connector.getInstance(); | ||
setApplicationVersion(); | ||
eventHub.addEventListener( StatusChangeEvent.CONNECTED, onConnect ); | ||
eventHub.addEventListener( StatusChangeEvent.QUIT, onQuit ); | ||
checkForUpdate(); | ||
} | ||
private function checkForUpdate():void { | ||
setApplicationVersion(); // Find the current version so we can show it below | ||
appUpdater.updateURL = "http://drainbamage.nl/pinta/update.xml"; // Server-side XML file describing update | ||
appUpdater.isCheckForUpdateVisible = false; // We won't ask permission to check for an update | ||
appUpdater.addEventListener(UpdateEvent.INITIALIZED, onUpdate); // Once initialized, run onUpdate | ||
appUpdater.addEventListener(ErrorEvent.ERROR, onError); // If something goes wrong, run onError | ||
appUpdater.initialize(); // Initialize the update framework | ||
} | ||
private function onError(event:ErrorEvent):void { | ||
Alert.show(event.toString()); | ||
} | ||
private function onUpdate(event:UpdateEvent):void { | ||
appUpdater.checkNow(); // Go check for an update now | ||
} | ||
// Find the current version for our Label below | ||
private function setApplicationVersion():void { | ||
var appXML:XML = NativeApplication.nativeApplication.applicationDescriptor; | ||
var ns:Namespace = appXML.namespace(); | ||
ver.text = "Pinta " + appXML.ns::version; | ||
} | ||
private function onQuit( event:StatusChangeEvent ):void | ||
{ | ||
nativeApplication.exit(); | ||
} | ||
private function onConnect( event:StatusChangeEvent ):void | ||
{ | ||
this.currentState = ''; | ||
} | ||
private function onQuitClick( event:MouseEvent):void | ||
{ | ||
eventHub.dispatchEvent( new StatusChangeEvent( StatusChangeEvent.QUIT ) ); | ||
} | ||
private function onConnectClick( event:MouseEvent ):void | ||
{ | ||
eventHub.dispatchEvent( new StatusChangeEvent( StatusChangeEvent.DISCONNECTED ) ); | ||
this.currentState = 'Connect'; | ||
} | ||
private function toggleOutputWindow():void | ||
{ | ||
if( currentState == '' ) | ||
{ | ||
currentState = 'OutputMax'; | ||
} else { | ||
currentState = ''; | ||
} | ||
} | ||
]]> | ||
</mx:Script> | ||
<mx:Label text="Pinta version " x="726" y="32" color="#D5D5D5" id="ver"/> | ||
</mx:WindowedApplication> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.