Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-276

Add a GridView component

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 2.5
    • wtk
    • None

    Description

      GridView would be a data-driven component like ListView or TableView, but would arrange items in a 2-dimensional grid instead of in rows (similar to "icon view" in Windows Explorer or Mac OS X Finder). It would provide an orientation property that would dictate which way items would be laid out: a horizontal grid view would arrange items left to right, and a vertical grid view would arrange them top to bottom.

      GridView would assume a fixed renderer size, and would report preferred size based on orientation: e.g. the preferred size of a horizontal grid view would be (n * renderer width) x (renderer height). Constraining the preferred width of a horizontal grid view would cause the items to wrap at the end of each row; constraining the preferred height of a grid view would cause items to wrap at the end of each column.

      Attachments

        1. GridView.patch
          114 kB
          Edvin Syse
        2. grid_view_component_explorer.patch
          4 kB
          Christopher James Bartlett
        3. grid_view_component_explorer.png
          38 kB
          Christopher James Bartlett

        Issue Links

          Activity

            People

              edvin Edvin Syse
              gbrown Gregory K. Brown
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: