mediawiki-extensions-Visual.../modules/ve/ui/tools
Trevor Parscal bf254f44da UI "Views" refactor
Objective:

Make it possible for inspectors to inspect nodes or annotations, rather
than only annotations. Meanwhile, also make it possible for dialogs to
edit an annotation.

Strategy:

Switch from using type patterns to associate inspectors with annotations
to using arrays of classes, similar to how dialogs already work.
Introduce a view registry which provides lookups for relationships
between models and views. This is more centralized and less repetitive
than implement matching functions for both annotations and nodes in both
the dialog and inspector factories.

Changes:

*.php
* Added links to new file

ve.AnnotationAction.js
* Removed unused parameter to filter annotations using a string or regexp

ve.dm.AnnotationSet.js
* Switched from property/value arguments to callbacks

ve.ui.*(Dialog|Inspector).js
* Replaced type patterns with class lists
* Added class to view registry

ve.ui.*Tool.js, ve.ui.Context.js
* Updated model/view relationship lookup

ve.ui.*Factory.js
* Removed overly-specific lookup functions

ve.ui.Inspector.js
* Removed typePattern property
* Updated model/view relationship lookup

ve.ui.ViewRegistry.js
* New class!
* Migrated node and annotation lookup functions from factories

Change-Id: Ic2bbcf072fdd87e5ce8a03fe1ae3e6d8d50e2593
2013-04-18 15:53:50 -07:00
..
buttons Media dialog support 2013-04-05 11:52:57 -07:00
dropdowns Store data in LinearData class with an index-value store for objects 2013-03-30 10:06:34 +00:00
ve.ui.AnnotationButtonTool.js Store data in LinearData class with an index-value store for objects 2013-03-30 10:06:34 +00:00
ve.ui.ButtonTool.js
ve.ui.DialogButtonTool.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.DropdownTool.js
ve.ui.IndentationButtonTool.js Store data in LinearData class with an index-value store for objects 2013-03-30 10:06:34 +00:00
ve.ui.InspectorButtonTool.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.ListButtonTool.js Store data in LinearData class with an index-value store for objects 2013-03-30 10:06:34 +00:00