diff --git a/config.json b/config.json index 63aae78..02956e9 100644 --- a/config.json +++ b/config.json @@ -1,18 +1,18 @@ { "general": { - "name" : "QGIS GEA afforestation tool", + "name" : "EPAL - Eligible Project Area Locator.", "qgisMinimumVersion": 3.20, "qgisMaximumVersion": 3.99, - "icon": "icon.png", + "icon": "icon.svg", "experimental": false, "deprecated": false, "homepage": "https://github.com/kartoza/qgis-gea-plugin", "tracker": "https://github.com/kartoza/qgis-gea-plugin/issues", "repository": "https://github.com/kartoza/qgis-gea-plugin", - "tags": ["gea", "maps", "afforestation"], + "tags": ["epal", "maps", "afforestation"], "category": ["plugins"], "hasProcessingProvider": "no", - "about": "Adds functionality inside QGIS to enable GEA afforestation visualization and analysis.", + "about": "Adds functionality inside QGIS to enable EPAL afforestation visualization and analysis.", "author": "Kartoza", "email": "info@kartoza.com", "description": "View, browse and navigate through imagery.", diff --git a/resources/icon.svg b/resources/icon.svg new file mode 100644 index 0000000..4b8e5c4 --- /dev/null +++ b/resources/icon.svg @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + diff --git a/resources/resources.qrc b/resources/resources.qrc index 94499f0..4455d88 100644 --- a/resources/resources.qrc +++ b/resources/resources.qrc @@ -1,5 +1,5 @@ - icon.png + icon.svg diff --git a/src/qgis_gea_plugin/__init__.py b/src/qgis_gea_plugin/__init__.py index 4165a31..145b46a 100644 --- a/src/qgis_gea_plugin/__init__.py +++ b/src/qgis_gea_plugin/__init__.py @@ -3,7 +3,7 @@ /*************************************************************************** QgisGea - A QGIS plugin that enables usage of the GEA afforestation data visualization. + A QGIS plugin that enables usage of the EPAL afforestation data visualization. ------------------- begin : 2024-06-27 copyright : (C) 2024 by Kartoza diff --git a/src/qgis_gea_plugin/definitions/defaults.py b/src/qgis_gea_plugin/definitions/defaults.py index 04d429e..957853d 100644 --- a/src/qgis_gea_plugin/definitions/defaults.py +++ b/src/qgis_gea_plugin/definitions/defaults.py @@ -3,7 +3,7 @@ Definitions for all defaults settings """ -PLUGIN_ICON = ":/plugins/qgis_gea_plugin/icon.png" +PLUGIN_ICON = ":/plugins/qgis_gea_plugin/icon.svg" ANIMATION_PLAY_ICON = ":/images/themes/default/mActionPlay.svg" ANIMATION_PAUSE_ICON = ":/images/themes/default/temporal_navigation/pause.svg" diff --git a/src/qgis_gea_plugin/gui/attribute_form.py b/src/qgis_gea_plugin/gui/attribute_form.py index 28caee0..845d950 100644 --- a/src/qgis_gea_plugin/gui/attribute_form.py +++ b/src/qgis_gea_plugin/gui/attribute_form.py @@ -90,7 +90,7 @@ def accept(self): if fields.indexFromName(field) != -1: reply = QtWidgets.QMessageBox.warning( self, - tr("QGIS GEA PLUGIN"), + tr("QGIS EPAL PLUGIN"), tr('Field "{}" already exists in the layer.' 'Do you want to proceed and overwrite it?'). format(field), diff --git a/src/qgis_gea_plugin/main.py b/src/qgis_gea_plugin/main.py index 287ac01..59a1b63 100644 --- a/src/qgis_gea_plugin/main.py +++ b/src/qgis_gea_plugin/main.py @@ -38,10 +38,10 @@ def __init__(self, iface): # Declare instance attributes self.actions = [] - self.menu = self.tr("&QGIS GEA Afforestation tool") + self.menu = self.tr("&EPAL - Eligible Project Area Locator.") self.pluginIsActive = False - self.toolbar = self.iface.addToolBar("Open QGIS GEA Afforestation tool") - self.toolbar.setObjectName("QGIS GEA Afforestation tool") + self.toolbar = self.iface.addToolBar("Open EPAL - Eligible Project Area Locator") + self.toolbar.setObjectName("EPAL - Eligible Project Area Locator.") self.main_widget = QgisGeaPlugin( iface=self.iface, parent=self.iface.mainWindow() @@ -57,7 +57,7 @@ def tr(self, message): :rtype: QString """ # noinspection PyTypeChecker,PyArgumentList,PyCallByClass - return QCoreApplication.translate("QGIS GEA plugin", message) + return QCoreApplication.translate("EPAL - Eligible Project Area Locator", message) def add_action( self, @@ -141,7 +141,7 @@ def add_action( def initGui(self): """Create the menu entries and toolbar icons inside the QGIS GUI.""" - icon_path = ":/plugins/qgis_gea_plugin/icon.png" + icon_path = ":/plugins/qgis_gea_plugin/icon.svg" self.add_action( icon_path, text=self.tr("Open Plugin"), @@ -157,8 +157,8 @@ def unload(self): """Removes the plugin menu item and icon from QGIS GUI.""" try: for action in self.actions: - self.iface.removePluginMenu(self.tr("&QGIS GEA Afforestation tool"), action) - self.iface.removePluginWebMenu(self.tr("&QGIS GEA Afforestation tool"), action) + self.iface.removePluginMenu(self.tr("&EPAL - Eligible Project Area Locator."), action) + self.iface.removePluginWebMenu(self.tr("&EPAL - Eligible Project Area Locator."), action) self.iface.removeToolBarIcon(action) except Exception as e: diff --git a/src/qgis_gea_plugin/ui/main_dockwidget.ui b/src/qgis_gea_plugin/ui/main_dockwidget.ui index f675296..38410cb 100644 --- a/src/qgis_gea_plugin/ui/main_dockwidget.ui +++ b/src/qgis_gea_plugin/ui/main_dockwidget.ui @@ -11,7 +11,7 @@ - GEA Afforestation tool + EPAL - Eligible Project Area Locator