platform/core/uifw/dali-toolkit.git
5 months agoMerge "DALi Version 2.1.4" into devel/master
David Steele [Fri, 7 Jan 2022 10:19:16 +0000 (10:19 +0000)]
Merge "DALi Version 2.1.4" into devel/master

5 months agoDALi Version 2.1.4 89/269089/1 dali_2.1.4
Adam Bialogonski [Fri, 7 Jan 2022 10:05:41 +0000 (10:05 +0000)]
DALi Version 2.1.4

Change-Id: I3144cd32c56d0226f545406e8afd7cc6f9a864bd

5 months agoMerge "Add ENABLE_FONT_SIZE_SCALE property to text components" into devel/master
Bowon Ryu [Fri, 7 Jan 2022 02:45:45 +0000 (02:45 +0000)]
Merge "Add ENABLE_FONT_SIZE_SCALE property to text components" into devel/master

5 months agoMerge "Fix text written below cursor bug" into devel/master
Bowon Ryu [Fri, 7 Jan 2022 02:44:34 +0000 (02:44 +0000)]
Merge "Fix text written below cursor bug" into devel/master

5 months agoFix text written below cursor bug 39/268839/3
abdullah [Mon, 3 Jan 2022 14:20:42 +0000 (16:20 +0200)]
Fix text written below cursor bug

***********************************************************
Description:

When we use different font sizes with min line size, text in the new line gets written below the cursor position.

Please use the code below to generate the issue.
***********************************************************

using namespace Dali;
using namespace Dali::Toolkit;

class SimpleApp : public ConnectionTracker
{
public:
  SimpleApp(Application &application)
      : mApplication(application)
  {
    mApplication.InitSignal().Connect(this, &SimpleApp::Create);
  }

  void Create(Application &application)
  {
    Window window = application.GetWindow();
    window.SetBackgroundColor(Vector4(0.04f, 0.345f, 0.392f, 1.0f));

    mEditor = TextEditor::New();
    mEditor.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_CENTER);
    mEditor.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_CENTER);
    mEditor.SetProperty(Actor::Property::POSITION, Vector3(0.f, 0.0f, 0.f));
    mEditor.SetProperty(Actor::Property::SIZE, Vector2(200.f, 100.0f));
    mEditor.SetProperty( TextField::Property::TEXT, "H<span font-size='45' font-family='DejaVu Sans' font-width='condensed' font-slant='italic' text-color='red'>ello</span> Span\n <span font-size='50' text-color='red'>S</span> \n" );//issue here with the y position after the new line
    mEditor.SetProperty(TextEditor::Property::ENABLE_MARKUP, true);
    mEditor.SetProperty(TextEditor::Property::POINT_SIZE, 15.0f);
    mEditor.SetBackgroundColor(Color::WHITE);
    mEditor.SetProperty(DevelTextEditor::Property::MIN_LINE_SIZE, 50.f);

    window.Add(mEditor);
  }

  bool OnButtonClicked(Button button)
  {
    if (button == mButton)
    {
      Vector3 originalSize = mEditor.GetNaturalSize();
    }
    return true;
  }

private:
  Application &mApplication;
  TextEditor mEditor;
  PushButton mButton;
  TextField mField;
};

int DALI_EXPORT_API main(int argc, char **argv)
{
  Application application = Application::New(&argc, &argv);
  SimpleApp test(application);
  application.MainLoop();

  return 0;
}

***********************************************************

Change-Id: I2868f923e38d9ecc14bf738959f24be015b754fd

5 months agoAdd ENABLE_FONT_SIZE_SCALE property to text components 99/268999/2
Bowon Ryu [Thu, 6 Jan 2022 05:36:34 +0000 (14:36 +0900)]
Add ENABLE_FONT_SIZE_SCALE property to text components

for current, FONT_SIZE_SCALE is applied to all text.
Add ENABLE_FONT_SIZE_SCALE to selectively apply FONT_SIZE_SCALE from SystemSettings.

Change-Id: If8d2574fcdeaa98ff4645ff03eec78e1bc265c3e
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
5 months agoMerge "Refactorying code related to broken image" into devel/master
sunghyun kim [Thu, 6 Jan 2022 04:49:03 +0000 (04:49 +0000)]
Merge "Refactorying code related to broken image" into devel/master

5 months agoRefactorying code related to broken image 68/266968/14
tscholb [Tue, 23 Nov 2021 07:10:10 +0000 (16:10 +0900)]
Refactorying code related to broken image

- Use default broken image when the url of custom broken is invalid
- Create a npatch-helper for merging npatch code

Change-Id: I21f33392f864996e8419715b40e66a5d16eccb6a

5 months agoUnregist visual directly when IMAGE have empty map 61/268761/4
Eunki, Hong [Fri, 31 Dec 2021 08:04:38 +0000 (17:04 +0900)]
Unregist visual directly when IMAGE have empty map

Directly unregist visual when Property::IMAGE have empty map.
This code just follow up the action of control's Property::BACKGROUND doing.

When map is empty, the visual cannot be created. So it will always unregist visual before.
This patch just unregist the IMAGE's visual directly.
This will not print error message when NUI try to Unregist imagevisual

