2011-08-07 19:27:23 -03:00
|
|
|
mindplot.collaboration = {};
|
|
|
|
|
mindplot.collaboration.CollaborationManager = new Class({
|
|
|
|
|
initialize:function(){
|
|
|
|
|
this.collaborativeModelReady = false;
|
|
|
|
|
this.collaborativeModelReady = null;
|
|
|
|
|
this.wiseReady = false;
|
|
|
|
|
},
|
|
|
|
|
isCollaborationFrameworkAvailable:function(){
|
|
|
|
|
return $defined(goog.collab.CollaborativeApp);
|
|
|
|
|
},
|
|
|
|
|
setCollaborativeFramework:function(framework){
|
|
|
|
|
this._collaborativeFramework = framework;
|
|
|
|
|
this.collaborativeModelReady = true;
|
|
|
|
|
if(this.wiseReady){
|
|
|
|
|
buildCollaborativeMindmapDesigner();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
setWiseReady:function(ready){
|
|
|
|
|
this.wiseReady=ready;
|
|
|
|
|
},
|
|
|
|
|
isCollaborativeFrameworkReady:function(){
|
|
|
|
|
return this.collaborativeModelReady;
|
|
|
|
|
},
|
|
|
|
|
buildWiseModel: function(){
|
|
|
|
|
return this._collaborativeFramework.buildWiseModel();
|
2011-08-07 21:13:20 -03:00
|
|
|
},
|
|
|
|
|
getCollaborativeFramework:function(){
|
|
|
|
|
return this._collaborativeFramework;
|
2011-08-07 19:27:23 -03:00
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$wise_collaborationManager = new mindplot.collaboration.CollaborationManager();
|