Skip to content

Commit cd8aab8

Browse files
committed
APF to PPC refactoring
- Renamed everything concerning APF to PPC - apf => ppc - Apf => Ppc - APF => PPC - Ajax.org Platform => Pylon Platform Code - Contributes to #93
1 parent 99ffe69 commit cd8aab8

File tree

216 files changed

+371
-373
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+371
-373
lines changed

ppc/platform/.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@
66
.c9revisions
77
.settings
88
node_modules/
9-
doc/out
10-
doc/apf.json
9+
doc/out

ppc/platform/CODING_STANDARDS

+10-10
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ closing statement:
3030
1.3. Maximum Line Length
3131
========================
3232

33-
The target line length is 80 characters. That is to say, apf developers should
33+
The target line length is 80 characters. That is to say, ppc developers should
3434
strive keep each line of their code under 80 characters where possible and
3535
practical. However, longer lines are acceptable in some circumstances.
3636
The maximum length of any line of code is 120 characters.
@@ -51,9 +51,9 @@ Windows OS (0x0D, 0x0A).
5151

5252
2.1 Classes
5353

54-
The root level directory of the apf standard library is the "core/" directory.
55-
The root level directory of the apf elements is the "elements/" directory.
56-
The root level directory of the apf Teleport library and its modules is the
54+
The root level directory of the ppc standard library is the "core/" directory.
55+
The root level directory of the ppc elements is the "elements/" directory.
56+
The root level directory of the ppc Teleport library and its modules is the
5757
"elements/teleport/" directory.
5858

5959
Class names may only contain alphanumeric characters. Numbers are permitted
@@ -118,7 +118,7 @@ pattern and implements it by using the dollar-sign convention.
118118

119119
Functions in the global scope (a.k.a. "floating functions") are permitted but
120120
discouraged in most cases. Consider wrapping these functions in the globally
121-
defined 'apf' namespace.
121+
defined 'ppc' namespace.
122122

123123
2.3. Variables
124124
==============
@@ -161,9 +161,9 @@ EMBED_SUPPRESSEMBEDEXCEPTION is not.
161161
naming conflicts with other class contants. For example:
162162

163163
#
164-
# apf.bar = apf.component(...);
164+
# ppc.bar = ppc.component(...);
165165
#
166-
# apf.bar.ALIGN_LEFT = 0; //constant attached to the apf.bar namespace
166+
# ppc.bar.ALIGN_LEFT = 0; //constant attached to the ppc.bar namespace
167167
#
168168

169169
3. Coding Style
@@ -287,7 +287,7 @@ the keys and the values are aligned:
287287

288288
Classes must be named according to Ajax.org Platform's naming conventions.
289289

290-
Every class must be declared inside the "apf" namespace.
290+
Every class must be declared inside the "ppc" namespace.
291291

292292
The brace should always be written on the line underneath the class name
293293
(the "one true brace" form).
@@ -309,7 +309,7 @@ code in the class file.
309309
# /**
310310
# * Documentation Block Here
311311
# */
312-
# apf.sampleClass = function() {
312+
# ppc.sampleClass = function() {
313313
# // all contents of class
314314
# // must be indented four spaces
315315
# }
@@ -348,7 +348,7 @@ the arguments is not permitted.
348348
# /**
349349
# * Documentation Block Here
350350
# */
351-
# apf.foo = function() {
351+
# ppc.foo = function() {
352352
# /**
353353
# * Documentation Block Here
354354
# */

ppc/platform/NOTICE

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
Ajax.org Platform (APF)
2-
Copyright 2000-2010 Ajax.org B.V.
1+
Pylon Platform Code (PPC)
32