Change-Id: Ifdabbf3555a4471b0d3cf1da7b3f405a5e91553b
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
5 months agoMerge "Make DoCreatePropertyMap use index key" into devel/master
Eunki Hong [Wed, 5 Jan 2022 05:47:03 +0000 (05:47 +0000)]
Merge "Make DoCreatePropertyMap use index key" into devel/master

5 months ago[AT-SPI] Add DevelControl::Property::ACCESSIBILITY_HIDDEN 19/266919/11
Artur Świgoń [Mon, 22 Nov 2021 10:04:15 +0000 (11:04 +0100)]
[AT-SPI] Add DevelControl::Property::ACCESSIBILITY_HIDDEN

Change-Id: Ib9e67ae2bda4e38d9f5eed3cf0977948b3573eac

5 months ago[AT-SPI] Derive ControlAccessible from ActorAccessible 55/268555/5
Artur Świgoń [Fri, 24 Dec 2021 11:03:44 +0000 (12:03 +0100)]
[AT-SPI] Derive ControlAccessible from ActorAccessible

A related dali-adaptor change adds the ActorAccessible class and moves
duplicated code (in AdaptorAccessible and ControlAccessible) from
AdaptorAccessible to ActorAccessible.

Change-Id: If1f62e9d832df61f95d814fde229859729855c45

5 months agoAvoid integer overflow in cursor helper functions 93/268793/1
Bowon Ryu [Mon, 3 Jan 2022 04:54:03 +0000 (13:54 +0900)]
Avoid integer overflow in cursor helper functions

Since index is uint, it can causes problems if totalNumberOfCharacters is 0.

Change-Id: I3a815474a42ddea9f02ab1e358f7edf8ec0f8dac
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
5 months agoMake DoCreatePropertyMap use index key 56/268756/2
Eunki, Hong [Fri, 31 Dec 2021 06:55:08 +0000 (15:55 +0900)]
Make DoCreatePropertyMap use index key

Only image-visual's SynchronousLoading used string key.
It is related with TizenFX's implementation.

It is outlier. So we should change both of them

Change-Id: Iedd002fb24c945cc1fdac94c38ec04198536b4a2
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
6 months agoMerge "Set focusable to true when touched in default." into devel/master
Seoyeon Kim [Tue, 28 Dec 2021 04:30:06 +0000 (04:30 +0000)]
Merge "Set focusable to true when touched in default." into devel/master

6 months agoSet focusable to true when touched in default. 00/268600/2
huayong.xu [Mon, 27 Dec 2021 11:53:56 +0000 (19:53 +0800)]
Set focusable to true when touched in default.

Change-Id: Ie9c333b5a0f760434a25d3519b8edee0c22bc6d1

6 months ago[AT-SPI] Synchronize with AT-SPI cleanup in dali-adaptor 56/267456/4
Artur Świgoń [Fri, 3 Dec 2021 13:00:20 +0000 (14:00 +0100)]
[AT-SPI] Synchronize with AT-SPI cleanup in dali-adaptor

A related dali-adaptor change adds const-correctness and introduces a
new, more coherent naming convention for Accessible objects. The name
ControlAccessible now matches ApplicationAccessible, ProxyAccessible
etc. and the upcoming ActorAccessible.

Change-Id: I63a6887e1c291fbfb475fd8c2384126a31981d6b

6 months agoMerge "Fix text cursor position issue" into devel/master
Bowon Ryu [Thu, 23 Dec 2021 02:16:39 +0000 (02:16 +0000)]
Merge "Fix text cursor position issue" into devel/master

6 months agoFix text cursor position issue 51/268351/7
Bowon Ryu [Tue, 21 Dec 2021 11:10:38 +0000 (20:10 +0900)]
Fix text cursor position issue

When the size or direction of text is changed,
all decorator elements should be updated.

Change-Id: Ib2fb61f684801c5743762df67e8e6d53399c8098
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
6 months agoMerge "Refactoring TextureUploadObserver." into devel/master
Seungho BAEK [Wed, 22 Dec 2021 04:39:17 +0000 (04:39 +0000)]
Merge "Refactoring TextureUploadObserver." into devel/master

6 months agoMerge "Remove .clang-format file from toolkit/automated-tests" into devel/master
Seungho BAEK [Wed, 22 Dec 2021 04:39:11 +0000 (04:39 +0000)]
Merge "Remove .clang-format file from toolkit/automated-tests" into devel/master

6 months agoMerge "[AT-SPI] Update #include paths to AT-SPI interfaces" into devel/master
Lukasz Oleksak [Fri, 17 Dec 2021 14:36:42 +0000 (14:36 +0000)]
Merge "[AT-SPI] Update #include paths to AT-SPI interfaces" into devel/master

6 months agoDALi Version 2.1.3 23/268223/1 dali_2.1.3
Adeel Kazmi [Fri, 17 Dec 2021 06:58:44 +0000 (06:58 +0000)]
DALi Version 2.1.3

Change-Id: I6c27effcb052b5f4d4732cd13330b2531dccb200

6 months agoRefactoring TextureUploadObserver. 02/268202/4
seungho [Fri, 17 Dec 2021 04:03:52 +0000 (13:03 +0900)]
Refactoring TextureUploadObserver.

 - Use unified method for any request.

