platform/core/uifw/dali-toolkit.git
10 years agoPrevent valgrind error with Json parser 73/24173/1
Lee Morgan [Thu, 19 Jun 2014 14:19:30 +0000 (15:19 +0100)]
Prevent valgrind error with Json parser

Change-Id: Iad91a8d2cf5ec0c7d1cfa41786a1e95a8c56d065
Signed-off-by: Lee Morgan <Lee.morgan@partner.samsung.com>
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years ago(ScrollView) If animation duration is 0, then return final position in completed... 72/24172/1
Adeel Kazmi [Wed, 18 Jun 2014 10:12:53 +0000 (19:12 +0900)]
(ScrollView) If animation duration is 0, then return final position in completed signal

[problem]     If the animation duration is 0, we still return the current scroll position. This is
              wrong as in the next frame, we will be at the requested position.
[cause]       N/A
[solution]    If we do not kick off an animation, then we should check whether the duration was 0.
              If it was, we should return the target-position instead.

Change-Id: I3e1a96b3de7ca2685a16f6dd6b8ce5aebc1c78af
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoTextInput PopUp now appears in between handles or at Grabhandle, improved Tail positi... 71/24171/1
Agnelo Vaz [Tue, 17 Jun 2014 23:35:45 +0000 (00:35 +0100)]
TextInput PopUp now appears in between handles or at Grabhandle, improved Tail positioning

Change-Id: Ic71a0a493bd46c531c2cd8c0bac84a9927dfb3be
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoTextInput Popup border colour styling and missing offset property registration. 70/24170/1
Agnelo Vaz [Tue, 17 Jun 2014 14:10:11 +0000 (15:10 +0100)]
TextInput Popup border colour styling and missing offset property registration.

[problem]      Scripting can not be used to change the border colour of the popup
[solution]     Add Property for border colour

Change-Id: I99f45fee20c1ba26c75155cae53e924a09fd802f
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoAdd color lookup into Builder & apply changeable color on TextInput 69/24169/1
Xiangyin Ma [Fri, 13 Jun 2014 18:52:00 +0000 (19:52 +0100)]
Add color lookup into Builder & apply changeable color on TextInput

Change-Id: I4720b85f7df61ead9f1b1e0486792d6770b6c070
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoTextInput Popup has a tail which points to the TextInput 68/24168/1
Agnelo Vaz [Mon, 16 Jun 2014 16:02:11 +0000 (17:02 +0100)]
TextInput Popup has a tail which points to the TextInput

[problem]      User may not know the cut and paste popup applies to the current TextInput
[solution]     Display a tail which points to the TextInput.

Change-Id: I712eb34ce00fbf3a02e7fe4bd975fc556b5c97e6
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoAdd more logs to ScrollView especially in ScrollTo, TransformTo 67/24167/1
jonghyun.ho [Tue, 17 Jun 2014 04:53:15 +0000 (13:53 +0900)]
Add more logs to ScrollView especially in ScrollTo, TransformTo

[problem]     ScrollView returns the invalid position on each scroll signals
[solution]    Add more logs to ScrollView especially in ScrollTo, TransformTo

Change-Id: I691ba76c16c72975c426338632304b54efca460c
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoRevert "ScrollView - Store properties in local values for GetCurrentScrollPosition" 66/24166/1
Jonghyun Ho [Sat, 14 Jun 2014 03:21:32 +0000 (12:21 +0900)]
Revert "ScrollView - Store properties in local values for GetCurrentScrollPosition"

Change-Id: I50d5d429f72c8fc58d3053fb8c493f38c87a228b
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoReducing control size from 256 bytes to 224 by reordering data members and bitfieldin... 65/24165/1
Kimmo Hoikka [Fri, 13 Jun 2014 12:22:11 +0000 (13:22 +0100)]
Reducing control size from 256 bytes to 224 by reordering data members and bitfielding enums

Change-Id: Ic008566812f3445105f85912a6860fe0d960bb06
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoTextInput PopUp supports scrolling if buttons do not fit in visible area. 64/24164/1
Agnelo Vaz [Wed, 11 Jun 2014 20:39:37 +0000 (21:39 +0100)]
TextInput PopUp supports scrolling if buttons do not fit in visible area.

[problem]      If too many buttons in popup then part of it can be off screen
[solution]     Popup using a scroll view and allows scrolling of the buttons

Change-Id: I92b269c24a81d891ffa4ab4011dd86d0f9fc96e4
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoReplace deprecated TextStyle methods. 63/24163/1
Victor Cebollada [Thu, 12 Jun 2014 13:27:34 +0000 (14:27 +0100)]
Replace deprecated TextStyle methods.

Change-Id: I67ff44822a70e3279796be2a67efe635e24f3c82
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoOptimized size negotiation 62/24162/1
Kimmo Hoikka [Fri, 13 Jun 2014 10:08:48 +0000 (11:08 +0100)]
Optimized size negotiation

1. Remove size negotiation from scrollable things as they are not layout containers (yes, ItemView does not do size negotiations)

2. Make size negotiation containers members of relayout controller so we avoid hundreds of memory allocations per frame

3. Reduce the overhead of size negotiation request by having a static flag instead of hundreds of handle creations and dynamic casts etc

Change-Id: I9f11a45a70b262c0c6a07358350a8203c21fc2ce
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoScrollView - Store properties in local values for GetCurrentScrollPosition 61/24161/1
Julien Heanley [Thu, 12 Jun 2014 10:43:42 +0000 (11:43 +0100)]
ScrollView - Store properties in local values for GetCurrentScrollPosition

