[QGIS Commit] r8896 - trunk/qgis/src/plugins/scale_bar

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Jul 25 06:23:21 EDT 2008


Author: timlinux
Date: 2008-07-25 06:23:21 -0400 (Fri, 25 Jul 2008)
New Revision: 8896

Added:
   trunk/qgis/src/plugins/scale_bar/scalebar.svg
Removed:
   trunk/qgis/src/plugins/scale_bar/icon.xcf
   trunk/qgis/src/plugins/scale_bar/icon.xpm
Modified:
   trunk/qgis/src/plugins/scale_bar/plugin.cpp
   trunk/qgis/src/plugins/scale_bar/scalebar.png
Log:
Icon updates for plugins (icon is now created in svg and uses qt resources instead of xpm)



Deleted: trunk/qgis/src/plugins/scale_bar/icon.xcf
===================================================================
(Binary files differ)

Deleted: trunk/qgis/src/plugins/scale_bar/icon.xpm
===================================================================
(Binary files differ)

Modified: trunk/qgis/src/plugins/scale_bar/plugin.cpp
===================================================================
--- trunk/qgis/src/plugins/scale_bar/plugin.cpp	2008-07-25 09:29:18 UTC (rev 8895)
+++ trunk/qgis/src/plugins/scale_bar/plugin.cpp	2008-07-25 10:23:21 UTC (rev 8896)
@@ -49,8 +49,6 @@
 //the gui subclass
 #include "plugingui.h"
 
-// xpm for creating the toolbar icon
-#include "icon.xpm"
 //
 
 #ifdef _MSC_VER
@@ -99,7 +97,7 @@
 void QgsScaleBarPlugin::initGui()
 {
   // Create the action for tool
-  myQActionPointer = new QAction(QIcon(icon), tr("&Scale Bar"), this);
+  myQActionPointer = new QAction(QIcon(":/scalebar.png"), tr("&Scale Bar"), this);
   myQActionPointer->setWhatsThis(tr("Creates a scale bar that is displayed on the map canvas"));
   // Connect the action to the run
   connect(myQActionPointer, SIGNAL(activated()), this, SLOT(run()));

Modified: trunk/qgis/src/plugins/scale_bar/scalebar.png
===================================================================
(Binary files differ)

Added: trunk/qgis/src/plugins/scale_bar/scalebar.svg
===================================================================
--- trunk/qgis/src/plugins/scale_bar/scalebar.svg	                        (rev 0)
+++ trunk/qgis/src/plugins/scale_bar/scalebar.svg	2008-07-25 10:23:21 UTC (rev 8896)
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="32"
+   height="32"
+   id="svg2"
+   sodipodi:version="0.32"
+   inkscape:version="0.46"
+   version="1.0"
+   sodipodi:docname="scalebar.svg"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape">
+  <defs
+     id="defs4">
+    <marker
+       inkscape:stockid="Arrow2Mend"
+       orient="auto"
+       refY="0.0"
+       refX="0.0"
+       id="Arrow2Mend"
+       style="overflow:visible;">
+      <path
+         id="path3704"
+         style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;"
+         d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
+         transform="scale(0.6) rotate(180) translate(0,0)" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow2Lend"
+       orient="auto"
+       refY="0.0"
+       refX="0.0"
+       id="Arrow2Lend"
+       style="overflow:visible;">
+      <path
+         id="path3698"
+         style="font-size:12.0;fill-rule:evenodd;stroke-width:0.62500000;stroke-linejoin:round;"
+         d="M 8.7185878,4.0337352 L -2.2072895,0.016013256 L 8.7185884,-4.0017078 C 6.9730900,-1.6296469 6.9831476,1.6157441 8.7185878,4.0337352 z "
+         transform="scale(1.1) rotate(180) translate(1,0)" />
+    </marker>
+    <marker
+       inkscape:stockid="Arrow1Lend"
+       orient="auto"
+       refY="0.0"
+       refX="0.0"
+       id="Arrow1Lend"
+       style="overflow:visible;">
+      <path
+         id="path3680"
+         d="M 0.0,0.0 L 5.0,-5.0 L -12.5,0.0 L 5.0,5.0 L 0.0,0.0 z "
+         style="fill-rule:evenodd;stroke:#000000;stroke-width:1.0pt;marker-start:none;"
+         transform="scale(0.8) rotate(180) translate(12.5,0)" />
+    </marker>
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 526.18109 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="744.09448 : 526.18109 : 1"
+       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+       id="perspective10" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="24.1875"
+     inkscape:cx="7.4625323"
+     inkscape:cy="16"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1680"
+     inkscape:window-height="975"
+     inkscape:window-x="0"
+     inkscape:window-y="49" />
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Camada 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <path
+       style="fill:#54d0ff;fill-rule:evenodd;stroke:#000000;stroke-width:1.08493482999999991px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1"
+       d="M 1.0347155,18.272778 L 30.998115,18.232422 L 31.047972,14.802157 L 1.0845714,14.802157 L 1.0347155,18.272778 z"
+       id="path2383"
+       sodipodi:nodetypes="ccccc" />
+    <path
+       style="fill:#000000;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1"
+       d="M 7.7312661,14.801034 L 7.7312661,18.273902 L 13.312661,18.273902 L 13.312661,14.801034 L 7.7312661,14.801034 z"
+       id="path2385" />
+    <path
+       style="fill:#000000;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;fill-opacity:1"
+       d="M 19.369509,14.75969 L 19.369509,18.232558 L 24.950904,18.232558 L 24.950904,14.75969 L 19.369509,14.75969 z"
+       id="path2387" />
+    <text
+       xml:space="preserve"
+       style="font-size:4.56593323px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans"
+       x="5.943346"
+       y="23.257723"
+       id="text5520"><tspan
+         sodipodi:role="line"
+         id="tspan5522"
+         x="5.943346"
+         y="23.257723">1:50 000</tspan></text>
+  </g>
+</svg>



More information about the QGIS-commit mailing list