HomePhabricator

[WIP] Add LexemeViewFactory to enable adding forms.
7f12871270d1Unpublished

Authored by Jakob_WMDE on Apr 18 2017, 3:51 PM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

[WIP] Add LexemeViewFactory to enable adding forms.

This adds a LexemeViewFactory extending ControllerViewFactory in order
to wire the lexemeview, lexemeformsectionview and lexemeformview
together including toolbar and ToolbarViewController for the
lexemeformview.

As an intermediate solution the underlying value of the lexemeformview
widget is implemented as a Term (similar to the labelview widget) as a
workaround to provide the equals method that the ToolbarViewController
expects.

Persistence is not implemented yet. It uses a fake model instead of an
EntityChanger that always resolves the "save" promise.

Note: this is completely untested, contains a lot of TODOs, FIXMEs and
might still break in various places. Basic adding and editing of forms
should work though.

Bug: T162339
Bug: T162340
Bug: T162341
Change-Id: Ie36d5e5dbd80706f26f91d57abe742decfad3c3d
Depends-On: I41500982409eca564baf9b127e3315983ba26791

Details

Committed
Jakob_WMDEApr 18 2017, 4:24 PM
Parents
rEWLE18ef8b674273: [WIP] Add lexem form section view
Branches
Unknown
Tags
Unknown
References
refs/changes/56/348756/1
ChangeId
Ie36d5e5dbd80706f26f91d57abe742decfad3c3d