platform/core/uifw/dali-toolkit.git
4 years ago[AT-SPI] Improving utc coverage ToggleButton tests 91/245091/16
Bartlomiej Grzelewski [Thu, 1 Oct 2020 07:29:07 +0000 (09:29 +0200)]
[AT-SPI] Improving utc coverage ToggleButton tests

Coverage for GetNamePropertyIndex

Change-Id: Id291b2624916c2e1c451a3c8e7568429c994afb9

4 years ago[AT-SPI] More coverage 09/245109/15
Artur Świgoń [Fri, 2 Oct 2020 09:26:27 +0000 (11:26 +0200)]
[AT-SPI] More coverage

Change-Id: I30b747375bffb5263d4c199712d84bfb619dcc40

4 years ago[AT-SPI] Improving utc coverage 78/245078/22
Lukasz Oleksak [Wed, 30 Sep 2020 16:15:02 +0000 (18:15 +0200)]
[AT-SPI] Improving utc coverage

Change-Id: Ie4b0335de832968988524f7c219fb41bbe342349

4 years ago[AT-SPI] Set both ScreenReaderEnabled and IsEnabled in TestEnableSC 68/245068/10
Artur Świgoń [Wed, 30 Sep 2020 10:24:26 +0000 (12:24 +0200)]
[AT-SPI] Set both ScreenReaderEnabled and IsEnabled in TestEnableSC

Change-Id: Ie3f6a57cb5b550773df761a2c459a148104fa945

4 years ago[AT-SPI] Rewritten UtcDaliControlAccessibilityModal 65/245065/11
Bartlomiej Grzelewski [Wed, 30 Sep 2020 08:38:41 +0000 (10:38 +0200)]
[AT-SPI] Rewritten UtcDaliControlAccessibilityModal

Change-Id: Iea89103835660645e229240357480d47108c7f08

4 years ago[AT-SPI] Pass correct object to dynamic_cast 66/245066/10
Artur Świgoń [Wed, 30 Sep 2020 09:50:37 +0000 (11:50 +0200)]
[AT-SPI] Pass correct object to dynamic_cast

Change-Id: Ie1905e63a315806b8e8e55c91fdf8f3418d09c83

4 years ago[AT-SPI] UTC correction 45/245045/12
Lukasz Oleksak [Tue, 29 Sep 2020 12:56:21 +0000 (14:56 +0200)]
[AT-SPI] UTC correction

Change-Id: Idca47d3ff46273d342447c7ffa6614a2c6f929b6

4 years ago[AT-SPI] More UTC fixes 36/245036/12
Artur Świgoń [Tue, 29 Sep 2020 10:57:53 +0000 (12:57 +0200)]
[AT-SPI] More UTC fixes

Change-Id: Ib792ac40a162807d19cda2adf8e9b1b63b15db0c

4 years ago[AT-SPI] Execute tct under dbus-launch 35/245035/11
Artur Świgoń [Tue, 29 Sep 2020 10:17:23 +0000 (12:17 +0200)]
[AT-SPI] Execute tct under dbus-launch

Change-Id: I5e88cf4bd932070277e58b2fbfb075943efcd560

4 years ago[AT-SPI] UTC fixes 85/244985/12
Artur Świgoń [Mon, 28 Sep 2020 16:33:33 +0000 (18:33 +0200)]
[AT-SPI] UTC fixes

Change-Id: I4ac3ef9666ab3a18537988884c1f5f6548868cf9

4 years ago[AT-SPI] Add TestDBusWrapper and bypass compilation problems 25/244825/13
Bartlomiej Grzelewski [Thu, 24 Sep 2020 10:34:32 +0000 (12:34 +0200)]
[AT-SPI] Add TestDBusWrapper and bypass compilation problems

Change-Id: I6780a0f888782df64ac04df2cf8f7d4d2d64192b

4 years ago[AT-SPI] Implement accessibility for Popup 28/244828/14
Artur Świgoń [Thu, 24 Sep 2020 15:38:23 +0000 (17:38 +0200)]
[AT-SPI] Implement accessibility for Popup

Change-Id: I9afe522913bfaacd5f6bf66e5abe0cd815d7c8af

4 years ago[AT-SPI] Fix cmake cmp0004 error 31/244731/19
Bartlomiej Grzelewski [Wed, 23 Sep 2020 15:46:12 +0000 (17:46 +0200)]
[AT-SPI] Fix cmake cmp0004 error

Change-Id: I60d9c428d195a59a736b5f98559ec70618f81dc9

4 years ago[AT-SPI] Catch exception by reference 05/244705/22
Bartlomiej Grzelewski [Wed, 23 Sep 2020 09:28:50 +0000 (11:28 +0200)]
[AT-SPI] Catch exception by reference

