added move to top/bottom feature

reworked context panels


git-svn-id: http://svg-edit.googlecode.com/svn/trunk@144 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Pavol Rusnak
2009-06-17 20:08:53 +00:00
parent 2be195c275
commit 28af49697d
8 changed files with 74 additions and 16 deletions

View File

@@ -795,6 +795,26 @@ function SvgCanvas(c)
}
}
this.moveToTopSelectedElement = function() {
if (selected != null) {
var t = selected;
t.parentNode.appendChild(t);
}
else {
alert("Error! Nothing selected!");
}
}
this.moveToBottomSelectedElement = function() {
if (selected != null) {
var t = selected;
t.parentNode.insertBefore(t, t.parentNode.firstChild);
}
else {
alert("Error! Nothing selected!");
}
}
}
// Static class for various utility functions