switch icons on circle/square tools

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@179 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Pavol Rusnak 2009-06-23 07:53:32 +00:00
parent 07c349048a
commit f3c4a87bed
1 changed files with 6 additions and 0 deletions

View File

@ -220,36 +220,42 @@ function svg_edit_setup() {
if (toolButtonClick('#tools_rect_show')) {
svgCanvas.setMode('square');
}
$('#tools_rect_show').attr('src', 'images/square.png');
}
var clickRect = function(){
if (toolButtonClick('#tools_rect_show')) {
svgCanvas.setMode('rect');
}
$('#tools_rect_show').attr('src', 'images/rect.png');
}
var clickFHRect = function(){
if (toolButtonClick('#tools_rect_show')) {
svgCanvas.setMode('fhrect');
}
$('#tools_rect_show').attr('src', 'images/freehand-square.png');
}
var clickCircle = function(){
if (toolButtonClick('#tools_ellipse_show')) {
svgCanvas.setMode('circle');
}
$('#tools_ellipse_show').attr('src', 'images/circle.png');
}
var clickEllipse = function(){
if (toolButtonClick('#tools_ellipse_show')) {
svgCanvas.setMode('ellipse');
}
$('#tools_ellipse_show').attr('src', 'images/ellipse.png');
}
var clickFHEllipse = function(){
if (toolButtonClick('#tools_ellipse_show')) {
svgCanvas.setMode('fhellipse');
}
$('#tools_ellipse_show').attr('src', 'images/freehand-circle.png');
}
// Delete is a contextual tool that only appears in the ribbon if