Change-Id: I92648d7bf6dceaa89c6cba3585383afbab5a5500

4 years ago[AT-SPI] Migrate Accessibility tests to dali-toolkit-internal 36/244636/22
Artur Świgoń [Tue, 22 Sep 2020 13:27:06 +0000 (15:27 +0200)]
[AT-SPI] Migrate Accessibility tests to dali-toolkit-internal

Change-Id: I129a7bdf1673466b9657a9876f3e1e8afc5308a2

4 years ago[AT-SPI] Add notification for a11y name/description change 76/244476/25
Artur Świgoń [Fri, 18 Sep 2020 16:15:50 +0000 (18:15 +0200)]
[AT-SPI] Add notification for a11y name/description change

Change-Id: I92236ae2558eda77e832c9989a40f65e92cb5a05

4 years ago[AT-SPI] TextController: emit characters before delete 24/244724/20
Kamil Konieczny [Wed, 23 Sep 2020 13:00:27 +0000 (15:00 +0200)]
[AT-SPI] TextController: emit characters before delete

Deleted characters should be emitted to ATSPI before erase, otherwise the
characters following the deleted characters will be emitted.

Change-Id: I915c239e47cb809ff6204e690d4bc9da952f17bf

4 years ago[AT-SPI] EmitStateChanged for togglable PushButton 30/244630/19
Artur Świgoń [Tue, 22 Sep 2020 11:52:47 +0000 (13:52 +0200)]
[AT-SPI] EmitStateChanged for togglable PushButton

Change-Id: Iddc0275ef519346ceddf96d805275ef6ecc5b493

4 years ago[AT-SPI] Add FOCUSABLE state to TextField and TextEditor 72/244472/19
Kamil Konieczny [Fri, 18 Sep 2020 10:53:39 +0000 (12:53 +0200)]
[AT-SPI] Add FOCUSABLE state to TextField and TextEditor

Add FOCUSABLE state to TextField and TextEditor. Also while at this,
add or remove FOCUSED depending on keyboard focus.

Change-Id: I9bb0f68f3e3f521842c870ea099bae5617b7fc4d

4 years ago[AT-SPI] Add Pause and Resume signals 55/244455/19
Bartlomiej Grzelewski [Fri, 18 Sep 2020 11:35:26 +0000 (13:35 +0200)]
[AT-SPI] Add Pause and Resume signals

Change-Id: Ic69d7342c55c12e51266bda1ba608feeb2687853

4 years ago[AT-SPI] Let MarkFilter find the closest mark 55/244355/21
Artur Świgoń [Thu, 17 Sep 2020 12:18:16 +0000 (14:18 +0200)]
[AT-SPI] Let MarkFilter find the closest mark

Change-Id: I82c2bf9572a7190010e347ae352136668aae705c

4 years ago[AT-SPI] Emit ObjectPropertyChangeEvent::VALUE 39/244339/21
Artur Świgoń [Thu, 17 Sep 2020 10:14:33 +0000 (12:14 +0200)]
[AT-SPI] Emit ObjectPropertyChangeEvent::VALUE

While this could be done inside SetProperty handlers, it would not yield the
desired effect, since the implementation often updates values directly, not via
a SetProperty call.

Change-Id: I2fed4b2d8ee7384bc5484c9af50d4b62a506a23a

4 years ago[AT-SPI] Implement proper accessibility for Slider 76/244276/21
Artur Świgoń [Wed, 16 Sep 2020 15:14:52 +0000 (17:14 +0200)]
[AT-SPI] Implement proper accessibility for Slider

Change-Id: Idb6bb5a14d6178df800b19efbfd23dd8d2197808

4 years ago[AT-SPI] Try auto-scrolling in GrabHighlight 66/243866/22
Artur Świgoń [Thu, 10 Sep 2020 17:10:35 +0000 (19:10 +0200)]
[AT-SPI] Try auto-scrolling in GrabHighlight

Change-Id: I6530c55d3107d1199a5e96619d26af3b00029a34

4 years ago[AT-SPI] Override IsScrollable for Scrollable 65/243865/21
Artur Świgoń [Thu, 10 Sep 2020 16:14:59 +0000 (18:14 +0200)]
[AT-SPI] Override IsScrollable for Scrollable

Change-Id: Iccee10708223938cc3fd74571331349e4437d609

4 years ago[AT-SPI] Support reading states and tooltips of ToggleButton 62/243862/21
Artur Świgoń [Thu, 10 Sep 2020 14:21:13 +0000 (16:21 +0200)]
[AT-SPI] Support reading states and tooltips of ToggleButton

Change-Id: I71f84e5cde9734dc80d8f7fc65c75d1e94f5e178

