[4.0] Action framework for visuals 84/162384/2
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Thu, 16 Nov 2017 19:36:03 +0000 (19:36 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Fri, 1 Dec 2017 14:37:14 +0000 (14:37 +0000)
commitc87aeaa59d2fba71b34ba2d8cd4ec6180a44367a
treec9e25b845e5e4a43679e32ec350025f0326ea815
parenta7430bf34239b5e4f32657ec8100e42756d1919a
[4.0] 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
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
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