43
This product includes software developed by
54
Ajax.org B.V. (http://www.ajax.org/).

ppc/platform/build/README

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Each Flash project that is used by Ajax.org Platform, may be compiled with a Flash
1+
Each Flash project that is used by Pylon Platform Code, may be compiled with a Flash
22
compiler like MTASC or the one bundled with the Flex SDK.
33

44
We recommend to always use the latest versions of the compiler, so that your SWF

ppc/platform/core/baseclasses/validation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ ppc.validator.validityState = function(){
120120
* #### Example
121121
*
122122
* ```xml, demo
123-
* <a:application xmlns:a="http://ajax.org/2005/aml">
123+
* <a:application xmlns:a="https://github.com/pylonide/pylon">
124124
* <!-- startcontent -->
125125
* <a:bar validgroup="vgExample">
126126
* <a:label>Number</a:label>

ppc/platform/core/debug/debugwin.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1083,11 +1083,11 @@ ppc.$debugwin = {
10831083
}*/
10841084
},
10851085

1086-
$startResize : function(offset, oApf){
1086+
$startResize : function(offset, oPpc){
10871087
var $ext = this.$ext;
10881088
ppc.plane.show(null, null, null, true);
10891089
ppc.dragMode = true;
1090-
oApf.dragMode = true;
1090+
oPpc.dragMode = true;
10911091

10921092
document.body.style.cursor = "s-resize";
10931093

@@ -1126,7 +1126,7 @@ ppc.$debugwin = {
11261126
document.onmouseup = null;
11271127

11281128
ppc.dragMode = false;
1129-
oApf.dragMode = false;
1129+
oPpc.dragMode = false;
11301130

11311131
ppc.plane.hide();
11321132
}

ppc/platform/core/lib/uirecorder/selenium.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function SeleniumPlayer(browser){
2727
if (!contexts[serialized]) {
2828
elName = contexts[serialized] = "elId" + contexts.length++;
2929
stack.push("",
30-
'var ' + elName + ' = browser.findApfElement('
30+
'var ' + elName + ' = browser.findPpcElement('
3131
+ serialized
3232
+ ');');
3333
}

ppc/platform/core/lib/uirecorder/ui.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a:application xmlns:a="http://ajax.org/2005/aml">
1+
<a:application xmlns:a="https://github.com/pylonide/pylon">
22
<a:bar skin="menu" id="winUiRecorder" draggable="true" zindex="199999" right="20" bottom="20" width="390" height="29" resizable="false">
33
<a:vbox anchors="0 0 0 0" padding="3">
44
<a:bar id="barUiRecorder" skin="basic" style="background-color:#333;padding:2px;">

ppc/platform/core/markup/aml/node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ppc.__AMLNODE__ = 1 << 14;
3434
*
3535
* Well known methods
3636
* from this specification are: `appendChild`, `removeChild`, `setAttribute`, and
37-
* `insertBefore`--to name a few. The Ajax.org Platform aims to implement DOM1
37+
* `insertBefore`--to name a few. The Pylon Platform Code aims to implement DOM1
3838
* completely and parts of DOM2. For more information see {@link http://www.w3.org/DOM/}
3939
* or {@link http://www.w3schools.com/dom/default.asp}.
4040
*

ppc/platform/core/markup/html5.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ ppc.setNamespace("", ppc.html5);
3939
/**
4040
* @define input
4141
* Remarks:
42-
* Ajax.org Platform supports the input types specified by the WHATWG html5 spec.
42+
* Pylon Platform Code supports the input types specified by the WHATWG html5 spec.
4343
* @attribute {String} type the type of input element.
4444
* Possible values:
4545
* email provides a way to enter an email address.

ppc/platform/core/markup/xsd.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ ppc.xsd.typeHandlers = {
269269
},
270270
//#endif
271271

272-
"http://ajax.org/2005/aml" : {
273-
//Ajax.org Platform datatypes
272+
"https://github.com/pylonide/pylon" : {
273+
//Pylon Platform Code datatypes
274274
"url": function(value){
275275
//@todo please make this better
276276
return /\b(https?|ftp):\/\/([\-A-Z0-9.]+)(\/[\-A-Z0-9+&@#\/%=~_|!:,.;]*)?(\?[\-A-Z0-9+&@#\/%=~_|!:,.;]*)?/i.test(value.trim());

ppc/platform/debugwin/debugwin.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html xmlns:a="http://ajax.org/2005/aml" xmlns="http://www.w3.org/1999/xhtml">
2+
<html xmlns:a="https://github.com/pylonide/pylon" xmlns="http://www.w3.org/1999/xhtml">
33
<head>
44
<script src="../ppc.js"></script>
55
<!--script src="ppc_debugwin.js"></script-->

ppc/platform/debugwin/docparser/docparser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ var docparser = {
263263
}
264264

265265
// set namespace
266-
//ppc.setNamespace("http://ajax.org/2005/aml", ppc.aml);
266+
//ppc.setNamespace("https://github.com/pylonide/pylon", ppc.aml);
267267
else if (t[i + 2].indexOf("setNamespace") > -1){
268268
if (t[i + 5][11]) {
269269
if (t[i + 5][11].indexOf(".") > -1)

ppc/platform/debugwin/docparser/docparser_xmlschema.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function parse_xsd(docTree, outputFolderObj) {
1414
var output = '<?xml version="1.0" encoding="UTF-8"?>';
1515

1616
// create file for xml schema
17-
var xmlSchemaFile = ppc.getXml('<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ajax.org/2005/aml" xmlns:a="http://ajax.org/2005/aml" elementFormDefault="qualified" attributeFormDefault="unqualified" />');
17+
var xmlSchemaFile = ppc.getXml('<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="https://github.com/pylonide/pylon" xmlns:a="https://github.com/pylonide/pylon" elementFormDefault="qualified" attributeFormDefault="unqualified" />');
1818

1919
// create file for aptana
2020
var aptanaFile = ppc.getXml('<javascript />');

ppc/platform/debugwin/ppc_debugwin.js

+22-22
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030

3131
/**
32-
* Ajax.org Platform
32+
* Pylon Platform Code
3333
*
3434
* @author Ruben Daniels (ruben AT ajax DOT org)
3535
* @version 3.0
@@ -191,7 +191,7 @@ VERSION:'3.0beta3',
191191
*/
192192
started : false,
193193
/**
194-
* Namespace for all crypto libraries included with Ajax.org Platform.
194+
* Namespace for all crypto libraries included with Pylon Platform Code.
195195
*/
196196
crypto : {}, //namespace
197197
config : {},
@@ -581,8 +581,8 @@ VERSION:'3.0beta3',
581581
this.hostPath = sHref.replace(/\/[^\/]*$/, "") + "/";
582582

583583

584-
ppc.console.info("Starting Ajax.org Platform Application...");
585-
ppc.console.warn("Debug build of Ajax.org Platform " + (ppc.VERSION ? "version " + ppc.VERSION : ""));
584+
ppc.console.info("Starting Pylon Platform Code Application...");
585+
ppc.console.warn("Debug build of Pylon Platform Code " + (ppc.VERSION ? "version " + ppc.VERSION : ""));
586586

587587

588588
//mozilla root detection
@@ -743,7 +743,7 @@ VERSION:'3.0beta3',
743743
* @return {String} Returns a string representing the object.
744744
*/
745745
toString : function(){
746-
return "[Ajax.org Platform (ppc)]";
746+
return "[Pylon Platform Code (ppc)]";
747747
},
748748

749749
all : [],
@@ -1161,7 +1161,7 @@ VERSION:'3.0beta3',
11611161
htmlentities : function(s){return s},
11621162

11631163
/**
1164-
* Formats a Ajax.org Platform error message.
1164+
* Formats a Pylon Platform Code error message.
11651165
* @param {Number} number the number of the error. This can be used to look up more information about the error.
11661166
* @param {AMLElement} control the aml element that will throw the error.
11671167
* @param {String} process the action that was being executed.
@@ -2162,7 +2162,7 @@ if (!ppc.basePath) {
21622162
* </code>
21632163
*
21642164
* Expressions:
2165-
* The use of { and } tell Ajax.org Platform(PPC) that the visible property will
2165+
* The use of { and } tell Pylon Platform Code (PPC) that the visible property will
21662166
* be bound. By specifying myCheckbox.value PPC knows that the value of
21672167
* myCheckbox should be retrieved for this property. Whenever the checkbox
21682168
* changes, the slider will show or hide.
@@ -2198,7 +2198,7 @@ if (!ppc.basePath) {
21982198
*/
21992199

22002200
/**
2201-
* @term baseclass A baseclass in Ajax.org Platform (ppc) is a class that
2201+
* @term baseclass A baseclass in Pylon Platform Code (ppc) is a class that
22022202
* adds properties, methods, attributes, bindings and actions to the class that
22032203
* inherits from it. Javascript doesn't have most object oriented concepts like
22042204
* classes, class inheritance, interfaces, protected members and so on. When
@@ -2257,7 +2257,7 @@ if (!ppc.basePath) {
22572257
* </code>
22582258
* Where the constant is the name of the baseclass in all caps.
22592259
*
2260-
* Apf supports multiple inheritance. Use the implement method to add a
2260+
* Ppc supports multiple inheritance. Use the implement method to add a
22612261
* baseclass to your class that is not part of the inheritance tree:
22622262
* <code>
22632263
* var myElement = function(){
@@ -4568,7 +4568,7 @@ if (!self["JSON"]) {
45684568
jsonSerialize = {
45694569
//Object
45704570
0: function(o){
4571-
//XML support - NOTICE: Ajax.org Platform specific
4571+
//XML support - NOTICE: Pylon Platform Code specific
45724572
if (o.nodeType && o.ownerDocument && o.cloneNode(true)) // was o.nodeType && o.cloneNode
45734573
return "ppc.xmldb.getXml("
45744574
+ JSON.stringify(ppc.getXmlString(o)) + ")"; // was this.string()
@@ -32732,7 +32732,7 @@ ppc.__AMLNODE__ = 1 << 14;
3273232732
* changed, set, removed reparented, etc runtime. This offers a great deal of
3273332733
* flexibility. Well known methods
3273432734
* from this specification are .appendChild .removeChild .setAttribute and
32735-
* insertBefore to name a few. Ajax.org Platform aims to implement DOM1
32735+
* insertBefore to name a few. Pylon Platform Code aims to implement DOM1
3273632736
* completely and parts of DOM2. Which should be extended in the future to fully
3273732737
* implement DOM Level 2. For more information see {@link http://www.w3.org/DOM/}
3273832738
* or {@link http://www.w3schools.com/dom/default.asp}.
@@ -36410,7 +36410,7 @@ ppc.xsd.typeHandlers = {
3641036410

3641136411

3641236412
"https://github.com/pylonide/pylon" : {
36413-
//Ajax.org Platform datatypes
36413+
//Pylon Platform Code datatypes
3641436414
"url": function(value){
3641536415
//@todo please make this better
3641636416
return /\b(https?|ftp):\/\/([\-A-Z0-9.]+)(\/[\-A-Z0-9+&@#\/%=~_|!:,.;]*)?(\?[\-A-Z0-9+&@#\/%=~_|!:,.;]*)?/i.test(value.trim());
@@ -37527,7 +37527,7 @@ ppc.setNamespace("", ppc.html5);
3752737527
/**
3752837528
* @define input
3752937529
* Remarks:
37530-
* Ajax.org Platform supports the input types specified by the WHATWG html5 spec.
37530+
* Pylon Platform Code supports the input types specified by the WHATWG html5 spec.
3753137531
* @attribute {String} type the type of input element.
3753237532
* Possible values:
3753337533
* email provides a way to enter an email address.
@@ -52674,7 +52674,7 @@ ppc.DataAction = function(){
5267452674
* @term locking {@link http://en.wikipedia.org/wiki/Lock_(computer_science) A lock}
5267552675
* is a mechanism for enforcing limits on access to a resource in a
5267652676
* multi-user environment. Locks are one way of enforcing concurrency
52677-
* control policies. Ajax.org Platform (ppc) has support for locking in
52677+
* control policies. Pylon Platform Code (ppc) has support for locking in
5267852678
* combination with {@link term.action action rules}. There are two
5267952679
* types of locks; pessimistic and optimistic locks. Descriptions below are
5268052680
* from {@link http://en.wikipedia.org/wiki/Lock_(computer_science) wikipedia}.
@@ -77857,11 +77857,11 @@ ppc.$debugwin = {
7785777857
}*/
7785877858
},
7785977859

77860-
$startResize : function(offset, oApf){
77860+
$startResize : function(offset, oPpc){
7786177861
var $ext = this.$ext;
7786277862
ppc.plane.show(null, null, null, true);
7786377863
ppc.dragMode = true;
77864-
oApf.dragMode = true;
77864+
oPpc.dragMode = true;
7786577865

7786677866
document.body.style.cursor = "s-resize";
7786777867

@@ -77900,7 +77900,7 @@ ppc.$debugwin = {
7790077900
document.onmouseup = null;
7790177901

7790277902
ppc.dragMode = false;
77903-
oApf.dragMode = false;
77903+
oPpc.dragMode = false;
7790477904

7790577905
ppc.plane.hide();
7790677906
}
@@ -78452,7 +78452,7 @@ ppc.aml.setElement("toc", ppc.toc);
7845278452
* Remarks:
7845378453
* A docklet xml is a piece of aml that should be in the following form:
7845478454
* <code>
78455-
* <a:docklet xmlns:a="http://ajax.org/2005/aml"
78455+
* <a:docklet xmlns:a="https://github.com/pylonide/pylon"
7845678456
* caption="Billing History" icon="icoBilling.gif" name="BillHistory">
7845778457
* <a:script><![CDATA[
7845878458
* function BillHistory(){
@@ -88760,7 +88760,7 @@ ppc.aml.setElement("skin", ppc.skin);
8876088760
if (!found) {
8876188761
throw new Error(ppc.formatErrorString(0, null,
8876288762
"Checking for the aml namespace",
88763-
"The Ajax.org Platform xml namespace was not found in "
88763+
"The Pylon Platform Code xml namespace was not found in "
8876488764
+ (xmlNode.getAttribute("filename")
8876588765
? "in '" + xmlNode.getAttribute("filename") + "'"
8876688766
: "")));
@@ -101870,7 +101870,7 @@ ppc.aml.setElement("divider", ppc.divider);
101870101870
* </a:hbox>
101871101871
* </code>
101872101872
* Remarks:
101873-
* The layouting engine of Ajax.org Platform lets you store layouts and set them
101873+
* The layouting engine of Pylon Platform Code lets you store layouts and set them
101874101874
* dynamically. It's very easy to make a layout manager this way. For more
101875101875
* information see {@link object.layout}
101876101876
*
@@ -109140,7 +109140,7 @@ ppc.aml.setElement("statusbar", ppc.statusbar);
109140109140
* slider changes. A tree element has several actions - among others: 'add',
109141109141
* 'remove', 'move', 'copy' and 'rename'.
109142109142
*
109143-
* Smartbindings enable many other features in a Ajax.org Platform
109143+
* Smartbindings enable many other features in a Pylon Platform Code
109144109144
* application. Actions done by the user can be undone by calling
109145109145
* {@link element.actiontracker.method.undo} of the element. The
109146109146
* Remote Databinding element can send changes on data to other clients.
@@ -126016,7 +126016,7 @@ ppc.start();
126016126016
*/
126017126017

126018126018
/**
126019-
* Bootloader for Ajax.org Platform
126019+
* Bootloader for Pylon Platform Code
126020126020
*
126021126021
* Include ppc.js, then just go about it as you would with the
126022126022
* packaged version. Adapt this file to include your preferred modules

ppc/platform/debugwin/skins.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version='1.0'?>
2-
<a:skin xmlns:a="http://ajax.org/2005/aml" xmlns="http://www.w3.org/1999/xhtml">
2+
<a:skin xmlns:a="https://github.com/pylonide/pylon" xmlns="http://www.w3.org/1999/xhtml">
33
<a:codeeditor name="codeeditor">
44
<a:style><![CDATA[
55
.ceDisabled {

ppc/platform/debugwin/tools.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<category name="Elements" xmlns:a="http://ajax.org/2005/aml" >
1+
<category name="Elements" xmlns:a="https://github.com/pylonide/pylon" >
22
<!--subcat name="Default">
33
<item name="Arrow" icon="Actions.png" />
44
<item name="Selection" icon="selection.gif" />

0 commit comments

Comments
 (0)