Skip to content

Commit

Permalink
Merge pull request #134 from Samweli/plugin_name_icon
Browse files Browse the repository at this point in the history
Updated plugin name and icon
  • Loading branch information
Samweli authored Dec 4, 2024
2 parents d4fa451 + bcc1e78 commit f9ff6f1
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 16 deletions.
8 changes: 4 additions & 4 deletions config.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"description": "View, browse and navigate through imagery.",
Expand Down
31 changes: 31 additions & 0 deletions resources/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/resources.qrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<RCC>
<qresource prefix="/plugins/qgis_gea_plugin">
<file>icon.png</file>
<file>icon.svg</file>
</qresource>
</RCC>
2 changes: 1 addition & 1 deletion src/qgis_gea_plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/qgis_gea_plugin/definitions/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/qgis_gea_plugin/gui/attribute_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
14 changes: 7 additions & 7 deletions src/qgis_gea_plugin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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,
Expand Down Expand Up @@ -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"),
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/qgis_gea_plugin/ui/main_dockwidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>GEA Afforestation tool</string>
<string>EPAL - Eligible Project Area Locator</string>
</property>
<widget class="QWidget" name="dock_widget_contents">
<layout class="QVBoxLayout" name="verticalLayout">
Expand Down

0 comments on commit f9ff6f1

Please sign in to comment.