oqtopus 0.2.0__py3-none-any.whl → 1.0.0__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/core/module.py +176 -32
- oqtopus/core/module_operation_task.py +234 -0
- oqtopus/core/module_package.py +27 -10
- oqtopus/core/modules_config.py +2 -0
- oqtopus/core/package_prepare_task.py +240 -25
- oqtopus/gui/database_connection_widget.py +12 -5
- oqtopus/gui/database_create_dialog.py +3 -3
- oqtopus/gui/database_duplicate_dialog.py +4 -4
- oqtopus/gui/logs_widget.py +94 -7
- oqtopus/gui/main_dialog.py +118 -31
- oqtopus/gui/module_selection_widget.py +110 -22
- oqtopus/gui/module_widget.py +647 -61
- oqtopus/gui/parameters_groupbox.py +25 -13
- oqtopus/gui/plugin_widget.py +13 -0
- oqtopus/gui/project_widget.py +5 -0
- oqtopus/gui/settings_dialog.py +2 -0
- oqtopus/oqtopus_plugin.py +10 -1
- oqtopus/ui/module_selection_widget.ui +96 -96
- oqtopus/ui/module_widget.ui +72 -58
- oqtopus/ui/settings_dialog.ui +18 -11
- oqtopus/utils/plugin_utils.py +113 -19
- oqtopus/utils/qt_utils.py +54 -0
- {oqtopus-0.2.0.dist-info → oqtopus-1.0.0.dist-info}/METADATA +1 -1
- oqtopus-1.0.0.dist-info/RECORD +47 -0
- {oqtopus-0.2.0.dist-info → oqtopus-1.0.0.dist-info}/WHEEL +1 -1
- tests/test_imports.py +59 -0
- oqtopus-0.2.0.dist-info/RECORD +0 -45
- {oqtopus-0.2.0.dist-info → oqtopus-1.0.0.dist-info}/licenses/LICENSE +0 -0
- {oqtopus-0.2.0.dist-info → oqtopus-1.0.0.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
|
|
3
|
-
from pum import ParameterDefinition, ParameterType
|
|
4
3
|
from qgis.PyQt.QtWidgets import (
|
|
5
4
|
QCheckBox,
|
|
6
5
|
QGroupBox,
|
|
@@ -10,6 +9,8 @@ from qgis.PyQt.QtWidgets import (
|
|
|
10
9
|
QWidget,
|
|
11
10
|
)
|
|
12
11
|
|
|
12
|
+
from ..libs.pum import ParameterDefinition, ParameterType
|
|
13
|
+
|
|
13
14
|
logger = logging.getLogger(__name__)
|
|
14
15
|
|
|
15
16
|
|
|
@@ -21,33 +22,44 @@ class ParameterWidget(QWidget):
|
|
|
21
22
|
self.setLayout(self.layout)
|
|
22
23
|
self.value = None
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
# Get the parameter type value (handle both enum and string cases)
|
|
26
|
+
# This is needed because during plugin reload, enums can become strings
|
|
27
|
+
param_type = parameter_definition.type
|
|
28
|
+
if isinstance(param_type, ParameterType):
|
|
29
|
+
param_type_value = param_type.value
|
|
30
|
+
elif isinstance(param_type, str):
|
|
31
|
+
# Handle string representations like "ParameterType.INTEGER" or "integer"
|
|
32
|
+
param_type_value = (
|
|
33
|
+
param_type.split(".")[-1].lower() if "." in param_type else param_type.lower()
|
|
34
|
+
)
|
|
35
|
+
else:
|
|
36
|
+
param_type_value = str(param_type).split(".")[-1].lower()
|
|
37
|
+
|
|
38
|
+
if param_type_value != "boolean":
|
|
25
39
|
self.layout.addWidget(QLabel(parameter_definition.name, self))
|
|
26
40
|
|
|
27
|
-
if
|
|
41
|
+
if param_type_value == "boolean":
|
|
28
42
|
self.widget = QCheckBox(parameter_definition.name, self)
|
|
29
43
|
if parameter_definition.default is not None:
|
|
30
44
|
self.widget.setChecked(parameter_definition.default)
|
|
31
45
|
self.layout.addWidget(self.widget)
|
|
32
46
|
self.value = lambda: self.widget.isChecked()
|
|
33
|
-
elif
|
|
34
|
-
ParameterType.DECIMAL,
|
|
35
|
-
ParameterType.INTEGER,
|
|
36
|
-
ParameterType.TEXT,
|
|
37
|
-
ParameterType.PATH,
|
|
38
|
-
):
|
|
47
|
+
elif param_type_value in ("decimal", "integer", "text", "path"):
|
|
39
48
|
self.widget = QLineEdit(self)
|
|
40
49
|
if parameter_definition.default is not None:
|
|
41
50
|
self.widget.setPlaceholderText(str(parameter_definition.default))
|
|
42
51
|
self.layout.addWidget(self.widget)
|
|
43
|
-
if
|
|
52
|
+
if param_type_value == "integer":
|
|
44
53
|
self.value = lambda: int(self.widget.text() or self.widget.placeholderText())
|
|
45
|
-
elif
|
|
54
|
+
elif param_type_value == "decimal":
|
|
46
55
|
self.value = lambda: float(self.widget.text() or self.widget.placeholderText())
|
|
47
56
|
else:
|
|
48
57
|
self.value = lambda: self.widget.text() or self.widget.placeholderText()
|
|
49
58
|
else:
|
|
50
|
-
raise ValueError(
|
|
59
|
+
raise ValueError(
|
|
60
|
+
f"Unknown parameter type '{parameter_definition.type}' "
|
|
61
|
+
f"(normalized to '{param_type_value}')"
|
|
62
|
+
)
|
|
51
63
|
|
|
52
64
|
|
|
53
65
|
class ParametersGroupBox(QGroupBox):
|
|
@@ -56,7 +68,7 @@ class ParametersGroupBox(QGroupBox):
|
|
|
56
68
|
self.parameter_widgets = {}
|
|
57
69
|
|
|
58
70
|
def setParameters(self, parameters: list[ParameterDefinition]):
|
|
59
|
-
logger.
|
|
71
|
+
logger.debug(f"Setting parameters in ParametersGroupBox ({len(parameters)})")
|
|
60
72
|
self.clean()
|
|
61
73
|
self.parameters = parameters
|
|
62
74
|
# Remove all widgets from the parameters_group_box layout
|
oqtopus/gui/plugin_widget.py
CHANGED
|
@@ -28,7 +28,20 @@ class PluginWidget(QWidget, DIALOG_UI):
|
|
|
28
28
|
self.__current_module_package = module_package
|
|
29
29
|
self.__packagePrepareGetPluginFilename()
|
|
30
30
|
|
|
31
|
+
def clearModulePackage(self):
|
|
32
|
+
"""Clear module package state and reset UI."""
|
|
33
|
+
self.__current_module_package = None
|
|
34
|
+
self.info_label.setText(self.tr("No module package selected."))
|
|
35
|
+
QtUtils.setForegroundColor(self.info_label, PluginUtils.COLOR_WARNING)
|
|
36
|
+
QtUtils.setFontItalic(self.info_label, True)
|
|
37
|
+
|
|
31
38
|
def __packagePrepareGetPluginFilename(self):
|
|
39
|
+
if self.__current_module_package is None:
|
|
40
|
+
self.info_label.setText(self.tr("No module package selected."))
|
|
41
|
+
QtUtils.setForegroundColor(self.info_label, PluginUtils.COLOR_WARNING)
|
|
42
|
+
QtUtils.setFontItalic(self.info_label, True)
|
|
43
|
+
return
|
|
44
|
+
|
|
32
45
|
asset_plugin = self.__current_module_package.asset_plugin
|
|
33
46
|
if asset_plugin is None:
|
|
34
47
|
self.info_label.setText(self.tr("No plugin asset available for this module version."))
|
oqtopus/gui/project_widget.py
CHANGED
|
@@ -29,6 +29,11 @@ class ProjectWidget(QWidget, DIALOG_UI):
|
|
|
29
29
|
self.__current_module_package = module_package
|
|
30
30
|
self.__updateProjectFilename()
|
|
31
31
|
|
|
32
|
+
def clearModulePackage(self):
|
|
33
|
+
"""Clear module package state and reset UI."""
|
|
34
|
+
self.__current_module_package = None
|
|
35
|
+
self.__updateProjectFilename()
|
|
36
|
+
|
|
32
37
|
def setService(self, service):
|
|
33
38
|
self.__current_service = service
|
|
34
39
|
self.__updateProjectFilename()
|
oqtopus/gui/settings_dialog.py
CHANGED
|
@@ -11,6 +11,7 @@ class SettingsDialog(QDialog, DIALOG_UI):
|
|
|
11
11
|
self.setupUi(self)
|
|
12
12
|
|
|
13
13
|
self.githubToken_lineEdit.setText(PluginUtils.get_github_token())
|
|
14
|
+
self.allow_multiple_modules_checkBox.setChecked(PluginUtils.get_allow_multiple_modules())
|
|
14
15
|
|
|
15
16
|
self.helpButton.setIcon(
|
|
16
17
|
QApplication.style().standardIcon(QStyle.StandardPixmap.SP_DialogHelpButton)
|
|
@@ -19,6 +20,7 @@ class SettingsDialog(QDialog, DIALOG_UI):
|
|
|
19
20
|
|
|
20
21
|
def accept(self):
|
|
21
22
|
PluginUtils.set_github_token(self.githubToken_lineEdit.text())
|
|
23
|
+
PluginUtils.set_allow_multiple_modules(self.allow_multiple_modules_checkBox.isChecked())
|
|
22
24
|
super().accept()
|
|
23
25
|
|
|
24
26
|
def __show_github_token_help(self):
|
oqtopus/oqtopus_plugin.py
CHANGED
|
@@ -30,7 +30,7 @@ class OqtopusPlugin:
|
|
|
30
30
|
logger.info(f"Starting {PluginUtils.PLUGIN_NAME} plugin version {self.__version__}")
|
|
31
31
|
|
|
32
32
|
self.actions = []
|
|
33
|
-
self.main_menu_name =
|
|
33
|
+
self.main_menu_name = f"&{PluginUtils.PLUGIN_NAME}"
|
|
34
34
|
|
|
35
35
|
# noinspection PyMethodMayBeStatic
|
|
36
36
|
def tr(self, source_text):
|
|
@@ -157,6 +157,15 @@ class OqtopusPlugin:
|
|
|
157
157
|
self.iface.removePluginMenu(self.main_menu_name, action)
|
|
158
158
|
self.iface.removeToolBarIcon(action)
|
|
159
159
|
|
|
160
|
+
# Remove pum modules from sys.modules to allow proper reloading
|
|
161
|
+
# This is necessary because pum is in the libs folder and imported at module level
|
|
162
|
+
import sys
|
|
163
|
+
|
|
164
|
+
pum_modules = [mod for mod in sys.modules.keys() if mod.startswith("pum")]
|
|
165
|
+
for mod in pum_modules:
|
|
166
|
+
del sys.modules[mod]
|
|
167
|
+
logger.debug(f"Removed {mod} from sys.modules for clean reload")
|
|
168
|
+
|
|
160
169
|
def show_main_dialog(self):
|
|
161
170
|
conf_path = Path(__file__).parent / "default_config.yaml"
|
|
162
171
|
|
|
@@ -14,26 +14,6 @@
|
|
|
14
14
|
<string>Form</string>
|
|
15
15
|
</property>
|
|
16
16
|
<layout class="QGridLayout" name="gridLayout">
|
|
17
|
-
<item row="0" column="2">
|
|
18
|
-
<widget class="QLabel" name="module_latestVersion_label">
|
|
19
|
-
<property name="text">
|
|
20
|
-
<string>latest</string>
|
|
21
|
-
</property>
|
|
22
|
-
</widget>
|
|
23
|
-
</item>
|
|
24
|
-
<item row="6" column="1" colspan="2">
|
|
25
|
-
<widget class="QLabel" name="module_informationProject_label">
|
|
26
|
-
<property name="text">
|
|
27
|
-
<string>-</string>
|
|
28
|
-
</property>
|
|
29
|
-
<property name="openExternalLinks">
|
|
30
|
-
<bool>true</bool>
|
|
31
|
-
</property>
|
|
32
|
-
<property name="textInteractionFlags">
|
|
33
|
-
<set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
|
|
34
|
-
</property>
|
|
35
|
-
</widget>
|
|
36
|
-
</item>
|
|
37
17
|
<item row="0" column="0">
|
|
38
18
|
<widget class="QLabel" name="label">
|
|
39
19
|
<property name="text">
|
|
@@ -48,12 +28,18 @@
|
|
|
48
28
|
</property>
|
|
49
29
|
</widget>
|
|
50
30
|
</item>
|
|
51
|
-
<item row="
|
|
52
|
-
<
|
|
53
|
-
<property name="
|
|
54
|
-
<
|
|
31
|
+
<item row="9" column="0">
|
|
32
|
+
<spacer name="verticalSpacer">
|
|
33
|
+
<property name="orientation">
|
|
34
|
+
<enum>Qt::Vertical</enum>
|
|
55
35
|
</property>
|
|
56
|
-
|
|
36
|
+
<property name="sizeHint" stdset="0">
|
|
37
|
+
<size>
|
|
38
|
+
<width>20</width>
|
|
39
|
+
<height>40</height>
|
|
40
|
+
</size>
|
|
41
|
+
</property>
|
|
42
|
+
</spacer>
|
|
57
43
|
</item>
|
|
58
44
|
<item row="7" column="1" colspan="2">
|
|
59
45
|
<widget class="QLabel" name="module_informationPlugin_label">
|
|
@@ -68,28 +54,42 @@
|
|
|
68
54
|
</property>
|
|
69
55
|
</widget>
|
|
70
56
|
</item>
|
|
71
|
-
<item row="
|
|
72
|
-
<widget class="
|
|
73
|
-
<property name="
|
|
74
|
-
<string
|
|
57
|
+
<item row="5" column="1" colspan="2">
|
|
58
|
+
<widget class="QLabel" name="module_information_label">
|
|
59
|
+
<property name="text">
|
|
60
|
+
<string>-</string>
|
|
75
61
|
</property>
|
|
76
|
-
<property name="
|
|
62
|
+
<property name="openExternalLinks">
|
|
77
63
|
<bool>true</bool>
|
|
78
64
|
</property>
|
|
79
|
-
<
|
|
80
|
-
<
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
<
|
|
88
|
-
|
|
89
|
-
</item>
|
|
90
|
-
</layout>
|
|
65
|
+
<property name="textInteractionFlags">
|
|
66
|
+
<set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
|
|
67
|
+
</property>
|
|
68
|
+
</widget>
|
|
69
|
+
</item>
|
|
70
|
+
<item row="0" column="2">
|
|
71
|
+
<widget class="QLabel" name="module_latestVersion_label">
|
|
72
|
+
<property name="text">
|
|
73
|
+
<string>latest</string>
|
|
74
|
+
</property>
|
|
91
75
|
</widget>
|
|
92
76
|
</item>
|
|
77
|
+
<item row="3" column="0">
|
|
78
|
+
<spacer name="verticalSpacer_8">
|
|
79
|
+
<property name="orientation">
|
|
80
|
+
<enum>Qt::Vertical</enum>
|
|
81
|
+
</property>
|
|
82
|
+
<property name="sizeType">
|
|
83
|
+
<enum>QSizePolicy::Fixed</enum>
|
|
84
|
+
</property>
|
|
85
|
+
<property name="sizeHint" stdset="0">
|
|
86
|
+
<size>
|
|
87
|
+
<width>20</width>
|
|
88
|
+
<height>10</height>
|
|
89
|
+
</size>
|
|
90
|
+
</property>
|
|
91
|
+
</spacer>
|
|
92
|
+
</item>
|
|
93
93
|
<item row="6" column="0">
|
|
94
94
|
<widget class="QLabel" name="label_17">
|
|
95
95
|
<property name="text">
|
|
@@ -97,10 +97,29 @@
|
|
|
97
97
|
</property>
|
|
98
98
|
</widget>
|
|
99
99
|
</item>
|
|
100
|
-
<item row="1" column="
|
|
101
|
-
<widget class="
|
|
100
|
+
<item row="1" column="1">
|
|
101
|
+
<widget class="QComboBox" name="module_package_comboBox">
|
|
102
|
+
<item>
|
|
103
|
+
<property name="text">
|
|
104
|
+
<string>1.6.3</string>
|
|
105
|
+
</property>
|
|
106
|
+
</item>
|
|
107
|
+
<item>
|
|
108
|
+
<property name="text">
|
|
109
|
+
<string>1.6.2</string>
|
|
110
|
+
</property>
|
|
111
|
+
</item>
|
|
112
|
+
<item>
|
|
113
|
+
<property name="text">
|
|
114
|
+
<string>testing (Attention! Never use in production)</string>
|
|
115
|
+
</property>
|
|
116
|
+
</item>
|
|
117
|
+
</widget>
|
|
118
|
+
</item>
|
|
119
|
+
<item row="1" column="2">
|
|
120
|
+
<widget class="QPushButton" name="module_seeChangeLog_pushButton">
|
|
102
121
|
<property name="text">
|
|
103
|
-
<string>
|
|
122
|
+
<string>See changelog</string>
|
|
104
123
|
</property>
|
|
105
124
|
</widget>
|
|
106
125
|
</item>
|
|
@@ -118,8 +137,8 @@
|
|
|
118
137
|
</item>
|
|
119
138
|
</widget>
|
|
120
139
|
</item>
|
|
121
|
-
<item row="
|
|
122
|
-
<widget class="QLabel" name="
|
|
140
|
+
<item row="6" column="1" colspan="2">
|
|
141
|
+
<widget class="QLabel" name="module_informationProject_label">
|
|
123
142
|
<property name="text">
|
|
124
143
|
<string>-</string>
|
|
125
144
|
</property>
|
|
@@ -131,6 +150,13 @@
|
|
|
131
150
|
</property>
|
|
132
151
|
</widget>
|
|
133
152
|
</item>
|
|
153
|
+
<item row="1" column="0">
|
|
154
|
+
<widget class="QLabel" name="label_2">
|
|
155
|
+
<property name="text">
|
|
156
|
+
<string>Version</string>
|
|
157
|
+
</property>
|
|
158
|
+
</widget>
|
|
159
|
+
</item>
|
|
134
160
|
<item row="5" column="0">
|
|
135
161
|
<widget class="QLabel" name="label_18">
|
|
136
162
|
<property name="text">
|
|
@@ -138,7 +164,29 @@
|
|
|
138
164
|
</property>
|
|
139
165
|
</widget>
|
|
140
166
|
</item>
|
|
141
|
-
<item row="
|
|
167
|
+
<item row="2" column="0" colspan="3">
|
|
168
|
+
<widget class="QGroupBox" name="module_zipPackage_groupBox">
|
|
169
|
+
<property name="title">
|
|
170
|
+
<string>Zip package</string>
|
|
171
|
+
</property>
|
|
172
|
+
<property name="flat">
|
|
173
|
+
<bool>true</bool>
|
|
174
|
+
</property>
|
|
175
|
+
<layout class="QGridLayout" name="gridLayout_9">
|
|
176
|
+
<item row="0" column="1">
|
|
177
|
+
<widget class="QToolButton" name="module_browseZip_toolButton">
|
|
178
|
+
<property name="text">
|
|
179
|
+
<string>...</string>
|
|
180
|
+
</property>
|
|
181
|
+
</widget>
|
|
182
|
+
</item>
|
|
183
|
+
<item row="0" column="0">
|
|
184
|
+
<widget class="QLineEdit" name="module_fromZip_lineEdit"/>
|
|
185
|
+
</item>
|
|
186
|
+
</layout>
|
|
187
|
+
</widget>
|
|
188
|
+
</item>
|
|
189
|
+
<item row="4" column="0" colspan="3">
|
|
142
190
|
<widget class="QProgressBar" name="module_progressBar">
|
|
143
191
|
<property name="maximum">
|
|
144
192
|
<number>0</number>
|
|
@@ -148,54 +196,6 @@
|
|
|
148
196
|
</property>
|
|
149
197
|
</widget>
|
|
150
198
|
</item>
|
|
151
|
-
<item row="9" column="0">
|
|
152
|
-
<spacer name="verticalSpacer">
|
|
153
|
-
<property name="orientation">
|
|
154
|
-
<enum>Qt::Vertical</enum>
|
|
155
|
-
</property>
|
|
156
|
-
<property name="sizeHint" stdset="0">
|
|
157
|
-
<size>
|
|
158
|
-
<width>20</width>
|
|
159
|
-
<height>40</height>
|
|
160
|
-
</size>
|
|
161
|
-
</property>
|
|
162
|
-
</spacer>
|
|
163
|
-
</item>
|
|
164
|
-
<item row="3" column="0">
|
|
165
|
-
<spacer name="verticalSpacer_8">
|
|
166
|
-
<property name="orientation">
|
|
167
|
-
<enum>Qt::Vertical</enum>
|
|
168
|
-
</property>
|
|
169
|
-
<property name="sizeType">
|
|
170
|
-
<enum>QSizePolicy::Fixed</enum>
|
|
171
|
-
</property>
|
|
172
|
-
<property name="sizeHint" stdset="0">
|
|
173
|
-
<size>
|
|
174
|
-
<width>20</width>
|
|
175
|
-
<height>10</height>
|
|
176
|
-
</size>
|
|
177
|
-
</property>
|
|
178
|
-
</spacer>
|
|
179
|
-
</item>
|
|
180
|
-
<item row="1" column="1">
|
|
181
|
-
<widget class="QComboBox" name="module_package_comboBox">
|
|
182
|
-
<item>
|
|
183
|
-
<property name="text">
|
|
184
|
-
<string>1.6.3</string>
|
|
185
|
-
</property>
|
|
186
|
-
</item>
|
|
187
|
-
<item>
|
|
188
|
-
<property name="text">
|
|
189
|
-
<string>1.6.2</string>
|
|
190
|
-
</property>
|
|
191
|
-
</item>
|
|
192
|
-
<item>
|
|
193
|
-
<property name="text">
|
|
194
|
-
<string>testing (Attention! Never use in production)</string>
|
|
195
|
-
</property>
|
|
196
|
-
</item>
|
|
197
|
-
</widget>
|
|
198
|
-
</item>
|
|
199
199
|
</layout>
|
|
200
200
|
</widget>
|
|
201
201
|
<resources/>
|
oqtopus/ui/module_widget.ui
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<rect>
|
|
7
7
|
<x>0</x>
|
|
8
8
|
<y>0</y>
|
|
9
|
-
<width>
|
|
10
|
-
<height>
|
|
9
|
+
<width>481</width>
|
|
10
|
+
<height>323</height>
|
|
11
11
|
</rect>
|
|
12
12
|
</property>
|
|
13
13
|
<property name="windowTitle">
|
|
@@ -15,16 +15,30 @@
|
|
|
15
15
|
</property>
|
|
16
16
|
<layout class="QGridLayout" name="gridLayout">
|
|
17
17
|
<item row="0" column="0">
|
|
18
|
-
<widget class="QLabel" name="
|
|
18
|
+
<widget class="QLabel" name="moduleInfo_installation_label">
|
|
19
19
|
<property name="text">
|
|
20
|
-
<string>No
|
|
20
|
+
<string>No installation found</string>
|
|
21
|
+
</property>
|
|
22
|
+
</widget>
|
|
23
|
+
</item>
|
|
24
|
+
<item row="3" column="0">
|
|
25
|
+
<widget class="QPushButton" name="moduleInfo_cancel_button">
|
|
26
|
+
<property name="text">
|
|
27
|
+
<string>Cancel</string>
|
|
28
|
+
</property>
|
|
29
|
+
</widget>
|
|
30
|
+
</item>
|
|
31
|
+
<item row="2" column="0">
|
|
32
|
+
<widget class="QProgressBar" name="moduleInfo_progressbar">
|
|
33
|
+
<property name="value">
|
|
34
|
+
<number>24</number>
|
|
21
35
|
</property>
|
|
22
36
|
</widget>
|
|
23
37
|
</item>
|
|
24
38
|
<item row="1" column="0">
|
|
25
39
|
<widget class="QStackedWidget" name="moduleInfo_stackedWidget">
|
|
26
40
|
<property name="currentIndex">
|
|
27
|
-
<number>
|
|
41
|
+
<number>1</number>
|
|
28
42
|
</property>
|
|
29
43
|
<widget class="QWidget" name="moduleInfo_stackedWidget_pageInstall">
|
|
30
44
|
<layout class="QGridLayout" name="gridLayout_7">
|
|
@@ -38,7 +52,7 @@
|
|
|
38
52
|
</property>
|
|
39
53
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
40
54
|
<item>
|
|
41
|
-
<widget class="QCheckBox" name="
|
|
55
|
+
<widget class="QCheckBox" name="db_parameters_CreateAndGrantRoles_install_checkBox">
|
|
42
56
|
<property name="text">
|
|
43
57
|
<string>Create and grant roles</string>
|
|
44
58
|
</property>
|
|
@@ -83,7 +97,7 @@
|
|
|
83
97
|
<item>
|
|
84
98
|
<spacer name="verticalSpacer_3">
|
|
85
99
|
<property name="orientation">
|
|
86
|
-
<enum>Qt::
|
|
100
|
+
<enum>Qt::Vertical</enum>
|
|
87
101
|
</property>
|
|
88
102
|
<property name="sizeHint" stdset="0">
|
|
89
103
|
<size>
|
|
@@ -100,31 +114,65 @@
|
|
|
100
114
|
</widget>
|
|
101
115
|
<widget class="QWidget" name="moduleInfo_stackedWidget_pageUpgrade">
|
|
102
116
|
<layout class="QGridLayout" name="gridLayout_10">
|
|
103
|
-
<item row="
|
|
104
|
-
<
|
|
105
|
-
<
|
|
106
|
-
<
|
|
107
|
-
|
|
108
|
-
|
|
117
|
+
<item row="5" column="0" colspan="4">
|
|
118
|
+
<layout class="QGridLayout" name="gridLayout_2">
|
|
119
|
+
<item row="1" column="3">
|
|
120
|
+
<widget class="QPushButton" name="uninstall_button">
|
|
121
|
+
<property name="text">
|
|
122
|
+
<string>Uninstall</string>
|
|
123
|
+
</property>
|
|
124
|
+
</widget>
|
|
125
|
+
</item>
|
|
126
|
+
<item row="1" column="0">
|
|
127
|
+
<widget class="QPushButton" name="moduleInfo_upgrade_pushButton">
|
|
128
|
+
<property name="text">
|
|
129
|
+
<string>Upgrade</string>
|
|
130
|
+
</property>
|
|
131
|
+
</widget>
|
|
132
|
+
</item>
|
|
133
|
+
<item row="1" column="1">
|
|
134
|
+
<widget class="QPushButton" name="moduleInfo_roles_pushButton">
|
|
135
|
+
<property name="text">
|
|
136
|
+
<string>Create and grant roles</string>
|
|
137
|
+
</property>
|
|
138
|
+
</widget>
|
|
139
|
+
</item>
|
|
140
|
+
<item row="1" column="2">
|
|
141
|
+
<spacer name="horizontalSpacer">
|
|
142
|
+
<property name="orientation">
|
|
143
|
+
<enum>Qt::Horizontal</enum>
|
|
144
|
+
</property>
|
|
145
|
+
<property name="sizeHint" stdset="0">
|
|
146
|
+
<size>
|
|
147
|
+
<width>40</width>
|
|
148
|
+
<height>20</height>
|
|
149
|
+
</size>
|
|
150
|
+
</property>
|
|
151
|
+
</spacer>
|
|
152
|
+
</item>
|
|
153
|
+
<item row="0" column="0" colspan="2">
|
|
154
|
+
<widget class="QCheckBox" name="db_parameters_CreateAndGrantRoles_upgrade_checkBox">
|
|
155
|
+
<property name="text">
|
|
156
|
+
<string>Create and grant roles</string>
|
|
157
|
+
</property>
|
|
158
|
+
<property name="checked">
|
|
159
|
+
<bool>true</bool>
|
|
160
|
+
</property>
|
|
161
|
+
</widget>
|
|
162
|
+
</item>
|
|
163
|
+
</layout>
|
|
109
164
|
</item>
|
|
110
|
-
<item row="
|
|
111
|
-
<widget class="
|
|
165
|
+
<item row="0" column="0" colspan="4">
|
|
166
|
+
<widget class="QLabel" name="moduleInfo_selected_label">
|
|
112
167
|
<property name="text">
|
|
113
|
-
<string>
|
|
168
|
+
<string>Selected module version</string>
|
|
114
169
|
</property>
|
|
115
170
|
</widget>
|
|
116
171
|
</item>
|
|
117
172
|
<item row="2" column="0">
|
|
118
|
-
<widget class="QLabel" name="label_13">
|
|
119
|
-
<property name="text">
|
|
120
|
-
<string>CRS</string>
|
|
121
|
-
</property>
|
|
122
|
-
</widget>
|
|
123
|
-
</item>
|
|
124
|
-
<item row="3" column="0">
|
|
125
173
|
<spacer name="verticalSpacer_4">
|
|
126
174
|
<property name="orientation">
|
|
127
|
-
<enum>Qt::
|
|
175
|
+
<enum>Qt::Vertical</enum>
|
|
128
176
|
</property>
|
|
129
177
|
<property name="sizeHint" stdset="0">
|
|
130
178
|
<size>
|
|
@@ -134,40 +182,6 @@
|
|
|
134
182
|
</property>
|
|
135
183
|
</spacer>
|
|
136
184
|
</item>
|
|
137
|
-
<item row="1" column="1">
|
|
138
|
-
<widget class="QLabel" name="label_15">
|
|
139
|
-
<property name="text">
|
|
140
|
-
<string>module version</string>
|
|
141
|
-
</property>
|
|
142
|
-
</widget>
|
|
143
|
-
</item>
|
|
144
|
-
<item row="5" column="0" colspan="2">
|
|
145
|
-
<widget class="QPushButton" name="pushButton_7">
|
|
146
|
-
<property name="text">
|
|
147
|
-
<string>Edit settings</string>
|
|
148
|
-
</property>
|
|
149
|
-
</widget>
|
|
150
|
-
</item>
|
|
151
|
-
<item row="2" column="1">
|
|
152
|
-
<widget class="QLabel" name="label_16">
|
|
153
|
-
<property name="text">
|
|
154
|
-
<string>module crs</string>
|
|
155
|
-
</property>
|
|
156
|
-
</widget>
|
|
157
|
-
</item>
|
|
158
|
-
<item row="0" column="0" colspan="2">
|
|
159
|
-
<widget class="QLabel" name="label">
|
|
160
|
-
<property name="font">
|
|
161
|
-
<font>
|
|
162
|
-
<pointsize>12</pointsize>
|
|
163
|
-
<bold>true</bold>
|
|
164
|
-
</font>
|
|
165
|
-
</property>
|
|
166
|
-
<property name="text">
|
|
167
|
-
<string>Warning: Upgrade is not yet supported</string>
|
|
168
|
-
</property>
|
|
169
|
-
</widget>
|
|
170
|
-
</item>
|
|
171
185
|
</layout>
|
|
172
186
|
</widget>
|
|
173
187
|
</widget>
|
oqtopus/ui/settings_dialog.ui
CHANGED
|
@@ -11,13 +11,20 @@
|
|
|
11
11
|
</rect>
|
|
12
12
|
</property>
|
|
13
13
|
<property name="windowTitle">
|
|
14
|
-
<string>
|
|
14
|
+
<string>oQtopus settings</string>
|
|
15
15
|
</property>
|
|
16
16
|
<layout class="QGridLayout" name="gridLayout">
|
|
17
|
-
<item row="
|
|
18
|
-
<widget class="
|
|
17
|
+
<item row="3" column="0" colspan="3">
|
|
18
|
+
<widget class="QDialogButtonBox" name="buttonBox">
|
|
19
|
+
<property name="orientation">
|
|
20
|
+
<enum>Qt::Horizontal</enum>
|
|
21
|
+
</property>
|
|
22
|
+
<property name="standardButtons">
|
|
23
|
+
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
24
|
+
</property>
|
|
25
|
+
</widget>
|
|
19
26
|
</item>
|
|
20
|
-
<item row="
|
|
27
|
+
<item row="2" column="1">
|
|
21
28
|
<spacer name="verticalSpacer">
|
|
22
29
|
<property name="orientation">
|
|
23
30
|
<enum>Qt::Vertical</enum>
|
|
@@ -37,6 +44,9 @@
|
|
|
37
44
|
</property>
|
|
38
45
|
</widget>
|
|
39
46
|
</item>
|
|
47
|
+
<item row="0" column="1">
|
|
48
|
+
<widget class="QLineEdit" name="githubToken_lineEdit"/>
|
|
49
|
+
</item>
|
|
40
50
|
<item row="0" column="2">
|
|
41
51
|
<widget class="QToolButton" name="helpButton">
|
|
42
52
|
<property name="text">
|
|
@@ -44,13 +54,10 @@
|
|
|
44
54
|
</property>
|
|
45
55
|
</widget>
|
|
46
56
|
</item>
|
|
47
|
-
<item row="
|
|
48
|
-
<widget class="
|
|
49
|
-
<property name="
|
|
50
|
-
<
|
|
51
|
-
</property>
|
|
52
|
-
<property name="standardButtons">
|
|
53
|
-
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
57
|
+
<item row="1" column="0" colspan="2">
|
|
58
|
+
<widget class="QCheckBox" name="allow_multiple_modules_checkBox">
|
|
59
|
+
<property name="text">
|
|
60
|
+
<string>Allow installation of multiple modules per database</string>
|
|
54
61
|
</property>
|
|
55
62
|
</widget>
|
|
56
63
|
</item>
|