Mindplot don't need to be compiled.

This commit is contained in:
Paulo Veiga
2011-07-30 05:22:57 -03:00
parent 361892e004
commit 51be944cca
18 changed files with 257 additions and 376 deletions

View File

@@ -67,7 +67,6 @@
<filelist dir="${basedir}/src/main/javascript/" files="DragManager.js"/>
<filelist dir="${basedir}/src/main/javascript/" files="DragPivot.js"/>
<filelist dir="${basedir}/src/main/javascript/" files="Board.js"/>
<!--<filelist dir="${basedir}/src/main/javascript/" files="TopicBoard.js"/>-->
<filelist dir="${basedir}/src/main/javascript/" files="CentralTopicBoard.js"/>
<filelist dir="${basedir}/src/main/javascript/" files="MainTopicBoard.js"/>
<filelist dir="${basedir}/src/main/javascript/" files="ConnectionLine.js"/>
@@ -154,8 +153,6 @@
files="layout/FreeMindLayoutManager.js"/>
<filelist dir="${basedir}/src/main/javascript/"
files="layout/LayoutManagerFactory.js"/>
<filelist dir="${basedir}/src/main/javascript/" files="footer.js"/>
</concat>

View File

@@ -19,7 +19,7 @@
mindplot.ActionIcon = new Class({
Extends:mindplot.Icon,
initialize: function(topic, url) {
mindplot.Icon.call(this, url);
this.parent(url);
this._node = topic;
},
getNode:function() {

View File

@@ -33,7 +33,7 @@ mindplot.CentralTopic = new Class({
setCursor : function(type) {
type = (type == 'move') ? 'default' : type;
mindplot.Topic.prototype.setCursor.call(this, type);
this.parent(type);
},
isConnectedToCentralTopic : function() {

View File

@@ -119,7 +119,7 @@ mindplot.MainTopic = new Class({
},
disconnect : function(workspace) {
mindplot.Topic.prototype.disconnect.call(this, workspace);
this.parent(workspace);
var size = this.getSize();
var model = this.getModel();

View File

@@ -21,7 +21,7 @@ mindplot.Note = new Class({
initialize : function(textModel, topic, designer) {
var divContainer = designer.getWorkSpace().getScreenManager().getContainer();
var bubbleTip = mindplot.BubbleTip.getInstance(divContainer);
mindplot.Icon.call(this, mindplot.Note.IMAGE_URL);
this.parent(mindplot.Note.IMAGE_URL);
this._noteModel = textModel;
this._topic = topic;
this._designer = designer;

View File

@@ -45,8 +45,7 @@ mindplot.RelationshipLine = new Class({
},
setStroke : function(color, style, opacity) {
// @Todo: How this is supported in mootools ?
mindplot.ConnectionLine.prototype.setStroke.call(this, color, style, opacity);
this.parent(color, style, opacity);
this._startArrow.setStrokeColor(color);
},
@@ -126,7 +125,7 @@ mindplot.RelationshipLine = new Class({
workspace.appendChild(this._startArrow);
workspace.appendChild(this._endArrow);
mindplot.ConnectionLine.prototype.addToWorkspace.call(this, workspace);
this.parent(workspace);
},
_initializeControlPointController : function(event, workspace) {
@@ -141,7 +140,7 @@ mindplot.RelationshipLine = new Class({
workspace.removeChild(this._startArrow);
workspace.removeChild(this._endArrow);
mindplot.ConnectionLine.prototype.removeFromWorkspace.call(this, workspace);
this.parent(workspace);
},
getType : function() {
@@ -195,13 +194,13 @@ mindplot.RelationshipLine = new Class({
},
setVisibility : function(value) {
mindplot.ConnectionLine.prototype.setVisibility.call(this, value);
this.parent(value);
this._endArrow.setVisibility(this._showEndArrow && value);
this._startArrow.setVisibility(this._showStartArrow && value);
},
setOpacity : function(opacity) {
mindplot.ConnectionLine.prototype.setOpacity.call(this, opacity);
this.parent(opacity);
if (this._showEndArrow)
this._endArrow.setOpacity(opacity);
if (this._showStartArrow)

View File

@@ -221,7 +221,6 @@ mindplot.TextEditor = new Class({
};
setTimeout(executor(this), 10);
//console.log('init done');
},
setStyle : function (fontStyle) {

View File

@@ -1013,7 +1013,6 @@ mindplot.Topic = new Class({
var outerShape = this.getOuterShape();
var innerShape = this.getInnerShape();
var connector = this.getShrinkConnector();
outerShape.setSize(size.width + 4, size.height + 6);
innerShape.setSize(size.width, size.height);
@@ -1177,7 +1176,7 @@ mindplot.Topic = new Class({
},
createDragNode : function() {
var dragNode = mindplot.NodeGraph.prototype.createDragNode.call(this);
this.parent();
// Is the node already connected ?
var targetTopic = this.getOutgoingConnectedTopic();

View File

@@ -1,53 +0,0 @@
/*
* 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.
*/
//@Todo: Por que lo cambiaste a Board ?
mindplot.TopicBoard = new Class({
initialize: function() {
this._height = null;
},
_removeEntryByOrder : function(order, position) {
var board = this._getBoard(position);
var entry = board.lookupEntryByOrder(order);
$assert(!entry.isAvailable(), 'Entry must not be available in order to be removed.Entry Order:' + order);
entry.removeTopic();
board.update(entry);
},
removeTopicFromBoard : function(topic) {
var position = topic.getPosition();
var order = topic.getOrder();
this._removeEntryByOrder(order, position);
topic.setOrder(null);
},
positionateDragTopic :function(dragTopic) {
throw "this method must be overrided";
},
getHeight: function() {
var board = this._getBoard();
return board.getHeight();
}
}
);

View File

@@ -15,8 +15,3 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
if($defined(afterMindpotLibraryLoading))
{
afterMindpotLibraryLoading();
}