Skip to content

Commit

Permalink
Archiving Codetographer alpha code in GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
KurtPreston committed Oct 4, 2012
0 parents commit eab3603
Show file tree
Hide file tree
Showing 396 changed files with 46,847 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry excluding=".svn/*" kind="src" path="src"/>
<classpathentry excluding=".svn/*" kind="src" path="test"/>
<classpathentry kind="output" path="bin"/>
</classpath>
47 changes: 47 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Codetographer</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.powerflasher.fdt.core.FlashBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
<nature>com.powerflasher.fdt.core.FlashNature</nature>
</natures>
<linkedResources>
<link>
<name>core</name>
<type>2</type>
<locationURI>AS2_CORE_DEFAULT</locationURI>
</link>
</linkedResources>
</projectDescription>
3 changes: 3 additions & 0 deletions .settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#Wed Dec 09 00:23:40 CST 2009
eclipse.preferences.version=1
encoding/<project>=UTF-8
12 changes: 12 additions & 0 deletions .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#Wed Dec 09 23:23:39 CST 2009
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
16 changes: 16 additions & 0 deletions META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Codetographer Code Mapper
Bundle-SymbolicName: Codetographer;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: codetographer.Activator
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Import-Package: org.eclipse.core.resources,
org.eclipse.jdt.core,
org.eclipse.jdt.core.dom,
org.eclipse.jdt.internal.compiler.env,
org.eclipse.jdt.internal.core,
org.eclipse.jface.text
10 changes: 10 additions & 0 deletions build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
source.. = src/,\
test/
output.. = bin/
bin.includes = plugin.xml,\
META-INF/,\
.,\
icons/,\
contexts.xml
src.includes = test/,\
src/
12 changes: 12 additions & 0 deletions contexts.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<contexts>
<context id="viewer" title="Sample View">
<description>This is the context help for Codetographer</description>
<topic href="/PLUGINS_ROOT/org.eclipse.platform.doc.isv/guide/ua_help_context.htm" label="Context-sensitive help">
<enablement>
<with variable="platform">
<test property="org.eclipse.core.runtime.isBundleInstalled" args="org.eclipse.platform.doc.isv"/>
</with>
</enablement>
</topic>
</context>
</contexts>
82 changes: 82 additions & 0 deletions flash/Ecumene.as3proj
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<project>
<!-- Output SWF options -->
<output>
<movie disabled="False" />
<movie input="" />
<movie path="bin\Ecumene.swf" />
<movie fps="30" />
<movie width="800" />
<movie height="600" />
<movie version="10" />
<movie background="#FFFFFF" />
</output>
<!-- Other classes to be compiled into your SWF -->
<classpaths>
<class path="src" />
<class path="lib" />
</classpaths>
<!-- Build options -->
<build>
<option accessible="False" />
<option allowSourcePathOverlap="False" />
<option benchmark="False" />
<option es="False" />
<option loadConfig="" />
<option optimize="True" />
<option showActionScriptWarnings="True" />
<option showBindingWarnings="True" />
<option showDeprecationWarnings="True" />
<option showUnusedTypeSelectorWarnings="True" />
<option strict="True" />
<option useNetwork="True" />
<option useResourceBundleMetadata="True" />
<option warnings="True" />
<option verboseStackTraces="False" />
<option linkReport="" />
<option loadExterns="" />
<option additional="" />
<option customSDK="" />
</build>
<!-- SWC Include Libraries -->
<includeLibraries>
<!-- example: <element path="..." /> -->
</includeLibraries>
<!-- SWC Libraries -->
<libraryPaths>
<!-- example: <element path="..." /> -->
</libraryPaths>
<!-- External Libraries -->
<externalLibraryPaths>
<!-- example: <element path="..." /> -->
</externalLibraryPaths>
<!-- Runtime Shared Libraries -->
<rslPaths>
<!-- example: <element path="..." /> -->
</rslPaths>
<!-- Intrinsic Libraries -->
<intrinsics>
<!-- example: <element path="..." /> -->
</intrinsics>
<!-- Assets to embed into the output SWF -->
<library>
<!-- example: <asset path="..." id="..." update="..." glyphs="..." mode="..." place="..." sharepoint="..." /> -->
</library>
<!-- Class files to compile (other referenced classes will automatically be included) -->
<compileTargets>
<compile path="src\codetographer\ecumene\Main.as" />
</compileTargets>
<!-- Paths to exclude from the Project Explorer tree -->
<hiddenPaths>
<!-- example: <hidden path="..." /> -->
</hiddenPaths>
<!-- Executed before build -->
<preBuildCommand />
<!-- Executed after build -->
<postBuildCommand alwaysRun="False" />
<!-- Other project options -->
<options>
<option showHiddenPaths="False" />
<option testMovie="Default" />
</options>
</project>
Binary file added flash/bin/Ecumene.swf
Binary file not shown.
106 changes: 106 additions & 0 deletions flash/lib/DynamicMovie.as
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
package
{
import flash.display.MovieClip;
import flash.geom.Point;

/**
* Extends MovieClip adding a dynamic registration point
*
* Based on AS2 work by Darron Schall (www.darronschall.com)
* Original AS1 code by Robert Penner (www.robertpenner.com)
*
* @author Oscar Trelles
* @version 1.0
* @created 12-Mar-2007 11:53:50 AM
*/
public class DynamicMovie extends MovieClip
{
public var rp:Point;

private function DynamicSprite():void
{
setRegistration();
}

public function setRegistration(x:Number=0, y:Number=0):void
{
rp = new Point(x, y);
}

public function get x2():Number
{
var p:Point = this.parent.globalToLocal(this.localToGlobal(rp));
return p.x;
}

public function set x2(value:Number):void
{
var p:Point = this.parent.globalToLocal(this.localToGlobal(rp));
this.x += value - p.x;
}

public function get y2():Number
{
var p:Point = this.parent.globalToLocal(this.localToGlobal(rp));
return p.y;
}

public function set y2(value:Number):void
{
var p:Point = this.parent.globalToLocal(this.localToGlobal(rp));
this.y += value - p.y;
}

public function get scaleX2():Number
{
return this.scaleX;
}

public function set scaleX2(value:Number):void
{
this.setProperty2("scaleX", value);
}

public function get scaleY2():Number
{
return this.scaleY;
}

public function set scaleY2(value:Number):void
{
this.setProperty2("scaleY", value);
}

public function get rotation2():Number
{
return this.rotation;
}

public function set rotation2(value:Number):void
{
this.setProperty2("rotation", value);
}

public function get mouseX2():Number
{
return Math.round(this.mouseX - rp.x);
}

public function get mouseY2():Number
{
return Math.round(this.mouseY - rp.y);
}

public function setProperty2(prop:String, n:Number):void
{
var a:Point = this.parent.globalToLocal(this.localToGlobal(rp));

this[prop] = n;

var b:Point = this.parent.globalToLocal(this.localToGlobal(rp));

this.x -= b.x - a.x;
this.y -= b.y - a.y;
}
}
}
77 changes: 77 additions & 0 deletions flash/lib/caurina/transitions/AuxFunctions.as
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
package caurina.transitions {

/**
* Generic, auxiliary functions
*
* @author Zeh Fernando
* @version 1.0.0
* @private
*/

public class AuxFunctions {

/**
* Gets the R (xx0000) bits from a number
*
* @param p_num Number Color number (ie, 0xffff00)
* @return Number The R value
*/
public static function numberToR(p_num:Number):Number {
// The initial & is meant to crop numbers bigger than 0xffffff
return (p_num & 0xff0000) >> 16;
}

/**
* Gets the G (00xx00) bits from a number
*
* @param p_num Number Color number (ie, 0xffff00)
* @return Number The G value
*/
public static function numberToG(p_num:Number):Number {
return (p_num & 0xff00) >> 8;
}

/**
* Gets the B (0000xx) bits from a number
*
* @param p_num Number Color number (ie, 0xffff00)
* @return Number The B value
*/
public static function numberToB(p_num:Number):Number {
return (p_num & 0xff);
}

/**
* Returns the number of properties an object has
*
* @param p_object Object Target object with a number of properties
* @return Number Number of total properties the object has
*/
public static function getObjectLength(p_object:Object):uint {
var totalProperties:uint = 0;
for (var pName:String in p_object) totalProperties ++;
return totalProperties;
}

/* Takes a variable number of objects as parameters and "adds" their properties, from left to right. If a latter object defines a property as null, it will be removed from the final object
* @param args Object(s) A variable number of objects
* @return Object An object with the sum of all paremeters added as properties.
*/
public static function concatObjects(...args) : Object{
var finalObject : Object = {};
var currentObject : Object;
for (var i : int = 0; i < args.length; i++){
currentObject = args[i];
for (var prop : String in currentObject){
if (currentObject[prop] == null){
// delete in case is null
delete finalObject[prop];
}else{
finalObject[prop] = currentObject[prop];
}
}
}
return finalObject;
}
}
}
Loading

0 comments on commit eab3603

Please sign in to comment.