platform/core/csapi/tizenfx.git
2 years ago[NUI][AT-SPI] Static class Accessibility (#3987)
Artur Świgoń [Fri, 4 Mar 2022 00:39:56 +0000 (01:39 +0100)]
[NUI][AT-SPI] Static class Accessibility (#3987)

This class serves as a collection of unrelated methods, which are all
static in DALi anyway, and as such is a good candidate for migration to
a C# 'static class'.

Co-authored-by: Artur Świgoń <a.swigon@samsung.com>
2 years ago[NUI] Update the touch description. (#3995)
JoogabYun [Thu, 3 Mar 2022 08:49:33 +0000 (17:49 +0900)]
[NUI] Update the touch description. (#3995)

'actor' is the wrong term. Change to 'view'.

point means the touched point.

If there is 1 touch point, the point index is 0.

If there are two touch points, the point index has 0 and 1.

2 years ago[NUI][AT-SPI] Set CollectionView role to List (#3989)
kimcinoo [Thu, 3 Mar 2022 06:07:40 +0000 (15:07 +0900)]
[NUI][AT-SPI] Set CollectionView role to List (#3989)

The CollectionView has role of list.

Co-authored-by: Shinwoo Kim <cinoo.kim@samsung.com>
2 years ago[NUI][ATSPI] Set AccessibilityHidden for DefaultLinearItem (#3914)
kimcinoo [Thu, 3 Mar 2022 05:53:29 +0000 (14:53 +0900)]
[NUI][ATSPI] Set AccessibilityHidden for DefaultLinearItem (#3914)

The Seperator of DefaultLinearItem would be not necessary to AT-Client.
This patch is removing Seperator accessible nodes from A11Y tree.

And the Label would be not necessary to AT-Client, if the DefaultLinearItem
provides the Label information.
This patch is removing Label accessible nodes as well.

Co-authored-by: Shinwoo Kim <cinoo.kim@samsung.com>
2 years ago[NUI][AT-SPI] Support multiple AT-SPI interfaces for View
Artur Świgoń [Thu, 10 Feb 2022 09:27:12 +0000 (10:27 +0100)]
[NUI][AT-SPI] Support multiple AT-SPI interfaces for View

This patch adds GetInterfaces to AccessibilityDelegate which will allow
to report any number of AT-SPI interfaces in any combinations back to
DALi. Complementary changes to DALi make the AT-SPI bridge use
GetInterfaces instead of dynamic_cast (which stops at the C++ language
boundary).

Note however, that it is not yet possible to declare more than one
AT-SPI interface for a given Control in NUI. There are more changes
needed, such as removing SetAccessibilityConstructor and switching to
native C# interfaces, and they will be done in separate PRs.

2 years ago[NUI] Fix timePicker ampm internal logic
Woochanlee [Wed, 23 Feb 2022 12:25:57 +0000 (21:25 +0900)]
[NUI] Fix timePicker ampm internal logic

2 years ago[NUI] Fix GetProperty ambiguousmatch exception
Xianbing Teng [Tue, 22 Feb 2022 08:04:00 +0000 (16:04 +0800)]
[NUI] Fix GetProperty ambiguousmatch exception

2 years ago[NUI]Fix ResourcesDictionary & BindingContext issues
Xianbing Teng [Thu, 17 Feb 2022 10:03:47 +0000 (18:03 +0800)]
[NUI]Fix ResourcesDictionary & BindingContext issues

Description:
1. Optimize codes of xaml parser.
2. Split resources from Application, each view can has its own resources. Previously only use application resources, it costs more time to lookup.
3. Migrate XamlStyle/XamlResources from View/Layer to Container. Previously both Layer and View have XamlStyle and XamlResources properties, it is redundant.
4. Optimize inherited binding context.
5. This change does not change the previous use.

2 years ago[Applications.Common] Add Globalization invariant mode check (#3998)
hjhun [Fri, 4 Mar 2022 01:43:35 +0000 (10:43 +0900)]
[Applications.Common] Add Globalization invariant mode check (#3998)

In globalization-invariant mode, creating a new CultureInfo() throws
a CultureNotFoundException exception. If the process runs in invariant
mode, the CoreApplication doesn't set CultureInfos. And, the
CultureInfoHelper uses ToLowerInvaraint() instead of ToLower() with CultureInfo("en-US");

Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years ago[NUI] Version update (2.1.10) (#3967)
JoogabYun [Tue, 22 Feb 2022 05:42:00 +0000 (14:42 +0900)]
[NUI] Version update (2.1.10) (#3967)

[NUI] Version update (2.1.10)

2 years ago[NUI] Add forward and backward direction type (#3932)
JoogabYun [Tue, 22 Feb 2022 04:43:01 +0000 (13:43 +0900)]
[NUI] Add forward and backward direction type (#3932)

Now, You can get Forward type by pressing Tab key and Backward type by pressing Shift-Tab key.

public override View GetNextFocusableView(View currentFocusedView, View.FocusDirection direction, bool loopEnabled)
{
 if (direction == View.FocusDirection.Forward)
 {
  // Tab
 }
 else if (direction == View.FocusDirection.Backward)
 {
  // Shift-Tab
 }
}

2 years ago[NUI] Rotary Event (Custom Wheel Type) improvement
joogab.yun [Tue, 25 Jan 2022 02:20:41 +0000 (11:20 +0900)]
[NUI] Rotary Event (Custom Wheel Type) improvement

Previously, RotaryEvents could always be received only by window.
Now, User can receive Rotary Events in focused View as well.
It is also possible to propagate events to the parent view.

If there is no focused View, the window will receive the event.

This only applies to Rotary Event(CustomWheel type).

2 years ago[NUI] Fix unmatched return values before LazyUpdate (#3937)
Eunki Hong [Fri, 18 Feb 2022 04:04:55 +0000 (13:04 +0900)]
[NUI] Fix unmatched return values before LazyUpdate (#3937)

1. Call ImageView.UpdateImage() before get NaturalSize so we can guarantee that ResoureUrl properties updated
2. CropToMask value return true in default when we set AlphaMaskUrl.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Co-authored-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years ago[NUI][AT-SPI] Singleton AccessibilityDelegate (#3899)
Artur Świgoń [Thu, 17 Feb 2022 10:45:25 +0000 (11:45 +0100)]
[NUI][AT-SPI] Singleton AccessibilityDelegate (#3899)

Co-authored-by: Artur Świgoń <a.swigon@samsung.com>
2 years ago[Tts] Fix the description of Repeat() (#3953)
Suyeon Hwang [Thu, 17 Feb 2022 02:04:11 +0000 (11:04 +0900)]
[Tts] Fix the description of Repeat() (#3953)

Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
2 years ago[NUI] Version update (2.1.09)
Woochanlee [Wed, 16 Feb 2022 07:14:19 +0000 (16:14 +0900)]
[NUI] Version update (2.1.09)

2 years ago[NUI][Test] apply home env in launch.json of test projects (#3952)
SangHyeon Jade Lee [Wed, 16 Feb 2022 07:02:22 +0000 (23:02 -0800)]
[NUI][Test] apply home env in launch.json of test projects (#3952)

2 years ago[NUI] Change csproj file to make this sample run on Ubuntu, tizen-emul and TV (#3950)
dongsug-song [Tue, 15 Feb 2022 10:53:00 +0000 (19:53 +0900)]
[NUI] Change csproj file to make this sample run on Ubuntu, tizen-emul and TV (#3950)

2 years ago[NUI] Apply focusable features and Automatic Focus algorithm
EverLEEst(SangHyeon Lee) [Tue, 15 Feb 2022 08:03:33 +0000 (17:03 +0900)]
[NUI] Apply focusable features and Automatic Focus algorithm

2 years ago[NUI] fix copyright years.
EverLEEst(SangHyeon Lee) [Tue, 8 Feb 2022 08:11:37 +0000 (17:11 +0900)]
[NUI] fix copyright years.

2 years ago[NUI] fix descriptions of float graphicsTypeConverter
EverLEEst(SangHyeon Lee) [Tue, 8 Feb 2022 08:09:52 +0000 (17:09 +0900)]
[NUI] fix descriptions of float graphicsTypeConverter

2 years agoadd arguments for implicit scaling factor setting.
EverLEEst(SangHyeon Lee) [Thu, 27 Jan 2022 11:50:21 +0000 (20:50 +0900)]
add arguments for implicit scaling factor setting.

2 years agoAdd FloatGraphicsTypeConverter and support converter in PixelSize in Text.
EverLEEst(SangHyeon Lee) [Thu, 27 Jan 2022 10:43:19 +0000 (19:43 +0900)]
Add FloatGraphicsTypeConverter and support converter in PixelSize in Text.

2 years ago[NUI] add style guide sample. (#3944)
SangHyeon Jade Lee [Mon, 14 Feb 2022 07:21:23 +0000 (23:21 -0800)]
[NUI] add style guide sample. (#3944)

* NUI: Add style guide sample.

* NUI : add codeowners on styleguide.

* [NUI] adding comments.

* [NUI] remove xaml build config and remove unecessary dir.

* [NUI] modify main logics and adding empty 2-depth scrollableBase examples.

* [NUI] add scrollableBase examples

2 years ago[NUI] Add FeedTouch and FeedWheel
joogab.yun [Fri, 11 Feb 2022 02:16:54 +0000 (11:16 +0900)]
[NUI] Add FeedTouch and FeedWheel

2 years ago[NUI][AT-SPI] Clean up APIs related to AccessibilityStates (#3904)
Artur Świgoń [Tue, 8 Feb 2022 09:32:09 +0000 (10:32 +0100)]
[NUI][AT-SPI] Clean up APIs related to AccessibilityStates (#3904)

Co-authored-by: Artur Świgoń <a.swigon@samsung.com>
2 years ago[Camera] Support variable buffer size (#3934)
Haesu Gwon [Fri, 11 Feb 2022 05:49:34 +0000 (14:49 +0900)]
[Camera] Support variable buffer size (#3934)

2 years ago[Sensor] Add orientation sensor type
taemin.yeom [Wed, 15 Sep 2021 05:44:42 +0000 (14:44 +0900)]
[Sensor] Add orientation sensor type

- SENSOR_GYROSCOPE_ORIENTATION : based on gyroscope_rotation_vector
- SENSOR_GEOMAGNETIC_ORIENTATION : based on geomagnetic_rotration_vector

2 years ago[NUI] Version update (2.1.08)
Wonsik Jung [Mon, 7 Feb 2022 11:37:20 +0000 (20:37 +0900)]
[NUI] Version update (2.1.08)

2 years ago[NUI] Fix FlexLayout size calculation with Padding
Jaehyun Cho [Mon, 7 Feb 2022 08:16:48 +0000 (17:16 +0900)]
[NUI] Fix FlexLayout size calculation with Padding

Previously, if FlexLayout had Padding, then child's and grand child's sizes
were calculated incorrectly.
Because in FlexLayout's OnLayout(), child's size was given with applying
Padding. But Padding was applied in FlexLayout's OnLayout() again.
As a result, child's size became smaller by Padding size than it had to be.

Now, if FlexLayout has Padding, then child's and grand child's sizes are
calculated correctly.
The Padding is not applied duplicately while child's size is calculated.

2 years ago[NUI] Fix the defect that CurrentFrame is not updated properly when AnimatedVectorIma...
dongsug.song [Wed, 5 Jan 2022 10:24:23 +0000 (19:24 +0900)]
[NUI] Fix the defect that CurrentFrame is not updated properly when AnimatedVectorImageView stops

2 years ago[NUI] Support RequestLayout() while main loop is in idle state
Jaehyun Cho [Fri, 28 Jan 2022 09:35:09 +0000 (18:35 +0900)]
[NUI] Support RequestLayout() while main loop is in idle state

Previously, RequestLayout() was not supported if it was called while
main loop was in idle state.

Now, RequestLayout() calls Awake() to awake main loop again and Layout
can be re-calculated correctly.

2 years ago[NUI] Add DisposeTest, Add DebugFileLogging Test
dongsug.song [Fri, 28 Jan 2022 11:56:44 +0000 (20:56 +0900)]
[NUI] Add DisposeTest, Add DebugFileLogging Test

- fix the bug that TextRunner was not working properly.
- change the TextRunner to executed one by one by using EventThread trigger.
- previously, it was reculsively executed in one timer callback.
- this means it accumulated call stack very much.

2 years agoAdd callback for navigation policy decision.
huayong.xu [Thu, 13 Jan 2022 10:11:06 +0000 (18:11 +0800)]
Add callback for navigation policy decision.

2 years ago[NUI]Set response body in binary format when intercepting http request. (#3884)
huayongxu [Mon, 7 Feb 2022 04:04:15 +0000 (12:04 +0800)]
[NUI]Set response body in binary format when intercepting http request. (#3884)

2 years ago[NUI] Fix PointSizeTypeConverter error
Xianbing Teng [Fri, 28 Jan 2022 09:28:40 +0000 (17:28 +0800)]
[NUI] Fix PointSizeTypeConverter error

2 years ago[NUI] Call ProcessorOnceEvent after all event finished
Eunki, Hong [Fri, 28 Jan 2022 08:25:28 +0000 (17:25 +0900)]
[NUI] Call ProcessorOnceEvent after all event finished

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years ago[NUI][AT-SPI] Fixed A11y support for Navigator
Maria Bialota [Mon, 24 Jan 2022 14:08:04 +0000 (15:08 +0100)]
[NUI][AT-SPI] Fixed A11y support for Navigator

* Added state change notifications for Insert() and Remove() methods
  when inserting/removing Page on top of Navigator.

2 years ago[NUI] Add CharacterSpacing property
Shrouq Sabah [Mon, 22 Nov 2021 12:22:50 +0000 (14:22 +0200)]
[NUI] Add CharacterSpacing property

2 years ago[NUI] Catch DllNotFoundException in IsSupportedMultiWindow() for desktop
Jaehyun Cho [Fri, 28 Jan 2022 04:49:28 +0000 (13:49 +0900)]
[NUI] Catch DllNotFoundException in IsSupportedMultiWindow() for desktop

To support multi-window, creating a new Window calls
Window.IsSupportedMultiWindow().

Since libcapi-system-info.so.0 is not installed by default on desktop
environment, calling Window.IsSupportedMultiWindow() causes crash by
DllNotFoundException.

Not to cause crash by calling Window.IsSupportedMultiWindow() on
desktop, DllNotFoundException is caught.

2 years ago[NUI] Fix svace issue of RecyclerView LinearLayouter (#3923)
Eunki Hong [Fri, 4 Feb 2022 06:17:56 +0000 (15:17 +0900)]
[NUI] Fix svace issue of RecyclerView LinearLayouter (#3923)

Check if groupInfo is null. It can be null when count = 0.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Co-authored-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years ago[NUI] Add SelectionStarted event (#3912)
abdullehghujeh [Fri, 4 Feb 2022 06:17:40 +0000 (08:17 +0200)]
[NUI] Add SelectionStarted event (#3912)

* [NUI] Add SelectionStart event

* update testing code

Co-authored-by: abdullah <abdullahhasan10@gmail.com>
2 years ago[NUI] fix text underline struct
Bowon Ryu [Wed, 26 Jan 2022 05:40:13 +0000 (14:40 +0900)]
[NUI] fix text underline struct

added missing tag [EditorBrowsable(EditorBrowsableState.Never)]

Fixed equals, hash for newly added fields

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] Support last day of month when month change in DatePicker
Woochanlee [Wed, 26 Jan 2022 09:18:48 +0000 (18:18 +0900)]
[NUI] Support last day of month when month change in DatePicker

Previously, DatePicker don't consider last day of month when month change.
It makes crash issue when create DateTime.

2 years ago[NUI][ATSPI] remove duplicated calculation for states
Shinwoo Kim [Fri, 21 Jan 2022 06:33:17 +0000 (15:33 +0900)]
[NUI][ATSPI] remove duplicated calculation for states

The HIGHLIHGTED state is calculated on parent class ControlAccessible
The get of IsHighlighted is doing exactly same calculation.

And HIGHLIGHTABLE, FOCUSABLE, and DEFUNCT as well.

Regarding VISIBLE was always TRUE. It is not correct state.
So this patch is removing the line related to the VISIBLE as well

2 years ago[WebRTC] Add new MediaFileSource APIs (#3917)
Haesu Gwon [Mon, 7 Feb 2022 01:48:46 +0000 (10:48 +0900)]
[WebRTC] Add new MediaFileSource APIs (#3917)

2 years ago[Camera] Fix preview gc issue (#3918)
Haesu Gwon [Thu, 3 Feb 2022 00:39:13 +0000 (09:39 +0900)]
[Camera] Fix preview gc issue (#3918)

2 years ago[NUI] Rebase develnui (DevelNUI only patches --> master) (#3910)
Eunki Hong [Wed, 26 Jan 2022 07:33:01 +0000 (16:33 +0900)]
[NUI] Rebase develnui (DevelNUI only patches --> master) (#3910)

* [NUI][AT-SPI] Remove unused interop for GetBoundAccessibilityObject (#3895)

This interop was unused. The GetBoundAccessibilityObject API duplicates Accessible::Get in DALi, but both functions would be equally useless in NUI, because NUI does not have the concept of Accessible objects, so there is no point in obtaining an IntPtr to such an object.

Related patches which remove GetBoundAccessibilityObject from DALi:

    https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-toolkit/+/269912/
    https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/269910/

Co-authored-by: Artur Świgoń <a.swigon@samsung.com>
* [NUI] Clean up SubWindowTest.cs

* [NUI] Use CurrentCulture to prevent exception (#3891)

Gets system locale for multi language support got a unhandled exception.
Use CurrentCulture according to .NET guide.

Co-authored-by: Woochanlee <wc0917.lee@samsung.com>
* [NUI] Fix View not to proceed Remove() if argument is not child

Previously, View proceeded Remove() after printing error log although
the given argument was not a child of the view.

Now, View returns Remove() after printing error log if the given
argument is not a child of the view.

* [NUI] Add Tizen.NUI.Devel.Tests.Ubuntu project in order to run testcase in a local Ubuntu PC

* [NUI] Fix duplicated unparent issue at Layer

View have some safe-guard when we try to child.Unparent() && Remove(child) dual times.
(child will have null parent after one of them.)

But Layer.Remove didn't have any defence code about that situation.

Tizen.NUI.Components.Menu.Dispose call layer.Remove(this) in Dispose function.
But before Dispose function call, we already called Unparented function somewhere.

This patch will gaurd that case,
and also gaurd some null & reference issue.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
* [NUI] Overloading == operator in Color class and fix GetHashCode

- overloaded == operator in Color class

- there is a problem that the current GetHashCode() always returns the same value.

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
* [NUI] Get native image PropertyMap instead of cached.

When we try to get cached property map for animated image,
It will not return internal-updated values
something like "CurrentFrame" for animated image.

This patch make we return Current PropertyMap always
instead of cached property map.

Actually, the best way to fix is, create some flags when we
try to get time-sensitive values.
But it need to fixup some codes and test. So just make hot-fix.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
* [NUI] Focus movement follows the GetNextFocusableView() method of ScrollableBase
refer : https://github.com/Samsung/TizenFX/pull/3814

* [NUI][AT-SPI] Fix memory management issues

* [NUI] Fix warnings for TextConstants

override Eqauls, GetHashCode
overloaded == operator

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
* [NUI] Add Dashed/Double type to Text Underline (#3863)

Added Solid/DashWidth/DashGap types to the Underline struct.
If not provided, default is Solid type.
No effect on legacy underline behavior.

Added Enum UnderlineType (Solid, Dashed, Double)
Added new property to Underline struct

- Type : The type of the underline (the default type is Solid)

- DashWidth : The width of the dashes of the dashed underline

- DashGap : The gap between the dashes of the dashed underline

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
* [NUI] Version update (2.1.06)

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Co-authored-by: Artur Świgoń <aswigon@yandex.com>
Co-authored-by: Artur Świgoń <a.swigon@samsung.com>
Co-authored-by: dongsug.song <dongsug.song@samsung.com>
Co-authored-by: Woochan <48237284+lwc0917@users.noreply.github.com>
Co-authored-by: Woochanlee <wc0917.lee@samsung.com>
Co-authored-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
Co-authored-by: Eunki, Hong <eunkiki.hong@samsung.com>
Co-authored-by: Bowon Ryu <bowon.ryu@samsung.com>
Co-authored-by: joogab.yun <joogab.yun@samsung.com>
2 years ago[Connection] Do not use Lazy for Singleton (#3888)
chleun-moon [Thu, 20 Jan 2022 10:58:25 +0000 (19:58 +0900)]
[Connection] Do not use Lazy for Singleton (#3888)

* [Connection] Do not use Lazy for Singleton

* Update ConnectionInternalManager

2 years ago[WiFi] Add missing lock condition (#3882)
chleun-moon [Thu, 20 Jan 2022 01:59:54 +0000 (10:59 +0900)]
[WiFi] Add missing lock condition (#3882)

Co-authored-by: Dohyun Pyun <dh79.pyun@samsung.com>
2 years ago[InputMethod] Add new APIs for advanced IME (#3638)
Inhong [Wed, 19 Jan 2022 06:52:02 +0000 (15:52 +0900)]
[InputMethod] Add new APIs for advanced IME (#3638)

Co-authored-by: InHong Han <inhong1.han@samsung.com>
2 years ago[NUI] Version update (2.1.05)
tscholb [Wed, 19 Jan 2022 04:26:33 +0000 (13:26 +0900)]
[NUI] Version update (2.1.05)

2 years ago[NUI][AT-SPI] Fix accessibility activation for RecyclerViewItem
Artur Świgoń [Fri, 14 Jan 2022 15:41:06 +0000 (16:41 +0100)]
[NUI][AT-SPI] Fix accessibility activation for RecyclerViewItem

Because the implementation of RecyclerViewItem.OnAccessibilityActivated
would look identical to Button.OnAccessibilityActivated, to avoid code
duplication, accessibility activation is reimplemented in terms of
OnKeyboardEnter for all controls, just like it is done in DALi.

2 years ago[NUI] Support Layout for Multi-Window
Jaehyun Cho [Mon, 10 Jan 2022 11:33:36 +0000 (20:33 +0900)]
[NUI] Support Layout for Multi-Window

Previously, Layouts in the default Window were supported.

Now, Layouts in all Windows are supported.

To enable Multi-Window, Window.IsSupportedMultiWindow() should be true
and the following code should not be executed.

Information.TryGetValue("http://tizen.org/feature/opengles.surfaceless_context", out isSupported);

2 years ago[NUI] change individual code owners from team.
EverLEEst(SangHyeon Lee) [Mon, 17 Jan 2022 09:26:54 +0000 (18:26 +0900)]
[NUI] change individual code owners from team.

2 years ago[NUI] Modify GLWindow's method names (#3862)
dkdk-ryu [Tue, 18 Jan 2022 02:47:43 +0000 (11:47 +0900)]
[NUI] Modify GLWindow's method names (#3862)

It copied the naming style from GLView.

It depends on
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-adaptor/+/268653
https://review.tizen.org/gerrit/c/platform/core/uifw/dali-csharp-binder/+/268654

2 years ago[NUI] move codeowners under the github directories and fix typo.
EverLEEst(SangHyeon Lee) [Mon, 17 Jan 2022 08:11:42 +0000 (17:11 +0900)]
[NUI] move codeowners under the github directories and fix typo.

2 years ago[NUI] Add NUI Code Onwers
EverLEEst(SangHyeon Lee) [Thu, 13 Jan 2022 05:46:18 +0000 (14:46 +0900)]
[NUI] Add NUI Code Onwers

2 years ago[NUI] Fix equals issue of Selector
Xianbing Teng [Thu, 13 Jan 2022 06:29:08 +0000 (14:29 +0800)]
[NUI] Fix equals issue of Selector

2 years ago[NUI] fix non-initialized exception on layout notifier
EverLEEst(SangHyeon Lee) [Wed, 12 Jan 2022 11:35:51 +0000 (20:35 +0900)]
[NUI] fix non-initialized exception on layout notifier

2 years ago[NUI] Fix svace issues
zhouleonlei [Thu, 13 Jan 2022 03:04:42 +0000 (11:04 +0800)]
[NUI] Fix svace issues

2 years ago[NUI] Add TextFieldLayout and TextEditorLayout
Jaehyun Cho [Wed, 15 Dec 2021 09:54:12 +0000 (18:54 +0900)]
[NUI] Add TextFieldLayout and TextEditorLayout

In DALi, the default HeightResizePolicy of TextField and TextEditor is
FillToParent.
Because of this, TextField and TextEditor fill their parent's height by
default although text is null string.

If TextField and TextEditor's parent has Layout, then their sizes should
be calculated based on their Width/HeightSpecification.

To calculate TextField and TextEditor's size based on their
Width/HeightSpecification, TextFieldLayout and TextEditor are added.

2 years agoUpdate src/Tizen.NUI/src/public/XamlBinding/PointSizeTypeConverter.cs
SangHyeon Jade Lee [Wed, 12 Jan 2022 09:54:52 +0000 (18:54 +0900)]
Update src/Tizen.NUI/src/public/XamlBinding/PointSizeTypeConverter.cs

Co-authored-by: Seoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
2 years ago[NUI] Apply Sp and Dp type converter for text point size.
EverLEEst(SangHyeon Lee) [Wed, 5 Jan 2022 12:31:57 +0000 (21:31 +0900)]
[NUI] Apply Sp and Dp type converter for text point size.

2 years agoRevert "[NUI] apply scaling factor to point size (#3594)"
EverLEEst(SangHyeon Lee) [Wed, 5 Jan 2022 11:34:23 +0000 (20:34 +0900)]
Revert "[NUI] apply scaling factor to point size (#3594)"

This reverts commit c37096208436058f9a198d5124dedb5f6aca2164.

2 years ago[NUI] Add Strikethrough Property (#3844)
shrouqsabah [Wed, 12 Jan 2022 08:57:40 +0000 (10:57 +0200)]
[NUI] Add Strikethrough Property (#3844)

Add Strikethrough Set/Get methods to NUI
Strikethrough is a typographical presentation of words with a horizontal line through their center

The strikethrough map contains the following keys:

    enable (bool): Whether the strikethrough is enabled (the default value is false)
    color (Color): The color of the strikethrough (If not provided then the color of the text is used)
    height (float): The height in pixels of the strikethrough (the default value is 1.f)

Added:

    public void SetStrikethrough(Strikethrough strikethrough) // Method to TextLabel, TextEditor & TextField
    public Strikethrough GetStrikethrough() // Method to TextLabel, TextEditor & TextField

Related patches on DALi:

    Add Strikethrough Property : https://review.tizen.org/gerrit/c/platform/core/uifw/dali-csharp-binder/+/263388
    Extending Style - Adding Strikethrough : https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/258031

2 years ago[NUI] Version update (2.1.04) (#3854)
heeyongsong [Wed, 12 Jan 2022 08:08:31 +0000 (17:08 +0900)]
[NUI] Version update (2.1.04) (#3854)

2 years agoRevert "[NUI] Support Layout for Multi-Window"
Jaehyun Cho [Wed, 12 Jan 2022 06:34:04 +0000 (15:34 +0900)]
Revert "[NUI] Support Layout for Multi-Window"

This reverts commit 64303e2117e6b458c827901aa529be34e64d65b4.

2 years ago[NUI] Fix bug when ResourceUrl is empty string
Eunki, Hong [Wed, 12 Jan 2022 03:48:59 +0000 (12:48 +0900)]
[NUI] Fix bug when ResourceUrl is empty string

Previous code unregist visual when ResourceUrl use empty URL string.
After #3829, this action was changed.
So I fix this bug

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years ago[NUI] Fix svace issue
zhouleonlei [Tue, 11 Jan 2022 09:19:26 +0000 (17:19 +0800)]
[NUI] Fix svace issue

2 years ago[NUI] Support Layout for Multi-Window
Jaehyun Cho [Mon, 10 Jan 2022 11:33:36 +0000 (20:33 +0900)]
[NUI] Support Layout for Multi-Window

Previously, Layouts in the default Window were supported.

Now, to support Layout in Multi-Window, Layouts in all Windows are supported.

2 years ago[NUI] Add EnableFontSizeScale to Text components (#3841)
Bowon Ryu [Fri, 7 Jan 2022 07:56:12 +0000 (16:56 +0900)]
[NUI] Add EnableFontSizeScale to Text components (#3841)

* [NUI] Add EnableFontSizeScale to Text components

for current, FontSizeScale is applied to all text.
Add EnableFontSizeScale to selectively apply FontSizeScale from SystemSettings

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
* [NUI] Add test for FontSizeScale, EnableFontSizeScale

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI][ATSPI] Make ScrollableBase work for ScrollToChild
Shinwoo Kim [Fri, 7 Jan 2022 00:28:48 +0000 (09:28 +0900)]
[NUI][ATSPI] Make ScrollableBase work for ScrollToChild

The ScrollToChild is working for that the scrollable brings its child in
the view port to make the child show.

The ScrollableBase also needs to show its child if the child gets the
accessibility highlight.

So this patch is overriding the AccessibilityScrollToChild.

2 years ago[NUI] Add Xaml line info for bindable object
Xianbing Teng [Wed, 22 Dec 2021 10:55:40 +0000 (18:55 +0800)]
[NUI] Add Xaml line info for bindable object

2 years ago[NUI] Make SynchronousLoading use index key
Eunki, Hong [Fri, 31 Dec 2021 07:03:45 +0000 (16:03 +0900)]
[NUI] Make SynchronousLoading use index key

Currently, View.cs 's BackgroundImageLoadingSynchronously use string key, instead of index key.

But all other properties about visuals use index key only.
(Instead of animatable properties)

This patch just sync up with standard frame

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years ago[NUI] Delete Xaml seamless
huiyu.eun [Wed, 5 Jan 2022 05:47:36 +0000 (14:47 +0900)]
[NUI] Delete Xaml seamless

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
2 years ago[NUI][AT-SPI] Add AccessibilityHidden property
Artur Świgoń [Mon, 22 Nov 2021 10:17:27 +0000 (11:17 +0100)]
[NUI][AT-SPI] Add AccessibilityHidden property

2 years ago[NUI] Add to call UnregisterDefaultLabel when Page is popped (#3798)
Seoyeon2Kim [Tue, 4 Jan 2022 04:39:54 +0000 (13:39 +0900)]
[NUI] Add to call UnregisterDefaultLabel when Page is popped (#3798)

* [NUI] Add to call UnregisterDefaultLabel when Page is popped

 - Currently, Dialog and AlertDialog only call `RegisterDefaultLabel()` on init
time and do not call `UnregisterDefaultLabel()`.
 - So, move the code to call Add / Remove Popup methods when Page is
pushed and popped to Navigator.

 - In AT-SPI side, when Navigator pops a page (like `Button` clicked),
  the page is just removed from Navigator page list.
  That's why the page still has an accessibility highlight and cannot
see on the screen.

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
* Update Navigator according to reviews

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
2 years ago[NUI] fix warning about internal methods of text components
Bowon Ryu [Fri, 31 Dec 2021 10:36:48 +0000 (19:36 +0900)]
[NUI] fix warning about internal methods of text components

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] fix warning for text components
Bowon Ryu [Fri, 31 Dec 2021 08:57:33 +0000 (17:57 +0900)]
[NUI] fix warning for text components

CA2000 :
https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2000

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] fix dispose warning CA2000 for text testcase
Bowon Ryu [Fri, 31 Dec 2021 05:02:45 +0000 (14:02 +0900)]
[NUI] fix dispose warning CA2000 for text testcase

https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2000

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] update testcase for text vector2
Bowon Ryu [Wed, 29 Dec 2021 12:31:04 +0000 (21:31 +0900)]
[NUI] update testcase for text vector2

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] update testcase for Text
Bowon Ryu [Wed, 29 Dec 2021 11:37:23 +0000 (20:37 +0900)]
[NUI] update testcase for Text

* remove duplicate code from function extraction
* reduce loc & make better readability

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] Update ImageView properties lazy
Eunki, Hong [Thu, 30 Dec 2021 08:25:22 +0000 (17:25 +0900)]
[NUI] Update ImageView properties lazy

Current Implementation create/destroy visual whenever properties changed.
This patch hold visual-sensitive properties and
create/destroy visual before next EventProcess called.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years ago[NUI] Use ActionUpdateProperty for CornerRadius and Borderline
Eunki, Hong [Wed, 29 Dec 2021 13:04:19 +0000 (22:04 +0900)]
[NUI] Use ActionUpdateProperty for CornerRadius and Borderline

Due to the DALi's visual policy, we always create new visual
when some properties sensitive with visual's data.

Here, We make visual can change CornerRadius / Borderline
without destroy/create new visual.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
2 years ago[NUI] Fix build errors of NUI.Devel.Tests.
guowei.wang [Thu, 30 Dec 2021 12:38:32 +0000 (20:38 +0800)]
[NUI] Fix build errors of NUI.Devel.Tests.

2 years ago[NUI][AT-SPI] Add AccessibilityStatesNotifyMode
Artur Świgoń [Fri, 17 Dec 2021 12:53:21 +0000 (13:53 +0100)]
[NUI][AT-SPI] Add AccessibilityStatesNotifyMode

The different semantics of the second (bool) parameter of
EmitAccessibilityStatesChangedEvent and NotifyAccessibilityStatesChange
can cause confusion, since it represents the new value of the state in
the former method, and the notification strategy in the latter.

This change introduces an enum type for the second parameter of
NotifyAccessibilityStatesChange to express its effect more clearly.

2 years ago[NUI][AT-SPI] Update comments referring to AddPopup()
Artur Świgoń [Fri, 17 Dec 2021 13:18:11 +0000 (14:18 +0100)]
[NUI][AT-SPI] Update comments referring to AddPopup()

AddPopup() has recently been renamed to RegisterDefaultLabel().

2 years ago[NUI] change function name for match others in GraphicsTypeExtensions.
sh10233-linux [Mon, 27 Dec 2021 08:48:44 +0000 (00:48 -0800)]
[NUI] change function name for match others in GraphicsTypeExtensions.

2 years ago[NUI][AT-SPI] Add Accessibility.Enabled and .Disabled signals
Artur Świgoń [Wed, 10 Nov 2021 11:07:30 +0000 (12:07 +0100)]
[NUI][AT-SPI] Add Accessibility.Enabled and .Disabled signals

2 years ago[NUI][AT-SPI] Do not use fully-qualified names in Interop.Accessibility.cs
Artur Świgoń [Wed, 10 Nov 2021 11:04:24 +0000 (12:04 +0100)]
[NUI][AT-SPI] Do not use fully-qualified names in Interop.Accessibility.cs

It massively hurts readability when half of the file are repetitions of
the prefix 'global::System.Runtime.InteropServices'.

2 years ago[NUI][AT-SPI] Rename Accessibility.Enabled to .IsEnabled
Artur Świgoń [Wed, 10 Nov 2021 11:02:00 +0000 (12:02 +0100)]
[NUI][AT-SPI] Rename Accessibility.Enabled to .IsEnabled

'Enabled', like 'Finished' or 'Clicked' is a good name for an event, and
will be used in this role along with 'Disabled'.

2 years ago[NUI][AT_SPI] Added Accessibility support to Menu control
Maria Bialota [Fri, 19 Nov 2021 17:02:55 +0000 (18:02 +0100)]
[NUI][AT_SPI] Added Accessibility support to Menu control

2 years ago[WebRTC] Prevent cb instance from GC (#3779)
Haesu Gwon [Mon, 3 Jan 2022 07:59:38 +0000 (16:59 +0900)]
[WebRTC] Prevent cb instance from GC (#3779)

2 years ago[MediaPlayer] Fix description error (#3833)
Haesu Gwon [Mon, 3 Jan 2022 05:10:32 +0000 (14:10 +0900)]
[MediaPlayer] Fix description error (#3833)

2 years agoFix parse method to add IFormatProvider arg
jaehong Park [Tue, 26 Oct 2021 02:42:29 +0000 (11:42 +0900)]
Fix parse method to add IFormatProvider arg

2 years ago[NUI] Version update (2.1.03)
Jaehyun Cho [Mon, 20 Dec 2021 09:57:18 +0000 (18:57 +0900)]
[NUI] Version update (2.1.03)

Signed-off-by: Jaehyun Cho <jae_hyun.cho@samsung.com>
2 years ago[NUI] remove build warning messages
Bowon Ryu [Tue, 14 Dec 2021 08:10:35 +0000 (17:10 +0900)]
[NUI] remove build warning messages

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] add test cases for newly added internal apis
Bowon Ryu [Tue, 14 Dec 2021 07:37:34 +0000 (16:37 +0900)]
[NUI] add test cases for newly added internal apis

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
2 years ago[NUI] simplify code of placeholder property
Bowon Ryu [Tue, 14 Dec 2021 05:13:22 +0000 (14:13 +0900)]
[NUI] simplify code of placeholder property

- simplified the code to get the map value from placdeholder property using TextMapHelper
- reduce memory waste by calling Dispose() or using Add() from PropertyMapSetterHelper class

Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>