4 years ago[AT-SPI] Support gaining keyboard focus in TextField, TextEditor 30/243630/21
Artur Świgoń [Tue, 8 Sep 2020 16:29:34 +0000 (18:29 +0200)]
[AT-SPI] Support gaining keyboard focus in TextField, TextEditor

Change-Id: If52491ec863ba705fea8775bce0f44c70522e32e

4 years ago[AT-SPI] Allow two finger pan gesture 24/243624/22
Artur Świgoń [Tue, 8 Sep 2020 13:40:07 +0000 (15:40 +0200)]
[AT-SPI] Allow two finger pan gesture

Change-Id: I56de34b73f265849a1f74f09cbf5c1a9f1428165

4 years ago[AT-SPI] Move setting highlightability property for controls to inheriting classes 47/239447/39
Maria Bialota [Fri, 24 Jul 2020 18:26:42 +0000 (20:26 +0200)]
[AT-SPI] Move setting highlightability property for controls to inheriting classes

* Giving highlightable state explicitly for particular control by its developer is more reasonable than giving this state for all controls by default.
* Such approach allows for better control over UI elements highlightability. We avoid highlighting containers like layouts, etc.

Change-Id: Ifc1b5e268c2bd02c17498d0dba619771c5d5b00d

4 years ago[AT-SPI] Make Accessible::GetName() fall back to actor name 52/243152/23
Artur Świgoń [Thu, 3 Sep 2020 10:21:39 +0000 (12:21 +0200)]
[AT-SPI] Make Accessible::GetName() fall back to actor name

Change-Id: I9042919ea99759a6b5c0bc60e19e6858ca0c078b

4 years ago[AT-SPI] Fix role setting 60/241160/36
Artur Świgoń [Tue, 18 Aug 2020 07:48:59 +0000 (09:48 +0200)]
[AT-SPI] Fix role setting

Change-Id: I8a697c6875a8c5317585a4b7fcf782facb1224e3

4 years ago[AT-SPI] Squashed implementation 93/206393/67
Artur Świgoń [Tue, 3 Mar 2020 08:12:00 +0000 (09:12 +0100)]
[AT-SPI] Squashed implementation

Change-Id: Id89f91c69a34dc0b8b032035c0d39c5ad99939d8

4 years agoDALi Version 1.9.35 05/246105/1 dali_1.9.35
adam.b [Fri, 23 Oct 2020 10:45:12 +0000 (11:45 +0100)]
DALi Version 1.9.35

Change-Id: Iabc8524442885da5491f1d1d57de887698ae9aca

4 years agoMerge "(Text Controller Impl) Moved event handling related methods into a separate...
Adeel Kazmi [Thu, 22 Oct 2020 19:09:20 +0000 (19:09 +0000)]
Merge "(Text Controller Impl) Moved event handling related methods into a separate struct" into devel/master

4 years ago(Text Controller Impl) Moved event handling related methods into a separate struct 51/245751/5
Adeel Kazmi [Thu, 15 Oct 2020 08:57:27 +0000 (09:57 +0100)]
(Text Controller Impl) Moved event handling related methods into a separate struct

Change-Id: I0e9f942f7dce110467dd283c08859f6c97e2b4e6

4 years agoAdding new patch-coverage script 47/246047/1
David Steele [Thu, 22 Oct 2020 17:05:44 +0000 (18:05 +0100)]
Adding new patch-coverage script

Change-Id: I5e83b4d480f247247ae4348717b01cac2459ee9c

4 years agoReduce Cyclomatic Complexity of some methods in text-typesetter, transtion-data ... 52/245852/6
Adeel Kazmi [Fri, 16 Oct 2020 11:06:40 +0000 (12:06 +0100)]
Reduce Cyclomatic Complexity of some methods in text-typesetter, transtion-data & text-label

Change-Id: I7c9a5b8c2ffc59837b0e8bcf85f78fe96df1bf9c

4 years agoMerge "dali-toolkit: update text selection UI handles with selection properties"...
Adeel Kazmi [Wed, 21 Oct 2020 10:55:04 +0000 (10:55 +0000)]
Merge "dali-toolkit: update text selection UI handles with selection properties" into devel/master

4 years agoEnsure not to emit the resource ready signal during the callback 54/245354/4
Heeyong Song [Wed, 7 Oct 2020 11:58:26 +0000 (20:58 +0900)]
Ensure not to emit the resource ready signal during the callback

Change-Id: Icc496c34a11df14aae8b99affe846c14bca308fa

4 years agodali-toolkit: update text selection UI handles with selection properties 09/245709/2
Ali Alzyod [Wed, 14 Oct 2020 12:28:58 +0000 (15:28 +0300)]
dali-toolkit: update text selection UI handles with selection properties

sample code to produce the issue :

