Text selection refactoring 25/242725/10
authorali <ali198724@gmail.com>
Mon, 31 Aug 2020 12:41:01 +0000 (15:41 +0300)
committerali198724 <ali198724@gmail.com>
Thu, 10 Sep 2020 21:27:18 +0000 (00:27 +0300)
commit60d99d04d7677a1b91d4f2fdd9e74bc5e1b5e7bf
tree3443760a256b927b7a4e559a50273200b3933817
parent893ec494389e7fe476a64e220ae97eedb73e74d7
Text selection refactoring

This Task contains two main parts:

1- Introduce internal interface Dali::Toolkit::Text::SelectableControlInterface which is inherited by TextEditor and TextField
Both Class needs to implement this interface methods, else developer will get compilation error

2- Introduce Properties to get/set Text Selection Ranges start and end positions in Devel namespace, SELECTED_TEXT_START (start position) SELECTED_TEXT_END (end position)
this allow programatical set for text selection, also get selection range programatically

Change-Id: I7ec96d4f1570218f0e945f21a03a6a10e5e8fe97
13 files changed:
automated-tests/src/dali-toolkit/utc-Dali-TextEditor.cpp
automated-tests/src/dali-toolkit/utc-Dali-TextField.cpp
dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h
dali-toolkit/devel-api/controls/text-controls/text-field-devel.h
dali-toolkit/internal/controls/text-controls/text-editor-impl.cpp
dali-toolkit/internal/controls/text-controls/text-editor-impl.h
dali-toolkit/internal/controls/text-controls/text-field-impl.cpp
dali-toolkit/internal/controls/text-controls/text-field-impl.h
dali-toolkit/internal/text/text-controller-impl.cpp
dali-toolkit/internal/text/text-controller-impl.h
dali-toolkit/internal/text/text-controller.cpp
dali-toolkit/internal/text/text-controller.h
dali-toolkit/internal/text/text-selectable-control-interface.h [new file with mode: 0644]