File tree Expand file tree Collapse file tree 5 files changed +19
-0
lines changed Expand file tree Collapse file tree 5 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 2929
3030from typing import Dict
3131
32+ from qgis .PyQt .QtGui import QIcon
3233from qgis .core import (
3334 QgsWkbTypes ,
3435 QgsFeature ,
4344)
4445
4546from qgis .PyQt .QtCore import QMetaType
47+
48+ from ..utils .gui import GuiUtils
4649from ..utils .wrapper import create_qgs_field
4750
4851
@@ -175,3 +178,7 @@ def displayName(self) -> str:
175178 :return:
176179 """
177180 return self .tr ("Export Network from Map" )
181+
182+ def icon (self ):
183+ icon_path = GuiUtils .get_icon ("icon_export.png" )
184+ return QIcon (icon_path )
Original file line number Diff line number Diff line change 2929
3030from typing import Dict
3131
32+ from qgis .PyQt .QtGui import QIcon
3233from qgis .PyQt .QtCore import QMetaType
3334from qgis .core import (
3435 QgsProcessingParameterFeatureSource ,
4243)
4344
4445from ORStools .common import PROFILES
46+ from ORStools .utils .gui import GuiUtils
4547from ORStools .utils .processing import get_snapped_point_features
4648from ORStools .proc .base_processing_algorithm import ORSBaseProcessingAlgorithm
4749from ORStools .utils import exceptions , logger , transform
@@ -141,3 +143,7 @@ def displayName(self) -> str:
141143 :return:
142144 """
143145 return self .tr ("Snap from Point Layer" )
146+
147+ def icon (self ):
148+ icon_path = GuiUtils .get_icon ("icon_snap.png" )
149+ return QIcon (icon_path )
Original file line number Diff line number Diff line change 2929
3030from typing import Dict
3131
32+ from qgis .PyQt .QtGui import QIcon
3233from qgis .PyQt .QtCore import QMetaType
3334from qgis .core import (
3435 QgsProcessingParameterPoint ,
4142)
4243
4344from ORStools .common import PROFILES
45+ from ORStools .utils .gui import GuiUtils
4446from ORStools .utils .processing import get_snapped_point_features
4547from ORStools .proc .base_processing_algorithm import ORSBaseProcessingAlgorithm
4648from ORStools .utils import exceptions , logger
@@ -126,3 +128,7 @@ def displayName(self) -> str:
126128 :return:
127129 """
128130 return self .tr ("Snap from Point" )
131+
132+ def icon (self ):
133+ icon_path = GuiUtils .get_icon ("icon_snap.png" )
134+ return QIcon (icon_path )
You can’t perform that action at this time.
0 commit comments