Replace std::string global variables with C-style string. A std::string global variable would allocate a memory in heap, then copy the string from .text section to the heap. This patch may reduce loading time & memory a little. Change-Id: I2ce22c98695cee6edea088d98b9569e11fc6c837
Minor coverity issue fixes Fix some minor coverity issues that might has meanful 1. Implement missing move operation. 2. Remove float equal checks by ==, != operator. 3. Remove useless std::move. 4. Remove const keyword for function return value. 5. Resolve some value has same name. 6. Use referenced iterator so we don't copy value. 7. Remove cyclic header include (a.k.a gltf-loader.h -> scene3d-view-impl.h -> gltf-loader.h) Change-Id: I57ad541310b43413ee0d52b1f8c56a95df12bbd9 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Updated all cpp files to new format Change-Id: If92183926ff6584c5d05efda672b422b9dd9a322
(Builder) Added Constants that can be used by Custom shaders Change-Id: I4654fb649a8bd8113219019a501b05fd7a965256
Changes after Stage moved to Devel API Change-Id: I196c1948a7f87cd2a04f04e31fe901284170d48e
Replace some Dali::Actor public APIs with new properties Change-Id: I2a0c6ac05533722b59e6bc76924f2f15f106d3a2
CMake - Option added to define the default toolkit resource path. * Currently the resources folder is harcoded in compile time. This works on devices where applications are always installed in specific folders but doesn't work in other platforms like MS Windows where the user can install the application in any folder. * An option has been added to the CMakeLists.txt file. By default the resource folder is hardcoded. This behaviour can be disabled by setting the option -DUSE_DEFAULT_RESOURCE_DIR=OFF and setting environment variables in installation time for DALI_IMAGE_DIR, DALI_SOUND_DIR, DALI_STYLE_DIR, DALI_STYLE_IMAGE_DIR and DALI_DATA_READ_ONLY_DIR. Change-Id: I3eea313da150f577e25171f2d5fb4791209f5181 Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
Remove FrameBufferImage Change-Id: Ib3b33834977c2f754dcef47983a87ba5da9b916b
Fix Builder to not use deprecated Property::Map API to prevent warnings in most demos GetKey() is deprecated so using GetKeyAt() instead Change-Id: I5297168ddc2baa8b3d2e6a9fb205573768bb6ce9
Add brokenImageUrl configuration App developers can set their own broken image by stylesheet now Signed-off-by: minho.sun <minho.sun@samsung.com> Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit. On branch devel/master Change-Id: Iedc819063ba6782dcf36c4b83ce115bcd820bbea
Check NULL return value in builder-impl.cpp Change-Id: I898260969132bdfcca32ece6c9fdac4efe693f08 Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
Ensured that style array is cleared when Builder parse tree is reloaded If another JSON file is merged into an existing builder instance, it doesn't clear down the styles array, which means that changes to existing styles aren't picked up if they have already been parsed. (In normal use, style sheet is merged before controls are read; or a new application style sheet clears the existing builder instance). Change-Id: If5320925e3ca6d7b1587e0c359c05e915ca47390 Signed-off-by: David Steele <david.steele@samsung.com>
Added config section to stylesheet Added config section to stylesheet. User can set configuration for dali-toolkit via this section. Currently, user can use only "alwaysShowFocus" which is for KeyboardFocusManager. ( If true, shows focus indicator even if there is no KeyEvent. ) Change-Id: Iac2a6202c22a6026c63b3f42542c99341e73ad7b Signed-off-by: minho.sun <minho.sun@samsung.com>
On state change, visuals now keep instance data If a visual such as a text visual has instance data (i.e. the text string) ensure that this is applied following a state change where the visual is removed and re-added. Added new method CreateInstancePropertyMap to Visual::Base::Impl, and methods DoCreateInstancePropertyMap to derived visuals for writing instance data into. So far, this is for text visual's text property and image visual's desired image size properties. TODO: Prevent the visual being re-added if no properties change (or only animatable properties change) (Whilst taking into account string vs index keys; Property Array vs Vector... [ Note: this is problematic for gradient visual, which generates a bunch of property arrays whilst Builder has generated Vectors from the equivalent JSON ] Change-Id: I742c47067fc19fbaeee2f01195f6f00501b16c85 Signed-off-by: David Steele <david.steele@samsung.com>
Added Control::SetSubState handling Added a method to set the substate of a control (without transitions) Fixed a bug with entry/exit transitions ( needed to allow testing of this patch with new transitions-example in demo ) Change-Id: I31d4edc98be0b50d4ecad375cf64aff593a2d43d Signed-off-by: David Steele <david.steele@samsung.com>
Added control focus state change to KeyboardFocusManager Change-Id: Ib58a577df67ce16888b66dd49d4c299d90270181 Signed-off-by: David Steele <david.steele@samsung.com>
Updating Builder and Control to handle styled States A) Added state and subState properties to control B) Updated builder to parse for states/visuals/transitions C) Added new Dictionary and Style classes to store style info D) Stored off new style data into builder E) Added top level state change Change-Id: I75f2d9746bdfcdbd9fef96d845396ff8c5d51ca1 Signed-off-by: David Steele <david.steele@samsung.com>
Reordered builder implementation ahead of rework Re-ordered methods in source file to match public header APIs, Re-ordered private methods in source/header file in a roughly top down invocation order. Expect new private methods to go at the end. Change-Id: Ib8d53cf7268f3ae64d858766fd461170baeee5e7 Signed-off-by: David Steele <david.steele@samsung.com>
Buttons to use Visuals Button base case takes over more of the functionality of derived class. Visuals are now used istead of images. Dali error added to Builder to be shown if string from json not found Button Relayout optimised and aligns in 4 directions Text can be aligned against the foreground using BEGIN, END, TOP and BOTTOM Positioning of Text and Foreground visual optimised although text not centers if foreground visual present Button uses visuals instead of placement actors Tests for Button Visuals and Visual removal with empty map Allow StageDisconnection to handle visual removal debug header removed from button-impl.h and now in cpp files. Fixed map bug in which map was checked for being empty before value was stored in it Increasing coverage and Removing Internal Button Tests Internal Tests used a TetButton when it should just use a PushButton. The Internal tests did not offer any advantage over regular tests so removed. Tests added to increase coverage and replace Internal tests Added Wait function to test application Change-Id: Idb9bccc9ca12a372c3e466fbdb4d8d3d41fb5acf
Changed styles to use case-insensitive matching Modified style sheets to use capitalized names for the styles to aid readability. Match algorithm changes control / style name to lower case, then compares it to the style names that are also down-cased. Change-Id: I048da5a7b8d00350669d11d797fab93f148dbdac Signed-off-by: David Steele <david.steele@samsung.com>