Closed meomancer closed 7 years ago
For a simple help system you may want to look at the messaging classes from InaSAFE (@ismailsunni we could hive those out to a separate package / repo). They have the advantage that you do not need separate workflows for translating project documentation and UI stuff. See e.g.
https://github.com/inasafe/inasafe/blob/develop/safe/gui/tools/help/function_options_help.py
Hi @timlinux
Yeah, I think we can do it. But the messaging classes are not completely separated from the other code. It imports tr
, get_unicode
, and resource_path
. Perhaps we can move them out to a separate package. I checked, those three helper methods are independent from the rest of the code. Then we can have qgis_plugin_utilities
repository that people can re-use it also.
Using message class
Looks very nice to me
Then we can have qgis_plugin_utilities repository that people can re-use it also.
They are many files that we need to copy and paste when we work on another plugin : messaging system, datastore (folder, geopackage, postgis ...), helpers to load a ressource, helpers to load a vector/raster layer for tests, debug helpers ... It could be very nice if we can refactor these.
Looking nice @meomancer !
They are many files that we need to copy and paste when we work on another plugin : messaging system, datastore (folder, geopackage, postgis ...), helpers to load a ressource, helpers to load a vector/raster layer for tests, debug helpers ... It could be very nice if we can refactor these.
Yeah, totally agree with this.
Hi @meomancer if you want to merge this PR, please go. The PR is getting bigger. You can make another PR for the Update Project Helper.
Added helper fix #45 :