QGIS/images/themes/default/mIconLabelQuadrantOffset.svg
Larry Shaffer 45f374f428 Update labeling gui and add expression support as data defined value
- Add QgsDataDefined class
- Add QgsDataDefinedButton class
- Add data defined Python support
- Add standalone SVG selector dialog to QgsSvgSelectorWidget class

- Fix for #4607, show only pertinent fields when setting a data defined value
- Fix for #5048 and #5049, data defined settings are literally used
- Fix for #5726, number formatting does not work for expressions
- Fix for #7755, using bufferSize to enable/disable label buffer is confusing
- Fix for #7779, labels do not register in label collision engine; and for #4719, inactive options in labeling dialog
- Prepare label text's expression upfront when preparing layer; makes rendering much faster
- Change name of 'feature obstacles' to appropriate terminology
2013-05-20 12:22:29 -06:00

105 lines
9.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="22px"
height="16px" viewBox="21 24 22 16" enable-background="new 21 24 22 16" xml:space="preserve">
<g id="labelquadrant" inkscape:export-filename="/mnt/home1/robert/svn/graphics/trunk/toolbar-icons/24x24/label.png" inkscape:export-xdpi="90" inkscape:export-ydpi="90" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" inkscape:version="0.47 r22583" sodipodi:docname="label.svg">
<g display="none" enable-background="new ">
<circle display="inline" fill="#CCCCCC" stroke="#000000" stroke-miterlimit="10" cx="23.886" cy="32" r="3.286"/>
<linearGradient id="path4080-2_3_" gradientUnits="userSpaceOnUse" x1="-38.1597" y1="121.3066" x2="-40.4865" y2="124.7969" gradientTransform="matrix(1.3333 0 0 -1.3333 90.9203 197.4109)">
<stop offset="0" style="stop-color:#EDD400"/>
<stop offset="1" style="stop-color:#FFF17A"/>
</linearGradient>
<path id="path4080-2_1_" inkscape:connector-curvature="0" sodipodi:nodetypes="cccccc" display="inline" fill="url(#path4080-2_3_)" stroke="#C4A000" stroke-linecap="round" stroke-linejoin="round" d="
M28.504,31.502l2.958-4.069h11.841v8.135H31.462L28.504,31.502z"/>
<path display="inline" fill="#2E3436" d="M34.678,33.735v0.125h-1.013c-0.07-0.117-0.106-0.25-0.106-0.397
c-0.329,0.377-0.692,0.565-1.093,0.565c-0.346,0-0.629-0.124-0.846-0.372c-0.169-0.2-0.253-0.472-0.253-0.816
c0-0.702,0.353-1.118,1.066-1.251l0.375-0.074c0.301-0.052,0.485-0.097,0.552-0.131c0.005-0.005,0.016-0.012,0.034-0.021
c0.105-0.064,0.159-0.167,0.159-0.308c0-0.265-0.181-0.397-0.54-0.397c-0.301,0-0.494,0.079-0.582,0.235l-0.06,0.176l-0.02,0.132
h-0.905c0.058-0.915,0.573-1.373,1.546-1.373c0.982,0,1.474,0.406,1.474,1.218v2.205c0,0.165,0.058,0.312,0.174,0.439
C34.652,33.708,34.666,33.722,34.678,33.735z M33.553,32.267v-0.281c-0.086,0.043-0.217,0.088-0.394,0.126l-0.32,0.066
c-0.294,0.068-0.467,0.191-0.516,0.369l-0.02,0.177c0,0.238,0.11,0.391,0.329,0.454c0.054,0.017,0.114,0.021,0.181,0.021
c0.386,0,0.62-0.201,0.704-0.608C33.541,32.493,33.553,32.386,33.553,32.267z"/>
<path display="inline" fill="#2E3436" d="M35.166,28.509h0.933v1.9c0.222-0.386,0.554-0.581,0.993-0.581
c0.377,0,0.702,0.147,0.973,0.44c0.059,0.064,0.111,0.13,0.154,0.199c0.258,0.411,0.387,0.897,0.387,1.46
c0,0.674-0.176,1.215-0.526,1.626c-0.28,0.317-0.608,0.478-0.987,0.478c-0.439,0-0.771-0.191-0.993-0.573v0.403h-0.933V28.509
L35.166,28.509z M36.885,30.688c-0.293,0-0.514,0.173-0.66,0.521l-0.08,0.257c-0.031,0.141-0.047,0.291-0.047,0.447
c0,0.537,0.134,0.91,0.4,1.119c0.111,0.095,0.239,0.14,0.387,0.14c0.285,0,0.504-0.167,0.654-0.506
c0.088-0.211,0.133-0.456,0.133-0.729c0-0.5-0.126-0.861-0.375-1.086C37.174,30.741,37.035,30.688,36.885,30.688z"/>
<path display="inline" fill="#2E3436" d="M42.32,31.378h-0.893c-0.074-0.377-0.211-0.603-0.406-0.676l-0.186-0.044
c-0.021,0-0.045,0-0.073,0c-0.273,0-0.466,0.112-0.578,0.337c-0.119,0.249-0.18,0.57-0.18,0.962c0,0.601,0.146,0.985,0.44,1.156
c0.099,0.058,0.203,0.087,0.318,0.087c0.266,0,0.455-0.133,0.57-0.404c0.037-0.087,0.066-0.19,0.094-0.306h0.893
c-0.059,0.605-0.299,1.043-0.727,1.314c-0.244,0.151-0.523,0.227-0.836,0.227c-0.701,0-1.191-0.302-1.466-0.91
c-0.147-0.324-0.222-0.709-0.222-1.165c0-0.913,0.266-1.542,0.795-1.885c0.254-0.161,0.555-0.243,0.904-0.243
c0.611,0,1.055,0.24,1.324,0.721c0.086,0.162,0.148,0.339,0.188,0.535C42.299,31.177,42.312,31.274,42.32,31.378z"/>
</g>
<g display="none" enable-background="new ">
<circle display="inline" fill="#CCCCCC" stroke="#000000" stroke-miterlimit="10" cx="40.117" cy="32" r="3.286"/>
<linearGradient id="path4080-2_4_" gradientUnits="userSpaceOnUse" x1="-44.0913" y1="121.3066" x2="-46.4175" y2="124.7959" gradientTransform="matrix(1.3333 0 0 -1.3333 90.9203 197.4109)">
<stop offset="0" style="stop-color:#EDD400"/>
<stop offset="1" style="stop-color:#FFF17A"/>
</linearGradient>
<path id="path4080-2" inkscape:connector-curvature="0" sodipodi:nodetypes="cccccc" display="inline" fill="url(#path4080-2_4_)" stroke="#C4A000" stroke-linecap="round" stroke-linejoin="round" d="
M20.601,31.502l2.958-4.069h11.834v8.135H23.558L20.601,31.502z"/>
<path display="inline" fill="#2E3436" d="M26.768,33.735v0.125h-1.013c-0.07-0.117-0.107-0.25-0.107-0.397
c-0.329,0.377-0.692,0.565-1.092,0.565c-0.343,0-0.623-0.124-0.84-0.372c-0.169-0.2-0.253-0.472-0.253-0.816
c0-0.702,0.353-1.118,1.06-1.251l0.374-0.074c0.302-0.052,0.486-0.097,0.553-0.131c0.004-0.005,0.016-0.012,0.034-0.021
c0.106-0.064,0.16-0.167,0.16-0.308c0-0.265-0.18-0.397-0.54-0.397c-0.302,0-0.495,0.079-0.581,0.235l-0.06,0.176l-0.02,0.132
h-0.9c0.058-0.915,0.571-1.373,1.54-1.373c0.982,0,1.474,0.406,1.474,1.218v2.205c0,0.165,0.057,0.312,0.173,0.439
C26.742,33.708,26.756,33.722,26.768,33.735z M25.642,32.267v-0.281c-0.085,0.043-0.216,0.088-0.393,0.126l-0.321,0.066
c-0.293,0.068-0.464,0.191-0.513,0.369l-0.021,0.177c0,0.238,0.109,0.391,0.328,0.454c0.053,0.017,0.114,0.021,0.18,0.021
c0.387,0,0.622-0.201,0.706-0.608C25.63,32.493,25.642,32.386,25.642,32.267z"/>
<path display="inline" fill="#2E3436" d="M27.255,28.509h0.933v1.9c0.222-0.386,0.553-0.581,0.993-0.581
c0.377,0,0.703,0.147,0.973,0.44c0.059,0.064,0.111,0.13,0.155,0.199c0.257,0.411,0.386,0.897,0.386,1.46
c0,0.674-0.175,1.215-0.526,1.626c-0.281,0.317-0.608,0.478-0.987,0.478c-0.44,0-0.771-0.191-0.994-0.573v0.403h-0.933V28.509
L27.255,28.509z M28.975,30.688c-0.293,0-0.513,0.173-0.66,0.521l-0.081,0.257c-0.031,0.141-0.046,0.291-0.046,0.447
c0,0.537,0.133,0.91,0.399,1.119c0.112,0.095,0.24,0.14,0.387,0.14c0.285,0,0.503-0.167,0.654-0.506
c0.088-0.211,0.132-0.456,0.132-0.729c0-0.5-0.125-0.861-0.374-1.086C29.263,30.741,29.125,30.688,28.975,30.688z"/>
<path display="inline" fill="#2E3436" d="M34.41,31.378h-0.893c-0.074-0.377-0.211-0.603-0.406-0.676l-0.186-0.044
c-0.021,0-0.045,0-0.073,0c-0.273,0-0.465,0.112-0.578,0.337c-0.119,0.249-0.18,0.57-0.18,0.962c0,0.601,0.146,0.985,0.44,1.156
c0.099,0.058,0.203,0.087,0.318,0.087c0.266,0,0.455-0.133,0.57-0.404c0.037-0.087,0.066-0.19,0.094-0.306h0.893
c-0.059,0.605-0.299,1.043-0.727,1.314c-0.244,0.151-0.523,0.227-0.836,0.227c-0.702,0-1.191-0.302-1.466-0.91
c-0.147-0.324-0.221-0.709-0.221-1.165c0-0.913,0.265-1.542,0.795-1.885c0.253-0.161,0.554-0.243,0.904-0.243
c0.611,0,1.055,0.24,1.324,0.721c0.086,0.162,0.148,0.339,0.188,0.535C34.389,31.177,34.402,31.274,34.41,31.378z"/>
</g>
<circle display="none" stroke="#000000" stroke-width="2" stroke-miterlimit="10" cx="32.298" cy="32" r="6.956"/>
<g enable-background="new ">
<linearGradient id="path4080-2_5_" gradientUnits="userSpaceOnUse" x1="-40.9458" y1="120.1816" x2="-43.7345" y2="124.3646" gradientTransform="matrix(1.3333 0 0 -1.3333 90.9203 197.4109)">
<stop offset="0" style="stop-color:#DBDBDB"/>
<stop offset="0.6087" style="stop-color:#F4F4F4"/>
<stop offset="1" style="stop-color:#FFFFFF"/>
</linearGradient>
<path id="path4080-2_2_" inkscape:connector-curvature="0" sodipodi:nodetypes="cccccc" fill="url(#path4080-2_5_)" stroke="#808080" stroke-linecap="round" stroke-linejoin="round" d="
M22.116,32.102l3.708-4.659h14.843v9.316H25.824L22.116,32.102z"/>
<path fill="#2E3436" d="M29.856,34.662v0.142h-1.27c-0.088-0.134-0.134-0.286-0.134-0.455c-0.413,0.431-0.868,0.646-1.371,0.646
c-0.434,0-0.789-0.142-1.061-0.425c-0.213-0.229-0.317-0.539-0.317-0.935c0-0.806,0.442-1.28,1.336-1.435l0.47-0.084
c0.377-0.06,0.608-0.11,0.691-0.15c0.006-0.005,0.02-0.013,0.042-0.024c0.133-0.073,0.2-0.191,0.2-0.352
c0-0.304-0.227-0.454-0.677-0.454c-0.378,0-0.62,0.089-0.73,0.269l-0.075,0.202l-0.024,0.151h-1.136
c0.073-1.046,0.719-1.571,1.938-1.571c1.232,0,1.848,0.464,1.848,1.394v2.527c0,0.189,0.072,0.357,0.218,0.504
C29.825,34.629,29.842,34.646,29.856,34.662z M28.446,32.979v-0.321c-0.108,0.05-0.272,0.102-0.494,0.145l-0.402,0.076
c-0.369,0.076-0.585,0.219-0.646,0.422l-0.024,0.202c0,0.273,0.138,0.447,0.413,0.52c0.067,0.021,0.143,0.024,0.227,0.024
c0.484,0,0.777-0.23,0.883-0.696C28.431,33.237,28.446,33.116,28.446,32.979z"/>
<path fill="#2E3436" d="M30.469,28.675h1.169v2.176c0.278-0.442,0.694-0.664,1.242-0.664c0.471,0,0.879,0.167,1.218,0.504
c0.074,0.073,0.14,0.149,0.194,0.227c0.322,0.471,0.486,1.028,0.486,1.673c0,0.771-0.222,1.391-0.66,1.861
c-0.352,0.363-0.764,0.547-1.238,0.547c-0.547,0-0.962-0.22-1.242-0.655v0.461h-1.169V28.675L30.469,28.675z M32.62,31.169
c-0.363,0-0.64,0.199-0.824,0.597l-0.1,0.295c-0.04,0.162-0.059,0.334-0.059,0.514c0,0.615,0.167,1.041,0.503,1.279
c0.139,0.11,0.298,0.16,0.48,0.16c0.357,0,0.633-0.19,0.819-0.578c0.111-0.242,0.167-0.521,0.167-0.835
c0-0.575-0.157-0.988-0.47-1.247C32.981,31.23,32.809,31.169,32.62,31.169z"/>
<path fill="#2E3436" d="M39.435,31.96h-1.119c-0.093-0.432-0.265-0.69-0.51-0.773l-0.231-0.051c-0.027,0-0.057,0-0.093,0
c-0.343,0-0.584,0.128-0.726,0.386c-0.148,0.285-0.225,0.652-0.225,1.104c0,0.687,0.185,1.127,0.553,1.322
c0.124,0.065,0.254,0.101,0.399,0.101c0.334,0,0.571-0.152,0.714-0.464c0.048-0.099,0.084-0.219,0.118-0.352h1.119
c-0.073,0.694-0.374,1.196-0.91,1.506c-0.307,0.174-0.656,0.259-1.049,0.259c-0.879,0-1.494-0.346-1.838-1.043
c-0.186-0.37-0.277-0.811-0.277-1.333c0-1.046,0.333-1.766,0.995-2.159c0.319-0.184,0.696-0.278,1.135-0.278
c0.768,0,1.322,0.274,1.661,0.825c0.107,0.185,0.185,0.389,0.234,0.612C39.409,31.73,39.425,31.841,39.435,31.96z"/>
</g>
</g>
<g id="buffer">
</g>
</svg>