Change-Id: Ief4b744cd42b9184f83ba0ac0ba3436befd2aa61
Signed-off-by: seungho <sbsh.baek@samsung.com>
6 months agoRemove .clang-format file from toolkit/automated-tests 04/268204/1
seungho [Fri, 17 Dec 2021 04:08:58 +0000 (13:08 +0900)]
Remove .clang-format file from toolkit/automated-tests

Change-Id: Id90b45de110a60c6407e2994698be298aa55dae8
Signed-off-by: seungho <sbsh.baek@samsung.com>
6 months ago[AT-SPI] Update #include paths to AT-SPI interfaces 69/267869/6
Artur Świgoń [Fri, 10 Dec 2021 17:24:27 +0000 (18:24 +0100)]
[AT-SPI] Update #include paths to AT-SPI interfaces

A related dali-adaptor change splits accessibility-impl.h so that there
is one header file per AT-SPI interface.

Change-Id: Iffcbf190e8c7ed3098c0c5109c35ffbdd154e1d4

6 months agoMerge "Fixing Bug: Caret is too big with LineSpacing" into devel/master
Bowon Ryu [Thu, 16 Dec 2021 06:22:46 +0000 (06:22 +0000)]
Merge "Fixing Bug: Caret is too big with LineSpacing" into devel/master

6 months agoMerge "Changed GetNearestFocusableActor interface to receive rootActor" into devel...
joogab yun [Thu, 16 Dec 2021 02:32:45 +0000 (02:32 +0000)]
Merge "Changed GetNearestFocusableActor interface to receive rootActor" into devel/master

6 months agoFixing Bug: Caret is too big with LineSpacing 81/264281/15
Sara Samara [Wed, 15 Sep 2021 10:29:23 +0000 (13:29 +0300)]
Fixing Bug: Caret is too big with LineSpacing

***********************************************************
Description

When using LineSpacing or MinLineSize the caret size is too big and does not look good.

The primary cursor height was obtaining its height from the line height (which includes the line spacing).
I've modified it to obtain the height from the default font height.

Please use the code below to test the issue and its fix.
***********************************************************

using namespace Dali;
using namespace Dali::Toolkit;

class SimpleApp : public ConnectionTracker
{
public:
  SimpleApp(Application& application)
  : mApplication(application)
  {
    mApplication.InitSignal().Connect(this, &SimpleApp::Create);
  }

  void Create(Application& application)
  {
    Window window = application.GetWindow();
    window.SetBackgroundColor(Vector4(0.04f, 0.345f, 0.392f, 1.0f));

    mEditor = TextEditor::New();
    mEditor.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_CENTER);
    mEditor.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_CENTER);
    mEditor.SetProperty(Actor::Property::POSITION, Vector3(0.f, 0.0f, 0.f));
    mEditor.SetProperty(Actor::Property::SIZE, Vector2(200.f, 100.0f));
    mEditor.SetProperty(TextEditor::Property::TEXT, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n");
    mEditor.SetProperty(TextEditor::Property::ENABLE_MARKUP, true);
    mEditor.SetProperty(TextEditor::Property::POINT_SIZE, 40.0f);
    mEditor.SetBackgroundColor(Color::WHITE);
    mEditor.SetProperty( DevelTextEditor::Property::MIN_LINE_SIZE, 50.f );

    window.Add(mEditor);
  }

   bool OnButtonClicked(Button button)
  {
    if(button == mButton)
    {
      Vector3 originalSize = mEditor.GetNaturalSize();
    }
    return true;
  }

private:
  Application &mApplication;
  TextEditor mEditor;
  PushButton mButton;
  TextField mField;
};

int DALI_EXPORT_API main(int argc, char** argv)
{
  Application application = Application::New(&argc, &argv);
  SimpleApp test(application);
  application.MainLoop();

  return 0;
}

Change-Id: I8d8accbef03b69ba4e77f4f891bae08e37f93a00

6 months ago[ATSPI] Fix for DefaultLabel 23/267323/8
Lukasz Oleksak [Wed, 1 Dec 2021 11:51:36 +0000 (12:51 +0100)]
[ATSPI] Fix for DefaultLabel

This patch:

* replaces usage of existing API AddPopup()/RemovePopup() by RegisterDefaultLabel()/UnregisterDefaultLabel() which has wider applicability (not only for popups)
* extends test utils to allow write tests that emit window:activate / window:deactivate events

Related patches:
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/267321/

Change-Id: Ibae793c10d2f29fdd4af32fc69d518e247b54633

6 months agoMerge "Set FullRelayoutNeeded after GetNaturalSize/GetHeightForWidth to avoid the...
Bowon Ryu [Wed, 15 Dec 2021 09:04:49 +0000 (09:04 +0000)]
Merge "Set FullRelayoutNeeded after GetNaturalSize/GetHeightForWidth to avoid the backup/restore of fields in visual-model." into devel/master

6 months agoFix svace issue on text-geometry (unsigned int < 0) 20/268020/1
Eunki, Hong [Wed, 15 Dec 2021 02:48:46 +0000 (11:48 +0900)]
Fix svace issue on text-geometry (unsigned int < 0)

CharacterIndex type is unsigned int. So it cannot be negative

