Difference between revisions of "NewModelViewArchitecture"

From CEGUI Wiki - Crazy Eddie's GUI System (Open Source)
Jump to: navigation, search
(first draft)
m (rename to *View)
Line 15: Line 15:
 
=Affected widgets=
 
=Affected widgets=
 
===Changed (to the new architecture) widgets===
 
===Changed (to the new architecture) widgets===
* ComboBox + ComboDropList
+
* ComboBox + ComboDropList -> ComboView
* Tree
+
* Tree -> TreeView
* ListBox
+
* ListBox -> ListView
  
 
===New widgets===
 
===New widgets===
* Grid
+
* GridView
 
* ListBoxWidget (combines model & view together for simple usage cases)
 
* ListBoxWidget (combines model & view together for simple usage cases)
  
 
===Removed/deprecated widgets===
 
===Removed/deprecated widgets===
* MultiColumnList (replaced by Grid)
+
* MultiColumnList (replaced by GridView)
 
* ItemListbox (duplicated by ListBox)
 
* ItemListbox (duplicated by ListBox)
  

Revision as of 22:08, 13 May 2014

Homepage for the WIP Model-View architecture for CEGUI widgets!

Introduction

The new architecture aims to unify the underlying implementation of several widgets so that they will use a common base model provider. This will involve a lot of ABI and API breakage.

Proposed architecture

TODO

ModelIndex

Identify uniquely items in the model.

ViewModel

The model for the view, that provides data like items count to the view. This is implemented by the developers that want to use this new architecture.

Affected widgets

Changed (to the new architecture) widgets

  • ComboBox + ComboDropList -> ComboView
  • Tree -> TreeView
  • ListBox -> ListView

New widgets

  • GridView
  • ListBoxWidget (combines model & view together for simple usage cases)

Removed/deprecated widgets

  • MultiColumnList (replaced by GridView)
  • ItemListbox (duplicated by ListBox)

To decide

  • ItemListBase
    • It's used in other places like: MenuBase and ScrolledItemListBase
    • Remove the other usages as well?