oqtopus 0.1.21__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.
@@ -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 = AboutDialog(self)
141
+ dialog = self.__about_dialog_cls(self)
140
142
  dialog.exec()
141
143
 
142
144
  def __moduleSelection_loadingStarted(self):
@@ -95,8 +95,11 @@ class PluginUtils:
95
95
  return ini_text.value("version")
96
96
 
97
97
  @staticmethod
98
- def init_logger():
99
- PluginUtils.logsDirectory = f"{PluginUtils.plugin_root_path()}/logs"
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.21
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
@@ -12,7 +12,7 @@ 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=7nxn4vL5fIege0qBPP1mrOp5jP0YWXFJ_k_ywGeKD8M,6362
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
@@ -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=v-Oxu2zs8tQWzEdHnwEl1mseapyvpPS-lHimJNK2zHY,5702
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.21.dist-info/licenses/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
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.21.dist-info/METADATA,sha256=2k-otTBmgsUQ8XaKBnboulfU7IXr706MxhCtHVBLs9c,21476
43
- oqtopus-0.1.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
44
- oqtopus-0.1.21.dist-info/top_level.txt,sha256=i4DHi21kcGIzrF8DlgsKj-UCENHg_NebTRac7cwt32A,14
45
- oqtopus-0.1.21.dist-info/RECORD,,
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,,