oqtopus 0.1.20__py3-none-any.whl → 0.1.22__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oqtopus/gui/main_dialog.py +4 -2
- oqtopus/gui/project_widget.py +18 -5
- oqtopus/utils/plugin_utils.py +5 -2
- {oqtopus-0.1.20.dist-info → oqtopus-0.1.22.dist-info}/METADATA +4 -4
- {oqtopus-0.1.20.dist-info → oqtopus-0.1.22.dist-info}/RECORD +8 -8
- {oqtopus-0.1.20.dist-info → oqtopus-0.1.22.dist-info}/WHEEL +0 -0
- {oqtopus-0.1.20.dist-info → oqtopus-0.1.22.dist-info}/licenses/LICENSE +0 -0
- {oqtopus-0.1.20.dist-info → oqtopus-0.1.22.dist-info}/top_level.txt +0 -0
oqtopus/gui/main_dialog.py
CHANGED
|
@@ -53,10 +53,12 @@ DIALOG_UI = PluginUtils.get_ui_class("main_dialog.ui")
|
|
|
53
53
|
|
|
54
54
|
class MainDialog(QDialog, DIALOG_UI):
|
|
55
55
|
|
|
56
|
-
def __init__(self, modules_config_path, parent=None):
|
|
56
|
+
def __init__(self, modules_config_path, about_dialog_cls=None, parent=None):
|
|
57
57
|
QDialog.__init__(self, parent)
|
|
58
58
|
self.setupUi(self)
|
|
59
59
|
|
|
60
|
+
self.__about_dialog_cls = about_dialog_cls or AboutDialog
|
|
61
|
+
|
|
60
62
|
self.buttonBox.rejected.connect(self.__closeDialog)
|
|
61
63
|
self.buttonBox.helpRequested.connect(self.__helpRequested)
|
|
62
64
|
|
|
@@ -136,7 +138,7 @@ class MainDialog(QDialog, DIALOG_UI):
|
|
|
136
138
|
dlg.exec()
|
|
137
139
|
|
|
138
140
|
def __show_about_dialog(self):
|
|
139
|
-
dialog =
|
|
141
|
+
dialog = self.__about_dialog_cls(self)
|
|
140
142
|
dialog.exec()
|
|
141
143
|
|
|
142
144
|
def __moduleSelection_loadingStarted(self):
|
oqtopus/gui/project_widget.py
CHANGED
|
@@ -27,12 +27,20 @@ class ProjectWidget(QWidget, DIALOG_UI):
|
|
|
27
27
|
|
|
28
28
|
def setModulePackage(self, module_package: ModulePackage):
|
|
29
29
|
self.__current_module_package = module_package
|
|
30
|
-
self.
|
|
30
|
+
self.__updateProjectFilename()
|
|
31
31
|
|
|
32
32
|
def setService(self, service):
|
|
33
33
|
self.__current_service = service
|
|
34
|
+
self.__updateProjectFilename()
|
|
35
|
+
|
|
36
|
+
def __updateProjectFilename(self):
|
|
37
|
+
|
|
38
|
+
if self.__current_module_package is None:
|
|
39
|
+
self.project_info_label.setText(self.tr("No module package selected."))
|
|
40
|
+
QtUtils.setForegroundColor(self.project_info_label, PluginUtils.COLOR_WARNING)
|
|
41
|
+
QtUtils.setFontItalic(self.project_info_label, True)
|
|
42
|
+
return
|
|
34
43
|
|
|
35
|
-
def __packagePrepareGetProjectFilename(self):
|
|
36
44
|
asset_project = self.__current_module_package.asset_project
|
|
37
45
|
if asset_project is None:
|
|
38
46
|
self.project_info_label.setText(
|
|
@@ -73,9 +81,14 @@ class ProjectWidget(QWidget, DIALOG_UI):
|
|
|
73
81
|
|
|
74
82
|
QtUtils.resetForegroundColor(self.project_info_label)
|
|
75
83
|
QtUtils.setFontItalic(self.project_info_label, False)
|
|
76
|
-
self.
|
|
77
|
-
|
|
78
|
-
|
|
84
|
+
if self.__current_service:
|
|
85
|
+
self.project_info_label.setText(
|
|
86
|
+
f"Project will use PG Service '{self.__current_service}' for database connection"
|
|
87
|
+
)
|
|
88
|
+
else:
|
|
89
|
+
self.project_info_label.setText(
|
|
90
|
+
"Project will use the default service. Please set a service in the database connection tab if you need a specific one."
|
|
91
|
+
)
|
|
79
92
|
|
|
80
93
|
def __projectInstallClicked(self):
|
|
81
94
|
|
oqtopus/utils/plugin_utils.py
CHANGED
|
@@ -95,8 +95,11 @@ class PluginUtils:
|
|
|
95
95
|
return ini_text.value("version")
|
|
96
96
|
|
|
97
97
|
@staticmethod
|
|
98
|
-
def init_logger():
|
|
99
|
-
|
|
98
|
+
def init_logger(logs_directory=None):
|
|
99
|
+
if logs_directory is not None:
|
|
100
|
+
PluginUtils.logsDirectory = logs_directory
|
|
101
|
+
else:
|
|
102
|
+
PluginUtils.logsDirectory = f"{PluginUtils.plugin_root_path()}/logs"
|
|
100
103
|
|
|
101
104
|
directory = QDir(PluginUtils.logsDirectory)
|
|
102
105
|
if not directory.exists():
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: oqtopus
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.22
|
|
4
4
|
Summary: A QGIS module manager
|
|
5
5
|
Author-email: Damiano Lombardi <damiano@opengis.ch>
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
|
@@ -346,9 +346,9 @@ License: GNU GENERAL PUBLIC LICENSE
|
|
|
346
346
|
Requires-Python: >=3.8
|
|
347
347
|
Description-Content-Type: text/markdown
|
|
348
348
|
License-File: LICENSE
|
|
349
|
-
Requires-Dist:
|
|
350
|
-
Requires-Dist:
|
|
351
|
-
Requires-Dist:
|
|
349
|
+
Requires-Dist: pgserviceparser<3.0.0,>=2.4.0
|
|
350
|
+
Requires-Dist: pum<2.0.0,>=1.1.13
|
|
351
|
+
Requires-Dist: PyYAML
|
|
352
352
|
Requires-Dist: pydantic>=2.0
|
|
353
353
|
Requires-Dist: psycopg<4.0.0,>=3.1.0
|
|
354
354
|
Requires-Dist: requests<3.0.0,>=2.31.0
|
|
@@ -12,12 +12,12 @@ oqtopus/gui/database_connection_widget.py,sha256=_SM9K-2dUmXMgjJzqdWrfutRnU4I0WD
|
|
|
12
12
|
oqtopus/gui/database_create_dialog.py,sha256=Z7XK47EVs3S1GKWEGOZDE5a4cEWUgW4NcPzAD0JqyEg,8880
|
|
13
13
|
oqtopus/gui/database_duplicate_dialog.py,sha256=Scc1eo8hmniAIyDDK_Qks1RgZn6MsDbtIokg9woEldA,4944
|
|
14
14
|
oqtopus/gui/logs_widget.py,sha256=lxP0rZYUF4ahR7RtM3SJCbk5nk70SVC9Ien6TvBsflY,6698
|
|
15
|
-
oqtopus/gui/main_dialog.py,sha256=
|
|
15
|
+
oqtopus/gui/main_dialog.py,sha256=aI1VE_EIsiSVEYsFQnLB3uzEiRe61s9iD9t0wu5fCYM,6464
|
|
16
16
|
oqtopus/gui/module_selection_widget.py,sha256=57M9sM_VhD5lAfxqOxEPWUHiB2Ty6EQQkRnvAZ0VSv8,16116
|
|
17
17
|
oqtopus/gui/module_widget.py,sha256=WEE0paMIbRDfJ2KvIByZtHK4H1TULXLBFb1c4ydQttg,8443
|
|
18
18
|
oqtopus/gui/parameters_groupbox.py,sha256=ZXoIbTDrpoe_SfxyYr7mNbQOi0vHAJSW8cPIXzGKdmE,2938
|
|
19
19
|
oqtopus/gui/plugin_widget.py,sha256=8av8KI3p8gnXOlSssB5-dFVvq4vaLfqGjY9NVSNiBb0,5757
|
|
20
|
-
oqtopus/gui/project_widget.py,sha256=
|
|
20
|
+
oqtopus/gui/project_widget.py,sha256=FhWvMBtQ6kw7NJ4pdCzNs48wMrA5ihjvcbplE4RMWbE,7281
|
|
21
21
|
oqtopus/gui/settings_dialog.py,sha256=wgwVCuAIBh9iLrs9y5HfE99LrTV0rEYbL3frMBlW0cQ,1547
|
|
22
22
|
oqtopus/ui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
23
23
|
oqtopus/ui/about_dialog.ui,sha256=2oa5u3LIvN3prHyELUG-bwDuEHlBn9-uuA4CwYsEARo,6236
|
|
@@ -32,14 +32,14 @@ oqtopus/ui/plugin_widget.ui,sha256=osJ_QwzmXahV5fEHk4WfUjBBQ7jdsrL4pixiMF2jURA,2
|
|
|
32
32
|
oqtopus/ui/project_widget.ui,sha256=5YqSjHR8mQFmHzbSB2M6JnNfrpkqhlRC0N9MSlgcXY8,1600
|
|
33
33
|
oqtopus/ui/settings_dialog.ui,sha256=3PqxTMo22Ola1zl6XkwhXCi6G-uum6g_1-nbjSXWilI,2216
|
|
34
34
|
oqtopus/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
|
-
oqtopus/utils/plugin_utils.py,sha256=
|
|
35
|
+
oqtopus/utils/plugin_utils.py,sha256=ufPRakGPYPYqwCEElBKYYGILvxfEvrn_pG9tYP1Y174,5833
|
|
36
36
|
oqtopus/utils/qt_utils.py,sha256=HPe9tOQQH9R9xZp4rGphVhSJO7220q368xmreDu5-6g,3243
|
|
37
37
|
oqtopus/utils/tmmtlogging.py,sha256=BSAPrhQGCuH2boMG4bP8QFyLfoss1uR4pO_pXjTA1eQ,1733
|
|
38
38
|
oqtopus/utils/translation.py,sha256=p1d5N6CYIf94fGYdPQnJamdum9MVBlPkJ24c557rqdg,2647
|
|
39
|
-
oqtopus-0.1.
|
|
39
|
+
oqtopus-0.1.22.dist-info/licenses/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
|
|
40
40
|
tests/__init__.py,sha256=z5CxS92efenLcDm64Sifx26EjZBCWPO4oVvaEEHJJ6w,444
|
|
41
41
|
tests/test_plugin_load.py,sha256=HuVLdrsn2PSjKIrvcLj0EH7vNE8-0jBMmHZHihsqB3Q,517
|
|
42
|
-
oqtopus-0.1.
|
|
43
|
-
oqtopus-0.1.
|
|
44
|
-
oqtopus-0.1.
|
|
45
|
-
oqtopus-0.1.
|
|
42
|
+
oqtopus-0.1.22.dist-info/METADATA,sha256=wuvwY6p8oeCgrVdWDPoPjcLo9lf8se7Ku1JivoIQTgE,21476
|
|
43
|
+
oqtopus-0.1.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
44
|
+
oqtopus-0.1.22.dist-info/top_level.txt,sha256=i4DHi21kcGIzrF8DlgsKj-UCENHg_NebTRac7cwt32A,14
|
|
45
|
+
oqtopus-0.1.22.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|