Change-Id: I9f9c6868f103ee45695a4fd87dc4cafd0819f471
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
6 months agoChanged GetNearestFocusableActor interface to receive rootActor 66/267966/8
joogab.yun [Tue, 14 Dec 2021 05:02:16 +0000 (14:02 +0900)]
Changed GetNearestFocusableActor interface to receive rootActor

Change-Id: I7994d630cc9544ae048d3fbb4415e393d9870b2b

6 months agoDoAction can chage CornerRadius/Borderline/BlurRadius 25/267825/5
Eunki, Hong [Fri, 10 Dec 2021 06:45:14 +0000 (15:45 +0900)]
DoAction can chage CornerRadius/Borderline/BlurRadius

we can update properies by DoAction(DevelVisual::Action::UPDATE_PROPERTY).
It is not an usual case, but we may need to prepare of NUI code fix.
(There is some related issue at NUI ImageView)

Here, I update some properies that need to update shader.
We don't want to change the shader many times.
(ex : DoAction with CornerRadius = 1.0f, and DoAction 0.0f after that, and repeat.)
So if someone update properies by DoAction API, turn on
mAlwaysUseXXX = true so shader will not be previous shader anymore.
(This is same logic when these properies are animated.)

Change-Id: I963930f261982d50bd647e4ba7ed4e476dd8898d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
6 months agoFix const table size bug in button + Erase annoying message 87/267587/2
Eunki, Hong [Tue, 7 Dec 2021 11:37:48 +0000 (20:37 +0900)]
Fix const table size bug in button + Erase annoying message

Fix unmatched const static table value in button-impl.cpp
+
Remove annoying error message when we change button visual

Change-Id: I97acc25b73395799bef46a03a09739a6708359da
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
6 months agoMerge "Add support for text geometry" into devel/master
Bowon Ryu [Mon, 13 Dec 2021 03:49:30 +0000 (03:49 +0000)]
Merge "Add support for text geometry" into devel/master

6 months agoMerge "Cache for the synchronous loading." into devel/master
Seungho BAEK [Fri, 10 Dec 2021 13:26:41 +0000 (13:26 +0000)]
Merge "Cache for the synchronous loading." into devel/master

6 months agoDALi Version 2.1.2 52/267852/1 dali_2.1.2
Richard Huang [Fri, 10 Dec 2021 11:58:43 +0000 (11:58 +0000)]
DALi Version 2.1.2

Change-Id: Ie5ce75faddc5f04c4d1a13c326deb160281d6343

6 months agoCache for the synchronous loading. 41/267041/24
seungho [Wed, 24 Nov 2021 11:06:06 +0000 (20:06 +0900)]
Cache for the synchronous loading.

Change-Id: Id793b3bcb72639d3c7a163196e29bdcf7d94718e
Signed-off-by: seungho <sbsh.baek@samsung.com>
6 months agoAdd support for text geometry 91/266891/17
abdullah [Mon, 22 Nov 2021 07:10:51 +0000 (09:10 +0200)]
Add support for text geometry

Added the following requested API's for text  geometry :

GetTextSize();
GetTextPosition();

above API's could return a list of values in case of :
1-multiline, each line in a separate value.
2-mixed text of LTR & RTL, each contiguous block of the same direction has a separate value.

note that above API's returns values based on the current rendered text position/size.

Change-Id: I1ee9d26954d529bb81c72647dbc9f09ccc8e35ac

6 months agoSet FullRelayoutNeeded after GetNaturalSize/GetHeightForWidth to avoid the backup... 55/264455/8
Shrouq Sabah [Mon, 20 Sep 2021 11:17:14 +0000 (14:17 +0300)]
Set FullRelayoutNeeded after GetNaturalSize/GetHeightForWidth to avoid the backup/restore of fields in visual-model.

This solved some issues happen after calling GetNaturalSize/GetHeightForWidth or after initialization when set WIDTH_RESIZE_POLICY to ResizePolicy::USE_NATURAL_SIZE

1) Fixing the issue where characters were being drawn at the same location whenever GetNaturalSize was called.
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/253286
2) Side effect on Scrolling, LineWrap and Invalid position of cursor in TextEditor after calling GetNaturalSize or GetHeightForWidth.
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/255379
3) Crash issue when set WIDTH_RESIZE_POLICY to ResizePolicy::USE_NATURAL_SIZE in TextEditor then insert/remove characters from 2nd line in it after initialization
4) Crash issue when set WIDTH_RESIZE_POLICY to ResizePolicy::USE_NATURAL_SIZE in TextEditor and select_text at initialization then cut it after initialization
5) Crash issue when set WIDTH_RESIZE_POLICY to ResizePolicy::USE_NATURAL_SIZE in TextEditor then double enter in it after initialization
6) Incorrect NaturalSize after the second call for GetNaturalSize. This issue in TextLabel when call GetNaturalSize, then set MULTI_LINE, then re-call GetNaturalSize with Text has break-line

Change-Id: Ieea984f41a218c62e016baa60156b51e985f2fc0

6 months agoMerge "DALi Version 2.1.1" into devel/master
David Steele [Fri, 3 Dec 2021 14:04:01 +0000 (14:04 +0000)]
Merge "DALi Version 2.1.1" into devel/master

6 months agoDALi Version 2.1.1 39/267439/1 dali_2.1.1
David Steele [Fri, 3 Dec 2021 13:57:36 +0000 (13:57 +0000)]
DALi Version 2.1.1

