Action framework for visuals 59/160559/12
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Thu, 16 Nov 2017 19:36:03 +0000 (19:36 +0000)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Thu, 23 Nov 2017 17:05:53 +0000 (17:05 +0000)
commit0ba4d17563f6d40d65b4d233b1a44a2d0a6fc709
tree9bc5b40d89c8b2c46a192408b2f178bf9ce49d33
parent97b4aa143b2acf8278068cf994522deb72cc6ce8
Action framework for visuals

Internal::Visual::Base has a DoAction API which calls the OnDoAction in derived Visual if they want
 to act on any Actions they have defined.

Control has a devel API to DoAction on any of it's registered visuals.

If a action is requested on a visual, if the visual does not implement it then
 nothing is done.

Action will be provided by Indexes,  in future may add an API for strings if
 builder requires but internal.
 Property::Key has an explict constructor hence not used.

DummyVisual added to test framework, can be used in Internal tests. Visuals creation not public.

Change-Id: Ib4590f5a76d4b45adcb2213eee70c1bbd91f88a2
13 files changed:
automated-tests/src/dali-toolkit-internal/CMakeLists.txt
automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/dummy-visual.cpp [new file with mode: 0644]
automated-tests/src/dali-toolkit-internal/dali-toolkit-test-utils/dummy-visual.h [new file with mode: 0644]
automated-tests/src/dali-toolkit-internal/utc-Dali-Control-internal.cpp [new file with mode: 0644]
automated-tests/src/dali-toolkit-internal/utc-Dali-Visuals-internal.cpp [new file with mode: 0644]
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.cpp
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/dummy-control.h
dali-toolkit/devel-api/controls/control-devel.cpp
dali-toolkit/devel-api/controls/control-devel.h
dali-toolkit/internal/controls/control/control-data-impl.cpp
dali-toolkit/internal/controls/control/control-data-impl.h
dali-toolkit/internal/visuals/visual-base-impl.cpp
dali-toolkit/internal/visuals/visual-base-impl.h