[problem]      If application performs more than one ScrollTo operation with the first having duration of 0 seconds, the second ScrollTo could have wrapping issues
[cause]        Internally scroll view uses current scroll position from property to check wrapping and perform correct animation, in case where this is done twice before an update the property may be incorrect for the second ScrollTo
[solution]     Store result of first ScrollTo if it is set immediately due to 0 second duration and use that value for next ScrollTo calculations

Change-Id: I5230e00140c3cb75df8b14fc5e9227c16928406f
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoScrollView - Second part of overshoot fix, overshoot will now only animate if pre... 60/24160/1
Julien Heanley [Thu, 12 Jun 2014 10:13:08 +0000 (11:13 +0100)]
ScrollView - Second part of overshoot fix, overshoot will now only animate if pre scroll and post scroll values are different, preventing updating when not needed and saving power

[problem]      If wrapping is on, the overshoot animation would still be animated for 0.35s
[cause]        Values used to compare were at opposite ends of scroll view due to wrapping
[solution]     Wrap the correct value back round so in wrapping mode they were both the same, in this case Snapping overshoot is avoided

Change-Id: I4d85cc5cb814a4cdc48c3edca66a7d4e6bc945ad
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoFix activate action on Control 59/24159/1
Kimmo Hoikka [Thu, 12 Jun 2014 09:58:19 +0000 (10:58 +0100)]
Fix activate action on Control

Change-Id: Ia3d2c920984a2dc322a9a9765818835706f1bc6d
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years ago(ScrollView) Disable ALWAYS-ON logging. 58/24158/1
Adeel Kazmi [Thu, 12 Jun 2014 12:30:11 +0000 (13:30 +0100)]
(ScrollView) Disable ALWAYS-ON logging.

[problem]      Logging is always on in scroll-view
[solution]     Disable, comment out to enable it on local builds

Change-Id: I5780f0783182d77e6d6dbe330f890a47a1505810
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoScrollView - Fix for scroll effect issues found due to ruler disabling not updating... 57/24157/1
Julien Heanley [Wed, 11 Jun 2014 12:37:11 +0000 (13:37 +0100)]
ScrollView - Fix for scroll effect issues found due to ruler disabling not updating min/max scroll positions

[problem]      Scrolling could result in page disappearing during scrolling due to incorrect scroll domain (change homescreen scroll effect to outer cube/spiral)
[solution]     Added code to deal with ruler being disabled, now the min/max values for that ruler are reset to 0

Change-Id: I34e95761fb58dfe4d2bc3580671415f1f6f2e707
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoAdd some logs to find out cause of once happened scrollview issue #2 56/24156/1
jonghyun.ho [Thu, 12 Jun 2014 05:31:46 +0000 (14:31 +0900)]
Add some logs to find out cause of once happened scrollview issue #2

Change-Id: Ife0241d7258973eeaf59c3853e698b2a1c400949
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoScrollView - Stop Timer running in homescreen idle state 55/24155/1
Julien Heanley [Thu, 22 May 2014 16:10:27 +0000 (17:10 +0100)]
ScrollView - Stop Timer running in homescreen idle state

[problem]      Load analyzer shows homescreen is running in idle state
[cause]        ScrollView refresh timer is running continuously
[solution]     Replaced Timer with PropertyNotification, added new API's for ScrollUpdateDistance instead of RefreshInterval

Change-Id: Id5a0dfa15752d805703d2d88845f1462d2b07030
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoAdd some logs to find out cause of once happened scrollview issue 54/24154/1
jonghyun.ho [Tue, 10 Jun 2014 12:11:21 +0000 (21:11 +0900)]
Add some logs to find out cause of once happened scrollview issue

Change-Id: I80e242dc036b6191f74fee5acf4a3c02af1b6481
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoScrollView - Fix for incorrect min/max scroll property values 53/24153/1
Julien Heanley [Tue, 10 Jun 2014 18:34:53 +0000 (19:34 +0100)]
ScrollView - Fix for incorrect min/max scroll property values

[problem]      Scroll min/max property values would be incorrect
[cause]        UpdatePropertyDomain attempts to avoid setting values if ones requested are the same as current properties. If SetRulerX/Y is called once with incorrect value and a second time with correct value, but same as value before first call, the property value retrieved will still be the old value and evaluate as the same, even though after next update frame this value is changed to same value as the first call
[solution]     Store last set values locally and check against these instead of actual properties.

Change-Id: I62bc6fd3b5f9d8e9cbbb000b90b46fc90c0dd51a
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoRemove animation while panning. 52/24152/1
Francisco Santos [Mon, 9 Jun 2014 02:17:16 +0000 (11:17 +0900)]
Remove animation while panning.

Change-Id: Ic9fe7891e97908798e771ec1895013d09424c0f8
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoFixed RPM Lint errors 78/22778/2
David Steele [Wed, 11 Jun 2014 13:21:25 +0000 (14:21 +0100)]
Fixed RPM Lint errors

Change-Id: Ia9401138e54d403bc0c1a6048bd4d3ca50f5e74d
Signed-off-by: David Steele <david.steele@partner.samsung.com>
10 years agoTextInput uses style properties for PopUp and Highlight
Agnelo Vaz [Fri, 30 May 2014 13:44:46 +0000 (14:44 +0100)]
TextInput uses style properties for PopUp and Highlight

