Sunghyun Kim [Tue, 29 Jun 2021 07:38:09 +0000 (16:38 +0900)]
[Tizen] Support to use NPatchImage in brokenImage
Support to use NpatchImage in broken Image.
Application can use custom broken image from this patch.
when they set 3 type of broken image(small,normal,large),
dali show the proper broken image considering size.
Change-Id: I7e2be85d4715d07356fd2782be2d011931fde5c2
joogab.yun [Mon, 13 Sep 2021 06:02:50 +0000 (15:02 +0900)]
Merge branch 'devel/master' into tizen
Change-Id: I70420d61dd8d1c0e59db23a69b7cfe0095f18993
Adeel Kazmi [Fri, 10 Sep 2021 15:24:26 +0000 (15:24 +0000)]
Merge "DALi Version 2.0.43" into devel/master
David Steele [Fri, 10 Sep 2021 15:20:44 +0000 (16:20 +0100)]
DALi Version 2.0.43
Change-Id: I6533d88044a276ca94f01fdad0c74b169d94c9b6
Bowon Ryu [Fri, 10 Sep 2021 08:49:58 +0000 (08:49 +0000)]
Merge "fix selection issue in OnCursorKeyEvent" into devel/master
Bowon Ryu [Fri, 10 Sep 2021 05:22:20 +0000 (14:22 +0900)]
Add exception handling in text-controller
There is a case where mGlyphPositions is cleared in Controller::Relayouter::Relayout.
At this time, if try to partially erase mGlyphPositions in ClearGlyphModelData, Assert occurs.
Because the count of mGlyphPositions is already 0.
This patch prevents this issue though a count check.
Change-Id: I00c919c75acd1d389877c55acfcd75878b28bc91
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
Eunki Hong [Fri, 10 Sep 2021 04:01:49 +0000 (04:01 +0000)]
Merge "Fix gradient shader + Remove comment about BorderlineColor" into devel/master
Eunki, Hong [Tue, 7 Sep 2021 12:04:29 +0000 (21:04 +0900)]
Apply to update shaders when CornerRadius/Borderline Animate
When CornerRadius / Borderline features created by animation,
VisualBase Do somethings at "GetPropertyObject" functions
and call UpdateShader.
Color / Image / Gradient visuals were works well.
But some case, like SVG, AnimatedImage, AnimagedVector
did not change the shader.
So the animations are not worked.
This patch update shaders so animation allow to change shader,
so it works well
Furthermore, We make a base virtual functions s.t.
GenerateShader, so reduce code line.
Change-Id: I7423bbe9dd639d22d0f5f5ab66df0d8eab000bec
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Seungho BAEK [Wed, 8 Sep 2021 11:01:18 +0000 (11:01 +0000)]
Merge "Add Scale transition for Page transition" into devel/master
Eunki, Hong [Wed, 8 Sep 2021 09:02:41 +0000 (18:02 +0900)]
Fix gradient shader + Remove comment about BorderlineColor
gradient visual enable preMultipliedAlpha option in default.
Previous version of shader doesn't apply this information
so we fix it.
+
Remove some comments about relationship
between MixColor.alpha and BorderlineColor
ready for ACR
Change-Id: I175e70f670df0aefae0de7906bc0c6c0ad7a2c32
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Bowon Ryu [Tue, 7 Sep 2021 07:57:32 +0000 (16:57 +0900)]
Fix SetPrimaryCursorPosition issue
In SetPrimaryCursorPosition(),
case of (mPrimaryCursorPosition == index), nothing happens.
But if selection is activated, this should be cancelled.
This patch adds a condition to ensure behaviour in selection case.
Change-Id: I5a6b2d44948f42850ee001432c6fc85fb8eab274
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
Eunki, Hong [Tue, 7 Sep 2021 06:36:09 +0000 (15:36 +0900)]
Merge branch 'devel/master' into tizen
Eunki, Hong [Tue, 7 Sep 2021 06:36:01 +0000 (15:36 +0900)]
Revert "[Tizen] Fix svace issue in TextField, TextEditor"
This reverts commit
39cf94a0c6efda9eb8b68fb87419b461edca7a35.
seungho [Thu, 12 Aug 2021 12:44:31 +0000 (21:44 +0900)]
Add Scale transition for Page transition
Change-Id: Ib105de44c78aa8b9d4ab05541d98c303672d22a7
Signed-off-by: seungho <sbsh.baek@samsung.com>
Adeel Kazmi [Mon, 6 Sep 2021 15:49:24 +0000 (15:49 +0000)]
Merge "(Automated Tests) Passing on Ubuntu 20.04" into devel/master
Heeyong Song [Mon, 30 Aug 2021 06:44:12 +0000 (15:44 +0900)]
(Vector) Check an error in SetPlayRange
Change-Id: I26e2dd7d50392c911b148995cfcd81c561fea050
Seungho BAEK [Mon, 6 Sep 2021 05:44:51 +0000 (05:44 +0000)]
Merge "Slide transition for Page transition" into devel/master
Bowon Ryu [Thu, 2 Sep 2021 04:04:53 +0000 (13:04 +0900)]
[Tizen] Fix svace issue in TextField, TextEditor
Change-Id: Id8764781b287bb166d445fe4374d27242606e531
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
Adeel Kazmi [Fri, 3 Sep 2021 15:04:25 +0000 (16:04 +0100)]
DALi Version 2.0.42
Change-Id: Ibd306fe4dfa2e32609d96144668138689245973c
Bowon Ryu [Tue, 31 Aug 2021 12:08:52 +0000 (21:08 +0900)]
fix selection issue in OnCursorKeyEvent
Solved the problem when selecting with Shift + Left, Right.
1. Deselect the left == right case.
Previously, the selection handle was drawn even though nothing was selected, which looked weird.
2. For SelectWholeText and SelectText, set PrimaryCursorPosition to RightSelectionPosition.
Selection processing in OnCursorKeyEvent is implemented assuming that the cursor position is RightSelectionPosition.
mPrimaryCursorPosition = mRightSelectionPosition;
This ensures the above behavior.
Change-Id: I1208e37c93e9941319bc1b88502632800129e4d8
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
seungho [Tue, 27 Jul 2021 04:02:45 +0000 (13:02 +0900)]
Slide transition for Page transition
Change-Id: I527778eafc9b9de64ed0cf7cd008dca81343d522
Signed-off-by: seungho <sbsh.baek@samsung.com>
Adeel Kazmi [Fri, 7 May 2021 16:32:27 +0000 (17:32 +0100)]
(Automated Tests) Passing on Ubuntu 20.04
Change-Id: If9881757da2feef4fb2965cca76075ca490aee2b
Bowon Ryu [Thu, 2 Sep 2021 04:04:53 +0000 (13:04 +0900)]
Fix svace issue in TextField, TextEditor
Change-Id: Id8764781b287bb166d445fe4374d27242606e531
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
jykeon [Wed, 1 Sep 2021 01:23:33 +0000 (10:23 +0900)]
Merge branch 'devel/master' into tizen
Change-Id: I95f2f14d8c4289b1f2f7b6c3f038770847d0e179
joogab yun [Mon, 30 Aug 2021 05:07:26 +0000 (05:07 +0000)]
Merge "Add KEYBOARD_FOCUSABLE_CHILDREN property. Whether the children of this actor can be focusable by keyboard navigation." into devel/master
Seungho BAEK [Mon, 30 Aug 2021 02:44:21 +0000 (02:44 +0000)]
Merge "Fix VD svace problem." into devel/master
joogab yun [Mon, 30 Aug 2021 01:59:08 +0000 (01:59 +0000)]
Merge "The field and editor receive all tap events" into devel/master
joogab.yun [Mon, 30 Aug 2021 01:01:49 +0000 (10:01 +0900)]
The field and editor receive all tap events
Change-Id: I5ae41eeb8f6b6840fb8570ac4b5ac3f9f81e3ef2
Seungho BAEK [Mon, 30 Aug 2021 00:59:48 +0000 (00:59 +0000)]
Merge "Refactoring transition and fadeTransition" into devel/master
Adeel Kazmi [Fri, 27 Aug 2021 12:26:55 +0000 (13:26 +0100)]
Fix SVACE errors in Graphics Backend
Change-Id: I919ed0f473697c8f14c1feb2d66981f052f942f5
David Steele [Fri, 27 Aug 2021 11:43:07 +0000 (11:43 +0000)]
Merge "DALi Version 2.0.41" into devel/master
Adam Bialogonski [Fri, 27 Aug 2021 09:49:34 +0000 (10:49 +0100)]
DALi Version 2.0.41
Change-Id: Id7887461b0d94e6aee80bef9e4dca39884f1776c
seungho [Tue, 17 Aug 2021 07:02:30 +0000 (16:02 +0900)]
Refactoring transition and fadeTransition
- changes fade to fadeTransition
- changes to use world transition and color for the all transition
to make it indepenent of the parent Control and its transitions
Change-Id: I022cc7911445036e28e9c7e250caf021844d4166
Signed-off-by: seungho <sbsh.baek@samsung.com>
seungho [Tue, 24 Aug 2021 05:08:30 +0000 (14:08 +0900)]
Fix VD svace problem.
- The return type of fread is size_t has been converted to ssize_t.
- At the previous implementation, because fread always returns positive value,
the case ssize_t can be negative exists only when the fseek returns non-zero value.
- This patch changes ReadBinFile to return false if it read nothing from binary.
Change-Id: I0de843de4a1b87593b0fc1653a92d2a0d11360f7
Signed-off-by: seungho <sbsh.baek@samsung.com>
joogab.yun [Thu, 19 Aug 2021 08:20:24 +0000 (17:20 +0900)]
Add KEYBOARD_FOCUSABLE_CHILDREN property.
Whether the children of this actor can be focusable by keyboard navigation.
Change-Id: I2b650cc485ead5805a019763d0897094c5bd2f9a
Heeyong Song [Fri, 27 Aug 2021 02:35:14 +0000 (02:35 +0000)]
Merge "(Vector) Replace std::chrono::system_clock with chrono::steady_clock" into devel/master
Bowon Ryu [Fri, 27 Aug 2021 02:01:37 +0000 (02:01 +0000)]
Merge "fix wrong behaviour of SelectNone()" into devel/master
Bowon Ryu [Fri, 27 Aug 2021 01:56:48 +0000 (01:56 +0000)]
Merge "Add SelectionCleared signal" into devel/master
EverLEEst(SangHyeon Lee) [Thu, 26 Aug 2021 10:39:59 +0000 (19:39 +0900)]
Revert "Add RelayoutRequest on Control"
This reverts commit
71c03dad71835226d820f790dbc53f5c538ec65c.
EverLEEst(SangHyeon Lee) [Thu, 26 Aug 2021 10:31:54 +0000 (19:31 +0900)]
Add RelayoutRequest on Control
currently RelayoutRequest is on ControlWrapper,
but Control should request relayout by itself.
Change-Id: I2f40c54998d8b78c4a7b746a5fb9e68d8341d291
Heeyong Song [Thu, 26 Aug 2021 09:48:37 +0000 (18:48 +0900)]
(Vector) Replace std::chrono::system_clock with chrono::steady_clock
Change-Id: If2cfb975c8796963d38141ae3c1868ee385b40c1
Bowon Ryu [Wed, 25 Aug 2021 11:12:04 +0000 (20:12 +0900)]
fix wrong behaviour of SelectNone()
1. It is wrong behaviour for the cursor position to be 0 when selection is canceled.
Keeping the previous cursor position is the proper behavior.
2. SelectNone() only works if selection is enabled.
In this case, if selection is canceled, EDITING state is more appropriate than INACTIVE.
In INACTIVE, it is difficult to continue editing work, such as the cursor being deactivated.
Change-Id: I0f5f678b3ea205bc334ca9d5cd6e7626f37d8d87
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
JIYUN YANG [Wed, 25 Aug 2021 07:08:47 +0000 (07:08 +0000)]
Merge "Implement more request interceptor APIs." into devel/master
Adeel Kazmi [Tue, 24 Aug 2021 18:01:28 +0000 (18:01 +0000)]
Merge "Remove unused custom shader prefix method" into devel/master
Adeel Kazmi [Tue, 24 Aug 2021 13:30:33 +0000 (13:30 +0000)]
Merge "(TextController) Fixed SVACE errors in EventHandler" into devel/master
Adeel Kazmi [Tue, 24 Aug 2021 09:12:06 +0000 (10:12 +0100)]
(TextController) Fixed SVACE errors in EventHandler
Change-Id: I71b617bca81576d478f2eaae794d45ca9fd3f1b8
Sara Samara [Mon, 2 Aug 2021 12:41:26 +0000 (15:41 +0300)]
Support Public APIs - CopyText, CutText & PasteText
with the following prototypes and descriptions:
string CopyText(TextEditor textEditor) or string CopyText(TextField textField)
This function will copy the previously selected string into the clipboard and will return it.
string CutText(TextEditor textEditor) or string CutText(TextField textField)
This function will cut the previously selected string into the clipboard and will return it.
void PasteText(TextEditor textEditor) or void PasteText(TextField textField
This function will paste the most recent string in the clipboard stack into the text control.
Change-Id: I7dc8156e636f95b8acf8c350bfc7827419e239ca
huayong.xu [Tue, 24 Aug 2021 01:45:39 +0000 (09:45 +0800)]
Implement more request interceptor APIs.
Change-Id: Ie8b2d5247431d428c28d17153e98fa6812c2f93b
JunsuChoi [Tue, 24 Aug 2021 01:58:19 +0000 (10:58 +0900)]
Merge branch 'devel/master' into tizen
Change-Id: I19aabf3d95ca2673f9fefcb636b21fbededc2f23
seungho [Mon, 23 Aug 2021 05:15:42 +0000 (14:15 +0900)]
Remove unused custom shader prefix method
Change-Id: Icbcd2f33938db5256a3993f6d5854c20c2307675
Signed-off-by: seungho <sbsh.baek@samsung.com>
abdullah [Sun, 22 Aug 2021 14:46:28 +0000 (17:46 +0300)]
Add SelectionCleared signal
added signal which will be called when selection has been cleared
void OnSelectionCleared(TextEditor textEditor)
Change-Id: Icce352f1709549b86e9697d28588c32ba89affc4
Bowon Ryu [Mon, 23 Aug 2021 08:33:54 +0000 (08:33 +0000)]
Merge "Add SelectionChanged signal" into devel/master
abdullah [Mon, 2 Aug 2021 15:48:39 +0000 (18:48 +0300)]
Add SelectionChanged signal
added signal which will be called when selection has been changed
void OnSelectionChanged(TextEditor textEditor, uint32_t oldStart, uint32_t oldEnd)
Change-Id: I2f769fe11f487462309d8a474fd8ac5aa5c1f2d8
junsu choi [Mon, 23 Aug 2021 01:22:58 +0000 (01:22 +0000)]
Merge "CanvasView: Change Process to be called as PostProcessor" into devel/master
Adeel Kazmi [Fri, 20 Aug 2021 11:20:40 +0000 (11:20 +0000)]
Merge "DALi Version 2.0.40" into devel/master
David Steele [Fri, 20 Aug 2021 11:18:46 +0000 (12:18 +0100)]
DALi Version 2.0.40
Change-Id: I5898f5f1e8cfb8ffaf5ca4e9ed405552184b2727
JunsuChoi [Fri, 20 Aug 2021 07:49:35 +0000 (16:49 +0900)]
CanvasView: Change Process to be called as PostProcessor
Size is set first and then Process Rasterizes.
Change-Id: I11f8806d63acd55dc611114fdfbacee0dc72aa1f
Bowon Ryu [Fri, 20 Aug 2021 06:32:43 +0000 (06:32 +0000)]
Merge "Add CursorPositionChanged Signal" into devel/master
Heeyong Song [Wed, 18 Aug 2021 08:28:55 +0000 (17:28 +0900)]
(Vector) Reduce unnecessray loop
Change-Id: I8b39d4d21e8a397bed8f06dbf03fd85ac2cec6fd
abdullah [Sun, 8 Aug 2021 08:42:39 +0000 (11:42 +0300)]
Add CursorPositionChanged Signal
added signal which will be called when cursor(caret) position has been changed.
void OnCursorPositionChanged(TextEditor textEditor, uint32_t oldPosition)
Change-Id: I5cb768e1a7ae55840fed1d5c320b48ad8731f30d
Bowon Ryu [Fri, 20 Aug 2021 02:21:37 +0000 (02:21 +0000)]
Merge "Support line spacing & min line size in texteditor" into devel/master
joogab.yun [Thu, 19 Aug 2021 06:41:48 +0000 (15:41 +0900)]
If parent is hidden, the child cannot be focused.
Change-Id: I4b8fc1d81099583805c3bfc7ab4fd33231bc9f16
Eunki Hong [Wed, 11 Aug 2021 06:42:00 +0000 (23:42 -0700)]
Disconnect relationship with VisualUrl and VisualFactory
When VisualFactory destory,
VisualFactoryCache also destroy, and TextureManager also destory.
At this time, mTextureInfoContainer clear, and TextureInfo's VisualUrl destroy.
When VisualUrl destuctor called, we call VisaulFactory::Get() and try to get TextureManager.
But We are now on VisualFactory's destroy called...
This is why image-view-encoded-image-buffer.example make Segfault.
This patch move previous VisualUrl's job
to TextureManager and ImageVisual.
Change-Id: Iefc6fe7f8bda6cee08fdaafded4979935cbc87a2
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
Wonsik Jung [Tue, 17 Aug 2021 23:55:24 +0000 (08:55 +0900)]
Merge branch 'devel/master' into tizen
Wonsik Jung [Tue, 17 Aug 2021 23:55:12 +0000 (08:55 +0900)]
Revert "[Tizen] Change raw pointer to unique_ptr"
This reverts commit
3d44f4febf05c13f1fb567012bb7ec7d7a97858c.
Bowon Ryu [Fri, 13 Aug 2021 09:20:00 +0000 (18:20 +0900)]
[Tizen] Change raw pointer to unique_ptr
The mPlaceholderFont pointer is allocated memory once only
when the text-controller uses a placeholder.
This will persist until mEventData is destroyed.
Changed to a smart pointer suitable for maintenance.
Additionally,
In SetPlaceholderTextFontWidth() and SetPlaceholderTextFontSlant(), mPlaceholderFont can not be NULL.
Even if there is no value in SetFontStyleProperty, it is always set to None,
This is because an instance of mPlaceholderFont is created through SetPlaceholderTextFontWeight(), which is called first.
So this causes coverage issues.
Replace the duplicate code with CreatePlaceholderFont() solves this problem.
Change-Id: Ibd11b02f22e505be8643c9360b5d5e5e2de1b318
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
joogab yun [Tue, 17 Aug 2021 01:03:37 +0000 (01:03 +0000)]
Merge "Fixed IsCandidate bug" into devel/master
Bowon Ryu [Tue, 17 Aug 2021 01:03:23 +0000 (01:03 +0000)]
Merge "Change raw pointer to unique_ptr" into devel/master
David Steele [Fri, 13 Aug 2021 13:03:57 +0000 (13:03 +0000)]
Merge "DALi Version 2.0.39" into devel/master
Adeel Kazmi [Fri, 13 Aug 2021 12:46:37 +0000 (13:46 +0100)]
DALi Version 2.0.39
Change-Id: Ia024d79423aef61658cba1f8d9cb1162f472c2e4
Bowon Ryu [Fri, 13 Aug 2021 09:20:00 +0000 (18:20 +0900)]
Change raw pointer to unique_ptr
The mPlaceholderFont pointer is allocated memory once only
when the text-controller uses a placeholder.
This will persist until mEventData is destroyed.
Changed to a smart pointer suitable for maintenance.
Additionally,
In SetPlaceholderTextFontWidth() and SetPlaceholderTextFontSlant(), mPlaceholderFont can not be NULL.
Even if there is no value in SetFontStyleProperty, it is always set to None,
This is because an instance of mPlaceholderFont is created through SetPlaceholderTextFontWeight(), which is called first.
So this causes coverage issues.
Replace the duplicate code with CreatePlaceholderFont() solves this problem.
Change-Id: Ibd11b02f22e505be8643c9360b5d5e5e2de1b318
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
junsu choi [Fri, 13 Aug 2021 00:14:52 +0000 (00:14 +0000)]
Merge "CanvasView: Change CanvasRenderer::GetSize() method to const" into devel/master
Woochanlee [Tue, 10 Aug 2021 07:20:50 +0000 (16:20 +0900)]
Merge branch 'devel/master' into tizen
Eunki Hong [Tue, 10 Aug 2021 04:41:58 +0000 (04:41 +0000)]
Merge "Fix comments about CornerRadiusPolicy and BorderlineColor" into devel/master
abdullah [Mon, 26 Jul 2021 06:42:30 +0000 (09:42 +0300)]
Support line spacing & min line size in texteditor
support texteditor to have properties like textlabel.
line spacing set the space between lines.
min line size set the total line size (we internally take the max between line size vs font line size)
Change-Id: I2cccc910406db181561ff5e7274b997b60b44737
Eunki, Hong [Mon, 9 Aug 2021 05:26:55 +0000 (14:26 +0900)]
Fix comments about CornerRadiusPolicy and BorderlineColor
When CornerRadiusPolicy is Relative, the maximum value is 0.5f.
If value is bigger than 0.5f, it will be clampled internally.
But we cannot notificate that informations only by documents.
Now fix it.
+
We add some more informations about borderline color;
It will be affected by visual opacity
Change-Id: Ic8afc5de3fd92b9cefcb1378959cb9ff4ab8102d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Bowon Ryu [Mon, 9 Aug 2021 04:38:35 +0000 (04:38 +0000)]
Merge "Add TextSelect()" into devel/master
Bowon Ryu [Mon, 9 Aug 2021 04:38:31 +0000 (04:38 +0000)]
Merge "fix wrong behaviour of SelectWholeText()" into devel/master
Bowon Ryu [Mon, 9 Aug 2021 04:38:20 +0000 (04:38 +0000)]
Merge "Fix SetPrimaryCursorPosition() behaviour when no focus" into devel/master
joogab.yun [Fri, 6 Aug 2021 15:54:27 +0000 (00:54 +0900)]
Fixed IsCandidate bug
Change-Id: Ibaa8a6412f28acf60011173487123f0d9dc6ec08
Adeel Kazmi [Fri, 6 Aug 2021 10:28:07 +0000 (10:28 +0000)]
Merge "DALi Version 2.0.38" into devel/master
Richard Huang [Fri, 6 Aug 2021 09:47:51 +0000 (10:47 +0100)]
DALi Version 2.0.38
Change-Id: Id8fc11eea89453a28282de08ba8635d0df8006e6
Eunki Hong [Fri, 6 Aug 2021 03:46:40 +0000 (03:46 +0000)]
Merge "[ATSPI] Fix for SCREEN coordinate type in GetExtents" into devel/master
Shinwoo Kim [Fri, 6 Aug 2021 00:41:17 +0000 (00:41 +0000)]
Merge "[AT-SPI] enhance SHOWING state decision logic" into devel/master
joogab.yun [Thu, 5 Aug 2021 17:11:27 +0000 (02:11 +0900)]
Fixed bug
Change-Id: Ib1f9d1ebbab42399dd8437247adea2072061b30c
Daekwang Ryu [Thu, 3 Jun 2021 06:27:49 +0000 (15:27 +0900)]
Fix to build incrementally with gbs
Incremental build with gbs calls the prep section in the rpm spec once.
It doesn't execute the section from second.
Change-Id: I5eaa375566013bd91de206a34fd0acee937a4e6b
joogab.yun [Wed, 4 Aug 2021 03:05:34 +0000 (12:05 +0900)]
Check if actor can be focused.
Change-Id: I7066fae12059dbdb29e333dd2aac653bf7656ba7
Bowon Ryu [Tue, 20 Jul 2021 08:39:16 +0000 (17:39 +0900)]
Add TextSelect()
This api can replace the SELECTED_TEXT_START and SELECTED_TEXT_END properties.
The feature to select a range of text should be provided as a method like SelectWholeText(), SelectNone().
Currently, the SELECTED_TEXT_START and SELECTED_TEXT_END properties are causing several problems.
1. User can not set start and end at the same time.
2. Since it is not an event method, it does not work if it is called before text is rendered.
This patch adds SelectText().
And I will make a separate patch to remove the property.
Change-Id: I5a050cd88b9597b939766e1a6ec0e39edf96e2d4
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
JunsuChoi [Thu, 5 Aug 2021 06:19:27 +0000 (15:19 +0900)]
CanvasView: Change CanvasRenderer::GetSize() method to const
Change-Id: Ia75ec89ae37ef457102e124eb4ad186dcee480b3
Bowon Ryu [Mon, 12 Jul 2021 10:56:15 +0000 (19:56 +0900)]
fix wrong behaviour of SelectWholeText()
When there are multiple text controls,
there is a problem that the selection is keeped even if the text control loses focus
due to another text control's SelectWholeText().
This patch prevents wrong selection updates via flags.
// example
DevelTextField::SelectWholeText(field1);
DevelTextField::SelectWholeText(field2);
DevelTextField::SelectWholeText(field3);
DevelTextField::SelectWholeText(field4);
In the case of above example, all TextFields display a selection.
Change-Id: I96f87d0b12e4a91493831ca55e0f8b662391456e
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
Bowon Ryu [Mon, 5 Jul 2021 11:12:31 +0000 (20:12 +0900)]
Fix SetPrimaryCursorPosition() behaviour when no focus
If TextField does SetPrimaryCursorPosition() before CONNECTED_TO_SCENE,
there is an issue that the caret renders regardless of focus.
Also, SetPrimaryCursorPosition() always sets focus to the Text Control regardless of the user's intent.
This creates unintended bugs in the app.
This patch only updates the value of PrimaryCursorPosition when there is no focus.
When there is focus, the behaviour is the same.
Change-Id: I2bc5851c36e2c08976e7ca4656bfe38f6afe0653
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
Lukasz Oleksak [Thu, 29 Jul 2021 13:58:34 +0000 (15:58 +0200)]
[ATSPI] Fix for SCREEN coordinate type in GetExtents
Change-Id: I9c030b9cd7d153e19de13d381778ab1750c71cb3
Eunki Hong [Tue, 3 Aug 2021 11:10:06 +0000 (11:10 +0000)]
Merge "PositionSize API at dali-toolkit-test-utils/toolkit-window.cpp" into devel/master
Eunki, Hong [Tue, 3 Aug 2021 09:44:08 +0000 (18:44 +0900)]
PositionSize API at dali-toolkit-test-utils/toolkit-window.cpp
Previous version don't use Window.RenderSurface's PositionSize information
I add some interface that toolkit UTC can use it.
Change-Id: I59aae83bdf84c71dcc936b076b424eb0fcc8df9e
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Eunki, Hong [Mon, 2 Aug 2021 05:29:12 +0000 (14:29 +0900)]
Remove VisualFactory::Get() code at AsyncImageLoader
Make to send EncodedImageBuffer from TextureManager to AsyncImageLoader directly.
Now we don't need to get standalone factory at AsyncImageLoader.
So we don't need fearful exception check
Change-Id: I9b903c6a446fc167d11bdf7e22e6c7e19d085cc5
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Shinwoo Kim [Wed, 26 May 2021 05:11:14 +0000 (14:11 +0900)]
[AT-SPI] enhance SHOWING state decision logic
To define SHOWING state, using CULLED and VISIBLE property is not enough.
If a child is clipped out by its parent, then CULLED property is not TRUE.
We need to use similar logic as EFL does.
./src/lib/elementary/efl_ui_widget.c > _elm_widget_onscreen_is
is used for calculating SHOWING state using parents geometry information.
So this patch set is using parents extent information for SHOWING state.
Change-Id: I5eecf93c66ce199bd0ca88f3ad3ff471c1ff79a5
seungho [Tue, 3 Aug 2021 00:28:15 +0000 (09:28 +0900)]
Merge branch 'devel/master' into tizen
Change-Id: Ie090bebf9447c29b86156c062adc4cdebbee8c10
Eunki, Hong [Mon, 2 Aug 2021 10:58:44 +0000 (19:58 +0900)]
Remove Unnecessary Doxygen PREDEFINED
This typoerror exist since 2014-11-14. And today, It fixed.
Change-Id: I51d71ca119ea061bf369b97535fed7526c2d9419
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
joogab yun [Sun, 1 Aug 2021 23:52:33 +0000 (23:52 +0000)]
Merge "Set TapGesture only if there is an anchor." into devel/master
joogab.yun [Tue, 27 Jul 2021 18:40:45 +0000 (03:40 +0900)]
Set TapGesture only if there is an anchor.
Change-Id: I3787911cbedda12b5d781e8de6b16902c23186e7