```
#include <dali-toolkit/dali-toolkit.h>
#include <dali-toolkit/devel-api/controls/text-controls/text-editor-devel.h>
#include <dali-toolkit/devel-api/controls/text-controls/text-field-devel.h>
#include <iostream>

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 = application.GetWindow();
    window.SetBackgroundColor(Vector4(0.04f, 0.345f, 0.392f, 1.0f));

    mTextEditor = TextEditor::New();
    mTextEditor.SetProperty(TextEditor::Property::TEXT, "Tex1\nTex2");
    mTextEditor.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_CENTER);
    mTextEditor.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_CENTER);
    mTextEditor.SetProperty(Actor::Property::SIZE, Vector2(60.0f, 60.0f));
    mTextEditor.SetProperty(Actor::Property::POSITION, Vector3(0.f, 0.f, 0.f));
    window.Add(mTextEditor);

    mBtnEditable = PushButton::New();
    mTextEditor.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_CENTER);
    mTextEditor.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_CENTER);
    mBtnEditable.SetProperty(Actor::Property::SIZE, Vector2(120.f, 80.f));
    mBtnEditable.SetProperty(Actor::Property::POSITION, Vector2(100, 220.f));
    mBtnEditable.SetBackgroundColor(Color::RED);
    mBtnEditable.SetProperty(Button::Property::LABEL, "select");
    mBtnEditable.ClickedSignal().Connect(this, &SimpleApp::OnButtonClicked);
    window.Add(mBtnEditable);
  }

  bool OnButtonClicked(Button button)
  {
    mTextEditor.SetProperty(DevelTextField::Property::SELECTED_TEXT_START, 0);
    mTextEditor.SetProperty(DevelTextField::Property::SELECTED_TEXT_END, 10);
    return true;
  }

private:
  Application& mApplication;
  TextEditor mTextEditor;
  PushButton mBtnEditable;
  Window window;
};

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

  return 0;
}
```

Change-Id: I9f29db01d60a53e578ee2b584caceb9c94b2e0ea

4 years agoDALi Version 1.9.34 38/245838/1 dali_1.9.34
Richard Huang [Fri, 16 Oct 2020 10:31:32 +0000 (11:31 +0100)]
DALi Version 1.9.34

Change-Id: I3b2a4aedddd0748b69634aa1a84759c0c7f675ac

4 years ago(Text Controller) Moved event handling, InputFont & Placeholder related methods into... 21/245221/4
Adeel Kazmi [Mon, 5 Oct 2020 10:41:15 +0000 (11:41 +0100)]
(Text Controller) Moved event handling, InputFont & Placeholder related methods into separate structs

Change-Id: If7b2eb2bde0bbb9a9bf04bd37d1d679c7038f5e0

4 years agoMerge "Text selection refactoring" into devel/master
Adeel Kazmi [Tue, 13 Oct 2020 15:12:40 +0000 (15:12 +0000)]
Merge "Text selection refactoring" into devel/master

4 years agoFix doxygen comments 87/245587/1
Adeel Kazmi [Mon, 12 Oct 2020 19:47:34 +0000 (20:47 +0100)]
Fix doxygen comments

Change-Id: I465620e3dcce309ccd6aa4e00895dac81fcf9c05

4 years agoText selection refactoring 77/244477/13
ali198724 [Fri, 18 Sep 2020 16:16:53 +0000 (19:16 +0300)]
Text selection refactoring

1- Move all of selection text functionality into SelectableControlInterface
2- Support (SelectWholeText, SelectNone, GetSelectedText) in TextEditor

Change-Id: I4da66433a09e99be09f6bd027761c3ea49cfc9f5

4 years agoMerge "Dali-toolkit: Text controls crash fix" into devel/master
joogab yun [Mon, 12 Oct 2020 09:47:17 +0000 (09:47 +0000)]
Merge "Dali-toolkit: Text controls crash fix" into devel/master

4 years agoDALi Version 1.9.33 65/245465/1 dali_1.9.33
György Straub [Fri, 9 Oct 2020 13:06:01 +0000 (14:06 +0100)]
DALi Version 1.9.33

Change-Id: I7b3f6ebb89cfbf8ffe8bf20899af8f81df8dbc55

4 years agoMerge "Fix documentation for Text::EditableControlInterface interface override functi...
joogab yun [Thu, 8 Oct 2020 02:57:17 +0000 (02:57 +0000)]
Merge "Fix documentation for Text::EditableControlInterface interface override functions" into devel/master

4 years agoDali-toolkit: Text controls crash fix 50/245350/1
ali198724 [Wed, 7 Oct 2020 11:42:41 +0000 (14:42 +0300)]
Dali-toolkit: Text controls crash fix