Change-Id: Ib2820c8760eba1bb69c38390c0850712b77bcff5

6 months agoMerge "Fix svace issue at control/text-anchor-impl" into devel/master
David Steele [Fri, 3 Dec 2021 11:40:59 +0000 (11:40 +0000)]
Merge "Fix svace issue at control/text-anchor-impl" into devel/master

6 months agoScaledown image when visual is bigger than n-patch fixed length 26/267326/3
Eunki, Hong [Wed, 1 Dec 2021 12:02:20 +0000 (21:02 +0900)]
Scaledown image when visual is bigger than n-patch fixed length

When n-patch image's fixed length is bigger than visual size,
the visual's geometry breakdown.

This patch calculate good scales in vertex shader.

NOTE : We scaledown same rates both width and height. This action follow up CSS current action.

Change-Id: Ief2c6e6e2deb04dac36a1b9575e7bd620697d81d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
6 months agoFix svace issue at control/text-anchor-impl 31/267431/2
Eunki, Hong [Fri, 3 Dec 2021 10:07:30 +0000 (19:07 +0900)]
Fix svace issue at control/text-anchor-impl

Initialize member value as zero.

Change-Id: If7b3073e6b75417bbb3b8c25764acb484ddefe2d
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
7 months ago[AT-SPI] Follow-up on mAccessibilityRelations 63/267163/6
Artur Świgoń [Fri, 26 Nov 2021 11:47:53 +0000 (12:47 +0100)]
[AT-SPI] Follow-up on mAccessibilityRelations

The previous implementation used an `std::vector` (the outer one) as a
map, with the `RelationType` key working as the index to that vector.
However, relations are rare in practice, and every `Control::Impl`
having a 23-element vector or vectors, most, if not all of which are
empty, feels like a waste of memory.

This patch also changes the inner vector to a set, which resolves the
previously unaddressed issue of duplicate elements.

Change-Id: I639082fe49e0f6107213cda5b142a09882a3be39

7 months agoFix text relayouter update issue 24/267224/1
Bowon Ryu [Tue, 30 Nov 2021 03:07:36 +0000 (12:07 +0900)]
Fix text relayouter update issue

When the size of the text control is 0,
there is a issue that the mRequestedNumberOfCharacters becomes 0
even if the actural text exists.

This patch avoids this issue by updating mNumberOfCharactersToAdd
in textUpdateInfo in that situation.

Change-Id: I440b39f846aa7c9c410a1d121dae7b8a63b811ae
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
7 months agoMerge "[AT-SPI] Change the type of Control::Impl::mAccessibilityRelations" into devel...
Seoyeon Kim [Mon, 29 Nov 2021 01:48:30 +0000 (01:48 +0000)]
Merge "[AT-SPI] Change the type of Control::Impl::mAccessibilityRelations" into devel/master

7 months ago[AT-SPI] Change the type of Control::Impl::mAccessibilityRelations 09/267109/2
Artur Świgoń [Thu, 25 Nov 2021 13:38:45 +0000 (14:38 +0100)]
[AT-SPI] Change the type of Control::Impl::mAccessibilityRelations

This patch changes the relation's target type from
`Accessibility::Address` to `Accessibility::Accessible*`.
`AppendAccessibilityRelation()` does not allow to specify a remote
object anyway, because the parameter types are `Actor`s.

Moreover, the `Address` may be incomplete (specifically the
DBus-dependent part) if the above API is called too early. With this
change, the `Accessible::GetAddress()` call is postponed until the
relations are queried over DBus.

Change-Id: I881d7fb90eba79b6ba9752e913d113272485e29a

7 months agoDALi Version 2.1.0 46/267146/1 dali_2.1.0
Adam Bialogonski [Fri, 26 Nov 2021 08:41:08 +0000 (08:41 +0000)]
DALi Version 2.1.0

Change-Id: Iaa4df4a2e739ed89a6634c4943fdb98ce0ad2473

7 months agoRemoved some redundant methods from TextController & Moved some code to other files 50/267050/2
Adeel Kazmi [Wed, 24 Nov 2021 13:23:03 +0000 (13:23 +0000)]
Removed some redundant methods from TextController & Moved some code to other files

Change-Id: Ib57da54aa520a15f346e24be93e35a18caa0315b

7 months agoMerge "Fix svace issue at text-controller-impl.h" into devel/master
Eunki Hong [Wed, 24 Nov 2021 13:07:45 +0000 (13:07 +0000)]
Merge "Fix svace issue at text-controller-impl.h" into devel/master

7 months agoMerge "[ATSPI] Check parents to define SHOWING state" into devel/master
Shinwoo Kim [Wed, 24 Nov 2021 12:52:27 +0000 (12:52 +0000)]
Merge "[ATSPI] Check parents to define SHOWING state" into devel/master

7 months agoFix svace issue at text-controller-impl.h 20/267020/2
Eunki, Hong [Wed, 24 Nov 2021 07:46:14 +0000 (16:46 +0900)]
Fix svace issue at text-controller-impl.h

Minor fix

Change-Id: I25efe7abd36bc61303fe6ddbddd86a6b6c55a44a
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
7 months agoMerge "Remove return; statement at fragment shader" into devel/master
Adeel Kazmi [Tue, 23 Nov 2021 16:06:40 +0000 (16:06 +0000)]
Merge "Remove return; statement at fragment shader" into devel/master

