mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
Add Icon for "Select within distance" + add it to Vector -> Research Tools menu under "Select by location" (#50446)
* add Select within distance icon * add select within distance to Vector -> research Tools Menu * rework image according to review * align image to grid
This commit is contained in:
parent
93cdcb68b1
commit
627f43b495
@ -129,6 +129,7 @@
|
||||
<file>themes/default/algorithms/mAlgorithmRegularPoints.svg</file>
|
||||
<file>themes/default/algorithms/mAlgorithmRoundRastervalues.svg</file>
|
||||
<file>themes/default/algorithms/mAlgorithmSelectLocation.svg</file>
|
||||
<file>themes/default/algorithms/mAlgorithmSelectDistance.svg</file>
|
||||
<file>themes/default/algorithms/mAlgorithmSelectRandom.svg</file>
|
||||
<file>themes/default/algorithms/mAlgorithmSimplify.svg</file>
|
||||
<file>themes/default/algorithms/mAlgorithmSingleToMulti.svg</file>
|
||||
|
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
height="24"
|
||||
width="24"
|
||||
version="1.1"
|
||||
id="svg10"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs14" />
|
||||
<path
|
||||
d="M 1.5,1.5 H 22.5 V 22.5 H 1.5 Z"
|
||||
fill="#fce94f"
|
||||
stroke="#c4a000"
|
||||
stroke-linecap="round"
|
||||
id="distance-selection"
|
||||
style="stroke:#c4a000;stroke-width:1;stroke-dasharray:none;stroke-opacity:1" />
|
||||
<path
|
||||
d="M 5.5,5.5 H 18.5 V 18.5 H 5.5 Z"
|
||||
fill="#7ea57e"
|
||||
stroke="#c4a000"
|
||||
stroke-linecap="round"
|
||||
id="from-object"
|
||||
style="stroke:#555753;stroke-width:1;stroke-dasharray:none;stroke-opacity:1" />
|
||||
</svg>
|
After Width: | Height: | Size: 695 B |
@ -67,6 +67,7 @@ def initMenusAndToolbars():
|
||||
'native:randompointsonlines': researchToolsMenu,
|
||||
'qgis:regularpoints': researchToolsMenu,
|
||||
'native:selectbylocation': researchToolsMenu,
|
||||
'native:selectwithindistance': researchToolsMenu,
|
||||
'native:polygonfromlayerextent': researchToolsMenu})
|
||||
geoprocessingToolsMenu = vectorMenu + "/" + Processing.tr('&Geoprocessing Tools')
|
||||
defaultMenuEntries.update({'native:buffer': geoprocessingToolsMenu,
|
||||
|
@ -64,6 +64,8 @@ class QgsSelectWithinDistanceAlgorithm : public QgsDistanceWithinAlgorithm
|
||||
|
||||
QgsSelectWithinDistanceAlgorithm() = default;
|
||||
void initAlgorithm( const QVariantMap &configuration = QVariantMap() ) override;
|
||||
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmSelectDistance.svg" ) ); }
|
||||
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmSelectDistance.svg" ) ); }
|
||||
QString name() const override;
|
||||
Flags flags() const override;
|
||||
QString displayName() const override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user