switch icons on circle/square tools
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@179 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
07c349048a
commit
f3c4a87bed
|
@ -220,36 +220,42 @@ function svg_edit_setup() {
|
||||||
if (toolButtonClick('#tools_rect_show')) {
|
if (toolButtonClick('#tools_rect_show')) {
|
||||||
svgCanvas.setMode('square');
|
svgCanvas.setMode('square');
|
||||||
}
|
}
|
||||||
|
$('#tools_rect_show').attr('src', 'images/square.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
var clickRect = function(){
|
var clickRect = function(){
|
||||||
if (toolButtonClick('#tools_rect_show')) {
|
if (toolButtonClick('#tools_rect_show')) {
|
||||||
svgCanvas.setMode('rect');
|
svgCanvas.setMode('rect');
|
||||||
}
|
}
|
||||||
|
$('#tools_rect_show').attr('src', 'images/rect.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
var clickFHRect = function(){
|
var clickFHRect = function(){
|
||||||
if (toolButtonClick('#tools_rect_show')) {
|
if (toolButtonClick('#tools_rect_show')) {
|
||||||
svgCanvas.setMode('fhrect');
|
svgCanvas.setMode('fhrect');
|
||||||
}
|
}
|
||||||
|
$('#tools_rect_show').attr('src', 'images/freehand-square.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
var clickCircle = function(){
|
var clickCircle = function(){
|
||||||
if (toolButtonClick('#tools_ellipse_show')) {
|
if (toolButtonClick('#tools_ellipse_show')) {
|
||||||
svgCanvas.setMode('circle');
|
svgCanvas.setMode('circle');
|
||||||
}
|
}
|
||||||
|
$('#tools_ellipse_show').attr('src', 'images/circle.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
var clickEllipse = function(){
|
var clickEllipse = function(){
|
||||||
if (toolButtonClick('#tools_ellipse_show')) {
|
if (toolButtonClick('#tools_ellipse_show')) {
|
||||||
svgCanvas.setMode('ellipse');
|
svgCanvas.setMode('ellipse');
|
||||||
}
|
}
|
||||||
|
$('#tools_ellipse_show').attr('src', 'images/ellipse.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
var clickFHEllipse = function(){
|
var clickFHEllipse = function(){
|
||||||
if (toolButtonClick('#tools_ellipse_show')) {
|
if (toolButtonClick('#tools_ellipse_show')) {
|
||||||
svgCanvas.setMode('fhellipse');
|
svgCanvas.setMode('fhellipse');
|
||||||
}
|
}
|
||||||
|
$('#tools_ellipse_show').attr('src', 'images/freehand-circle.png');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete is a contextual tool that only appears in the ribbon if
|
// Delete is a contextual tool that only appears in the ribbon if
|
||||||
|
|
Loading…
Reference in New Issue