7 months agoMerge "[ATSPI] Implementation of Hypertext and Hyperlink in text controls" into devel...
Seoyeon Kim [Tue, 23 Nov 2021 08:59:25 +0000 (08:59 +0000)]
Merge "[ATSPI] Implementation of Hypertext and Hyperlink in text controls" into devel/master

7 months ago[ATSPI] Check parents to define SHOWING state 78/266578/9
Shinwoo Kim [Mon, 15 Nov 2021 11:19:47 +0000 (20:19 +0900)]
[ATSPI] Check parents to define SHOWING state

It will not be SHOWING if an accessible has invisible parent in its ascendant.

This is necessary for the following case.
The NUI navigator has more than 2 pages, and the below page's controls have
SHOWING state without this patch.

Change-Id: I27a7a998154267a14c2aa295a48b48b9e2896520

7 months agoMerge "[ATSPI] do not send ROLE property changed event" into devel/master
Shinwoo Kim [Tue, 23 Nov 2021 07:31:42 +0000 (07:31 +0000)]
Merge "[ATSPI] do not send ROLE property changed event" into devel/master

7 months agoAdded appropriate @SINCE & @DEPRECATED aliases for DALi's 2.1 release & Tizen's 6... 27/266927/1
Adeel Kazmi [Mon, 22 Nov 2021 17:09:52 +0000 (17:09 +0000)]
Added appropriate @SINCE & @DEPRECATED aliases for DALi's 2.1 release & Tizen's 6.5 release

Change-Id: Icc5d8ce08b5967eb60afdc2654e17454876667d4

7 months ago[ATSPI] Implementation of Hypertext and Hyperlink in text controls 29/265529/20
Lukasz Oleksak [Thu, 30 Sep 2021 12:24:44 +0000 (14:24 +0200)]
[ATSPI] Implementation of Hypertext and Hyperlink in text controls

This patch exposes on dbus ATSPI Hypertext interface
for the following text controls: TextEditor, TextField and TextLabel.
Also it brings new class TextAnchor inheriting from Control which marks
the geometry of an anchor inside the text controls mentioned above and
which exposes on dbus ATSPI Hyperlink interface.

Change-Id: Ic46bcf7a3ddfe49b1723ebf8025fba6779fda05d

7 months agoRemove return; statement at fragment shader 94/266894/1
Eunki, Hong [Mon, 22 Nov 2021 07:42:19 +0000 (16:42 +0900)]
Remove return; statement at fragment shader

Some graphic driver doesn't support return statement at fragment shader's main.
This patch just above that case with same logic

Change-Id: I8011c722946aeac2611908020cd73bc7b6f9cf56
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
7 months ago[ATSPI] do not send ROLE property changed event 92/266892/1
Shinwoo Kim [Mon, 22 Nov 2021 07:14:37 +0000 (16:14 +0900)]
[ATSPI] do not send ROLE property changed event

This patch is following the decision of the patch
https://review.tizen.org/gerrit/#/c/platform/upstream/elementary/+/79631/4/src/lib/elm_interface_atspi_accessible.c

To prevent unnecessary event.
No one is interest in this event.

Change-Id: I044ddeaf58db3010da827606f6fa83050050ec41

7 months agoMerge "Add a callback to get textfitted font size." into devel/master
joogab yun [Mon, 22 Nov 2021 06:40:15 +0000 (06:40 +0000)]
Merge "Add a callback to get textfitted font size." into devel/master

7 months agoMerge "[AT-SPI] Support for hidden text added" into devel/master
Seoyeon Kim [Mon, 22 Nov 2021 05:17:43 +0000 (05:17 +0000)]
Merge "[AT-SPI] Support for hidden text added" into devel/master

7 months ago(TextController/ScrollView) Reduced LOC 50/266850/5
Adeel Kazmi [Fri, 19 Nov 2021 12:20:32 +0000 (12:20 +0000)]
(TextController/ScrollView) Reduced LOC

 - TextController - Moved some methods to the Impl class
 - TextControllerImpl - Moved a lot of functionality outside of the class
 - ScrollView - Added a class which handles the properties

Change-Id: I69127a9bc3dbd3e892f1fe0019cac9ad41fc2f3e

7 months agoRefactoring ImageVisualShaderFactory::GetShader 96/265996/8
Eunki, Hong [Wed, 3 Nov 2021 13:02:00 +0000 (22:02 +0900)]
Refactoring ImageVisualShaderFactory::GetShader

There are two Intention this patch
1. Clean up GetShader params
2. Allow that native image also use visual features (a.k.a. RoundedCorner + Borderline)

Change-Id: I8b0cbd0a4c7c622268c90d3cbbbd345ae83dfa07
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
7 months agoMerge "(Text Controller) Moved some input properties into a different class & some...
Adeel Kazmi [Thu, 18 Nov 2021 18:32:21 +0000 (18:32 +0000)]
Merge "(Text Controller) Moved some input properties into a different class & some functionality into impl" into devel/master

7 months agoMerge "DALi Version 2.0.53" into devel/master
Adeel Kazmi [Thu, 18 Nov 2021 14:15:20 +0000 (14:15 +0000)]
Merge "DALi Version 2.0.53" into devel/master