[problem]      Popup button order, colour of background, colour of pressed buttons and highlight predefined in internal code
[solution]     Dali Properties now represent the above settings so can be defined in a JSON file or via the Public API.

Change-Id: Ia33d63d95cfdcbfb095a31c1cf514368f2683814

10 years agoScrollView - Overshoot Fix
Julien Heanley [Tue, 10 Jun 2014 10:03:42 +0000 (11:03 +0100)]
ScrollView - Overshoot Fix

[problem]      Overshoot would appear even when no scrolling is possible
[cause]        Was not checking the 'can scroll' property
[solution]     Check 'can scroll' property

Change-Id: I289986ae1fd16150641298cb33532114150749c5
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
10 years agoScrollView - Fix for pixel value used as animation time
Julien Heanley [Tue, 10 Jun 2014 07:53:24 +0000 (08:53 +0100)]
ScrollView - Fix for pixel value used as animation time

[problem]      Animation from scroll view had large time preventing update thread from sleeping
[solution]     Clamp animation time

Change-Id: I0d8a26aee100cedf6fb04f69724446dfe3f60354
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
10 years agoStop rendering during idle state
Paul Wisbey [Tue, 10 Jun 2014 04:36:21 +0000 (13:36 +0900)]
Stop rendering during idle state

[problem] Sometimes rendering continues forever (even in idle state).
[cause] ScrollView AnimateInternalXTo is playing Animations with
invalid durations. It either uses a large duration which causes the
issue, otherwise it plays with duration zero (also incorrect).
[solution] Remove the redundant animation logic (since animating
mPropertyPrePosition to itself is a NOOP)

10 years agoUpdated test scripts to allow executing smaller numbers of tests
David Steele [Mon, 9 Jun 2014 16:08:18 +0000 (17:08 +0100)]
Updated test scripts to allow executing smaller numbers of tests

[problem] Executing test cases takes too long
[cause] Granularity is too high
[solution] Add option to run tests from a specific test case file

Change-Id: I1023fd50f65d903c16e36965370f3777293a1271
Signed-off-by: David Steele <david.steele@partner.samsung.com>
10 years agoBuilder support for unsigned int property conversion
Agnelo Vaz [Mon, 9 Jun 2014 15:14:41 +0000 (16:14 +0100)]
Builder support for unsigned int property conversion

[problem]      Builder was unable to convert property values to unsigned int
[cause]        Used integer comparison
[solution]     Added a property to unsigned int conversion

Change-Id: I6ccfac3561d016c197e18e518df35ccf9783c505

10 years ago(ScrollView) Updates to scroll view internals to improve responsiveness and smoothnes...
Julien Heanley [Fri, 21 Feb 2014 11:09:08 +0000 (11:09 +0000)]
(ScrollView) Updates to scroll view internals to improve responsiveness and smoothness of visual actions

[Problem] Overshoot indicator could occasionally remain on screen, overshoot would prevent panning in opposite direction until pan returned to point where overshoot started
[Solution] Replaced numerous constraints with property notifications.
           Implemented the new vector component animation to remove need for separate internal x/y components.
           First stage of constraint reduction on ScrollView, more to follow
           Pre clamp scroll value is now snapped back to clamped position using animation and no longer needs a constraint to follow old internal x/y components
           Made functionality of overshoot more solid by making it directly dependant on pre clamped scroll and post clamp scroll values now that animation is done elsewhere.
           Overshoot no longer instantly flicks back to 0 if user releases and restarts a gesture before values have finished animating back
           If a pan has locked to an axis it now remains locked if user releases and starts another pan before scrolling has completed, preventing issue where a vertical page scroll could be started in the middle of a horizontal page scroll, which brakes the appearance of all page scroll effects.

Change-Id: I73e8ca71f5ffd8eb3c8a1fbf91823881ac4bb2ce
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
10 years agoFixed wrong scroll direction for mouse wheel event in ItemView and ScrollView
Richard Huang [Thu, 5 Jun 2014 14:52:41 +0000 (15:52 +0100)]
Fixed wrong scroll direction for mouse wheel event in ItemView and ScrollView

[problem] ScrollView and ItemView are moving in the wrong direction for mouse wheel event.
[solution] Fixed the scroll direction for mouse wheel event in ItemView and ScrollView.

10 years agoConversion to Apache 2.0 license
Taeyoon [Tue, 3 Jun 2014 10:02:53 +0000 (19:02 +0900)]
Conversion to Apache 2.0 license

Change-Id: Ieba1af3439cf87694a6893c684b78dc13de0ede9

10 years agoUpload package dali-toolkit_0.9.21
jonghyun.ho [Thu, 5 Jun 2014 01:35:45 +0000 (10:35 +0900)]
Upload package dali-toolkit_0.9.21

10 years agoScrollView: Avoid animating in wrong direction during fast flick
Paul Wisbey [Tue, 3 Jun 2014 10:42:21 +0000 (19:42 +0900)]
ScrollView: Avoid animating in wrong direction during fast flick

[problem]      When flicking pages quickly, it sometimes jumps backwards
[cause]        Incorrect (infinite) velocity calculation in ScrollView::OnTouchEvent()
[solution]     Don't interrupt snap-animation immediately during TouchPoint::Down i.e. allow
time for pan gesture to occur.

10 years ago(StyleManager) Add style monitor signal into StyleManager
Kingsley Stephens [Thu, 29 May 2014 14:27:41 +0000 (15:27 +0100)]
(StyleManager) Add style monitor signal into StyleManager

