From 204cd602cae0a0ee52490fbf0c58d0eb7f3ec75b Mon Sep 17 00:00:00 2001 From: Benjamin C <2361255+bchartier@users.noreply.github.com> Date: Fri, 28 Oct 2022 11:40:30 +0200 Subject: [PATCH] refactor: rename dir geograndest to datagrandest --- {geograndest => datagrandest}/__init__.py | 0 {geograndest => datagrandest}/config/config.json | 0 {geograndest => datagrandest}/gui/__init__.py | 0 {geograndest => datagrandest}/gui/about_box.py | 2 +- {geograndest => datagrandest}/gui/dock.py | 2 +- {geograndest => datagrandest}/gui/param_box.py | 6 +++--- {geograndest => datagrandest}/gui/tree_items.py | 2 +- {geograndest => datagrandest}/gui/tree_widget.py | 4 ++-- .../images/Icon_Simple_Warn.png | Bin .../images/datagrandest.jpg | Bin .../images/datagrandest.png | Bin .../images/mIconFavourites.png | Bin {geograndest => datagrandest}/images/mIconOws.svg | 0 .../images/mIconRaster.svg | 0 {geograndest => datagrandest}/images/mIconWfs.svg | 0 {geograndest => datagrandest}/images/mIconWms.svg | 0 .../images/mIconWmsStyle.svg | 0 {geograndest => datagrandest}/metadata.txt | 0 {geograndest => datagrandest}/nodes/__init__.py | 0 {geograndest => datagrandest}/nodes/nodes.py | 4 ++-- .../nodes/tree_node_factory.py | 2 +- {geograndest => datagrandest}/plugin.py | 12 ++++++------ .../utils/plugin_globals.py | 2 +- {geograndest => datagrandest}/utils/plugin_icons.py | 4 ++-- {geograndest => datagrandest}/utils/singleton.py | 0 25 files changed, 20 insertions(+), 20 deletions(-) rename {geograndest => datagrandest}/__init__.py (100%) rename {geograndest => datagrandest}/config/config.json (100%) rename {geograndest => datagrandest}/gui/__init__.py (100%) rename {geograndest => datagrandest}/gui/about_box.py (97%) rename {geograndest => datagrandest}/gui/dock.py (98%) rename {geograndest => datagrandest}/gui/param_box.py (98%) rename {geograndest => datagrandest}/gui/tree_items.py (98%) rename {geograndest => datagrandest}/gui/tree_widget.py (99%) rename {geograndest => datagrandest}/images/Icon_Simple_Warn.png (100%) rename {geograndest => datagrandest}/images/datagrandest.jpg (100%) rename {geograndest => datagrandest}/images/datagrandest.png (100%) rename {geograndest => datagrandest}/images/mIconFavourites.png (100%) rename {geograndest => datagrandest}/images/mIconOws.svg (100%) rename {geograndest => datagrandest}/images/mIconRaster.svg (100%) rename {geograndest => datagrandest}/images/mIconWfs.svg (100%) rename {geograndest => datagrandest}/images/mIconWms.svg (100%) rename {geograndest => datagrandest}/images/mIconWmsStyle.svg (100%) rename {geograndest => datagrandest}/metadata.txt (100%) rename {geograndest => datagrandest}/nodes/__init__.py (100%) rename {geograndest => datagrandest}/nodes/nodes.py (99%) rename {geograndest => datagrandest}/nodes/tree_node_factory.py (99%) rename {geograndest => datagrandest}/plugin.py (90%) rename {geograndest => datagrandest}/utils/plugin_globals.py (99%) rename {geograndest => datagrandest}/utils/plugin_icons.py (93%) rename {geograndest => datagrandest}/utils/singleton.py (100%) diff --git a/geograndest/__init__.py b/datagrandest/__init__.py similarity index 100% rename from geograndest/__init__.py rename to datagrandest/__init__.py diff --git a/geograndest/config/config.json b/datagrandest/config/config.json similarity index 100% rename from geograndest/config/config.json rename to datagrandest/config/config.json diff --git a/geograndest/gui/__init__.py b/datagrandest/gui/__init__.py similarity index 100% rename from geograndest/gui/__init__.py rename to datagrandest/gui/__init__.py diff --git a/geograndest/gui/about_box.py b/datagrandest/gui/about_box.py similarity index 97% rename from geograndest/gui/about_box.py rename to datagrandest/gui/about_box.py index 99694e3..d737ae9 100644 --- a/geograndest/gui/about_box.py +++ b/datagrandest/gui/about_box.py @@ -10,7 +10,7 @@ ) from qgis.PyQt.QtGui import QPixmap -from geograndest.utils.plugin_globals import PluginGlobals +from datagrandest.utils.plugin_globals import PluginGlobals class AboutBox(QDialog): diff --git a/geograndest/gui/dock.py b/datagrandest/gui/dock.py similarity index 98% rename from geograndest/gui/dock.py rename to datagrandest/gui/dock.py index aac14ad..1e05108 100644 --- a/geograndest/gui/dock.py +++ b/datagrandest/gui/dock.py @@ -11,7 +11,7 @@ ) from qgis.utils import iface -from geograndest.gui.tree_widget import TreeWidget +from datagrandest.gui.tree_widget import TreeWidget class DockWidget(QDockWidget): diff --git a/geograndest/gui/param_box.py b/datagrandest/gui/param_box.py similarity index 98% rename from geograndest/gui/param_box.py rename to datagrandest/gui/param_box.py index 41b63e9..c18303a 100644 --- a/geograndest/gui/param_box.py +++ b/datagrandest/gui/param_box.py @@ -13,9 +13,9 @@ from qgis.core import * from qgis.gui import * -from geograndest.utils.plugin_globals import PluginGlobals -from geograndest.nodes.tree_node_factory import TreeNodeFactory -from geograndest.nodes.tree_node_factory import download_tree_config_file +from datagrandest.utils.plugin_globals import PluginGlobals +from datagrandest.nodes.tree_node_factory import TreeNodeFactory +from datagrandest.nodes.tree_node_factory import download_tree_config_file class ParamBox(QDialog): diff --git a/geograndest/gui/tree_items.py b/datagrandest/gui/tree_items.py similarity index 98% rename from geograndest/gui/tree_items.py rename to datagrandest/gui/tree_items.py index 57e77c2..b6dc4db 100644 --- a/geograndest/gui/tree_items.py +++ b/datagrandest/gui/tree_items.py @@ -3,7 +3,7 @@ from qgis.PyQt.QtWidgets import QTreeWidgetItem, QMenu from qgis.PyQt.QtCore import Qt -from geograndest.utils.plugin_globals import PluginGlobals +from datagrandest.utils.plugin_globals import PluginGlobals def expand_item_and_subitems(item): diff --git a/geograndest/gui/tree_widget.py b/datagrandest/gui/tree_widget.py similarity index 99% rename from geograndest/gui/tree_widget.py rename to datagrandest/gui/tree_widget.py index 263561e..94e2b27 100644 --- a/geograndest/gui/tree_widget.py +++ b/datagrandest/gui/tree_widget.py @@ -16,8 +16,8 @@ ) from qgis.utils import iface -from geograndest.gui.tree_items import TreeWidgetItem -from geograndest.utils.plugin_globals import PluginGlobals +from datagrandest.gui.tree_items import TreeWidgetItem +from datagrandest.utils.plugin_globals import PluginGlobals class TreeWidget(QTreeWidget): diff --git a/geograndest/images/Icon_Simple_Warn.png b/datagrandest/images/Icon_Simple_Warn.png similarity index 100% rename from geograndest/images/Icon_Simple_Warn.png rename to datagrandest/images/Icon_Simple_Warn.png diff --git a/geograndest/images/datagrandest.jpg b/datagrandest/images/datagrandest.jpg similarity index 100% rename from geograndest/images/datagrandest.jpg rename to datagrandest/images/datagrandest.jpg diff --git a/geograndest/images/datagrandest.png b/datagrandest/images/datagrandest.png similarity index 100% rename from geograndest/images/datagrandest.png rename to datagrandest/images/datagrandest.png diff --git a/geograndest/images/mIconFavourites.png b/datagrandest/images/mIconFavourites.png similarity index 100% rename from geograndest/images/mIconFavourites.png rename to datagrandest/images/mIconFavourites.png diff --git a/geograndest/images/mIconOws.svg b/datagrandest/images/mIconOws.svg similarity index 100% rename from geograndest/images/mIconOws.svg rename to datagrandest/images/mIconOws.svg diff --git a/geograndest/images/mIconRaster.svg b/datagrandest/images/mIconRaster.svg similarity index 100% rename from geograndest/images/mIconRaster.svg rename to datagrandest/images/mIconRaster.svg diff --git a/geograndest/images/mIconWfs.svg b/datagrandest/images/mIconWfs.svg similarity index 100% rename from geograndest/images/mIconWfs.svg rename to datagrandest/images/mIconWfs.svg diff --git a/geograndest/images/mIconWms.svg b/datagrandest/images/mIconWms.svg similarity index 100% rename from geograndest/images/mIconWms.svg rename to datagrandest/images/mIconWms.svg diff --git a/geograndest/images/mIconWmsStyle.svg b/datagrandest/images/mIconWmsStyle.svg similarity index 100% rename from geograndest/images/mIconWmsStyle.svg rename to datagrandest/images/mIconWmsStyle.svg diff --git a/geograndest/metadata.txt b/datagrandest/metadata.txt similarity index 100% rename from geograndest/metadata.txt rename to datagrandest/metadata.txt diff --git a/geograndest/nodes/__init__.py b/datagrandest/nodes/__init__.py similarity index 100% rename from geograndest/nodes/__init__.py rename to datagrandest/nodes/__init__.py diff --git a/geograndest/nodes/nodes.py b/datagrandest/nodes/nodes.py similarity index 99% rename from geograndest/nodes/nodes.py rename to datagrandest/nodes/nodes.py index 548b11a..2265328 100644 --- a/geograndest/nodes/nodes.py +++ b/datagrandest/nodes/nodes.py @@ -2,8 +2,8 @@ import os -from geograndest.utils.plugin_globals import PluginGlobals -from geograndest.utils.plugin_icons import PluginIcons +from datagrandest.utils.plugin_globals import PluginGlobals +from datagrandest.utils.plugin_icons import PluginIcons class FavoritesTreeNode: diff --git a/geograndest/nodes/tree_node_factory.py b/datagrandest/nodes/tree_node_factory.py similarity index 99% rename from geograndest/nodes/tree_node_factory.py rename to datagrandest/nodes/tree_node_factory.py index a5e1bbc..91fafb6 100644 --- a/geograndest/nodes/tree_node_factory.py +++ b/datagrandest/nodes/tree_node_factory.py @@ -13,7 +13,7 @@ from qgis.PyQt.QtCore import QUrl -from geograndest.utils.plugin_globals import PluginGlobals +from datagrandest.utils.plugin_globals import PluginGlobals from .nodes import ( WmsLayerTreeNode, WmsStyleLayerTreeNode, diff --git a/geograndest/plugin.py b/datagrandest/plugin.py similarity index 90% rename from geograndest/plugin.py rename to datagrandest/plugin.py index bd7e636..6a4a193 100644 --- a/geograndest/plugin.py +++ b/datagrandest/plugin.py @@ -5,12 +5,12 @@ import os.path -from geograndest.utils.plugin_globals import PluginGlobals -from geograndest.gui.dock import DockWidget -from geograndest.gui.about_box import AboutBox -from geograndest.gui.param_box import ParamBox -from geograndest.nodes.tree_node_factory import TreeNodeFactory -from geograndest.nodes.tree_node_factory import download_tree_config_file +from datagrandest.utils.plugin_globals import PluginGlobals +from datagrandest.gui.dock import DockWidget +from datagrandest.gui.about_box import AboutBox +from datagrandest.gui.param_box import ParamBox +from datagrandest.nodes.tree_node_factory import TreeNodeFactory +from datagrandest.nodes.tree_node_factory import download_tree_config_file class SimpleAccessPlugin: diff --git a/geograndest/utils/plugin_globals.py b/datagrandest/utils/plugin_globals.py similarity index 99% rename from geograndest/utils/plugin_globals.py rename to datagrandest/utils/plugin_globals.py index 590f7f9..daaba70 100644 --- a/geograndest/utils/plugin_globals.py +++ b/datagrandest/utils/plugin_globals.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- import os -from geograndest.utils.singleton import Singleton +from datagrandest.utils.singleton import Singleton from qgis.PyQt.QtCore import QSettings diff --git a/geograndest/utils/plugin_icons.py b/datagrandest/utils/plugin_icons.py similarity index 93% rename from geograndest/utils/plugin_icons.py rename to datagrandest/utils/plugin_icons.py index 3ad4fb5..b8f139f 100644 --- a/geograndest/utils/plugin_icons.py +++ b/datagrandest/utils/plugin_icons.py @@ -6,8 +6,8 @@ from qgis.core import QgsApplication import os -from geograndest.utils.plugin_globals import PluginGlobals -from geograndest.utils.singleton import Singleton +from datagrandest.utils.plugin_globals import PluginGlobals +from datagrandest.utils.singleton import Singleton @Singleton diff --git a/geograndest/utils/singleton.py b/datagrandest/utils/singleton.py similarity index 100% rename from geograndest/utils/singleton.py rename to datagrandest/utils/singleton.py