diff --git a/mindplot/src/main/javascript/collaboration/CollaborationManager.js b/mindplot/src/main/javascript/collaboration/CollaborationManager.js index 732d16fd..d53a4614 100644 --- a/mindplot/src/main/javascript/collaboration/CollaborationManager.js +++ b/mindplot/src/main/javascript/collaboration/CollaborationManager.js @@ -1,4 +1,21 @@ -mindplot.collaboration = {}; +/* + * Copyright [2011] [wisemapping] + * + * Licensed under WiseMapping Public License, Version 1.0 (the "License"). + * It is basically the Apache License, Version 2.0 (the "License") plus the + * "powered by wisemapping" text requirement on every single page; + * you may not use this file except in compliance with the License. + * You may obtain a copy of the license at + * + * http://www.wisemapping.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + mindplot.collaboration.CollaborationManager = new Class({ initialize:function() { this.collaborativeModelReady = false; diff --git a/mindplot/src/main/javascript/collaboration/frameworks/AbstractCollaborativeFramework.js b/mindplot/src/main/javascript/collaboration/frameworks/AbstractCollaborativeFramework.js index 7fd0254e..baaf401c 100644 --- a/mindplot/src/main/javascript/collaboration/frameworks/AbstractCollaborativeFramework.js +++ b/mindplot/src/main/javascript/collaboration/frameworks/AbstractCollaborativeFramework.js @@ -1,5 +1,3 @@ -mindplot.collaboration.frameworks = {}; - mindplot.collaboration.frameworks.AbstractCollaborativeFramework = new Class({ initialize: function(model, collaborativeModelFactory) { this._collaborativeModelFactory = collaborativeModelFactory; diff --git a/mindplot/src/main/javascript/collaboration/frameworks/AbstractCollaborativeModelFactory.js b/mindplot/src/main/javascript/collaboration/frameworks/AbstractCollaborativeModelFactory.js index 9b212eab..233585f5 100644 --- a/mindplot/src/main/javascript/collaboration/frameworks/AbstractCollaborativeModelFactory.js +++ b/mindplot/src/main/javascript/collaboration/frameworks/AbstractCollaborativeModelFactory.js @@ -1,9 +1,28 @@ +/* + * Copyright [2011] [wisemapping] + * + * Licensed under WiseMapping Public License, Version 1.0 (the "License"). + * It is basically the Apache License, Version 2.0 (the "License") plus the + * "powered by wisemapping" text requirement on every single page; + * you may not use this file except in compliance with the License. + * You may obtain a copy of the license at + * + * http://www.wisemapping.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + mindplot.collaboration.frameworks.AbstractCollaborativeModelFactory = new Class({ - initialize:function(){}, - buildMindMap:function(){ + initialize:function() { + }, + buildMindMap:function() { }, - buildCollaborativeModelFor:function(model){ + buildCollaborativeModelFor:function(model) { } }); \ No newline at end of file diff --git a/mindplot/src/main/javascript/collaboration/frameworks/brix/BrixCollaborativeModelFactory.js b/mindplot/src/main/javascript/collaboration/frameworks/brix/BrixCollaborativeModelFactory.js index d80c662e..d9a71b65 100644 --- a/mindplot/src/main/javascript/collaboration/frameworks/brix/BrixCollaborativeModelFactory.js +++ b/mindplot/src/main/javascript/collaboration/frameworks/brix/BrixCollaborativeModelFactory.js @@ -1,12 +1,30 @@ +/* + * Copyright [2011] [wisemapping] + * + * Licensed under WiseMapping Public License, Version 1.0 (the "License"). + * It is basically the Apache License, Version 2.0 (the "License") plus the + * "powered by wisemapping" text requirement on every single page; + * you may not use this file except in compliance with the License. + * You may obtain a copy of the license at + * + * http://www.wisemapping.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + mindplot.collaboration.frameworks.brix.BrixCollaborativeModelFactory = new Class({ Extends:mindplot.collaboration.frameworks.AbstractCollaborativeModelFactory, - initialize:function(brixFramework){ + initialize:function(brixFramework) { this._brixFramework = brixFramework; }, - buildMindMap:function(){ + buildMindMap:function() { return new mindplot.collaboration.frameworks.brix.model.Mindmap(null, this._brixFramework); }, - buildCollaborativeModelFor:function(model){ + buildCollaborativeModelFor:function(model) { return new mindplot.collaboration.frameworks.brix.model.Mindmap(model, this._brixFramework); } }); \ No newline at end of file diff --git a/mindplot/src/main/javascript/collaboration/frameworks/brix/BrixFramework.js b/mindplot/src/main/javascript/collaboration/frameworks/brix/BrixFramework.js index 8bf7fd4d..9331d678 100644 --- a/mindplot/src/main/javascript/collaboration/frameworks/brix/BrixFramework.js +++ b/mindplot/src/main/javascript/collaboration/frameworks/brix/BrixFramework.js @@ -1,6 +1,23 @@ +/* + * Copyright [2011] [wisemapping] + * + * Licensed under WiseMapping Public License, Version 1.0 (the "License"). + * It is basically the Apache License, Version 2.0 (the "License") plus the + * "powered by wisemapping" text requirement on every single page; + * you may not use this file except in compliance with the License. + * You may obtain a copy of the license at + * + * http://www.wisemapping.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + mindplot.collaboration.frameworks.brix.BrixFramework = new Class({ Extends: mindplot.collaboration.frameworks.AbstractCollaborativeFramework, - initialize: function(model, app) { this._app = app; var collaborativeModelFactory = new mindplot.collaboration.frameworks.brix.BrixCollaborativeModelFactory(this); diff --git a/mindplot/src/main/javascript/collaboration/frameworks/brix/model/NodeModel.js b/mindplot/src/main/javascript/collaboration/frameworks/brix/model/NodeModel.js index 110bfa57..1941a8fd 100644 --- a/mindplot/src/main/javascript/collaboration/frameworks/brix/model/NodeModel.js +++ b/mindplot/src/main/javascript/collaboration/frameworks/brix/model/NodeModel.js @@ -15,8 +15,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -mindplot.collaboration.frameworks.brix = {}; -mindplot.collaboration.frameworks.brix.model = {}; + mindplot.collaboration.frameworks.brix.model.NodeModel = new Class({ Extends: mindplot.model.NodeModel, Attributes: ['text','fontSize','fontFamily','fontStyle','fontColor','fontWeight','borderColor','backgroundColor','shapeType'], @@ -161,24 +160,20 @@ mindplot.collaboration.frameworks.brix.model.NodeModel = new Class({ result._backgroundColor = this._backgroundColor; result._areChildrenShrinked = this._areChildrenShrinked; return result; - } - , + }, areChildrenShrinked : function() { return this._areChildrenShrinked; - } - , + }, setChildrenShrinked : function(value) { this._areChildrenShrinked = value; - } - , + }, getId : function() { return this._id; }, - setId : function(id) { this._id = id; if (mindplot.model.NodeModel._uuid < id) { @@ -294,8 +289,7 @@ mindplot.collaboration.frameworks.brix.model.NodeModel = new Class({ setSize : function(width, height) { this._size.width = width; this._size.height = height; - } - , + }, getSize : function() { return {width:this._size.width,height:this._size.height}; @@ -303,33 +297,27 @@ mindplot.collaboration.frameworks.brix.model.NodeModel = new Class({ getChildren : function() { return this._children; - } - , + }, getIcons : function() { return this._icons; - } - , + }, getLinks : function() { return this._links; - } - , + }, getNotes : function() { return this._notes; - } - , + }, getParent : function() { return this._parent; - } - , + }, getMindmap : function() { return this._mindmap; - } - , + }, setParent : function(parent) { $assert(parent != this, 'The same node can not be parent and child if itself.'); @@ -413,14 +401,6 @@ mindplot.collaboration.frameworks.brix.model.NodeModel = new Class({ return this._order; }, - getShapeType : function() { - return this._shapeType; - }, - - setShapeType : function(type) { - this._shapeType = type; - }, - setOrder : function(value) { this._order = value; }, diff --git a/mindplot/src/main/javascript/header.js b/mindplot/src/main/javascript/header.js index 61884d9d..8bc6dd46 100644 --- a/mindplot/src/main/javascript/header.js +++ b/mindplot/src/main/javascript/header.js @@ -1,26 +1,20 @@ /* -* Copyright [2011] [wisemapping] -* -* Licensed under WiseMapping Public License, Version 1.0 (the "License"). -* It is basically the Apache License, Version 2.0 (the "License") plus the -* "powered by wisemapping" text requirement on every single page; -* you may not use this file except in compliance with the License. -* You may obtain a copy of the license at -* -* http://www.wisemapping.org/license -* -* Unless required by applicable law or agreed to in writing, software -* distributed under the License is distributed on an "AS IS" BASIS, -* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -* See the License for the specific language governing permissions and -* limitations under the License. -*/ - -// (C) Copyright 2007 WiseMapping.com. All Rights Reserved -// THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF WiseMapping.com -// The copyright notice above does not evidence any actual or intended -// publication of such source code. -// .................................................................... + * Copyright [2011] [wisemapping] + * + * Licensed under WiseMapping Public License, Version 1.0 (the "License"). + * It is basically the Apache License, Version 2.0 (the "License") plus the + * "powered by wisemapping" text requirement on every single page; + * you may not use this file except in compliance with the License. + * You may obtain a copy of the license at + * + * http://www.wisemapping.org/license + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ var mindplot = {}; mindplot.util = {}; @@ -28,3 +22,7 @@ mindplot.commands = {}; mindplot.layout = {}; mindplot.widget = {}; mindplot.model = {}; +mindplot.collaboration = {}; +mindplot.collaboration.frameworks = {}; +mindplot.collaboration.frameworks.brix = {}; +mindplot.collaboration.frameworks.brix.model = {}; \ No newline at end of file