[problem]      The StyleManager was missing the StyleMonitor signal
[solution]     Connect StyleManager to StyleMonitor style change signal

               patch 2: combine ThemeChangeSignal and StyleChangeSignal into one

Change-Id: I8141b0b71091b42b6c0a2db047272ded6d21b273

10 years agoRevert "Revert "[SRUK] (StyleManager) Create a style manager""
Adeel Kazmi [Thu, 29 May 2014 13:13:50 +0000 (22:13 +0900)]
Revert "Revert "[SRUK] (StyleManager) Create a style manager""

Change-Id: I35a410e4a1b1979f2f1738b1457190f415fca43c

10 years agoTextInput Adding Highlight Class to be used by Decorator
Agnelo Vaz [Fri, 30 May 2014 13:15:25 +0000 (14:15 +0100)]
TextInput Adding Highlight Class to be used by Decorator

[problem]      Highlight class previously stubbed.
[cause]        Part of incremental refactor
[solution]     Implement Hightlight class, currently built but not used in existing TextInput. Will be used in future patch.

Change-Id: I6ab0e63fcfdd4f3ad667ce5a83fb708d751fd476

10 years agoAdd new API to ScrollBar to set background and indicator images.
Francisco Santos [Thu, 29 May 2014 05:47:29 +0000 (14:47 +0900)]
Add new API to ScrollBar to set background and indicator images.

[problem]      API forces application to provide a border even when using automatic 9 patch images.
[cause]        API was designed for old nine patch.
[solution]     Provide new API and deprecate old API.

Change-Id: Ie223643e8334f77e836ebcdd78cbf0b106a340c5
Signed-off-by: Francisco Santos <f1.santos@samsung.com>
10 years agoUpload package dali-toolkit_0.9.20
jonghyun.ho [Mon, 2 Jun 2014 00:40:04 +0000 (09:40 +0900)]
Upload package dali-toolkit_0.9.20

10 years agoScrollView: Avoid unintentional contraints on X/Y properties
Paul Wisbey [Sat, 31 May 2014 03:09:21 +0000 (12:09 +0900)]
ScrollView: Avoid unintentional contraints on X/Y properties

[problem]     Snap animation is not working in homescreen ScrollView
[cause]       Whilst the X/Y properties are animated, they are unintentionally
constrained to match the position from previous pan
[solution]    More logic to ensure constraints are removed after pan finishes.

10 years ago(FocusManager) Updated Accessibility features (Part2)
Sinjae Lee [Sat, 24 May 2014 07:24:40 +0000 (16:24 +0900)]
(FocusManager) Updated Accessibility features (Part2)

10 years agoUpload package dali-toolkit_0.9.19
jonghyun.ho [Thu, 29 May 2014 01:47:02 +0000 (10:47 +0900)]
Upload package dali-toolkit_0.9.19

10 years agoFix boost includes
Francisco Santos [Wed, 28 May 2014 02:11:25 +0000 (11:11 +0900)]
Fix boost includes

Change-Id: Ib105bf32700dec8c5f70396c62970493303254df
Signed-off-by: Francisco Santos <f1.santos@samsung.com>
10 years agoEasier page switching with Accessibility pan
Jonghyun Ho [Tue, 27 May 2014 01:43:03 +0000 (10:43 +0900)]
Easier page switching with Accessibility pan

Allow a gentle left-right pan to switch homescreen pages.

10 years agoRevert "[SRUK] (StyleManager) Create a style manager"
Adeel Kazmi [Wed, 28 May 2014 17:38:58 +0000 (02:38 +0900)]
Revert "[SRUK] (StyleManager) Create a style manager"

Font change no longer delivered.

This reverts commit 9df291f3bec83cbbe26ae2d9b988e688d27a8b84.

Change-Id: I44fc0574eb11bac748437f8c78b1502d80effca8

10 years ago(StyleManager) Remove StyleManager header include form CAPI
Kingsley Stephens [Wed, 28 May 2014 14:32:00 +0000 (15:32 +0100)]
(StyleManager) Remove StyleManager header include form CAPI

[problem]      Control-impl.h was including StyleManager.h
[solution]     Remove the header file

Change-Id: I63d70842ed505516776b8e287aecf741018c16ad

10 years agoFixed dependencies for building on other architectures
David Steele [Tue, 27 May 2014 17:38:47 +0000 (18:38 +0100)]
Fixed dependencies for building on other architectures

[problem]      Dali is exclusive to Arm architecture at the moment
[cause]        Broken dependencies on i586/x86_64 builds
[solution]     Fix the dependencies and remove exclusivity

Change-Id: I71ef589fb0591eaf3d5b40d1b1b2ae0515652417
Signed-off-by: David Steele <david.steele@partner.samsung.com>
10 years agoRemoving unnecessary boost dependency.
David Steele [Tue, 27 May 2014 14:36:47 +0000 (15:36 +0100)]
Removing unnecessary boost dependency.

Change-Id: I446bb55b31f586972d918c8cefbce36cdbead922
Signed-off-by: David Steele <david.steele@partner.samsung.com>
10 years ago(StyleManager) Create a style manager
Kingsley Stephens [Thu, 3 Apr 2014 16:08:51 +0000 (17:08 +0100)]
(StyleManager) Create a style manager

Change-Id: Ibb82ca3f21a77899cb14e6296bc245befe8928f6

