Skip to content

[Feat] wxGUI/dbmgr: add show/hide column functionality #6589

Description

@tmszi

Is your feature request related to a problem? Please describe.

Sometimes some vector maps tables has many number of columns. For better readability I would like hide some columns and show them again as needed.
Back in the days, I saw similar functionality implemented in the proprietary and commercial ESRI ArcGIS ArcView 3.x/ArcMap 9.x version software.

Describe the solution you'd like

  1. Global enabling/disabling this functionality via preference dialog (Enable hide/show column)
  2. Append menu item (Hide column and Show all columns) in the column right click menu
  3. Save hidden columns settings as persistent settings in the global attribute table manager (atm) settings

Example of attribute table manager hidden columns settings (wx.json file), see enableHiddenCols and hiddenCols field:

  "atm": {
    "highlight": {
      "color": "#ffff00ff",
      "width": 2,
      "auto": true
    },
    "leftDbClick": {
      "selection": 1
    },
    "askOnDeleteRec": {
      "enabled": true
    },
    "keycolumn": {
      "value": "cat"
    },
    "encoding": {
      "value": ""
    },
    "enableHiddenCols": {
      "enabled": true
    },
    "hiddenCols": {
      "/tmp/grassdata/nc_basic_spm_grass7/PERMANENT": {
        "railroads@PERMANENT": {
          "railroads": [
            "MINOR1",
            "MAJOR1",
            "RR24_100_",
            "LENGTH",
            "OBJECTID"
          ]
        },
        "firestations@Test": {
          "firestations": [
            "PUMPER_TAN",
            "PUMPERS"
          ]
        },
        "firestations@PERMANENT": {
          "firestations": [
            "CITY",
            "LOCATION",
            "LABEL"
          ]
        }
      }
    }
  },

Additional context

wxgui_dbmgr_hide_show_column.mp4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GUIwxGUI relatedenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions