[GRASS-git] [OSGeo/grass] 37b39d: wxGUI: Display infobar focused on first-time user ...

Linda Kladivova noreply at github.com
Tue Dec 15 12:08:16 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: 37b39db0b967f513b8f636f1efb134655fe1aa19
      https://github.com/OSGeo/grass/commit/37b39db0b967f513b8f636f1efb134655fe1aa19
  Author: Linda Kladivova <49241681+lindakladivova at users.noreply.github.com>
  Date:   2020-12-15 (Tue, 15 Dec 2020)

  Changed paths:
    M gui/wxpython/datacatalog/__init__.py
    M gui/wxpython/datacatalog/catalog.py
    A gui/wxpython/datacatalog/infomanager.py
    M gui/wxpython/gui_core/__init__.py
    A gui/wxpython/gui_core/infobar.py

  Log Message:
  -----------
  wxGUI: Display infobar focused on first-time user (#1078)

When in demolocation (as identified by its name), display first info bar informing a user about db/loc/mapset and CRS.
Assuming, first-time user, but no check done for that.

Shows two paragraphs with a single notification. Positioned on top of the data catalog area (much easier than map window, related to data, default tab, top seems to be a standard, more expected position. Colors a system highlight without alpha because info bar overlays its own widgets.

Create new location and learn more buttons (besides close). The two buttons don't close the info bar for user to be able to go back and review the message again (good for first-time user).

API is concentrated in a new InfoBar class. Data catalog has info bar code separated into a dedicated manager class.

Co-authored-by: Vaclav Petras <wenzeslaus at gmail.com>
Co-authored-by: Anna Petrasova <kratochanna at gmail.com>




More information about the grass-commit mailing list