From 070f1473b141c22b4570e18c0f871c557c9b1cbc Mon Sep 17 00:00:00 2001 From: neyric Date: Thu, 31 Dec 2009 13:30:17 +0100 Subject: [PATCH] Accordion for module list in WiringEditor --- css/WireItEditor.css | 2 +- examples/WiringEditor/demo.js | 5 + examples/WiringEditor/index.html | 24 +++++ examples/logicGates/index.html | 21 ++++- examples/logicGates/logicGates.js | 14 ++- js/Wire.js | 51 ++++++++++- js/WiringEditor.js | 147 ++++++++++++++++++++---------- 7 files changed, 208 insertions(+), 56 deletions(-) diff --git a/css/WireItEditor.css b/css/WireItEditor.css index 4419e333..ce7627b7 100644 --- a/css/WireItEditor.css +++ b/css/WireItEditor.css @@ -87,7 +87,7 @@ div.savedStatus { */ .WiringEditor-module { - cursor: pointer; + cursor: move; background-color: #AADDDD; margin: 5px; padding: 2px; diff --git a/examples/WiringEditor/demo.js b/examples/WiringEditor/demo.js index 078d19ed..ca420104 100644 --- a/examples/WiringEditor/demo.js +++ b/examples/WiringEditor/demo.js @@ -19,6 +19,7 @@ var demoLanguage = { { "name": "FormContainer", + "category": "form", "container": { "xtype": "WireIt.FormContainer", "title": "WireIt.FormContainer demo", @@ -57,6 +58,7 @@ var demoLanguage = { { "name": "AND gate", + "category": "images", "container": { "xtype":"WireIt.ImageContainer", "image": "../logicGates/images/gate_and.png", @@ -72,6 +74,7 @@ var demoLanguage = { { "name": "Bubble", + "category": "images", "container": { "xtype":"WireIt.ImageContainer", "className": "WireIt-Container WireIt-ImageContainer Bubble", @@ -88,6 +91,7 @@ var demoLanguage = { { "name": "Other form module", + "category": "form", "container": { "icon": "../../res/icons/application_edit.png", "xtype": "WireIt.FormContainer", @@ -106,6 +110,7 @@ var demoLanguage = { { "name": "PostContainer", + "category": "form", "container": { "xtype": "WireIt.FormContainer", "title": "Post", diff --git a/examples/WiringEditor/index.html b/examples/WiringEditor/index.html index 75b1d544..53a746d8 100644 --- a/examples/WiringEditor/index.html +++ b/examples/WiringEditor/index.html @@ -148,6 +148,30 @@
+ + +
-
+ +
+ + + + +