7 months agoDALi Version 2.0.53 77/266777/1 dali_2.0.53
Richard [Thu, 18 Nov 2021 12:00:02 +0000 (12:00 +0000)]
DALi Version 2.0.53

Change-Id: I48308ed392eb944d51206b5b31307f0b99beb178

7 months ago(Text Controller) Moved some input properties into a different class & some functiona... 40/266340/2
Adeel Kazmi [Wed, 10 Nov 2021 21:17:38 +0000 (21:17 +0000)]
(Text Controller) Moved some input properties into a different class & some functionality into impl

Change-Id: I4d2cbd392d305ccd2ee31972df132713ff5cc19c

7 months agoMerge "Fix alignment issues with field and editor." into devel/master
joogab yun [Thu, 18 Nov 2021 06:21:55 +0000 (06:21 +0000)]
Merge "Fix alignment issues with field and editor." into devel/master

7 months agoMerge "Support Emoji sequences" into devel/master
Bowon Ryu [Thu, 18 Nov 2021 06:11:55 +0000 (06:11 +0000)]
Merge "Support Emoji sequences" into devel/master

7 months agoFix alignment issues with field and editor. 39/266739/2
joogab.yun [Thu, 18 Nov 2021 05:30:46 +0000 (14:30 +0900)]
Fix alignment issues with field and editor.

Change-Id: I4bf0c7dbad30ff74b6c5ed455db2f6b6f75b108d

7 months agoSupport Emoji sequences 47/266047/17
Shrouq Sabah [Wed, 3 Nov 2021 07:43:33 +0000 (09:43 +0200)]
Support Emoji sequences

This is a common solution that handles emoji sequences:
  :: text presentation sequence and selector
  :: emoji presentation sequence and selector
  :: emoji modifier sequence like skin tone
  :: emoji keycap sequence
  :: emoji flag sequence
  :: emoji tag sequence like England flag
  :: more cases in emoji zwj sequence like Rainbow Flag

This patch handle display cases.
The editing cases will be handled in another patch.

This patch depends on the dali-adaptor patch:
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-adaptor/+/266046

Change-Id: I1bc7aed8a73b1d396019b2ef0a7fab5ea187d39f

7 months agoAdd a callback to get textfitted font size. 56/266656/3
joogab.yun [Mon, 15 Nov 2021 02:21:54 +0000 (11:21 +0900)]
Add a callback to get textfitted font size.

Change-Id: I1aea1a5d5b03a27c89feb709d4877369c29290bb

7 months ago[AT-SPI] Support for hidden text added 66/265666/34
Maria Bialota [Tue, 26 Oct 2021 17:43:01 +0000 (19:43 +0200)]
[AT-SPI] Support for hidden text added

- Modified AT-SPI API to not disclose the hidden text in returned values.
- Values returned instead are either empty string or replacement characters.

Change-Id: I6736a30ad70a45b77b0b4ac4b54c2a2c0072df25

7 months agoMerge "Fix: The last line of the text overlaps with the text-editor's border/edge...
Bowon Ryu [Tue, 16 Nov 2021 09:27:48 +0000 (09:27 +0000)]
Merge "Fix: The last line of the text overlaps with the text-editor's border/edge" into devel/master

7 months agofixed ellipsis position with multi line 93/266593/2
joogab.yun [Mon, 15 Nov 2021 06:45:05 +0000 (15:45 +0900)]
fixed ellipsis position with multi line

Change-Id: I2b2e47c307dab38770717bf483e302097ddbcf38

7 months agoMerge "[ATSPI] make ScrollToChild use descendant" into devel/master
Shinwoo Kim [Mon, 15 Nov 2021 11:40:56 +0000 (11:40 +0000)]
Merge "[ATSPI] make ScrollToChild use descendant" into devel/master

7 months agoDALi Version 2.0.52 79/266479/1 dali_2.0.52
Adeel Kazmi [Fri, 12 Nov 2021 10:48:36 +0000 (10:48 +0000)]
DALi Version 2.0.52

Change-Id: I263b610f85720c5f22ce490a17d4b05081f494df

7 months ago[ATSPI] make ScrollToChild use descendant 14/266414/2
Shinwoo Kim [Fri, 12 Nov 2021 01:46:10 +0000 (10:46 +0900)]
[ATSPI] make ScrollToChild use descendant

It is not make a child visible if the child is 1st generation child.
Usually the 1st generation child is content container.
So we need to use descendant.

This patch makes the CollectionView work with following change;
https://github.com/Samsung/TizenFX/pull/3726

We need to enhance this part and related places later.

Change-Id: I9e88312b7b1936909dc350cc1154f2a18e900748

7 months agoMerge "[ATSPI] Update accessibility-test-utils files" into devel/master
Seoyeon Kim [Wed, 10 Nov 2021 07:17:09 +0000 (07:17 +0000)]
Merge "[ATSPI] Update accessibility-test-utils files" into devel/master

7 months agoMerge "Adding theme for Raspberry Pi" into devel/master
David Steele [Tue, 9 Nov 2021 10:30:45 +0000 (10:30 +0000)]
Merge "Adding theme for Raspberry Pi" into devel/master

