New handle flip implementation. 69/46069/9
authorVictor Cebollada <v.cebollada@samsung.com>
Wed, 5 Aug 2015 08:30:16 +0000 (09:30 +0100)
committerVictor Cebollada <v.cebollada@samsung.com>
Thu, 3 Sep 2015 16:28:37 +0000 (17:28 +0100)
commit5f6dd081cce69c0fc68b3a59b97b406bf4d97557
tree98514a843deb8ae4c1e2d914b92ba7b1d1035a58
parentfa3449165ecd68eeca9f07ca6abf0b56f3477d9e
New handle flip implementation.

* Handles flip when:
  - Cross each other.
    They can flip as soon as they cross or when the handles are released.
    Text::Decorator::FlipSelectionHandlesOnCrossEnabled()
  - According the character's direction.
  - If they exceed the boundaries of the decoration area.

* The bounding area is stored in world coords.
  There is no need to store it in actor coords and then transform it on every query.

* Fixes a crash when selection handles are crossed and text is inserted.

Change-Id: Ie0ec8174cb5f34c17f96d7179fcdc3cf05bc2df8
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
dali-toolkit/internal/controls/text-controls/text-field-impl.cpp
dali-toolkit/internal/text/decorator/text-decorator.cpp
dali-toolkit/internal/text/decorator/text-decorator.h
dali-toolkit/internal/text/text-controller-impl.cpp