Fix crash when delete characters after change text color

Run demo, then press backspace
```
//g++ -g -O0 main.cpp -o app `pkg-config --cflags --libs dali2-core dali2-adaptor dali2-adaptor-integration  dali2-toolkit`

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));

    TextField field = TextField::New();
    field.SetProperty(TextField::Property::TEXT, "Erase");
    field.SetProperty(TextField::Property::TEXT_COLOR, Vector4(0.0f, 1.0f, 1.0f, 1.0f)); // CYAN
    field.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER);
    field.SetProperty(Actor::Property::SIZE, Vector2(300.f, 60.f));
    window.Add(field);
    field.SetKeyInputFocus();
  }

private:
  Application& mApplication;
};

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

  return 0;
}

```

Change-Id: I2c13330f92746c73d32da71cced15c3b297126dc

4 years agoMerge "Refactor SvgVisual" into devel/master
Heeyong Song [Wed, 7 Oct 2020 06:48:50 +0000 (06:48 +0000)]
Merge "Refactor SvgVisual" into devel/master

4 years agoRefactor SvgVisual 28/244728/6
Heeyong Song [Wed, 23 Sep 2020 15:05:06 +0000 (00:05 +0900)]
Refactor SvgVisual

Change-Id: I34399172bbb20220cbca031004f3e3bd805d006c

4 years agoMerge "use string_view to avoid temporary string allocation." into devel/master
Adeel Kazmi [Tue, 6 Oct 2020 09:04:45 +0000 (09:04 +0000)]
Merge "use string_view to avoid temporary string allocation." into devel/master

4 years agoDALi Version 1.9.32 12/245112/1 dali_1.9.32
Cheng-Shiun Tsai [Fri, 2 Oct 2020 09:46:42 +0000 (10:46 +0100)]
DALi Version 1.9.32

Change-Id: I65304e6e46868ad3e34994dde80e74970ddbbd31

4 years ago(JSON Parser State) Reduce Cyclomatic Complexity of ParseJson 70/245070/4
Adeel Kazmi [Wed, 30 Sep 2020 10:47:46 +0000 (11:47 +0100)]
(JSON Parser State) Reduce Cyclomatic Complexity of ParseJson

Change-Id: Iba20de994253d3dfaac8f92b9381c18aaeb76861

4 years agoMerge "Const correctness improvements for Property::Value." into devel/master
Adeel Kazmi [Tue, 29 Sep 2020 10:35:03 +0000 (10:35 +0000)]
Merge "Const correctness improvements for Property::Value." into devel/master

4 years agoThere is no need to call mOverlayRenderer's AddRenderer() in play(). 19/245019/1
Joogab Yun [Tue, 29 Sep 2020 06:41:10 +0000 (15:41 +0900)]
There is no need to call mOverlayRenderer's AddRenderer() in play().

Change-Id: I37c2709e45d9e5a97f5801258e6ebee377e1337a

4 years agoMerge "Text Editing (enable) property in text controls" into devel/master
Adeel Kazmi [Mon, 28 Sep 2020 15:53:38 +0000 (15:53 +0000)]
Merge "Text Editing (enable) property in text controls" into devel/master

4 years agoConst correctness improvements for Property::Value. 75/244975/2
György Straub [Mon, 28 Sep 2020 12:28:53 +0000 (13:28 +0100)]
Const correctness improvements for Property::Value.

- instead of using its parameter as in-out (and perhaps erroneously
  modifying the original), TextVisual returns the new map, which is then
  merged with the existing properties in ButtonImpl::SetProperty();

Change-Id: I974535fd017416dc60225a1f511e71d81a2a86de
Signed-off-by: György Straub <g.straub@partner.samsung.com>
4 years agoEnsuring Control behaviour flags retain their original values 06/244906/2
David Steele [Fri, 25 Sep 2020 15:17:46 +0000 (16:17 +0100)]
Ensuring Control behaviour flags retain their original values

Change-Id: Iafa9a7450a093fad0719c0ac51bbf2c04970948b

4 years agoText Editing (enable) property in text controls 60/243760/14
ali198724 [Wed, 9 Sep 2020 18:48:01 +0000 (21:48 +0300)]
Text Editing (enable) property in text controls

- Add support for enable/disable editing for TextField,TextEditor
- this effect keyboard, clipboard
- hide primary cursors and grap on non-edit mode
- hide virtual keyboard on non-editable mode
Change-Id: I4991e8bdffd0988e43c86d9be1b5b734e8e681cd

4 years agoDALi Version 1.9.31 83/244883/1 dali_1.9.31
Adeel Kazmi [Fri, 25 Sep 2020 10:58:15 +0000 (11:58 +0100)]
DALi Version 1.9.31

