Skip to content

Commit

Permalink
WiringEditor Builder: now comes with a backend !
Browse files Browse the repository at this point in the history
  • Loading branch information
ericabouaf committed Mar 3, 2009
1 parent 2abf4a4 commit 300703d
Show file tree
Hide file tree
Showing 15 changed files with 789 additions and 400 deletions.
8 changes: 8 additions & 0 deletions VERSION.txt
Expand Up @@ -14,6 +14,14 @@ Changeset:
* inputEx wirable option: make the inputEx fields wirable
* LayerMap leave beta (indicate visible region, move layer on click)

* Terminal position switched to {top: , left: , right: , bottom: }
* new options:
- TerminalProxy.proxySize (default 10) size of the proxy element
- Terminal.alwaysSrc : make this terminal the src element in every wires
- Container.preventSelfWiring : prevent to connect 2 terminals of the same container

* The Builder: a WiringEditor building page !

* New demo
* Switching to git repository (http://github.com/neyric/wireit/)
* Switching issue tracking
Expand Down
2 changes: 1 addition & 1 deletion backend/php/WiringEditor.php
Expand Up @@ -6,7 +6,7 @@ class WiringEditor {
'dbhost' => "localhost",
'dbuser' => "root",
'dbpass' => "root",
'dbname' => "WiringEditor"
'dbname' => "WireIt"
);

private $link = null;
Expand Down
16 changes: 8 additions & 8 deletions backend/php/WiringEditor.sql
@@ -1,10 +1,10 @@
CREATE DATABASE `WiringEditor` ;

CREATE TABLE `WiringEditor`.`wirings` (
`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`name` varchar( 255 ) NOT NULL ,
`working` text NOT NULL ,
`language` varchar( 255 ) NOT NULL ,
PRIMARY KEY ( `id` ) ,
KEY `name` ( `name` , `language` )
CREATE TABLE `wirings` (
`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`name` varchar( 255 ) NOT NULL ,
`working` text NOT NULL ,
`language` varchar( 255 ) NOT NULL ,

PRIMARY KEY ( `id` ) ,
KEY `name` ( `name` , `language` )
);
22 changes: 11 additions & 11 deletions examples/WiringEditor/demo.js
Expand Up @@ -5,8 +5,8 @@ var demoLanguage = {
smdUrl: '../../backend/php/WiringEditor.smd',

propertiesFields: [
{"type": "string", inputParams: {"name": "name", label: "Title", wirable: false, typeInvite: "Enter a title" } },
{"type": "text", inputParams: {"name": "description", label: "Description", wirable: false, cols: 30} }
{"type": "string", inputParams: {"name": "name", label: "Title", typeInvite: "Enter a title" } },
{"type": "text", inputParams: {"name": "description", label: "Description", cols: 30} }
],

modules: [
Expand Down Expand Up @@ -38,9 +38,9 @@ var demoLanguage = {
"image": "../logicGates/images/gate_and.png",
"icon": "http://dev.tarpipe.com/img/tumblr.png",
"terminals": [
{"name": "_INPUT1", "direction": [-1,0], "offsetPosition": [-3,2]},
{"name": "_INPUT2", "direction": [-1,0], "offsetPosition": [-3,37]},
{"name": "_OUTPUT", "direction": [1,0], "offsetPosition": [103,20]}
{"name": "_INPUT1", "direction": [-1,0], "offsetPosition": {"left": -3, "top": 2 }},
{"name": "_INPUT2", "direction": [-1,0], "offsetPosition": {"left": -3, "top": 37 }},
{"name": "_OUTPUT", "direction": [1,0], "offsetPosition": {"left": 103, "top": 20 }}
]
}
},
Expand All @@ -54,10 +54,10 @@ var demoLanguage = {
"icon": "http://dev.tarpipe.com/img/photobucket.png",
"image": "../images/bubble.png",
"terminals": [
{"direction": [-1,-1], "offsetPosition": [-10,-10], "name": "tl"},
{"direction": [1,-1], "offsetPosition": [25,-10], "name": "tr"},
{"direction": [-1,1], "offsetPosition": [-10,25], "name": "bl"},
{"direction": [1,1], "offsetPosition": [25,25], "name": "br"}
{"direction": [-1,-1], "offsetPosition": {"left": -10, "top": -10 }, "name": "tl"},
{"direction": [1,-1], "offsetPosition": {"left": 25, "top": -10 }, "name": "tr"},
{"direction": [-1,1], "offsetPosition": {"left": -10, "top": 25 }, "name": "bl"},
{"direction": [1,1], "offsetPosition": {"left": 25, "top": 25 }, "name": "br"}
]
}
},
Expand Down Expand Up @@ -104,8 +104,8 @@ var demoLanguage = {
],

"terminals": [
{"name": "SOURCES", "direction": [0,-1], "offsetPosition": [100,-15]},
{"name": "FOLLOWUPS", "direction": [0,1], "offsetPosition": {left: 100, bottom: -15}}
{"name": "SOURCES", "direction": [0,-1], "offsetPosition": {"left": 100, "top": -15 }},
{"name": "FOLLOWUPS", "direction": [0,1], "offsetPosition": {"left": 100, "bottom": -15}}
]
}
}
Expand Down

0 comments on commit 300703d

Please sign in to comment.