cosmoscout / cosmoscout-vr

:milky_way: A virtual universe which lets you explore, analyze and present huge planetary datasets and large simulation data in real-time.
Other
351 stars 27 forks source link

Cleanup GUI manager interface (and fix "removing undefined child of node"-error) #306

Closed Schneegans closed 1 year ago

Schneegans commented 1 year ago

I think that this is going to be the last PR before we can publish 1.6.0!

With this PR, the interface of the GuiManager is streamlined. Before, HTML templates could be added via addHtmlToGui() but had to be removed with an explicit JavaScript call. The same was true for adding and removing stylesheets. Here are all the changes:

All plugins now use this updated API. Furthermore, some plugins have been simplified by moving their HTML templates to the sidebar HTML files. This reduces the number of required files and a few lines of code for registering and unregistering the templates.

Edit: I also explicitely download clang-format-11 for the formatting check. This way it's easier to reproduce the formatting locally.

coveralls commented 1 year ago

Pull Request Test Coverage Report for Build 3219511883


Changes Missing Coverage Covered Lines Changed/Added Lines %
plugins/csp-anchor-labels/src/Plugin.cpp 0 1 0.0%
plugins/csp-atmospheres/src/Plugin.cpp 0 1 0.0%
plugins/csp-lod-bodies/src/Plugin.cpp 0 1 0.0%
plugins/csp-sharad/src/Plugin.cpp 0 1 0.0%
plugins/csp-stars/src/Plugin.cpp 0 1 0.0%
plugins/csp-vr-accessibility/src/Plugin.cpp 0 1 0.0%
plugins/csp-fly-to-locations/src/Plugin.cpp 0 3 0.0%
plugins/csp-measurement-tools/src/Plugin.cpp 0 3 0.0%
plugins/csp-wms-overlays/src/Plugin.cpp 0 3 0.0%
plugins/csp-minimap/src/Plugin.cpp 0 10 0.0%
<!-- Total: 0 38 0.0% -->
Files with Coverage Reduction New Missed Lines %
plugins/csp-sharad/src/Plugin.cpp 1 0%
src/cs-core/GuiManager.cpp 4 0%
<!-- Total: 5 -->
Totals Coverage Status
Change from base Build 3188625428: 0.0006%
Covered Lines: 491
Relevant Lines: 16305

💛 - Coveralls