Minor fix.

This commit is contained in:
Paulo Veiga 2011-09-06 01:10:43 -03:00
parent e2da27ebc8
commit 1b2c7b1ce2
7 changed files with 110 additions and 63 deletions

View File

@ -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;

View File

@ -1,5 +1,3 @@
mindplot.collaboration.frameworks = {};
mindplot.collaboration.frameworks.AbstractCollaborativeFramework = new Class({
initialize: function(model, collaborativeModelFactory) {
this._collaborativeModelFactory = collaborativeModelFactory;

View File

@ -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) {
}
});

View File

@ -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);
}
});

View File

@ -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);

View File

@ -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;
},

View File

@ -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 = {};