Change-Id: Id53d7de9f259c6cfa553037810fc6ef105241687

4 years agoMerge "Change the precision of size and uSize from mediumP to highP" into devel/master
sunghyun kim [Wed, 23 Sep 2020 02:20:26 +0000 (02:20 +0000)]
Merge "Change the precision of size and uSize from mediumP to highP" into devel/master

4 years agoMerge "Make MeasureCallback signature .NET friendly" into devel/master
Adeel Kazmi [Tue, 22 Sep 2020 18:12:06 +0000 (18:12 +0000)]
Merge "Make MeasureCallback signature .NET friendly" into devel/master

4 years agoMake MeasureCallback signature .NET friendly 65/242665/4
Wander Lairson Costa [Tue, 4 Aug 2020 15:11:03 +0000 (12:11 -0300)]
Make MeasureCallback signature .NET friendly

Currently, MeasureCallback signature has a return type of a POD 16 bytes
structure. Returning the structure by value is messing up when passing a
delegate from C# on Windows 10. The net effect is that arguments arrive
with random values. This happens because the C++ compiler may apply
optimization like RVO that the .NET runtime is not aware of.

This link [1] provides more details.

We fix the problem by making SizeTuple an out parameter and returning
void.

[1] https://www.tutorialsteacher.com/csharp/csharp-delegates

Change-Id: I71feef35908d139f60e6941b447a78b38053b89d

4 years agoSvgVisual: Using VectorImageRenderer 73/240173/36
JunsuChoi [Tue, 28 Jul 2020 06:32:37 +0000 (15:32 +0900)]
SvgVisual: Using VectorImageRenderer

Make SvgVisual use VectorImageRenderer which is using ThorVG.
You can use nanosvg or thorVG by NO_THORVG macro define.

[Note]
If you want to use THORVG, remove below from ./build/tizen/CMakeLists.txt
...
ADD_DEFINITIONS( "-DNO_THORVG" )
...

Change-Id: Ia9bf5c799084e841ff567245a8ff4688824277ee

4 years agoMerge "Reduce Cyclomatic Complexity of Text classes" into devel/master
Adeel Kazmi [Mon, 21 Sep 2020 08:29:47 +0000 (08:29 +0000)]
Merge "Reduce Cyclomatic Complexity of Text classes" into devel/master

4 years agoChange the precision of size and uSize from mediumP to highP 43/243243/5
Sunghyun Kim [Fri, 4 Sep 2020 07:14:04 +0000 (16:14 +0900)]
Change the precision of size and uSize from mediumP to highP

When I checked the value of uSize and size set in the application, the
multiplication of these values could result in INF number if shader uses
mediump (fp16).

To avoid this problem, i change the precision of size and uSize from mediumP to highP

Change-Id: Iaa3e6f4427cfbf82a2ca59f0c5628f746ebdbb80

4 years agoMerge "DALi Version 1.9.30" into devel/master
David Steele [Fri, 18 Sep 2020 10:46:54 +0000 (10:46 +0000)]
Merge "DALi Version 1.9.30" into devel/master

4 years ago[dali_1.9.30] Merge branch 'devel/master' 46/244446/1
David Steele [Fri, 18 Sep 2020 10:35:44 +0000 (11:35 +0100)]
[dali_1.9.30] Merge branch 'devel/master'

Change-Id: I0e759f4ca26e9b635806a862cd043de839fb8b99

4 years agoDALi Version 1.9.30 40/244440/1 dali_1.9.30
David Steele [Fri, 18 Sep 2020 10:35:13 +0000 (11:35 +0100)]
DALi Version 1.9.30

Change-Id: I9ebc6f4c49010c6fc469d2abbc7cea327b9bc46f

4 years agoMerge "Add null check for mTextureSet. For empty text, text-visual doesn't create...
joogab yun [Fri, 18 Sep 2020 04:48:30 +0000 (04:48 +0000)]
Merge "Add null check for mTextureSet. For empty text, text-visual doesn't create a textureSet. So it happens that mTextureSet is null." into devel/master

4 years agoReduce Cyclomatic Complexity of Text classes 71/244371/2
Adeel Kazmi [Thu, 17 Sep 2020 23:00:21 +0000 (00:00 +0100)]
Reduce Cyclomatic Complexity of Text classes

Change-Id: I055f3fd585a9709ab99d23887f7ff02fcf454975

4 years agoMerge "Updated ImageVisual to handle native texture sampler" into devel/master
Adeel Kazmi [Thu, 17 Sep 2020 21:13:27 +0000 (21:13 +0000)]
Merge "Updated ImageVisual to handle native texture sampler" into devel/master

4 years agoMerge "Text selection refactoring" into devel/master
Adeel Kazmi [Thu, 17 Sep 2020 18:03:38 +0000 (18:03 +0000)]
Merge "Text selection refactoring" into devel/master