10 years agoMerge branch 'master' into tizen
Adeel Kazmi [Wed, 11 Jun 2014 07:46:30 +0000 (08:46 +0100)]
Merge branch 'master' into tizen

10 years agoRevert "License conversion from Flora to Apache 2.0" 49/22749/1
Adeel Kazmi [Wed, 11 Jun 2014 07:41:58 +0000 (00:41 -0700)]
Revert "License conversion from Flora to Apache 2.0"

This reverts commit a881757839b7abb008873a68c67e17b3ba39669b.

Change-Id: Ic5cbf8f706245f7439b91ea22a3b116a8b9a1535

10 years agoAdd comment to SetMarkupProcessingEnabled() dali-2014-wk22-release
Sunhyun Kim [Mon, 26 May 2014 07:22:37 +0000 (16:22 +0900)]
Add comment to SetMarkupProcessingEnabled()

Application developer can confuse using SetMarkupProcessingEnabled().
i add one example.

 1) TextView text = Toolkit::TextView::New( MarkupText[] );
 2) text.SetMarkupProcessingEnabled(true);

developer can think MarkupText already enable markupProcessing.
but SetMarkupProcessingEnabled is adapted after SetText().
so i added simply comment to SetMarkupProcessingEnabled().

10 years agoPartial fix for homescreen panning issue
Paul Wisbey [Fri, 23 May 2014 14:54:39 +0000 (15:54 +0100)]
Partial fix for homescreen panning issue

[problem]      When flicking left-right quickly, sometimes homescreen page does not move
[cause]        In some cases this is caused by ScrollView using a value before the update
thread has had time to react.
[solution]     Added guard logic in positionSnap calculation.

10 years agoUpload package dali-toolkit_0.9.18.
jonghyun.ho [Sat, 24 May 2014 02:36:57 +0000 (11:36 +0900)]
Upload package dali-toolkit_0.9.18.

10 years agoFix for flick gesture in Screen Reader mode
Paul Wisbey [Thu, 22 May 2014 17:45:52 +0000 (18:45 +0100)]
Fix for flick gesture in Screen Reader mode

[problem]      Flick gestures do not work with 2 fingers
[cause]        Incorrect velocity calculation
[solution]     Use correct 'previous position' in Gesture::Finished event

10 years agoTextView - Update programming guide. dali-2014-wk21-release
Victor Cebollada [Fri, 16 May 2014 16:33:58 +0000 (17:33 +0100)]
TextView - Update programming guide.

Change-Id: I3825f3aca4d0f1e2d52d119f2c5868e29ce14ad1
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
10 years agoTextInput Ensure EmitTextModified occurs with special keys like BACKSPACE
Agnelo Vaz [Wed, 21 May 2014 13:46:29 +0000 (14:46 +0100)]
TextInput Ensure EmitTextModified occurs with special keys like BACKSPACE

Change-Id: I9ee79797fd33724c48f0c4521485c1a833cc6c37

10 years agoRemove the old constraint from indicator of scrollbar.
Wang Qingli [Wed, 21 May 2014 07:27:38 +0000 (15:27 +0800)]
Remove the old constraint from indicator of scrollbar.

Change-Id: I1a65bd64e102c63dab1c11db926ab2aebdc276e0

10 years agoUpload package dali-toolkit-0.9.17.
jonghyun.ho [Wed, 21 May 2014 05:22:57 +0000 (14:22 +0900)]
Upload package dali-toolkit-0.9.17.

10 years agoTextInput Emit signal when text is modified.
Agnelo Vaz [Tue, 20 May 2014 20:37:10 +0000 (21:37 +0100)]
TextInput Emit signal when text is modified.

TextInput emits signal when text is modified, developer can query number of characters on
receiving this signal and behaviour accordingly.

Change-Id: Ie4794493ec3d724e522475bc53ae43a5dbea8697

10 years ago(FocusManager) Updated accessibility features
Sinjae Lee [Fri, 16 May 2014 06:02:32 +0000 (15:02 +0900)]
(FocusManager) Updated accessibility features

1. Shoot accessibility pan to hit-actor instead of currently focused actor (done)
2. Added sound resources (done)
   Play sound for focus, end of focus list
3. Added Get/SetEndcapFeedbackEnabled api to handle the feedback
   In case of evas-plugin usage, need to disable endcap feedback since EFL will do.
4. TODO: support tap & hold event on focused actor (NEXT PATCH)

10 years agoMoved ControlImpl to Internal namespace & renamed to Control
Adeel Kazmi [Wed, 14 May 2014 18:49:00 +0000 (19:49 +0100)]
Moved ControlImpl to Internal namespace & renamed to Control

[problem]      TypeRegistry does not have an entry for ControlImpl but that is what all
               ControlImpl objects are set to when using GetTypeName() etc.
[cause]        This means we cannot use control properly with the type-registry.
               Everywhere else, the namespaces are stripped from the typeid name so for
               Internal::ImageActor we just have ImageActor and this matches the entry
               for ImageActor in the type-registry.
               However, for Control, we only have an entry for Control, not ControlImpl so there
               is no match.
[solution]     By moving ControlImpl to Internal::Control we will have the match in the
               type-registry.
               Added typedef for ControlImpl so applications will only have to be recompiled.

Change-Id: I50d63b27f0fc6af0e8de1c59757e0a9324354c63
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years ago(Tests) Removed dependency on Ecore
Adeel Kazmi [Fri, 16 May 2014 16:19:17 +0000 (17:19 +0100)]
(Tests) Removed dependency on Ecore

