Xianbing Teng [Thu, 20 Apr 2023 05:54:28 +0000 (13:54 +0800)]
[NUI] Fix NUIApplication svace issue
Eunki, Hong [Thu, 20 Apr 2023 09:18:12 +0000 (18:18 +0900)]
[NUI.Scene3D] Make bvh/facial Animation from string buffer
This PR s backport of #5078 and #5187
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Jaehyun Cho [Thu, 20 Apr 2023 05:11:21 +0000 (14:11 +0900)]
[NUI] Add OverlayLayer to Window's LayersChildren to calculate Layout
Previously, OverlayLayer was not added to Window's LayersChildren so
Layouts inside the OverlayLayer were not calculated.
Now, OverlayLayer is added to Window's LayerChildren to calculate
Layouts inside the OverlayLayer.
dongsug-song [Wed, 19 Apr 2023 02:18:54 +0000 (11:18 +0900)]
Update src/Tizen.NUI/src/public/Window/WindowEvent.cs
Co-authored-by: Eunki Hong <h.pichulia@gmail.com>
dongsug-song [Wed, 19 Apr 2023 02:18:42 +0000 (11:18 +0900)]
Update src/Tizen.NUI/src/public/Window/WindowEvent.cs
Co-authored-by: Eunki Hong <h.pichulia@gmail.com>
dongsug.song [Fri, 14 Apr 2023 06:53:53 +0000 (15:53 +0900)]
[NUI] Add defence code for Window.VisibilityChanged event
seungho baek [Fri, 31 Mar 2023 10:03:55 +0000 (19:03 +0900)]
[NUI] Use ModelNode for the child of Model
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
hjhun [Tue, 18 Apr 2023 02:13:04 +0000 (11:13 +0900)]
[Applications.Common] Add an internal API (#5184)
Adds:
- AppControl.UnsetAutoRestart()
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Jaehyun Cho [Tue, 17 Jan 2023 06:05:24 +0000 (15:05 +0900)]
[NUI] Add NUIApplicaion.GetScreenSize
To provide the screen size, NUIApplication.GetScreenSize is added.
Artur Świgoń [Thu, 13 Apr 2023 08:45:11 +0000 (10:45 +0200)]
[NUI][AT-SPI] Add IAtspiValue.AccessibilityGetValueText()
This API allows the application to provide the Screen Reader with a formatted
string value rather than the default, floating-point one. This in turn, allows
to customize in detail how e.g. slider values are read.
Xianbing Teng [Thu, 6 Apr 2023 13:08:16 +0000 (21:08 +0800)]
[NUI] Fix svace issues
huayong.xu [Tue, 4 Apr 2023 09:20:03 +0000 (17:20 +0800)]
[NUI][API10] Add a LoadContents API with byte array for WebView.
Artur Świgoń [Tue, 4 Apr 2023 11:59:36 +0000 (13:59 +0200)]
[NUI][AT-SPI] Promote DoAction implementation from CustomView to View
This is a follow-up to #5109 that enables controls derived from View,
but not CustomView, that use the ViewAccessibilityMode.Custom (e.g.
FluxView), to customize their behaviour related to the AT-SPI Action
interface.
The implementation of AccessibilityDoAction() and its helper methods
is moved up from CustomView to View. Note that the events that
AccessibilityDoAction invokes have already been declared at the View
level, in ViewAccessibilityEvent.cs (e.g. AccessibilityActivated), so
they do not have to be moved anywhere in this PR.
chleun-moon [Wed, 5 Apr 2023 02:42:07 +0000 (11:42 +0900)]
[Connection] Fix race condition (#5154)
* [Connection] Fix race condition
* Add locks
* Use lock objects
Artur Świgoń [Mon, 3 Apr 2023 10:19:56 +0000 (12:19 +0200)]
[NUI][AT-SPI] Override ContentPage.AccessibilityGetName() (#5146)
ContentPage often serves as a default label in scenarios where Navigator is
used, so Screen Reader will ask ContentPage about the accessibility name (text
to read) when a Navigator page is pushed. Therefore, it makes sense to try to
provide the text from ContentPage.AppBar.Title (if it exists). The application
developer can always customize this by setting the AccessibilityName property
or adding an AccessibilityRelation.LabelledBy.
Co-authored-by: Artur Świgoń <a.swigon@samsung.com>
Artur Świgoń [Mon, 3 Apr 2023 09:41:24 +0000 (11:41 +0200)]
[NUI][AT-SPI] Add ViewAccessibilityMode (#5118)
The accessibility mode helps select the right Accessible implementation for
a given view. It does not affect controls derived from CustomView (or any of
its subclasses), e.g. Tizen.NUI.Components, which already behave in the custom
mode. The default mode is kept for Tizen.NUI.BaseComponents. However, this
patch add a possibility of opting into the custom mode for controls derived
directly from View (e.g. FluxView), and by doing so, to be able to implement
accessibility support for them in the C# language.
Co-authored-by: Artur Świgoń <a.swigon@samsung.com>
Daekwang Ryu [Thu, 23 Mar 2023 08:41:59 +0000 (17:41 +0900)]
[NUI] Introduce WindowLayoutType enum and SetLayout Method
The new `SetLayout` method allows users to easily snap windows to specific positions and sizes.
This feature is allowing users to quickly arrange their windows in a convenient and efficient manner.
Jaehyun Cho [Wed, 29 Mar 2023 11:04:19 +0000 (20:04 +0900)]
[NUI] Fix size calculation for TextLabel with Margin in RelativeLayout
Previously, RelativeLayout calculated the size for TextLabel with Margin
incorrectly by calling MeasureChildWithMargins().
Because TextLabel size was decreased by its Margin size incorrectly.
Now, RelativeLayout calculates the size for TextLabel with Margin
correctly by calling MeasureChild().
Because TextLabel size is not decreased by its Margin size.
SangHyeon Jade Lee [Wed, 29 Mar 2023 05:25:55 +0000 (14:25 +0900)]
[NUI] refactoring collectionView and Layouters for extended class (#5123)
* [NUI] refactoring collectionView and Layouters for extended class
to create customized collectionView and Layouters,
some properties must be extendable.
this change includes properties access modifier
which is internal or private to protected.
* [NUI] publize reyclerviewitem properties
* [NUI] fix item source getter more efficiently.
* [NUI] refactoring getter.
* [NUI] add GroupItems
* [NUI] fix build error
* [NUI] fix build error
* [NUI] change property overridable.
EverLEEst(SangHyeon Lee) [Mon, 19 Dec 2022 12:54:05 +0000 (21:54 +0900)]
[NUI] Pass SelectionChangedEventArgs by default as SelectionChangedCommandParameter.
EverLEEst(SangHyeon Lee) [Thu, 15 Dec 2022 11:45:54 +0000 (20:45 +0900)]
[NUI][NUITizenGallery] add Animal ListView and GridView examples
EverLEEst(SangHyeon Lee) [Fri, 17 Mar 2023 05:57:37 +0000 (14:57 +0900)]
[NUI] fix svace issue. check Selected item existance.
EverLEEst(SangHyeon Lee) [Thu, 15 Dec 2022 11:42:29 +0000 (20:42 +0900)]
[NUI] fix DefaultGridItem image to fill available area.
everLEEst(SangHyeon Lee) [Fri, 16 Dec 2022 05:27:35 +0000 (21:27 -0800)]
[NUI] update imageUrl to resourceUrl
EverLEEst(SangHyeon Lee) [Thu, 15 Dec 2022 11:38:44 +0000 (20:38 +0900)]
[NUI] add ImageUrl property on DefaultGridItem.
everLEEst(SangHyeon Lee) [Fri, 2 Dec 2022 07:01:44 +0000 (23:01 -0800)]
[NUI] fix group remove error.
everLEEst(SangHyeon Lee) [Fri, 25 Nov 2022 06:56:47 +0000 (22:56 -0800)]
[NUI] Add more condition when item is last.
everLEEst(SangHyeon Lee) [Fri, 25 Nov 2022 06:18:12 +0000 (22:18 -0800)]
[NUI] Fix Layouter to handle empty group case.
dongsug.song [Wed, 29 Mar 2023 02:04:15 +0000 (11:04 +0900)]
[NUI] Add friend assembly for FLUX Components and DA Components
Bowon Ryu [Mon, 27 Mar 2023 02:12:07 +0000 (11:12 +0900)]
[NUI] Add Font PreCache API to FontClient
This patch adds a new PreCache API to enable pre-caching of fonts
and improve the runtime performance of the application.
Pre-caching default fonts and fallback lists can enhance the responsiveness performance
by minimizing the calls to FcFontSort and FcFontMatch, during the early stages of boot-up.
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
Jiyun Yang [Fri, 17 Mar 2023 04:53:15 +0000 (13:53 +0900)]
[NUI] Refactor ButtonExtension
* Rename some functions to better match the design intent.
* Extract Helper class to provide common methods used by multiple classes.
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
Haesu Gwon [Fri, 24 Mar 2023 03:12:00 +0000 (12:12 +0900)]
[Multimedia] Fix rotation issue for portrait mode (#5105)
Wonsik Jung [Fri, 17 Mar 2023 01:14:46 +0000 (10:14 +0900)]
[NUI] Add RotationCompletedAcknowledgement APIs
Add RotationCompletedAcknowledgement APIs in Window.
The APIs are SetNeedsRotationCompletedAcknowledgement and SendRotationCompletedAcknowledgement
joogab.yun [Fri, 17 Mar 2023 07:51:50 +0000 (16:51 +0900)]
[NUI] Remove unnecessary gesture events from DefaultBorder.
hjhun [Fri, 17 Mar 2023 05:05:27 +0000 (14:05 +0900)]
[NUI.Gadget] Support Internationalization (#5091) (#5092)
* [NUI.Gadget] Add NUIGadgetResourceManager class
To support multilanguage, a new class is added.
Adds:
- NUIGadgetResourceManager
* [NUI.Gadget] Modify property & metadata name
---------
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Jiyun Yang [Wed, 15 Mar 2023 08:27:44 +0000 (17:27 +0900)]
[NUI] Change log info to debug in ThemeManager
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
EverLEEst(SangHyeon Lee) [Fri, 10 Mar 2023 07:49:42 +0000 (16:49 +0900)]
fix previous patch by coding rules
EverLEEst(SangHyeon Lee) [Fri, 10 Mar 2023 06:49:15 +0000 (15:49 +0900)]
[NUI] Fix collectionView Selection on Item.
Jaehyun Cho [Tue, 29 Nov 2022 07:40:33 +0000 (16:40 +0900)]
[NUI] Update NUI samples based on the latest back navigation
NUI samples has been updated to use EnableBackNavigation and
OnBackNavigation of Navigator and Page based on the default action of
the latest back navigation.
guowei.wang [Wed, 18 Jan 2023 03:42:48 +0000 (11:42 +0800)]
[NUI] Fix svace issues.
Jaehyun Cho [Mon, 5 Dec 2022 08:16:09 +0000 (17:16 +0900)]
[NUI] Fix Navigator to enable multiple Pop()
A popped page is removed in the Pop() animation's Finished callback.
Previously, Navigator could not support multiple Pop().
Because Pop() simply stopped the previous Pop() animation without
calling the animation's Finished callback.
Now, Pop() stops the previous Pop() animation with calling the
animation's Finished callback by emitting FinishedSignal().
Consequently, Navigator can support multiple Pop() now.
Jaehyun Cho [Thu, 1 Dec 2022 06:04:31 +0000 (15:04 +0900)]
[NUI] Modify the default action of back navigation
Previously, back navigation only pops the peek page.
However, in most cases, application wants to exit the program when back
button is clicked on the first page.
This forces application to customize back navigation to change the
default action of back navigation.
So now, the default action of back navigation has been modified.
If navigator has more than one page, then the peek page is popped by
back navigation.
Otherwise, the current program is exited by back navigation.
Jaehyun Cho [Mon, 28 Nov 2022 11:36:53 +0000 (20:36 +0900)]
[NUI] Add OnBackNavigation to Page
To enable customization of back navigation per page, OnBackNavigation
is added to Page.
e.g.
class CustomPage : Page
{
protected override OnBackNavigation(PageBackNavigationEventArgs args)
{
// Do something when back navigation is started.
...
// To pop this page, call base.OnBackNavigation().
// Otherwise, do not call base.OnBackNavigation().
base.OnBackNavigation(args);
}
}
Jaehyun Cho [Mon, 28 Nov 2022 08:40:06 +0000 (17:40 +0900)]
[NUI] Add EnableBackNavigation to Page
To support back navigation automatically, EnableBackNavigation is
added to Page like Navigator.
If EnabledBackNavigation is false, then back button and back key do
not cause back navigation on the page.
Jaehyun Cho [Mon, 28 Nov 2022 08:25:27 +0000 (17:25 +0900)]
[NUI] Add SetDefaultNavigator
To use customized Navigator as default navigator, SetDefaultNavigator
is added.
Jaehyun Cho [Fri, 25 Nov 2022 08:18:16 +0000 (17:18 +0900)]
[NUI] Add OnBackNavigation to Navigator
To enable customization of back navigation, OnBackNavigation is added
to Navigator.
e.g.
class CustomNavigator : Navigator
{
protected override OnBackNavigation(BackNavigationEventArgs args)
{
// Do something when back navigation is started.
...
// To pop the peek page, call base.OnBackNavigation().
// Otherwise, do not call base.OnBackNavigation().
base.OnBackNavigation(args);
}
}
Jaehyun Cho [Wed, 23 Nov 2022 07:51:49 +0000 (16:51 +0900)]
[NUI] Add EnableBackNavigation to Navigator
To support back navigation automatically, EnableBackNavigation is
added to Navigator.
If EnabledBackNavigation is false, then back button and back key do
not cause back navigation.
Jaehyun Cho [Thu, 1 Dec 2022 07:48:39 +0000 (16:48 +0900)]
[NUI] Fix Navigator Insert to keep pages order correctly
Previously, pages order was not kept correctly when a page was inserted.
Because of that, inserted page overlaps the next page's page transition.
e.g.
- Let page1 be pushed.
- Let page2 be inserted before page1.
- Pop page1.
Then page1's page transition is hidden by page2 because page2 is added
later so page2 overlaps page1.
Now, to resolve the above issue, the order of the inserted page is
updated based on its page index value.
huayong.xu [Mon, 6 Mar 2023 07:54:18 +0000 (15:54 +0800)]
[NUI][API10] Fix SVACE issues.
joogab.yun [Mon, 6 Mar 2023 05:29:34 +0000 (14:29 +0900)]
[NUI] Add Dispose to LongPressGestureDetector and modify ReleaseSwigCPtr.
dongsug.song [Thu, 19 Jan 2023 00:37:04 +0000 (09:37 +0900)]
[NUI] fix testhub crash issue
hjhun [Thu, 9 Mar 2023 01:37:44 +0000 (10:37 +0900)]
[Applications.Common / UI] Add new internal APIs (#5068)
* [Applications.Common] Add new internal AppControl APIs
Adds:
- SetWindowPosition()
- GetWindowPosition()
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* [Applications.UI] Add a new internal API
Adds:
- GetWindowPosition()
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
---------
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Jiyun Yang [Wed, 8 Mar 2023 04:31:27 +0000 (13:31 +0900)]
[NUI] Remove unsed field in View
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
hjhun [Wed, 8 Mar 2023 04:24:16 +0000 (13:24 +0900)]
[NUI.Gadget] Add a new internal API (#4976) (#5064)
* [NUI.Gadget] Add new internal APIs
If the UI gadget developer sets the class name, the application developer
can adds a new NUIGadget instance using the NUIGadgetInfo object.
The following APIs are added:
+ NUIGadgetManager.Add(NUIGadgetInfo gadgetInfo); [method]
+ NUIGadgetManager.GetGadgetInfos(); [method]
+ NUIGadgetInfo.ClassName; [property]
* Change the visibility of the ClasaName property
The visibility of the NUIGadgetInfo.ClassName property is changed to internal.
* Modify description of GetGadgets()
* Remove Add() method
---------
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Co-authored-by: Jay Cho <chojoong@gmail.com>
hjhun [Wed, 8 Mar 2023 04:24:01 +0000 (13:24 +0900)]
[NUI.Gadget] Modify NUIGadgetManager.Add() method (#5063)
When calling the CreateInstance() method, this patch modifies the set
the ignoreCase to true that the case of the className is no checked.
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
joogab.yun [Mon, 6 Mar 2023 09:40:34 +0000 (18:40 +0900)]
[NUI] Add getter property about WindowPositionSizeWithBorder and WindowSizeWithBorder
In the case of a border window, the size including the border area is required.
Wonsik Jung [Fri, 3 Mar 2023 05:55:55 +0000 (14:55 +0900)]
[NUI] Fix set input region binding
Fix SetInputRegion binding function with correct internal function.
Because previous binded with includedRegion.
dongsug.song [Fri, 3 Mar 2023 04:25:24 +0000 (13:25 +0900)]
[NUI] Add friend assembly for NUI FLUX
Xianbing Teng [Thu, 2 Mar 2023 10:48:00 +0000 (18:48 +0800)]
[NUI] Fix dispose xaml elements
Eunki Hong [Sun, 26 Feb 2023 13:55:02 +0000 (22:55 +0900)]
[NUI.Scene3D][API10] Use Model defined camera
Make API that we can use gltf model file defined camera.
Since Tizen.NUI.Scene3D.Camera is one of View & This camera should be children of SceneView to render the scene,
Camera cannot be owned by Model itself.
So, we support only for 'Generate' or 'Apply' camera parameters loaded from gltf model.
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
Jaehyun Cho [Thu, 23 Feb 2023 08:01:30 +0000 (17:01 +0900)]
[NUI] Fix Menu not to show Content if there is no menu item
Menu.Content is a container of menu items.
Previously, Menu.Content was displayed even if there is no menu item.
Now, Menu.Content is displayed only if menu item exists.
huayong.xu [Wed, 22 Feb 2023 07:37:26 +0000 (15:37 +0800)]
[NUI][API10] Fix SVACE issue.
Taehyub Kim [Tue, 21 Feb 2023 07:41:28 +0000 (16:41 +0900)]
DragAndDrop : Add multi-window sample
EverLEEst(SangHyeon Lee) [Thu, 15 Dec 2022 11:35:37 +0000 (20:35 +0900)]
[NUI] fix relative layout to fill regardless of children size.
Jaehyun Cho [Fri, 16 Dec 2022 10:11:13 +0000 (19:11 +0900)]
[NUI] Fix FlexLayout OnMeasure to calculate size correctly
Previously, the measured size of FlexLayout with WrapContent could be
calculated like MatchParent.
The above issue happened in the following case.
Tizen.NUI.Components.DialogPage.ShowAlertDialog("Title", "Message", null);
To resolve the above issue without breaking backward compatibility,
FlexLayout OnMeasure has been fixed to use ResolveSizeAndState()
instead of GetDefaultSize() when calculating the measured size.
To test the issue, showing a dialog without action button case has
been added to Tizen.NUI.StyleGuide.
Jiyun Yang [Mon, 20 Feb 2023 05:12:46 +0000 (14:12 +0900)]
[NUI] Update Tizen 7.0 UX
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
Jaehyun Cho [Tue, 21 Feb 2023 03:06:47 +0000 (12:06 +0900)]
[NUI] Resize slider normal thumb to calculate thumb position correctly
Previously, slider thumb size for normal and pressed were different.
This caused that the thumb position was calculated incorrectly.
Now, slider thumb for normal is resized to be the same with the thumb
for pressed.
By the above, the thumb position is calculated correctly.
Jiyun Yang [Tue, 21 Feb 2023 01:02:05 +0000 (10:02 +0900)]
[NUI] Fix Pagination bug
* Bug: When user changes indicator image url, all indicators turn into unselected look.
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
EverLEEst(SangHyeon Lee) [Mon, 20 Feb 2023 11:28:45 +0000 (20:28 +0900)]
[NUI][NUITizenGallery] fix build error.
Jaehyun Cho [Mon, 20 Feb 2023 08:47:32 +0000 (17:47 +0900)]
[NUI] Fix to remove Button's min size
To support button size set by user, Button's min size is removed.
Jiyun Yang [Mon, 20 Feb 2023 05:47:18 +0000 (14:47 +0900)]
[NUI] Fix Progress and improve Loading
* Progress
Previously, the Progress did not update the distance of the indeterminate animation on resize.
* Loading
Add a property that can help to set lottie animation image url.
This is for using Theme.
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
Jiyun Yang [Fri, 17 Feb 2023 08:51:57 +0000 (17:51 +0900)]
[NUI] Fix button bugs and improve switch.
* Button's IconOrientation bug
In the previous code, when the IconOrientation property changed,
the LayoutItems() was called and it created a new layout.
But in case the button was inside another layout, the behaviour
described above caused unexpect look. Therefore I fixed it
by changing orientation related properties to the existing layout
instead of creating a new layout.
* Improve switch and extension relationship
The switch extension does not register any event handler to the switch components anymore.
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
Taehyub Kim [Tue, 14 Feb 2023 12:28:14 +0000 (21:28 +0900)]
[NUI] DragAndDrop : don't reuse drag window
Eunki Hong [Sun, 19 Feb 2023 15:54:46 +0000 (00:54 +0900)]
[NUI.Scene3D] Change native default camera create API
Change default camera generate API as 3D engine style.
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
nam [Fri, 17 Feb 2023 09:14:20 +0000 (18:14 +0900)]
[MediaPlayer] fix to set window size properly (#5008)
* fix to set window size properly
* update all interfaces
* Update src/Tizen.Multimedia/Common/Display.cs
Co-authored-by: Haesu Gwon <haesu.gwon@samsung.com>
---------
Co-authored-by: Haesu Gwon <haesu.gwon@samsung.com>
Seoyeon2Kim [Fri, 17 Feb 2023 03:57:10 +0000 (12:57 +0900)]
[NUI] Fix Slider ValueIndicatorImage and Thumb size (#5003)
- Update Slider ValueIndicatorImage / Text to change its size depending
on the content.
- Thumb size uses natural size of its image size.
- Update Slider style guide sample for ValueIndicator
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
Jiyun Yang [Fri, 17 Feb 2023 03:31:53 +0000 (12:31 +0900)]
[NUI] Fix switch animation bug
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
Jiyun Yang [Wed, 15 Feb 2023 04:35:27 +0000 (13:35 +0900)]
[NUI] Improve behaviors of ThemeManager and add an event
* ThemeManager.AppendTheme: While ApplyTheme() clears previous applied user theme, AppendTheme() appends it to the previous one.
* ThemeChanging event: An event called right after the theme changed and before applying it to the view.
* Open Theme.indexer public: This is for C_XAML.
* Theme implements IResourcesProvider: to support XAMLResources in xaml code
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
Jaehyun Cho [Thu, 16 Feb 2023 10:17:18 +0000 (19:17 +0900)]
[NUI] Add constructors with string style to apply string style
To apply string style during constructing controls, constructors with
string style are added.
Eunki, Hong [Tue, 7 Feb 2023 09:33:08 +0000 (18:33 +0900)]
[NUI.Scene3D] Backport API11 for Scene3D
We might need to backport some properties so we can use Scene3D feature fully
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Jaehyun Cho [Wed, 15 Feb 2023 11:02:05 +0000 (20:02 +0900)]
[NUI] Fix Button Theme not to set fixed size
To increase Button width based on the Button's text, Button Theme sets
MinimumSize instead of fixed Size.
Jaehyun Cho [Wed, 8 Feb 2023 11:45:53 +0000 (20:45 +0900)]
[NUI] Add TabItem to support TabView in xaml
To support TabView in xaml, TabItem has been added.
TabView provides Add(TabItem) to add a tab from the given TabItem.
TabItem contains Title, IconURL of a new TabButton in TabView's TabBar
and Content of a new View in TabView's TabContent.
Jiyun Yang [Wed, 15 Feb 2023 02:36:52 +0000 (11:36 +0900)]
[NUI] Fix Switch thumb positioning
When the size of thumb or track changes, the it should update the position of the thumb properly.
And to prevent unnecessary switch state updating while applying style, upgrade styleApplying flag to int type.
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
송동석/Tizen Platform Lab(SR)/삼성전자 [Tue, 14 Feb 2023 07:52:06 +0000 (16:52 +0900)]
[NUI] update NUI.XamlBuild.dll
Jiyun Yang [Fri, 27 Jan 2023 05:26:59 +0000 (14:26 +0900)]
[NUI] Prevent NullReferenceException when creating TextLabel
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
Jaehyun Cho [Thu, 9 Feb 2023 07:12:49 +0000 (16:12 +0900)]
[NUI] Fix Picker's HeightSpecification
Previously, HeightSpecifications of Picker, DatePicker, TimePicker are
MatchParent.
So the Pickers' SizeHeights are calculated based on their parent's
SizeHeight.
This causes the recursive size calculation problem if Picker's parent
has WrapContent HeightSpecification. (e.g. Dialog)
Now, the Pickers' SizeHeights are set in DefaultThemeCommon as follows.
Picker's SizeHeight is set in DefaultThemeCommon.
DatePicker's Pickers SizeHeights are set in DefaultThemeCommon.
TimePicker's Pickers SizeHeights are set in DefaultThemeCommon.
Therefore, Picker does not need to have MatchParent HeightSpecification.
Jaehyun Cho [Wed, 1 Feb 2023 07:28:52 +0000 (16:28 +0900)]
[NUI] Fix to use SizeHeight instead of Size with width 0
Previously, although users sets size with width 0, the width is updated
by dali's size calculation (e.g. text calculation) instead of width 0
set by user.
The following patch fixed the above bug.
8033b0ed4a31ebcd9449c2e0c98074247502c9be
By applying the above patch, some size assignment in theme should be
fixed to set size height instead of size with width 0.
hjhun [Tue, 7 Feb 2023 02:52:11 +0000 (11:52 +0900)]
[NUI.Gadget] Fix static analysis issue (#4969)
Checker:
- DEREF_OF_NULL
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
hjhun [Fri, 3 Feb 2023 08:25:01 +0000 (17:25 +0900)]
[Applications.Common] Fix getting default locale (#4966)
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Jiyun Yang [Fri, 3 Feb 2023 01:21:17 +0000 (10:21 +0900)]
[NUI] Disable compiler warnings complaining about theme off in TV profile
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
huayong.xu [Thu, 2 Feb 2023 07:31:47 +0000 (15:31 +0800)]
[NUI][API10] Fix some SVACE issue
Xianbing Teng [Wed, 18 Jan 2023 07:53:31 +0000 (15:53 +0800)]
[NUI] Fix PropertyNotification & PanGestureDetector svace issues
Jiyun Yang [Wed, 1 Feb 2023 23:33:03 +0000 (08:33 +0900)]
[NUI] Revive View constructor with style working again in TV
And hide PROFILE_TV flags to make clear code
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
hjhun [Thu, 2 Feb 2023 04:33:36 +0000 (13:33 +0900)]
[NUI.Gadget] Add NUIGadget class for inhouse developers (#4957)
* [NUI.Gadget] Add NUIGadget class for inhouse developers (#4935)
* Implement NUIGadget
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Adjust project file
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Update csproj
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Update implementation
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Remove dll unload
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Remove unnecessary file
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Update sln file
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Add missing dependencies
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Add a missing property
The type is added.
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Update implementation
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Fix typo
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Check return type of Assembly.CreateInstance()
This patch uses 'as' keyword to check the instance type.
If it's not NUIGadget, the return value will be null.
In that case, the Add() method throws an exception.
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Add abstract keyword to NUIGadget class
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Modify Create() method of NUIGadget
If the Create() method returns 'false', the Add() method of NUIGadgetManager
throws an exception.
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Use CoreApplication.Post() instead of TizenUISynchronzationContext.Post()
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
* Change API version to 10
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
---------
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
huayong.xu [Tue, 31 Jan 2023 09:09:08 +0000 (17:09 +0800)]
[NUI][XamlBuild][API10] Fix namespace confused issue.
Jiyun Yang [Mon, 30 Jan 2023 09:58:35 +0000 (18:58 +0900)]
[NUI] Fix NUI button not working when style disabled
There was a flag that prevent state updating while applying style.
But the flag seemed to have a bug : when style is disabled, the state updating is never going to be done.
This patch fixes the bug and changes the flag's name to be more contextual: styleApplied -> styleApplying.
Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
hjhun [Wed, 1 Feb 2023 02:58:43 +0000 (11:58 +0900)]
Make it ineligible for garbage collection for delegate (#4949)
This patch is to prevent the delegate garbage collected.
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Eunki, Hong [Fri, 27 Jan 2023 07:41:42 +0000 (16:41 +0900)]
[NUI][Scene3D][API10] FBO MultiSamplingLevel Property for SceneView
Backporting PR of #4937
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Eunki Hong [Sun, 29 Jan 2023 08:14:03 +0000 (17:14 +0900)]
[NUI][API10] Fix dispose timing error for ImageUrl
Since we update ImageView lazy, ImageUrl's lifecycle might not matched
what user think.
```
ImageUrl imageUrl = ~~~.GenerateUrl();
ImageView imageView = new ImageView(imageUrl.ToString());
imageUrl.Dispose(); ///< We should allow this situation.
```
To make scene, We allow to call UpdateImage(); synchoronously
if we use GeneratedUrl().
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
Eunki Hong [Sat, 28 Jan 2023 14:19:21 +0000 (23:19 +0900)]
[NUI][Scene3D][API10] Fix memory leak issue for Model's Animation
Since we create new handle at csharp binder, we should call DeleteHandle function.
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>