4 years agoAdd null check for mTextureSet. 22/244222/1
Joogab Yun [Wed, 16 Sep 2020 06:22:08 +0000 (15:22 +0900)]
Add null check for mTextureSet.
For empty text, text-visual doesn't create a textureSet.
So it happens that mTextureSet is null.

(sample)

 void Create(Application& application)
  {
    // Get a handle to the window
    Window window = application.GetWindow();
    window.SetBackgroundColor(Color::WHITE);

    textLabel = TextLabel::New();
    textLabel.SetProperty( Actor::Property::SIZE, Vector2(300.f, 200.f));
    textLabel.SetProperty( Toolkit::TextLabel::Property::TEXT, ""  );
    textLabel.SetProperty( Toolkit::TextLabel::Property::ENABLE_AUTO_SCROLL, true  );

    window.Add(textLabel);

    // Respond to a touch anywhere on the window
    window.GetRootLayer().TouchedSignal().Connect(this, &HelloWorldController::OnTouch);

  }

  bool OnTouch(Actor actor, const TouchEvent& touch)
  {
    textLabel.SetProperty( Toolkit::TextLabel::Property::TEXT, ""  );
    textLabel.SetProperty( Toolkit::TextLabel::Property::ENABLE_AUTO_SCROLL, false  );
    return true;
  }

Change-Id: Iff50abb0278c7d2f650a8c92cf8d5c5eaec6f36a

4 years agoMerge "Fix VideoView test case" into devel/master
Adeel Kazmi [Mon, 14 Sep 2020 14:05:01 +0000 (14:05 +0000)]
Merge "Fix VideoView test case" into devel/master

4 years agoUpdated ImageVisual to handle native texture sampler 83/243983/1
David Steele [Fri, 11 Sep 2020 16:56:59 +0000 (17:56 +0100)]
Updated ImageVisual to handle native texture sampler

Change-Id: I62bf03bb413140f581fb72a46e6fdf049caa7e5d

4 years agoMerge "Dali-Text: Keyboard Shortcuts" into devel/master
Adeel Kazmi [Fri, 11 Sep 2020 16:51:12 +0000 (16:51 +0000)]
Merge "Dali-Text: Keyboard Shortcuts" into devel/master

4 years agoDali-Text: Keyboard Shortcuts 28/242728/5
ali [Mon, 31 Aug 2020 14:53:58 +0000 (17:53 +0300)]
Dali-Text: Keyboard Shortcuts

Add support for :
1- Select All Text : Ctrl+A
2- Copy Text: support Ctrl+Insert
Disable Ctrl+(C/X/V/A/Insert) when shift is down

Change-Id: I5404ac6866eedb13ba2091d1d4b1be7e70dd95a8

4 years agoMerge "DALi Version 1.9.29" into devel/master
David Steele [Fri, 11 Sep 2020 12:01:22 +0000 (12:01 +0000)]
Merge "DALi Version 1.9.29" into devel/master

4 years ago[dali_1.9.29] Merge branch 'devel/master' 72/243972/1
adam.b [Fri, 11 Sep 2020 11:57:29 +0000 (12:57 +0100)]
[dali_1.9.29] Merge branch 'devel/master'

Change-Id: I2680076d964a2531c6743b6a8036002b3974cd36

4 years agoDALi Version 1.9.29 66/243966/1 dali_1.9.29
adam.b [Fri, 11 Sep 2020 11:56:33 +0000 (12:56 +0100)]
DALi Version 1.9.29

Change-Id: I48d6b2eb6b0da2cba0d67d1c5d5955f1d3ac9c6d

4 years agoFix VideoView test case 40/243940/1
Heeyong Song [Fri, 11 Sep 2020 08:36:07 +0000 (17:36 +0900)]
Fix VideoView test case

Add a VideoView to the Scene before playing an animation

Change-Id: I3c8cdad53592d49109893f741601d58dba8d64c8

4 years agoChange cursor parent from Layer to Actor 77/243577/3
Seoyeon Kim [Tue, 8 Sep 2020 08:21:59 +0000 (17:21 +0900)]
Change cursor parent from Layer to Actor

Change-Id: I5f746b733a443f8d270403d89c0658f165eef992
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
4 years agouse string_view to avoid temporary string allocation. 24/242424/5
Subhransu Mohanty [Thu, 27 Aug 2020 00:38:27 +0000 (09:38 +0900)]
use string_view to avoid temporary string allocation.

Change-Id: I234742fc0ad1337e54b56fcb916f435d487da2c5

4 years agoText selection refactoring 25/242725/10
ali [Mon, 31 Aug 2020 12:41:01 +0000 (15:41 +0300)]
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