Change-Id: Ibd6314a3d377506b1723ff3804763986a00c4577
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoAdded new API to set fixed height for the scroll bar
Richard Huang [Mon, 19 May 2014 16:41:00 +0000 (17:41 +0100)]
Added new API to set fixed height for the scroll bar

[problem] When fast scroll is enabled, the height of the scroll bar should be fixed.
[cause] The height of scroll bar is dynamically changed according to the length of
        scroll content. There is no API to set fixed height for the scroll bar.
[solution] Implemented new API to set fixed height for the scroll bar, so that the
           the height of the scroll bar will keep the same regardless of the length
           of scroll content.

10 years agoTextView - Initialize alpha value with text's color alpha.
Victor Cebollada [Wed, 14 May 2014 08:57:49 +0000 (09:57 +0100)]
TextView - Initialize alpha value with text's color alpha.

[problem] Text color always use alpha 1.f
[cause] The alpha value set in the text style was not send to the text actor.
[solution] Send the alpha value.

Change-Id: I313ace7de02ed8bb59981288bc969b19c6558c32
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
10 years agoNew focus indicator should be added to the current focused actor immediately
Richard Huang [Thu, 15 May 2014 18:03:53 +0000 (19:03 +0100)]
New focus indicator should be added to the current focused actor immediately

[problem] When focus indicator is changed, it is not immediately reflected.
[cause] It doesn't remove the old indicator from the current focused actor
        and add the new one to.
[solution] Remove the original focus indicator and add the new indicator to
           the current focused actor.

10 years agoTextView - Split width exceed policy and EllipsizeEnd height exceed policy combinatio...
Victor Cebollada [Thu, 15 May 2014 10:49:45 +0000 (11:49 +0100)]
TextView - Split width exceed policy and EllipsizeEnd height exceed policy combination added.

Change-Id: I0ccbedc95504857f4bd17615e163d2b6db478c2f
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
10 years agoTextInput Adding new Handles class and matching API in Decorator
Agnelo Vaz [Thu, 15 May 2014 10:45:17 +0000 (11:45 +0100)]
TextInput Adding new Handles class and matching API in Decorator

[problem]      Handles class previously stubbed
[cause]        Part of a TextInput Refactor
[solution]     Implement in Text-Input-Handles class and amend Decorator to work with it.
               Code is built but not currently used in TextInput until all part are merged.

Change-Id: I05e03c99b1178853e05073564436e2ca9c5b7b0d

10 years agoUpload pacakge dali-toolkit_0.9.16.
jonghyun.ho [Wed, 14 May 2014 08:06:56 +0000 (17:06 +0900)]
Upload pacakge dali-toolkit_0.9.16.

10 years agoFixed crash when KeyboardFocusManager clears the focus
Richard Huang [Wed, 14 May 2014 16:52:19 +0000 (17:52 +0100)]
Fixed crash when KeyboardFocusManager clears the focus

[problem] There is crash if focus indicator is empty but KeyboardFocusManager
          tries to clear the focus.
[cause] It doesn't check whether focus indicator exists before remove it from
        the current focused actor.
[solution] Check whether focus indicator exists before remove it.

10 years agoTextInput - Disable markup processor
Victor Cebollada [Wed, 14 May 2014 14:12:05 +0000 (15:12 +0100)]
TextInput - Disable markup processor

[problem] Strings like <html> are interpreted and not shown.
[cause] markup processor is enabled.
[solution] disable markup processor.

Change-Id: Ibe0e6ab5e9b5cbd600eb34120a1bbf10ab072899
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
10 years ago(Button) Allow button size to return natural size
Kingsley Stephens [Thu, 8 May 2014 13:32:33 +0000 (14:32 +0100)]
(Button) Allow button size to return natural size

[Problem] Button needs to give itself a sensible size if no size is set on it
[Cause] Currently buttons with no size will take up the size of the stage
[Solution] Make buttons adjust natural size to wrap around any label they have

Change-Id: I17600d7376ae33b605d0b21dca3a8a7362ed7fb8

10 years agoTextView - Fix for emoji glyph's wrong sizes
Victor Cebollada [Wed, 14 May 2014 13:00:28 +0000 (14:00 +0100)]
TextView - Fix for emoji glyph's wrong sizes

Change-Id: I09b8c183f0b4231b44d79186a05bbf4fa14ef26c
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
10 years ago(Control) Added more event-side properties
Adeel Kazmi [Fri, 9 May 2014 18:07:47 +0000 (19:07 +0100)]
(Control) Added more event-side properties

Change-Id: Id513bccdba5f0c050cec7d2b73fdf104acb5cf05
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoLicense conversion from Flora to Apache 2.0 02/21502/3 submit/tizen/20140526.004929
Taeyoon [Thu, 22 May 2014 04:57:48 +0000 (13:57 +0900)]
License conversion from Flora to Apache 2.0

LICENSE file change.
Boilerplate notice changed to apply the Apache License to dali.
SPEC file change.
Fix build error by '*//'

Change-Id: Id92ec44b052e2c13556be6d90945226a33cfa83e

10 years agoRevert "Bitmap Toolkit Patch 1 of 1 - Replace uses of Bitmap class with ImageData" dali-2014-wk20-release
Andrew Cox [Tue, 13 May 2014 18:07:47 +0000 (19:07 +0100)]
Revert "Bitmap Toolkit Patch 1 of 1 - Replace uses of Bitmap class with ImageData"

