Woops again, left a debug alert in by accident
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@274 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
@@ -368,7 +368,6 @@ function svg_edit_setup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var clickBold = function(){
|
var clickBold = function(){
|
||||||
alert('wah?')
|
|
||||||
svgCanvas.setBold( !svgCanvas.getBold() );
|
svgCanvas.setBold( !svgCanvas.getBold() );
|
||||||
updateContextPanel();
|
updateContextPanel();
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1533,8 +1533,19 @@ function SvgCanvas(c)
|
|||||||
undoStackPointer = 0;
|
undoStackPointer = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
this.getUndoStackSize = function() { return undoStackPointer; }
|
this.getUndoStackSize = function() { return undoStackPointer; };
|
||||||
this.getRedoStackSize = function() { return undoStack.length - undoStackPointer; }
|
this.getRedoStackSize = function() { return undoStack.length - undoStackPointer; };
|
||||||
|
|
||||||
|
this.getNextUndoCommandText = function() {
|
||||||
|
if (undoStackPointer > 0)
|
||||||
|
return undoStack[undoStackPointer-1].text;
|
||||||
|
return "";
|
||||||
|
};
|
||||||
|
this.getNextRedoCommandText = function() {
|
||||||
|
if (undoStackPointer < undoStack.length)
|
||||||
|
return undoStack[undoStackPointer].text;
|
||||||
|
return "";
|
||||||
|
};
|
||||||
|
|
||||||
this.undo = function() {
|
this.undo = function() {
|
||||||
if (undoStackPointer > 0) {
|
if (undoStackPointer > 0) {
|
||||||
@@ -1543,7 +1554,7 @@ function SvgCanvas(c)
|
|||||||
cmd.unapply();
|
cmd.unapply();
|
||||||
call("changed", cmd.elements());
|
call("changed", cmd.elements());
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
this.redo = function() {
|
this.redo = function() {
|
||||||
if (undoStackPointer < undoStack.length && undoStack.length > 0) {
|
if (undoStackPointer < undoStack.length && undoStack.length > 0) {
|
||||||
this.clearSelection();
|
this.clearSelection();
|
||||||
|
|||||||
Reference in New Issue
Block a user