4 years agoUpdating test harness following format changes 50/243850/3
David Steele [Thu, 10 Sep 2020 11:31:23 +0000 (12:31 +0100)]
Updating test harness following format changes

Change-Id: I2e6afda4215e8d8f707331d3952a8c8eaff2b9bd

4 years agoFormatting API 49/243849/2
David Steele [Thu, 10 Sep 2020 10:26:49 +0000 (11:26 +0100)]
Formatting API

Change-Id: I8ee16601ef38967ed7eddc7645b2c11a6226adce

4 years agoAdding clang format 11/243611/2
David Steele [Mon, 7 Sep 2020 16:08:01 +0000 (17:08 +0100)]
Adding clang format

Closely follows new dali-style

Change-Id: I285743bf054dfbb04809ec995e47f00426134889

4 years agoAdding 'override', removing 'virtual' from overriding functions' declarations in... 54/243754/1
György Straub [Wed, 9 Sep 2020 13:28:55 +0000 (14:28 +0100)]
Adding 'override', removing 'virtual' from overriding functions' declarations in tests.

Change-Id: I04ba825e4125a13e27818eed9b2d9be67755b6ef
Signed-off-by: György Straub <g.straub@partner.samsung.com>
4 years agoMerge "Changed 'virtual' function override declarations to 'override' in automated...
Adeel Kazmi [Tue, 8 Sep 2020 10:56:57 +0000 (10:56 +0000)]
Merge "Changed 'virtual' function override declarations to 'override' in automated-tests." into devel/master

4 years agoOverriding virtual destructors are marked as 'override'. 75/243575/2
György Straub [Tue, 8 Sep 2020 07:41:48 +0000 (08:41 +0100)]
Overriding virtual destructors are marked as 'override'.

- so are functions missed from If046270d3b6036f8566a9c48e4064425c1498daa;
- affected files that were the wrong mode have that fixed too (-x);

Change-Id: I476600848bb789ae7e660d130be723604453c674
Signed-off-by: György Straub <g.straub@partner.samsung.com>
4 years agoChanged 'virtual' function override declarations to 'override' in automated-tests. 24/243324/3
György Straub [Fri, 4 Sep 2020 14:25:00 +0000 (15:25 +0100)]
Changed 'virtual' function override declarations to 'override' in automated-tests.

Change-Id: Id86e9c197e28b3fb67bc1a3aec504020dc093808
Signed-off-by: György Straub <g.straub@partner.samsung.com>
4 years agoChanged 'virtual' function override declarations to 'override' in dali-toolkit. 23/243323/3
György Straub [Fri, 4 Sep 2020 11:14:24 +0000 (12:14 +0100)]
Changed 'virtual' function override declarations to 'override' in dali-toolkit.

Change-Id: If046270d3b6036f8566a9c48e4064425c1498daa
Signed-off-by: György Straub <g.straub@partner.samsung.com>
4 years ago[dali_1.9.28] Merge branch 'devel/master' 83/243283/1
Richard Huang [Fri, 4 Sep 2020 10:16:20 +0000 (11:16 +0100)]
[dali_1.9.28] Merge branch 'devel/master'

Change-Id: Ib01c1f6a36e560625f216fb067ee3a1110d86903

4 years agoDALi Version 1.9.28 76/243276/1 dali_1.9.28
Richard Huang [Fri, 4 Sep 2020 10:15:50 +0000 (11:15 +0100)]
DALi Version 1.9.28

Change-Id: Icb06c26e79f0468af263f67dd7363813226cccf0

4 years agoMerge "Removed REQUIRES_STYLE_CHANGE_SIGNALS" into devel/master
Adeel Kazmi [Thu, 3 Sep 2020 19:35:37 +0000 (19:35 +0000)]
Merge "Removed REQUIRES_STYLE_CHANGE_SIGNALS" into devel/master

4 years agoRemoved REQUIRES_STYLE_CHANGE_SIGNALS 75/243175/4
adam.b [Thu, 3 Sep 2020 15:38:51 +0000 (16:38 +0100)]
Removed REQUIRES_STYLE_CHANGE_SIGNALS

Change-Id: I8bacc71a58a052e68aa6f0af9e0ab8634fcd576e

4 years agoMerge "Removed On(...)Event()" into devel/master
Adeel Kazmi [Thu, 3 Sep 2020 17:23:34 +0000 (17:23 +0000)]
Merge "Removed On(...)Event()" into devel/master

4 years agoRemoved On(...)Event() 59/242359/9
adam.b [Thu, 3 Sep 2020 16:11:02 +0000 (17:11 +0100)]
Removed On(...)Event()

Change-Id: I09dcd36368f97c03cfda6d004e240df4dc13264b