diff --git a/QgisModelBaker/gui/workflow_wizard/database_selection_page.py b/QgisModelBaker/gui/workflow_wizard/database_selection_page.py index b7f51c5c..8388630c 100644 --- a/QgisModelBaker/gui/workflow_wizard/database_selection_page.py +++ b/QgisModelBaker/gui/workflow_wizard/database_selection_page.py @@ -159,5 +159,24 @@ def is_valid(self): ) return res + def help_text(self): + logline = self.tr( + "Here you have to set the connection parameters for your datasource..." + ) + help_paragraphs = self.tr( + """ +
You can select a gpkg
file.
+ Or if you want to create a new one, just type the desired name on an existing path (and it will be created).
For a detailed description of each parameter, see the documentation
+A superuser login must be configured in the Model Baker settings Database < Model Baker < Settings.
+ """
+ )
+ docutext = self.tr(
+ 'Find more information about the database settings in the documentation...'
+ )
+ return logline, help_paragraphs, docutext
+
def nextId(self):
return self.workflow_wizard.next_id()
diff --git a/QgisModelBaker/gui/workflow_wizard/default_baskets_page.py b/QgisModelBaker/gui/workflow_wizard/default_baskets_page.py
index 8c97c48f..6f62db36 100644
--- a/QgisModelBaker/gui/workflow_wizard/default_baskets_page.py
+++ b/QgisModelBaker/gui/workflow_wizard/default_baskets_page.py
@@ -103,3 +103,19 @@ def _skip(self):
self.skip_button.setDisabled(True)
self.baskets_panel.setDisabled(True)
self.setComplete(True)
+
+ def help_text(self):
+ logline = self.tr(
+ "Honestly, I don't know if you want to create the baskets or skip this step.
See below..."
+ )
+ help_paragraphs = self.tr(
+ """
+
If you plan to import data later (from xtf
or xml
), the necessary baskets will be created on import anyway.
However, if you have no data to import and want to collect the data fresh, you may need to create the baskets.
+The checked baskets are those that Model Baker has identified as relevant according to the recognised inheritance.
+ """ + ) + docutext = self.tr( + 'Find more information about this in the documentation and about baskets and datasets in general here...' + ) + return logline, help_paragraphs, docutext diff --git a/QgisModelBaker/gui/workflow_wizard/execution_page.py b/QgisModelBaker/gui/workflow_wizard/execution_page.py index 267bf25c..35779911 100644 --- a/QgisModelBaker/gui/workflow_wizard/execution_page.py +++ b/QgisModelBaker/gui/workflow_wizard/execution_page.py @@ -199,3 +199,19 @@ def _on_process_finished(self, exit_code, result): message = self.tr("Finished with errors!") self.workflow_wizard.log_panel.print_info(message, level) + + def help_text(self): + logline = self.tr("Run, skip or edit the required ili2db sessions...") + help_paragraphs = self.tr( + """ +With the small triangle next to run, you can expand the possiblities.
+Usually the required ili2db sessions are detected, you should not need to skip them.
+You might need to edit the command in case your system requires it. But you would know, if you need to.
+A pretty common use case is, that you want to import invalid data, to fix 'em in QGIS.
+ So you can create schemas without constraints and/or import data without validation.
You can filter your data by the models, datasets or baskets in which it is stored.
+Still you can choose Export data in another model, which allows you to select a base model as the data format.
+ Even if the data is stored in an extended model.
Those are the datafiles you've chosen for import or were detected automatically. If one shouldn't be there, you can remove it with -
.
Maybe you want to add referenced data file from the repositories (ilidata.xml).
+Or you may want to change the order of the imports (perhaps the user data depends on the catalogue data, etc.),
which you can do by dragging and dropping with the arrows on the left.
If you choose to delete, the existing data will be deleted before the new data is imported.
Usually this makes no difference when using baskets, as an update will also replace the data.
Choose the dataset. If you need another, then create a new one via the Dataset manager.
+ """ + ) + docutext = self.tr( + 'Find more information about this page in the documentation and about baskets and datasets in general here ...' + ) + return logline, help_paragraphs, docutext diff --git a/QgisModelBaker/gui/workflow_wizard/import_schema_configuration_page.py b/QgisModelBaker/gui/workflow_wizard/import_schema_configuration_page.py index 66636770..837f2ee6 100644 --- a/QgisModelBaker/gui/workflow_wizard/import_schema_configuration_page.py +++ b/QgisModelBaker/gui/workflow_wizard/import_schema_configuration_page.py @@ -578,3 +578,28 @@ def _load_metaconfig(self): self.workflow_wizard.refresh_import_models() self.workflow_wizard.busy(self, False) + + def help_text(self): + logline = self.tr( + "Now the given models are detected. You may not need all of 'em..." + ) + help_paragraphs = self.tr( + """ +There are several ways the Model Baker wizard detects INTERLIS models: +
You can check or uncheck the models you want to import to a physical schema.
+As well you can select a Metaconfiguration file from the repositories to load ili2db settings and styling properties into QGIS project.
+ More information about those metaconfigurations in the documentation.
The Advanced Options allow you to edit the most important ili2db settings
+ """ + ) + docutext = self.tr( + 'Find more information about this in the documentation...' + ) + return logline, help_paragraphs, docutext diff --git a/QgisModelBaker/gui/workflow_wizard/import_source_selection_page.py b/QgisModelBaker/gui/workflow_wizard/import_source_selection_page.py index 7dcb34a1..9457143d 100644 --- a/QgisModelBaker/gui/workflow_wizard/import_source_selection_page.py +++ b/QgisModelBaker/gui/workflow_wizard/import_source_selection_page.py @@ -220,3 +220,18 @@ def _clear_cache_button_clicked(self): IliToppingFileCache.CACHE_PATH, str(exception) ), ) + + def help_text(self): + logline = self.tr( + "Here you need to add the models and/or files you want to use..." + ) + help_paragraphs = self.tr( + """ +You can select a model from the repository and add it with the +
.
You can add local files (ili
, xtf
, xml
, toml
etc.) via the file browser or with drag and drop.
If you want to create a physical database based on an INTERLIS model, regardless of whether it is based on an ili-file or a model from the repository.
+Or if you want to import data (catalogues or user data), regardless of whether the database already exists or not.
+If you want to select a database from which to create a QGIS project.
+If you want to export data to an XTF file.
+ """ + ) + docutext = self.tr( + 'Find more information about the workflow wizard in the documentation...' + ) + return logline, help_paragraphs, docutext diff --git a/QgisModelBaker/gui/workflow_wizard/project_creation_page.py b/QgisModelBaker/gui/workflow_wizard/project_creation_page.py index 95bf5d73..013a20e8 100644 --- a/QgisModelBaker/gui/workflow_wizard/project_creation_page.py +++ b/QgisModelBaker/gui/workflow_wizard/project_creation_page.py @@ -711,3 +711,22 @@ def _inheritance(self): for setting_record in setting_records: if setting_record["tag"] == "ch.ehi.ili2db.inheritanceTrafo": return setting_record["setting"] + + def help_text(self): + logline = self.tr( + "Most of the time you won't need to change anything here.If your database was created using a metaconfiguration (you'd know this), it will now be recognised.
+If not, you may still be able to choose a project topping from the repositories.
+The project is optimized depending on the inheritance structure of the INTERLIS model on which it is based.
+ Means it hides unused layers etc. Read more about optimization strategies here.
Model Baker recognized the OID Type according to the model and proposed default expressions.
+You still can change them. In case of STANDARDOID
you have to set your own prefix.
t_id
valueWhen using STANDARDOID
or I32OID
we need a sequence. Here we take the one from the t_id
.
+ When you change it here, be aware that you don't set it lower than a currently used t_id
.
{docutext}
+...or get community help at {forum} or at {github}
+ """ + ).format( + docutext=docutext, + forum='Model Baker @ INTERLIS Forum', + github='GitHub', + ), + ) + log_paragraph = f'< {logline}