7 months agoAdding theme for Raspberry Pi 64/266164/1
David Steele [Mon, 8 Nov 2021 15:22:02 +0000 (15:22 +0000)]
Adding theme for Raspberry Pi

Change-Id: I9abb4298532e3184e976fe4869598b5fd05c5d69

7 months agoFix alignment issues in backgroundActor. 59/266159/1
joogab.yun [Mon, 8 Nov 2021 10:35:45 +0000 (19:35 +0900)]
Fix alignment issues in backgroundActor.

Change-Id: I7fd58d1437a1118ab60568567e3613adcf0ab0c4

7 months agoMerge "CanvasView: Do ApplyNativeFragmentShader for NativeImage buffer" into devel...
junsu choi [Mon, 8 Nov 2021 05:45:50 +0000 (05:45 +0000)]
Merge "CanvasView: Do ApplyNativeFragmentShader for NativeImage buffer" into devel/master

7 months agoMerge "Support multiple transitions for a Control." into devel/master
Seungho BAEK [Mon, 8 Nov 2021 02:47:39 +0000 (02:47 +0000)]
Merge "Support multiple transitions for a Control." into devel/master

7 months ago[ATSPI] Update accessibility-test-utils files 79/265679/5
Seoyeon Kim [Wed, 27 Oct 2021 06:10:47 +0000 (15:10 +0900)]
[ATSPI] Update accessibility-test-utils files

- Set 'true' to Accessibility::Accessible::Get() for the first time

- This patch should be merged together with dali-adaptor one :
  https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-adaptor/+/264762/

Change-Id: I95034fce30d391942d24d3a0be10d21f04bb64b6
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
7 months agoSupport multiple transitions for a Control. 22/265822/6
seungho [Fri, 29 Oct 2021 07:04:54 +0000 (16:04 +0900)]
Support multiple transitions for a Control.

 - If a Control has multiple transitions, the Control must be hidden durring only the minimum delay of the transitions.
 - During delay time, the transitioned property of the Control will be set to the source value.

Change-Id: If158d01511b373edaad59b5e288bc33e5adde9bb
Signed-off-by: seungho <sbsh.baek@samsung.com>
7 months agoMerge "DALi Version 2.0.51" into devel/master
Adeel Kazmi [Fri, 5 Nov 2021 10:49:37 +0000 (10:49 +0000)]
Merge "DALi Version 2.0.51" into devel/master

7 months agoDALi Version 2.0.51 82/266082/1 dali_2.0.51
Adeel Kazmi [Fri, 5 Nov 2021 10:44:12 +0000 (10:44 +0000)]
DALi Version 2.0.51

Change-Id: I657554cccea1b9c262bdd8dd60a04a459a523947

7 months agoMerge "Move ModelUpdating method outside of Text::Controller::Impl class to reduce...
Adeel Kazmi [Fri, 5 Nov 2021 09:57:57 +0000 (09:57 +0000)]
Merge "Move ModelUpdating method outside of Text::Controller::Impl class to reduce LOC" into devel/master

7 months agoMove ModelUpdating method outside of Text::Controller::Impl class to reduce LOC 48/266048/1
Adeel Kazmi [Thu, 4 Nov 2021 18:19:06 +0000 (18:19 +0000)]
Move ModelUpdating method outside of Text::Controller::Impl class to reduce LOC

Change-Id: Id4e4c47793b3e37ef999b0014403d3d30f2b77e8

7 months agoFix text visual issue 04/266004/3
Heeyong Song [Thu, 4 Nov 2021 02:21:04 +0000 (11:21 +0900)]
Fix text visual issue

uTextColorAnimatable property should always be registered.

Change-Id: I3ffbccc896f6abe4665a6f133b5be22df64df043

7 months agoMerge "Fix text constraint issue" into devel/master
Heeyong Song [Wed, 3 Nov 2021 05:27:34 +0000 (05:27 +0000)]
Merge "Fix text constraint issue" into devel/master

7 months agoCanvasView: Do ApplyNativeFragmentShader for NativeImage buffer 74/265874/3
JunsuChoi [Mon, 1 Nov 2021 06:52:20 +0000 (15:52 +0900)]
CanvasView: Do ApplyNativeFragmentShader for NativeImage buffer

Change-Id: I916af0c85333a53d8c22063522c53c010d503b21

7 months agoFix text constraint issue 65/265865/2
Heeyong Song [Mon, 1 Nov 2021 05:54:57 +0000 (14:54 +0900)]
Fix text constraint issue

Not to create new Constraints when the visual is added to the Scene again

Change-Id: I19d30064d9f8cd08ca500a5ad2dee17b4b775b5a

8 months agoRefactored text editor/field to reduce loc 46/265846/1
David Steele [Fri, 29 Oct 2021 13:18:26 +0000 (14:18 +0100)]
Refactored text editor/field to reduce loc

Change-Id: I408f8931071c6c4464ba3dafb00e36311d01379c
Signed-off-by: David Steele <david.steele@samsung.com>
8 months agoRefactored text field/editor property getters/setters 96/265796/2
David Steele [Thu, 28 Oct 2021 18:18:58 +0000 (19:18 +0100)]
Refactored text field/editor property getters/setters

Change-Id: Iab27acf2f198af060d3eee398b9874116ff7e562