Change-Id: I4b57875742ed4a016cb19427e101bc036024e580
Signed-off-by: Andrew Cox <andrew.cox@partner.samsung.com>
10 years agoAdd scroll-bar and scroll-component header files.
jonghyun.ho [Tue, 13 May 2014 12:38:36 +0000 (21:38 +0900)]
Add scroll-bar and scroll-component header files.

10 years agoTextInput Decorator class and stubbed decoration classes
Agnelo Vaz [Thu, 24 Apr 2014 20:27:25 +0000 (21:27 +0100)]
TextInput Decorator class and stubbed decoration classes

Problem:TextInput is a huge class with many responsibilities, it's hard to maintain and decorations can not be re-used.
Solution: Spilt into multiple classes. In this patch the Decorator initiates creation of decorations and positions them.
Stubbed Decoration classes provided for build purposes.

Change-Id: Ib880849dbc80cb1b6510a06401f5a6bfccfa55e8
Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
10 years ago(Popup) Fix size conflict between popup title and content
Kingsley Stephens [Wed, 7 May 2014 16:34:31 +0000 (17:34 +0100)]
(Popup) Fix size conflict between popup title and content

[Issue#]  N/A

[Problem] The popup was not being laid out correctly when having content and no fixed size specified

[Cause] The natural size of a TextView does not take wrapping into account

[Solution] Limit max size of title to stage width and allow images in content to shrink but not grow

Change-Id: Idd16e52b14bd946ee41ae58f62acb621123bffee

10 years agoFix Json allowing permissive parsing.
Lee Morgan [Mon, 28 Apr 2014 13:56:10 +0000 (14:56 +0100)]
Fix Json allowing permissive parsing.

[Issue] N/A

[Problem] Allowing non standard JSON. (aside from comments)

[Cause] N/A

[Solution] N/A

Change-Id: I5fcf3c5d2bfcc51e3e15a251263f6a9cb9b9627b
Signed-off-by: Lee Morgan <Lee.morgan@partner.samsung.com>
10 years ago(TextView) Update TextView properties to new property system
Xiangyin Ma [Fri, 9 May 2014 16:06:51 +0000 (17:06 +0100)]
(TextView) Update TextView properties to new property system

[Issue#]  N/A
[Problem] The property system has been updated
[Cause]   N/A
[Solution] Move over to using new property registration system

Change-Id: I8688e1fd5412d0dd0b781550fd7e1317217a7799

10 years ago(OvershootIndicator) Enable new shader bounce effect for overshoot
Julien Heanley [Fri, 9 May 2014 08:56:38 +0000 (09:56 +0100)]
(OvershootIndicator) Enable new shader bounce effect for overshoot

Change-Id: Ia1067b8c74296dc35d79d7fdd7084639c5727664
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
10 years agoConfigurable anchor point and parent origin of the items in an ItemView control
Ferran Sole [Wed, 7 May 2014 12:31:42 +0000 (13:31 +0100)]
Configurable anchor point and parent origin of the items in an ItemView control

[Issue] N/A
[Problem] ItemView set parent origin and anchor point of new items to the center
[Cause] N/A
[Solution] Added functions to set a different anchor point and parent origin

10 years agoBouncingEffect for overscroll
Xiangyin Ma [Wed, 7 May 2014 13:05:41 +0000 (14:05 +0100)]
BouncingEffect for overscroll

[Issue] N/A
[Problem] new feature
[Cause] N/A
[Solution] the overscroll effect implemented with shader

test codes:
    ImageActor imageActor = ImageActor::New( BitmapImage::New( 1, 1 ) );
    imageActor.SetSize(720.f,58.f);
    Toolkit::BouncingEffect bouncingEffect = Toolkit::BouncingEffect::New( Vector4(0.f,1.f,1.f,0.5f) );
    imageActor.SetShaderEffect( bouncingEffect );
    imageActor.SetParentOrigin( ParentOrigin::CENTER );
    Stage::GetCurrent().Add( imageActor );

    Animation animation = Animation::New(1.f);
    animation.AnimateTo( Property( bouncingEffect, bouncingEffect.GetProgressRatePropertyName() ), 1.f,
                         AlphaFunctions::Bounce );
    animation.Play();

Signed-off-by: Xiangyin Ma <x1.ma@samsung.com>
10 years ago(ScrollView)Found issue with change made in previous patch for overshoot enabling
Julien Heanley [Fri, 9 May 2014 08:39:25 +0000 (09:39 +0100)]
(ScrollView)Found issue with change made in previous patch for overshoot enabling

[Problem] Will crash if overshoot enable is called twice without a disable in between
[Solution] Make sure application can call to enable as many times as it wants

Change-Id: Ie7bbfe8eea8475dee9294f8949a09a40fa8df483
Signed-off-by: Julien Heanley <j.heanley@partner.samsung.com>
10 years agoBitmap Toolkit Patch 1 of 1 - Replace uses of Bitmap class with ImageData
Andrew Cox [Wed, 7 May 2014 12:49:43 +0000 (13:49 +0100)]
Bitmap Toolkit Patch 1 of 1 - Replace uses of Bitmap class with ImageData

[Issue#] N/A

[Problem]
TCT test framework has mock adaptor components that use the old Bitmap
class, so TCT tests can't pass.

[Cause]
Out of date use of old class.

[Solution]
Replace Bitmap usage with ImageData.

Change-Id: I46814d7d693bf7cba27a1a3426285ec0963b4e3c
Signed-off-by: Andrew Cox <andrew.cox@partner.samsung.com>
10 years ago(ScrollOvershoot) Removed OnStage checks now that issue has been fixed in PropertyNot...
Julien Heanley [Wed, 9 Apr 2014 13:54:08 +0000 (14:54 +0100)]
(ScrollOvershoot) Removed OnStage checks now that issue has been fixed in PropertyNotification

Change-Id: Ic334fb2c4d889604670a45b6a9d57dcbdc88f1ba

10 years ago(ItemView) Implemented SetOvershootEnabled which is used by Scrollable::Enable/Disabl...
Julien Heanley [Tue, 22 Apr 2014 14:35:22 +0000 (15:35 +0100)]
(ItemView) Implemented SetOvershootEnabled which is used by Scrollable::Enable/DisableScrollComponent

Change-Id: I2c5fa803add707508884b022ae06956fc35c441a

10 years agoUpload package dali-toolkit_0.9.15.
jonghyun.ho [Wed, 7 May 2014 05:15:07 +0000 (14:15 +0900)]
Upload package dali-toolkit_0.9.15.

10 years ago(Slider) Update slider properties to new property system
Kingsley Stephens [Fri, 2 May 2014 12:48:31 +0000 (13:48 +0100)]
(Slider) Update slider properties to new property system

[Issue#]  N/A

[Problem] The property system has been updated

[Cause] New properties

[Solution] Move over to using new property registration sytem

Change-Id: Id067026c88edc97a26573fa5fe205c7106906756

10 years agoFixed build issues and rpmlint errors 11/20911/1
David Steele [Tue, 13 May 2014 19:24:53 +0000 (20:24 +0100)]
Fixed build issues and rpmlint errors

Change-Id: I0118da3693d8ed1c5f87b62d0da405c4f6ac69f2
Signed-off-by: David Steele <david.steele@partner.samsung.com>
10 years agoSplit dali-toolkit into Base & Optional
Paul Wisbey [Wed, 30 Apr 2014 15:51:03 +0000 (16:51 +0100)]
Split dali-toolkit into Base & Optional

Signed-off-by: Paul Wisbey <p.wisbey@samsung.com>
10 years agoAdd 'ExclusiveArch: armv7l' limit build to arm architecture
Javon Prince [Fri, 2 May 2014 12:28:53 +0000 (13:28 +0100)]
Add 'ExclusiveArch: armv7l' limit build to arm architecture

Signed-off-by: Javon Prince <javon.prince@samsung.com>
10 years agoBuild Optimization for size ( -Os )
Richard Underhill [Wed, 30 Apr 2014 16:56:12 +0000 (17:56 +0100)]
Build Optimization for size ( -Os )

Signed-off-by: Richard Underhill <r.underhill@partner.samsung.com>
10 years agoAdd support for Animation::EndAction::BakeFinal to builder
Javon Prince [Thu, 1 May 2014 09:36:37 +0000 (10:36 +0100)]
Add support for Animation::EndAction::BakeFinal to builder

Signed-off-by: Javon Prince <javon.prince@samsung.com>
10 years ago(Control) Added ability to specify a background color/image.
Adeel Kazmi [Tue, 29 Apr 2014 16:23:33 +0000 (17:23 +0100)]
(Control) Added ability to specify a background color/image.

Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
10 years agoScripting: added setting shader property 15/20315/1
Lee Morgan [Wed, 30 Apr 2014 14:07:38 +0000 (15:07 +0100)]
Scripting: added setting shader property

[Issue#] (N/A)

[Problem] Animation checks effect if property set fails on an object.

[Cause] N/A

[Solution] Make Builder ApplyStyle() do the same.

Change-Id: I152f57fb09cb3e2c8a6e60a9ca014f9bc09cd025
Signed-off-by: Lee Morgan <Lee.morgan@partner.samsung.com>
10 years agoUpload package dali-toolkit_0.9.14. 14/20314/1
jonghyun.ho [Tue, 29 Apr 2014 00:02:33 +0000 (09:02 +0900)]
Upload package dali-toolkit_0.9.14.

Related packages : dali_0.9.14, dali-adaptor_0.9.14, dali-toolkit_0.9.14

Change-Id: I464273da1141d23e8179182ddb51b0d9102aaaaa
Signed-off-by: David Steele <david.steele@partner.samsung.com>
10 years agoScripting: Json format changes; style sets, includes 13/20313/1
Lee Morgan [Thu, 24 Apr 2014 16:41:08 +0000 (17:41 +0100)]
Scripting: Json format changes; style sets, includes

Styles section split into templates & styles.
Includes section added.

[Issue#] (N/A)

[Problem]

[Cause]

[Solution]

Change-Id: I5bbfc3d05862bda3420b0c2ff5e7f39639325bc4
Signed-off-by: Lee Morgan <Lee.morgan@partner.samsung.com>
10 years agoFix for slider 12/20312/1
Lee Morgan [Tue, 29 Apr 2014 11:11:44 +0000 (12:11 +0100)]
Fix for slider

[Issue#] (N/A)

[Problem] Crash when changing properies from script

[Cause]

[Solution]

Change-Id: Ic94b7906fa3321a80efb8a8ef43f4a11e7276a71
Signed-off-by: Lee Morgan <Lee.morgan@partner.samsung.com>