Skip to content

Commit

Permalink
initial revision
Browse files Browse the repository at this point in the history
  • Loading branch information
User committed Jun 13, 2014
0 parents commit efd4782
Show file tree
Hide file tree
Showing 104 changed files with 9,134 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .actionScriptProperties
@@ -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>
2 changes: 2 additions & 0 deletions .flexProperties
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<flexProperties flexServerType="0" toolCompile="true" useServerFlexSDK="false" version="1"/>
3 changes: 3 additions & 0 deletions .settings/org.eclipse.core.resources.prefs
@@ -0,0 +1,3 @@
#Wed Jul 15 15:25:39 CEST 2009
eclipse.preferences.version=1
encoding/<project>=utf-8
Binary file added gfx/AMFDebugger.pxm
Binary file not shown.
Binary file added libs/as3corelib.swc
Binary file not shown.
Binary file added libs/flexlib.swc
Binary file not shown.
135 changes: 135 additions & 0 deletions src/Pinta-app.xml
@@ -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>
167 changes: 167 additions & 0 deletions src/Pinta.mxml
@@ -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>
Binary file added src/assets/AMFDebugger128x128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/IMG_0901.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/accept.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/add.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/arrow_up.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/bullet_arrow_down.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/bullet_arrow_up.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/bullet_black.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/bullet_green.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/cancel.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/cog_add.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/connect.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/database_go.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/delete.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/page_save.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/page_white_text.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/stop.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit efd4782

Please sign in to comment.