mediawiki-extensions-Visual.../modules/ve/ui
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
..
dialogs UI "Views" refactor 2013-04-18 15:53:50 -07:00
elements Stack panel, element mixins, cleanup 2013-03-28 12:40:01 -07:00
inspectors UI "Views" refactor 2013-04-18 15:53:50 -07:00
layouts Stack panel, element mixins, cleanup 2013-03-28 12:40:01 -07:00
styles Dialog button changes 2013-04-10 12:34:52 -07:00
tools UI "Views" refactor 2013-04-18 15:53:50 -07:00
widgets ve.ui.SelectWidget: Keep track of mouse down 2013-04-17 11:40:16 +00:00
ve.ui.Context.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.Dialog.js Dialog button changes 2013-04-10 12:34:52 -07:00
ve.ui.DialogFactory.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.Element.js Doc: Replace "@property @type {Type}" with "@property {Type}". 2013-03-28 21:21:56 +01:00
ve.ui.Frame.js Simplified iframe initialization 2013-04-16 12:59:11 -07:00
ve.ui.Inspector.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.InspectorFactory.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.js Group, Select, Option, Outline and MenuSection widgets 2013-03-20 22:55:32 +00:00
ve.ui.Layout.js Layouts, grids and panels 2013-03-15 15:12:56 -07:00
ve.ui.Tool.js Doc: Replace "@property @type {Type}" with "@property {Type}". 2013-03-28 21:21:56 +01:00
ve.ui.Toolbar.js Death and/or destruction 2013-04-18 13:56:20 -07:00
ve.ui.ToolFactory.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.ui.ViewRegistry.js UI "Views" refactor 2013-04-18 15:53:50 -07:00
ve.ui.Widget.js Layouts, grids and panels 2013-03-15 15:12:56 -07:00
ve.ui.Window.js Dialog button changes 2013-04-10 12:34:52 -07:00
ve.ui.WindowSet.js No more confusing boolean argument for closing windows 2013-04-10 12:31:49 -07:00