From f3da11c2818c6d17706fbb2417f21b602b3190f5 Mon Sep 17 00:00:00 2001 From: Adeel Kazmi Date: Mon, 2 Nov 2015 18:15:39 +0000 Subject: [PATCH] Changed all property & signal names to lowerCamelCase e.g. anchor-point-x --> anchorPointX Change-Id: Ieac0ff1c4f2fee7f3121cd8bed03e60a554e4781 --- .../src/dali-toolkit/utc-Dali-Builder.cpp | 308 ++++++++++----------- .../dali-toolkit/utc-Dali-ConfirmationPopup.cpp | 30 +- .../src/dali-toolkit/utc-Dali-Control.cpp | 54 ++-- .../src/dali-toolkit/utc-Dali-ControlImpl.cpp | 2 +- .../src/dali-toolkit/utc-Dali-ControlRenderer.cpp | 176 ++++++------ .../src/dali-toolkit/utc-Dali-JsonParser.cpp | 14 +- .../src/dali-toolkit/utc-Dali-PageTurnView.cpp | 12 +- .../src/dali-toolkit/utc-Dali-Popup.cpp | 28 +- .../src/dali-toolkit/utc-Dali-RendererFactory.cpp | 54 ++-- .../src/dali-toolkit/utc-Dali-ScrollBar.cpp | 130 ++++----- .../src/dali-toolkit/utc-Dali-ShaderEffects.cpp | 38 +-- .../src/dali-toolkit/utc-Dali-TableView.cpp | 28 +- .../src/dali-toolkit/utc-Dali-TextField.cpp | 70 ++--- .../src/dali-toolkit/utc-Dali-TextLabel.cpp | 26 +- dali-toolkit/devel-api/builder/builder.h | 24 +- .../devel-api/controls/magnifier/magnifier.h | 6 +- .../devel-api/controls/popup/confirmation-popup.h | 12 +- dali-toolkit/devel-api/controls/popup/popup.h | 36 +-- .../controls/renderer-factory/renderer-factory.h | 6 +- dali-toolkit/devel-api/controls/slider/slider.h | 36 +-- .../controls/text-controls/text-selection-popup.h | 34 +-- .../text-controls/text-selection-toolbar.h | 6 +- .../focus-manager/keyinput-focus-manager.h | 8 +- .../devel-api/shader-effects/dissolve-effect.h | 10 +- .../shader-effects/distance-field-effect.h | 4 +- .../devel-api/shader-effects/motion-blur-effect.h | 10 +- .../shader-effects/motion-stretch-effect.h | 10 +- dali-toolkit/devel-api/styling/style-manager.h | 2 +- .../transition-effects/cube-transition-effect.h | 6 +- .../accessibility-manager-impl.cpp | 8 +- dali-toolkit/internal/builder/builder-actor.cpp | 14 +- .../internal/builder/builder-animations.cpp | 14 +- dali-toolkit/internal/builder/builder-impl.cpp | 31 +-- .../internal/builder/builder-set-property.cpp | 4 +- dali-toolkit/internal/builder/builder-signals.cpp | 2 +- .../internal/controls/buttons/button-impl.cpp | 22 +- .../internal/controls/buttons/push-button-impl.cpp | 10 +- .../internal/controls/magnifier/magnifier-impl.cpp | 8 +- .../controls/model3d-view/model3d-view-impl.cpp | 18 +- .../page-turn-view/page-turn-view-impl.cpp | 16 +- .../controls/popup/confirmation-popup-impl.cpp | 4 +- .../internal/controls/popup/popup-impl.cpp | 54 ++-- .../controls/renderers/border/border-renderer.cpp | 8 +- .../controls/renderers/border/border-renderer.h | 8 +- .../controls/renderers/color/color-renderer.cpp | 6 +- .../controls/renderers/color/color-renderer.h | 6 +- .../renderers/control-renderer-data-impl.cpp | 26 +- .../controls/renderers/control-renderer-impl.cpp | 8 +- .../controls/renderers/control-renderer-impl.h | 20 +- .../renderers/gradient/gradient-renderer.cpp | 24 +- .../renderers/gradient/gradient-renderer.h | 36 +-- .../controls/renderers/image/image-renderer.cpp | 30 +- .../controls/renderers/image/image-renderer.h | 34 +-- .../controls/renderers/npatch/npatch-renderer.cpp | 10 +- .../controls/renderers/npatch/npatch-renderer.h | 8 +- .../controls/renderers/renderer-factory-impl.cpp | 12 +- .../controls/scroll-bar/scroll-bar-impl.cpp | 18 +- .../scrollable/item-view/item-view-impl.cpp | 12 +- .../scrollable/scroll-view/scroll-view-impl.cpp | 42 +-- .../scrollable/scroll-view/scroll-view-impl.h | 8 +- .../controls/scrollable/scrollable-impl.cpp | 34 +-- .../controls/shadow-view/shadow-view-impl.cpp | 10 +- .../internal/controls/slider/slider-impl.cpp | 36 +-- .../super-blur-view/super-blur-view-impl.cpp | 2 +- .../controls/table-view/table-view-impl.cpp | 16 +- .../controls/text-controls/text-field-impl.cpp | 72 ++--- .../controls/text-controls/text-font-style.h | 30 +- .../controls/text-controls/text-label-impl.cpp | 26 +- .../text-controls/text-selection-popup-impl.cpp | 42 +-- .../text-controls/text-selection-toolbar-impl.cpp | 6 +- dali-toolkit/internal/feedback/feedback-style.cpp | 8 +- .../focus-manager/keyboard-focus-manager-impl.cpp | 10 +- .../focus-manager/keyinput-focus-manager-impl.cpp | 4 +- .../internal/styling/style-manager-impl.cpp | 4 +- .../cube-transition-effect-impl.cpp | 2 +- .../accessibility-manager/accessibility-manager.h | 10 +- dali-toolkit/public-api/controls/buttons/button.h | 36 +-- .../public-api/controls/buttons/push-button.h | 10 +- dali-toolkit/public-api/controls/control-impl.cpp | 14 +- dali-toolkit/public-api/controls/control.h | 18 +- .../controls/model3d-view/model3d-view.h | 18 +- .../controls/page-turn-view/page-turn-view.h | 18 +- .../public-api/controls/scroll-bar/scroll-bar.h | 20 +- .../controls/scrollable/item-view/item-view.h | 16 +- .../controls/scrollable/scroll-view/scroll-view.h | 36 +-- .../public-api/controls/scrollable/scrollable.h | 32 +-- .../public-api/controls/table-view/table-view.h | 42 +-- .../public-api/controls/text-controls/text-field.h | 74 ++--- .../public-api/controls/text-controls/text-label.h | 26 +- .../focus-manager/keyboard-focus-manager.h | 12 +- .../styles/480x800/dali-toolkit-default-theme.json | 96 +++---- .../720x1280/dali-toolkit-default-theme.json | 96 +++---- dali-toolkit/styles/default-feedback-theme.json | 2 +- docs/content/example-code/property-example.cpp | 2 +- docs/content/programming-guide/properties.h | 30 +- .../font-selection.md | 48 ++-- .../popup.md | 84 +++--- .../programming-languages.md | 6 +- .../resource-image-scaling.md | 12 +- .../script-hello.md | 2 +- .../script-json-specification.md | 32 +-- .../script-overview.md | 56 ++-- .../text-label.md | 2 +- node-addon/javascript-application-options.cpp | 14 +- plugins/dali-script-v8/docs/content/actor.js | 16 +- plugins/dali-script-v8/docs/content/animation.js | 2 +- plugins/dali-script-v8/docs/content/dali.js | 2 +- .../docs/content/keyboard-focus-manager.js | 6 +- .../docs/content/pan-gesture-detector.js | 4 +- .../dali-script-v8/docs/content/resource-image.js | 4 +- plugins/dali-script-v8/docs/content/stage.js | 6 +- .../dali-script-v8/src/animation/animation-api.cpp | 6 +- .../src/animation/constrainer-api.cpp | 8 +- .../src/events/pan-gesture-detector-api.cpp | 2 +- .../src/module-loader/module-loader.cpp | 4 +- .../dali-script-v8/src/object/handle-wrapper.cpp | 8 +- .../src/shader-effects/shader-effect-api.cpp | 2 +- .../dali-script-v8/src/signals/signal-manager.cpp | 22 +- .../src/toolkit/builder/builder-api.cpp | 2 +- plugins/dali-script-v8/src/utils/v8-utils.cpp | 36 --- plugins/dali-script-v8/src/utils/v8-utils.h | 8 - 121 files changed, 1476 insertions(+), 1529 deletions(-) diff --git a/automated-tests/src/dali-toolkit/utc-Dali-Builder.cpp b/automated-tests/src/dali-toolkit/utc-Dali-Builder.cpp index 164ab9e..653325c 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-Builder.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-Builder.cpp @@ -77,8 +77,8 @@ int UtcDaliBuilderQuitSignal(void) "[{" "\"type\": \"Actor\"," "\"size\": [100,100,1]," - "\"parent-origin\": \"TOP_LEFT\"," - "\"anchor-point\": \"TOP_LEFT\"," + "\"parentOrigin\": \"TOP_LEFT\"," + "\"anchorPoint\": \"TOP_LEFT\"," "\"signals\": [{" "\"name\": \"touched\"," "\"action\": \"quit\"" @@ -130,16 +130,16 @@ int UtcDaliBuilderAnimationP(void) " \"animations\": {" " \"animate\": {" " \"loop\": true," - " \"end-action\": \"BAKE\"," - " \"disconnect-action\": \"BAKE\"," + " \"endAction\": \"BAKE\"," + " \"disconnectAction\": \"BAKE\"," " \"properties\":" " [{" " \"actor\": \"greeting\"," " \"property\": \"position\"," " \"value\": [300, 300, -1000]," - " \"alpha-function\": \"{ALPHA_FUNCTION}\"," + " \"alphaFunction\": \"{ALPHA_FUNCTION}\"," " \"relative\": true," - " \"time-period\": {" + " \"timePeriod\": {" " \"delay\": 0," " \"duration\": 3" " }" @@ -147,81 +147,81 @@ int UtcDaliBuilderAnimationP(void) " {" " \"actor\": \"greeting\"," " \"property\": \"visible\"," - " \"alpha-function\": \"LINEAR\"," + " \"alphaFunction\": \"LINEAR\"," " \"value\": true" " }," " {" " \"actor\": \"greeting\"," - " \"property\": \"size-width\"," - " \"alpha-function\": \"REVERSE\"," + " \"property\": \"sizeWidth\"," + " \"alphaFunction\": \"REVERSE\"," " \"value\": 10.0" " }," " {" " \"actor\": \"greeting\"," " \"property\": \"orientation\"," - " \"alpha-function\": \"EASE_IN\"," + " \"alphaFunction\": \"EASE_IN\"," " \"value\": [10.0,20.0,30.0]" " }," " {" " \"actor\": \"greeting\"," " \"property\": \"orientation\"," - " \"alpha-function\": \"EASE_OUT\"," + " \"alphaFunction\": \"EASE_OUT\"," " \"value\": [0.0, 0.0, 0.0, 1.0]" " }," " {" " \"actor\": \"greeting\"," " \"property\": \"orientation\"," - " \"alpha-function\": \"EASE_IN_OUT\"," + " \"alphaFunction\": \"EASE_IN_OUT\"," " \"value\": [0.0, 0.0, 0.0, 1.0]" " }," " {" " \"actor\": \"greeting\"," " \"property\": \"orientation\"," - " \"alpha-function\": \"EASE_IN_SINE\"," + " \"alphaFunction\": \"EASE_IN_SINE\"," " \"value\": [0.0, 0.0, 0.0, 1.0]" " }," " {" " \"actor\": \"greeting\"," " \"property\": \"orientation\"," - " \"alpha-function\": \"EASE_OUT_SINE\"," + " \"alphaFunction\": \"EASE_OUT_SINE\"," " \"value\": [0.0, 0.0, 0.0, 1.0]" " }," " {" " \"actor\": \"greeting\"," " \"property\": \"orientation\"," - " \"alpha-function\": \"EASE_IN_OUT_SINE\"," + " \"alphaFunction\": \"EASE_IN_OUT_SINE\"," " \"value\": [0.0, 0.0, 0.0, 1.0]" " }," " {" " \"actor\": \"greeting\"," " \"property\": \"orientation\"," - " \"alpha-function\": \"BOUNCE\"," + " \"alphaFunction\": \"BOUNCE\"," " \"value\": [0.0, 0.0, 0.0, 1.0]" " }," " {" " \"actor\": \"greeting\"," " \"property\": \"orientation\"," - " \"alpha-function\": \"SIN\"," + " \"alphaFunction\": \"SIN\"," " \"value\": [0.0, 0.0, 0.0, 1.0]" " }," " {" " \"actor\": \"greeting\"," " \"property\": \"orientation\"," - " \"alpha-function\": \"EASE_OUT_BACK\"," + " \"alphaFunction\": \"EASE_OUT_BACK\"," " \"value\": [0.0, 0.0, 0.0, 1.0]" " }" " ]" " }," - " \"path-animation\": {" + " \"pathAnimation\": {" " \"duration\": 3.0," - " \"end-action\": \"DISCARD\"," - " \"disconnect-action\": \"BAKE_FINAL\"," + " \"endAction\": \"DISCARD\"," + " \"disconnectAction\": \"BAKE_FINAL\"," " \"properties\": [{" " \"actor\": \"greeting\"," " \"path\":\"path0\"," " \"forward\":[1,0,0]," - " \"alpha-function\": \"EASE_IN_OUT\"," - " \"time-period\": {" + " \"alphaFunction\": \"EASE_IN_OUT\"," + " \"timePeriod\": {" " \"delay\": 0," " \"duration\": 3" " }" @@ -232,7 +232,7 @@ int UtcDaliBuilderAnimationP(void) " \"name\": \"greeting\"," " \"type\": \"TextLabel\"," " \"text\": \"Touch me\"," - " \"styles\": [\"basic-text\"]," + " \"styles\": [\"basicText\"]," " \"position\": [0, -120, 0]," " \"size\": [200, 200, 1]," " \"orientation\": [0, 0, 30]," @@ -258,7 +258,7 @@ int UtcDaliBuilderAnimationP(void) DALI_TEST_CHECK( anim ); - anim = builder.CreateAnimation("path-animation"); + anim = builder.CreateAnimation("pathAnimation"); DALI_TEST_CHECK( anim ); @@ -299,16 +299,16 @@ int UtcDaliBuilderAnimationN(void) " \"animations\": {" " \"animate\": {" " \"loop\": true," - " \"end-action\": \"BAKE\"," - " \"disconnect-action\": \"BAKE\"," + " \"endAction\": \"BAKE\"," + " \"disconnectAction\": \"BAKE\"," " \"properties\":" " [{" " \"actor\": \"{NAME}\"," " \"property\": \"positioninvalid\"," " \"value\": [300, 300, -1000]," - " \"alpha-function\": \"EASE_IN_OUT\"," + " \"alphaFunction\": \"EASE_IN_OUT\"," " \"relative\": true," - " \"time-period\": {" + " \"timePeriod\": {" " \"delay\": 0," " \"duration\": 3" " }" @@ -317,32 +317,32 @@ int UtcDaliBuilderAnimationN(void) " }," " \"animate2\": {" " \"loop\": true," - " \"end-action\": \"BAKE\"," - " \"disconnect-action\": \"BAKE\"," + " \"endAction\": \"BAKE\"," + " \"disconnectAction\": \"BAKE\"," " \"properties\":" " [{" " \"actor\": \"{NAME}\"," " \"property\": \"positioninvalid\"," " \"value\": [300, 300, -1000]," - " \"alpha-function\": \"EGGS_OVER_EASY\"," + " \"alphaFunction\": \"EGGS_OVER_EASY\"," " \"relative\": true," - " \"time-period\": {" + " \"timePeriod\": {" " \"delay\": 0," " \"duration\": 3" " }" " }" " ]" " }," - " \"path-animation\": {" + " \"pathAnimation\": {" " \"duration\": 3.0," - " \"end-action\": \"DISCARD\"," - " \"disconnect-action\": \"BAKE_FINAL\"," + " \"endAction\": \"DISCARD\"," + " \"disconnectAction\": \"BAKE_FINAL\"," " \"properties\": [{" " \"actor\": \"greeting\"," " \"path\":\"pathDoesntExist\"," " \"forward\":[1,0,0]," - " \"alpha-function\": \"EASE_IN_OUT\"," - " \"time-period\": {" + " \"alphaFunction\": \"EASE_IN_OUT\"," + " \"timePeriod\": {" " \"delay\": 0," " \"duration\": 3" " }" @@ -353,7 +353,7 @@ int UtcDaliBuilderAnimationN(void) " \"name\": \"greeting\"," " \"type\": \"TextLabel\"," " \"text\": \"Touch me\"," - " \"styles\": [\"basic-text\"]," + " \"styles\": [\"basicText\"]," " \"position\": [0, -120, 0]," " \"size\": [200, 200, 1]," " \"orientation\": [0, 0, 30]," @@ -378,7 +378,7 @@ int UtcDaliBuilderAnimationN(void) Animation anim = builder.CreateAnimation("animate"); // log warning line coverage - anim = builder.CreateAnimation("path-animation"); + anim = builder.CreateAnimation("pathAnimation"); DALI_TEST_CHECK(anim); anim = builder.CreateAnimation("animate"); @@ -425,11 +425,11 @@ int UtcDaliBuilderConstantsP(void) " \"type\": \"ImageActor\"," " \"name\": \"{NAME}\"," " \"size\": [100,100,1]," - " \"parent-origin\": \"TOP_LEFT\"," - " \"anchor-point\": \"{ANCHOR}\"," + " \"parentOrigin\": \"TOP_LEFT\"," + " \"anchorPoint\": \"{ANCHOR}\"," " \"padding\": \"{PADDING}\"," " \"image\": { \"filename\": \"dir/{IMAGE_PATH}\" }," - " \"size-width\": \"{WIDTH}\"," + " \"sizeWidth\": \"{WIDTH}\"," " \"signals\": [{" " \"name\": \"touched\"," " \"action\": \"quit\"" @@ -479,11 +479,11 @@ int UtcDaliBuilderTemplatesAndStylesP(void) "}," "\"styles\":\n" "{\n" - " \"image-style\": \n" + " \"imageStyle\": \n" " {\n" " \"color\": [1,0,0,1],\n" " \"actors\": {\n" - " \"child-image\": {\n" + " \"childImage\": {\n" " \"color\": [0,1,0,1]\n" " }\n" " }\n" @@ -491,9 +491,9 @@ int UtcDaliBuilderTemplatesAndStylesP(void) "},\n" "\"templates\":\n" "{\n" - " \"image-tree\": { \n" + " \"imageTree\": { \n" " \"type\": \"ImageActor\",\n" - " \"styles\": [\"image-style\"],\n" + " \"styles\": [\"imageStyle\"],\n" " \"name\": \"image\",\n" " \"size\": \"{SIZE}\",\n" " \"signals\": [{\n" @@ -503,14 +503,14 @@ int UtcDaliBuilderTemplatesAndStylesP(void) " \"actors\": [\n" " {\n" " \"type\":\"ImageActor\",\n" - " \"name\":\"child-image\" \n" + " \"name\":\"childImage\" \n" " }\n" " ]\n" " }\n" "},\n" "\"stage\":" "[{" - " \"type\": \"image-tree\"," + " \"type\": \"imageTree\"," " \"size\": [100,100,1]" "}]" "}\n" @@ -520,7 +520,7 @@ int UtcDaliBuilderTemplatesAndStylesP(void) "{\n" " \"color\": [1,0,0,1],\n" " \"actors\": {\n" - " \"child-image\": {\n" + " \"childImage\": {\n" " \"color\": [0,1,0,1]\n" " }\n" " }\n" @@ -530,7 +530,7 @@ int UtcDaliBuilderTemplatesAndStylesP(void) std::string templatejson( "{ \n" " \"type\": \"ImageActor\",\n" - " \"styles\": [\"image-style\"],\n" + " \"styles\": [\"imageStyle\"],\n" " \"name\": \"image\",\n" " \"size\": \"{SIZE}\",\n" " \"signals\": [{\n" @@ -540,7 +540,7 @@ int UtcDaliBuilderTemplatesAndStylesP(void) " \"actors\": [\n" " {\n" " \"type\":\"ImageActor\",\n" - " \"name\":\"child-image\" \n" + " \"name\":\"childImage\" \n" " }\n" " ]\n" "}\n" @@ -549,12 +549,12 @@ int UtcDaliBuilderTemplatesAndStylesP(void) Builder builder = Builder::New(); builder.LoadFromString( json ); - ImageActor actor = ImageActor::DownCast( builder.Create( "image-tree" ) ); + ImageActor actor = ImageActor::DownCast( builder.Create( "imageTree" ) ); DALI_TEST_CHECK( actor ); Dali::Property::Map map; map["SIZE"] = Vector3(100,100,1); - actor = ImageActor::DownCast( builder.Create( "image-tree", map ) ); + actor = ImageActor::DownCast( builder.Create( "imageTree", map ) ); DALI_TEST_CHECK( actor ); // create from json snippet @@ -563,7 +563,7 @@ int UtcDaliBuilderTemplatesAndStylesP(void) // NB: already applied in create - DALI_TEST_CHECK( builder.ApplyStyle( "image-style", actor ) ); + DALI_TEST_CHECK( builder.ApplyStyle( "imageStyle", actor ) ); // apply from json snippet DALI_TEST_CHECK( builder.ApplyFromJson( actor, stylejson ) ); @@ -578,11 +578,11 @@ int UtcDaliBuilderRenderTasksP(void) // JSON with a quit event when the actor is touched std::string json( "{\n" - "\"render-tasks\":\n" + "\"renderTasks\":\n" "{\n" " \"task0\": {\n" - " \"source-actor\": \"image\",\n" - " \"camera-actor\": \"camera\" \n" + " \"sourceActor\": \"image\",\n" + " \"cameraActor\": \"camera\" \n" " }\n" "},\n" "\"stage\":\n" @@ -602,7 +602,7 @@ int UtcDaliBuilderRenderTasksP(void) " \"actors\": [\n" " {\n" " \"type\":\"ImageActor\",\n" - " \"name\":\"child-image\" \n" + " \"name\":\"childImage\" \n" " }\n" " ]\n" " }\n" @@ -636,17 +636,17 @@ int UtcDaliBuilderChildActionP(void) " \"type\": \"Actor\",\n" " \"name\": \"actor\",\n" " \"size\": [100,100,1],\n" - " \"parent-origin\": \"TOP_LEFT\",\n" - " \"anchor-point\": \"TOP_LEFT\",\n" + " \"parentOrigin\": \"TOP_LEFT\",\n" + " \"anchorPoint\": \"TOP_LEFT\",\n" " \"actors\": [{\n" " \"type\": \"Actor\",\n" - " \"name\": \"sub-actor\"\n" + " \"name\": \"subActor\"\n" " }],\n" " \"signals\": [{\n" " \"name\": \"touched\",\n" " \"action\": \"hide\",\n" " \"actor\": \"actor\",\n" - " \"child-actor\": \"sub-actor\"\n" + " \"childActor\": \"subActor\"\n" " }]\n" " }]\n" "}\n" @@ -669,7 +669,7 @@ int UtcDaliBuilderChildActionP(void) application.SendNotification(); application.Render(); - Actor actor = Stage::GetCurrent().GetRootLayer().FindChildByName("sub-actor"); + Actor actor = Stage::GetCurrent().GetRootLayer().FindChildByName("subActor"); DALI_TEST_CHECK( actor ); DALI_TEST_CHECK( !actor.IsVisible() ); @@ -689,16 +689,16 @@ int UtcDaliBuilderSetPropertyActionP(void) " \"type\": \"Actor\",\n" " \"name\": \"actor\",\n" " \"size\": [100,100,1],\n" - " \"parent-origin\": \"TOP_LEFT\",\n" - " \"anchor-point\": \"TOP_LEFT\",\n" + " \"parentOrigin\": \"TOP_LEFT\",\n" + " \"anchorPoint\": \"TOP_LEFT\",\n" " \"actors\": [{\n" " \"type\": \"Actor\",\n" - " \"name\": \"sub-actor\"\n" + " \"name\": \"subActor\"\n" " }],\n" " \"signals\": [{\n" " \"name\": \"touched\",\n" " \"action\": \"set\",\n" - " \"actor\": \"sub-actor\",\n" + " \"actor\": \"subActor\",\n" " \"property\": \"visible\",\n" " \"value\": false\n" " }]\n" @@ -723,7 +723,7 @@ int UtcDaliBuilderSetPropertyActionP(void) application.SendNotification(); application.Render(); - Actor actor = Stage::GetCurrent().GetRootLayer().FindChildByName("sub-actor"); + Actor actor = Stage::GetCurrent().GetRootLayer().FindChildByName("subActor"); DALI_TEST_CHECK( actor ); DALI_TEST_CHECK( !actor.IsVisible() ); @@ -743,11 +743,11 @@ int UtcDaliBuilderGenericActionP(void) " \"type\": \"Actor\",\n" " \"name\": \"actor\",\n" " \"size\": [100,100,1],\n" - " \"parent-origin\": \"TOP_LEFT\",\n" - " \"anchor-point\": \"TOP_LEFT\",\n" + " \"parentOrigin\": \"TOP_LEFT\",\n" + " \"anchorPoint\": \"TOP_LEFT\",\n" " \"actors\": [{\n" " \"type\": \"Actor\",\n" - " \"name\": \"sub-actor\"\n" + " \"name\": \"subActor\"\n" " }],\n" " \"signals\": [{\n" " \"name\": \"touched\",\n" @@ -794,11 +794,11 @@ int UtcDaliBuilderPropertyNotificationP(void) " \"type\": \"Actor\",\n" " \"name\": \"actor\",\n" " \"size\": [100,100,1],\n" - " \"parent-origin\": \"TOP_LEFT\",\n" - " \"anchor-point\": \"TOP_LEFT\",\n" + " \"parentOrigin\": \"TOP_LEFT\",\n" + " \"anchorPoint\": \"TOP_LEFT\",\n" " \"actors\": [{\n" " \"type\": \"Actor\",\n" - " \"name\": \"sub-actor\"\n" + " \"name\": \"subActor\"\n" " }],\n" " \"signals\": [{\n" " \"name\": \"touched\",\n" @@ -851,7 +851,7 @@ int UtcDaliBuilderCustomPropertyP(void) "{\n" "\"templates\":\n" "{\n" - " \"image-tree\": { \n" + " \"imageTree\": { \n" " \"type\": \"ImageActor\",\n" " \"name\": \"image\",\n" " \"size\": [100,100,1],\n" @@ -859,13 +859,13 @@ int UtcDaliBuilderCustomPropertyP(void) " \"name\": \"touched\",\n" " \"action\": \"quit\"\n" " }],\n" - " \"custom-properties\": {\n" + " \"customProperties\": {\n" " \"newproperty\": true\n" " },\n" " \"actors\": [\n" " {\n" " \"type\":\"ImageActor\",\n" - " \"name\":\"child-image\" \n" + " \"name\":\"childImage\" \n" " }\n" " ]\n" " }\n" @@ -876,7 +876,7 @@ int UtcDaliBuilderCustomPropertyP(void) Builder builder = Builder::New(); builder.LoadFromString( json ); - ImageActor actor = ImageActor::DownCast( builder.Create( "image-tree" ) ); + ImageActor actor = ImageActor::DownCast( builder.Create( "imageTree" ) ); DALI_TEST_CHECK( actor ); // NB: already applied in create @@ -904,19 +904,19 @@ int UtcDaliBuilderShaderEffectP(void) " 0.9150390625,\n" " 0.0\n" " ],\n" - " \"parent-origin\": [0.5, 0.5, 0.5],\n" + " \"parentOrigin\": [0.5, 0.5, 0.5],\n" " \"size\": [200, 200, 0],\n" " \"effect\": \"Ripple2D\",\n" " \"image\": {\n" " \"filename\": \"{DALI_IMAGE_DIR}gallery-medium-25.jpg\",\n" " \"width\": 200,\n" " \"height\": 80,\n" - " \"load-policy\": \"IMMEDIATE\",\n" - " \"release-policy\": \"NEVER\"\n" + " \"loadPolicy\": \"IMMEDIATE\",\n" + " \"releasePolicy\": \"NEVER\"\n" " },\n" " \"signals\": [\n" " {\n" - " \"name\": \"on-stage\",\n" + " \"name\": \"onStage\",\n" " \"action\": \"play\",\n" " \"animation\": \"Animation_1\"\n" " }\n" @@ -932,8 +932,8 @@ int UtcDaliBuilderShaderEffectP(void) " \"actor\": \"Image1\",\n" " \"property\": \"uTime\",\n" " \"value\": 10.0,\n" - " \"alpha-function\": \"LINEAR\",\n" - " \"time-period\": {\n" + " \"alphaFunction\": \"LINEAR\",\n" + " \"timePeriod\": {\n" " \"delay\": 0,\n" " \"duration\": 10.0\n" " },\n" @@ -942,17 +942,17 @@ int UtcDaliBuilderShaderEffectP(void) " ]\n" " }\n" " },\n" - " \"shader-effects\": {\n" + " \"shaderEffects\": {\n" " \"Ripple2D\": {\n" " \"program\": {\n" " \"vertexPrefix\": \"\",\n" " \"vertex\": \"void main(void)\\n{\\n gl_Position = uProjection * uModelView * vec4(aPosition, 1.0);\\n vTexCoord = aTexCoord;\\n}\\n\\n\",\n" " \"fragmentPrefix\": \"\",\n" " \"fragment\": \"precision mediump float;\\nuniform float uAmplitude; // 0.02; (< 1)\\nuniform float uTime;\\nvoid main()\\n{\\n highp vec2 textureSize = sTextureRect.zw - sTextureRect.xy;\\n highp vec2 pos = -1.0 + 2.0 * vTexCoord.st/textureSize;\\n highp float len = length(pos);\\n highp vec2 texCoord = vTexCoord.st/textureSize + pos/len * sin( len * 12.0 - uTime * 4.0 ) * uAmplitude; \\n gl_FragColor = texture2D(sTexture, texCoord) * uColor;\\n}\\n\\n\\n\",\n" - " \"geometry-type\": \"GEOMETRY_TYPE_IMAGE\"\n" + " \"geometryType\": \"GEOMETRY_TYPE_IMAGE\"\n" " },\n" - " \"geometry-hints\": \"HINT_NONE\",\n" - " \"grid-density\": 0,\n" + " \"geometryHints\": \"HINT_NONE\",\n" + " \"gridDensity\": 0,\n" " \"loop\": true,\n" " \"uAmplitude\": 0.02,\n" " \"uTime\": 0.0\n" @@ -985,8 +985,8 @@ int UtcDaliBuilderLoadFromStringN(void) "[{" "\"type\": \"Actor\"," "\"size\": [100,100,1]," - "\"parent-origin\": \"TOP_LEFT\"," - "\"anchor-point\": \"TOP_LEFT\"," + "\"parentOrigin\": \"TOP_LEFT\"," + "\"anchorPoint\": \"TOP_LEFT\"," "\"signals\": [{" "\"name\": \"touched\"," "\"action\": \"quit\"" @@ -1023,10 +1023,10 @@ int UtcDaliBuilderShaderEffect2P(void) "{\n" "\"templates\":\n" "{\n" - " \"image-tree\": { \n" + " \"imageTree\": { \n" " \"type\": \"ImageActor\",\n" " \"size\": [100,100,1],\n" - " \"parent-origin\": [0.5, 0.5, 0.5],\n" + " \"parentOrigin\": [0.5, 0.5, 0.5],\n" " \"position\": [\n" " 0.40461349487305,\n" " 0.9150390625,\n" @@ -1039,39 +1039,39 @@ int UtcDaliBuilderShaderEffect2P(void) " \"actors\": [\n" " {\n" " \"type\":\"ImageActor\",\n" - " \"name\":\"child-image\" \n" + " \"name\":\"childImage\" \n" " }\n" " ]\n" " }\n" "},\n" " \"stage\": [\n" " {\n" - " \"type\": \"image-tree\",\n" + " \"type\": \"imageTree\",\n" " \"name\": \"Image1\",\n" " \"effect\": \"Ripple2D\",\n" " \"image\": \"offscreen\"" " }\n" " ],\n" - " \"shader-effects\": {\n" + " \"shaderEffects\": {\n" " \"Ripple2D\": {\n" " \"program\": {\n" " \"vertexPrefix\": \"\",\n" " \"vertex\": \"void main(void)\\n{\\n gl_Position = uProjection * uModelView * vec4(aPosition, 1.0);\\n vTexCoord = aTexCoord;\\n}\\n\\n\",\n" " \"fragmentPrefix\": \"\",\n" " \"fragment\": \"precision mediump float;\\nuniform float uAmplitude; // 0.02; (< 1)\\nuniform float uTime;\\nvoid main()\\n{\\n highp vec2 textureSize = sTextureRect.zw - sTextureRect.xy;\\n highp vec2 pos = -1.0 + 2.0 * vTexCoord.st/textureSize;\\n highp float len = length(pos);\\n highp vec2 texCoord = vTexCoord.st/textureSize + pos/len * sin( len * 12.0 - uTime * 4.0 ) * uAmplitude; \\n gl_FragColor = texture2D(sTexture, texCoord) * uColor;\\n}\\n\\n\\n\",\n" - " \"geometry-type\": \"GEOMETRY_TYPE_IMAGE\"\n" + " \"geometryType\": \"GEOMETRY_TYPE_IMAGE\"\n" " },\n" - " \"geometry-hints\": \"HINT_NONE\",\n" - " \"grid-density\": 0,\n" + " \"geometryHints\": \"HINT_NONE\",\n" + " \"gridDensity\": 0,\n" " \"loop\": true,\n" " \"uAmplitude\": 0.02,\n" " \"uTime\": 0.0\n" " }\n" " },\n" - " \"frame-buffer-images\": {\n" + " \"frameBufferImages\": {\n" " \"offscreen\": {\n" " \"type\": \"FrameBufferImage\"," - " \"pixel-format\":\"RGBA8888\"," + " \"pixelFormat\":\"RGBA8888\"," " \"width\": 400," " \"height\": 400" " }" @@ -1101,18 +1101,18 @@ int UtcDaliBuilderAddActorsP(void) " \"type\": \"Actor\",\n" " \"name\": \"actor\",\n" " \"size\": [100,100,1],\n" - " \"parent-origin\": \"TOP_LEFT\",\n" - " \"anchor-point\": \"TOP_LEFT\",\n" + " \"parentOrigin\": \"TOP_LEFT\",\n" + " \"anchorPoint\": \"TOP_LEFT\",\n" " \"actors\": [{\n" " \"type\": \"Actor\",\n" - " \"name\": \"sub-actor\",\n" + " \"name\": \"subActor\",\n" " \"visible\": false\n" " }],\n" " \"signals\": [{\n" " \"name\": \"touched\",\n" " \"action\": \"hide\",\n" " \"actor\": \"actor\",\n" - " \"child-actor\": \"sub-actor\"\n" + " \"childActor\": \"subActor\"\n" " }]\n" " }]\n" "}\n" @@ -1126,7 +1126,7 @@ int UtcDaliBuilderAddActorsP(void) application.SendNotification(); application.Render(); - Actor actor = Stage::GetCurrent().GetRootLayer().FindChildByName("sub-actor"); + Actor actor = Stage::GetCurrent().GetRootLayer().FindChildByName("subActor"); DALI_TEST_CHECK( actor ); DALI_TEST_CHECK( !actor.IsVisible() ); @@ -1157,27 +1157,27 @@ int UtcDaliBuilderFrameBufferP(void) " 0.9150390625,\n" " 0.0\n" " ],\n" - " \"parent-origin\": [0.5, 0.5, 0.5],\n" + " \"parentOrigin\": [0.5, 0.5, 0.5],\n" " \"size\": [300, 300, 0],\n" " \"image\": \"fb0\",\n" - " \"clear-color\": [1,0,0,1]\n" + " \"clearColor\": [1,0,0,1]\n" " },\n" " {\n" " \"type\": \"ImageActor\",\n" " \"name\": \"Image1\",\n" " \"size\": [200, 200, 0],\n" - " \"parent-origin\": [0.5, 0.5, 0.5],\n" + " \"parentOrigin\": [0.5, 0.5, 0.5],\n" " \"effect\": \"Ripple2D\",\n" " \"image\": {\n" " \"filename\": \"{DALI_IMAGE_DIR}gallery-medium-25.jpg\",\n" " \"width\": 200,\n" " \"height\": 80,\n" - " \"load-policy\": \"IMMEDIATE\",\n" - " \"release-policy\": \"NEVER\"\n" + " \"loadPolicy\": \"IMMEDIATE\",\n" + " \"releasePolicy\": \"NEVER\"\n" " },\n" " \"signals\": [\n" " {\n" - " \"name\": \"on-stage\",\n" + " \"name\": \"onStage\",\n" " \"action\": \"play\",\n" " \"animation\": \"Animation_1\"\n" " }\n" @@ -1186,33 +1186,33 @@ int UtcDaliBuilderFrameBufferP(void) " {\n" " \"type\":\"CameraActor\",\n" " \"name\":\"fbCam\",\n" - " \"aspect-ratio\": \"{FB_ASPECT_RATIO}\",\n" - " \"projection-mode\": \"PERSPECTIVE_PROJECTION\",\n" - " \"field-of-view\": 0.785,\n" - " \"invert-y-axis\": true\n" + " \"aspectRatio\": \"{FB_ASPECT_RATIO}\",\n" + " \"projectionMode\": \"PERSPECTIVE_PROJECTION\",\n" + " \"fieldOfView\": 0.785,\n" + " \"invertYAxis\": true\n" " }\n" " ],\n" - " \"frame-buffer-images\":\n" + " \"frameBufferImages\":\n" " {\n" " \"fb0\":\n" " {\n" " \"type\": \"FrameBufferImage\",\n" - " \"width\": { \"type-cast\":\"float\", \"value\":\"{FB_WIDTH}\" },\n" - " \"height\": { \"type-cast\":\"float\", \"value\":\"{FB_HEIGHT}\" }\n" + " \"width\": { \"typeCast\":\"float\", \"value\":\"{FB_WIDTH}\" },\n" + " \"height\": { \"typeCast\":\"float\", \"value\":\"{FB_HEIGHT}\" }\n" " }\n" " },\n" - " \"render-tasks\":\n" + " \"renderTasks\":\n" " {\n" " \"stage\":\n" " [\n" " {\n" - " \"source-actor\": \"fbOnStage\"\n" + " \"sourceActor\": \"fbOnStage\"\n" " },\n" " {\n" - " \"source-actor\": \"Image1\",\n" - " \"target-frame-buffer\": \"fb0\",\n" - " \"viewport-size\":\"{FB_SIZE}\",\n" - " \"camera-actor\":\"fbCam\"\n" + " \"sourceActor\": \"Image1\",\n" + " \"targetFrameBuffer\": \"fb0\",\n" + " \"viewportSize\":\"{FB_SIZE}\",\n" + " \"cameraActor\":\"fbCam\"\n" " }\n" " ]\n" " },\n" @@ -1225,8 +1225,8 @@ int UtcDaliBuilderFrameBufferP(void) " \"actor\": \"Image1\",\n" " \"property\": \"uTime\",\n" " \"value\": 10.0,\n" - " \"alpha-function\": \"LINEAR\",\n" - " \"time-period\": {\n" + " \"alphaFunction\": \"LINEAR\",\n" + " \"timePeriod\": {\n" " \"delay\": 0,\n" " \"duration\": 10.0\n" " },\n" @@ -1235,17 +1235,17 @@ int UtcDaliBuilderFrameBufferP(void) " ]\n" " }\n" " },\n" - " \"shader-effects\": {\n" + " \"shaderEffects\": {\n" " \"Ripple2D\": {\n" " \"program\": {\n" " \"vertexPrefix\": \"\",\n" " \"vertex\": \"void main(void)\\n{\\n gl_Position = uProjection * uModelView * vec4(aPosition, 1.0);\\n vTexCoord = aTexCoord;\\n}\\n\\n\",\n" " \"fragmentPrefix\": \"\",\n" " \"fragment\": \"precision mediump float;\\nuniform float uAmplitude; // 0.02; (< 1)\\nuniform float uTime;\\nvoid main()\\n{\\n highp vec2 textureSize = sTextureRect.zw - sTextureRect.xy;\\n highp vec2 pos = -1.0 + 2.0 * vTexCoord.st/textureSize;\\n highp float len = length(pos);\\n highp vec2 texCoord = vTexCoord.st/textureSize + pos/len * sin( len * 12.0 - uTime * 4.0 ) * uAmplitude; \\n gl_FragColor = texture2D(sTexture, texCoord) * uColor;\\n}\\n\\n\\n\",\n" - " \"geometry-type\": \"GEOMETRY_TYPE_IMAGE\"\n" + " \"geometryType\": \"GEOMETRY_TYPE_IMAGE\"\n" " },\n" - " \"geometry-hints\": \"HINT_NONE\",\n" - " \"grid-density\": 0,\n" + " \"geometryHints\": \"HINT_NONE\",\n" + " \"gridDensity\": 0,\n" " \"loop\": true,\n" " \"uAmplitude\": 0.02,\n" " \"uTime\": 0.0\n" @@ -1293,47 +1293,47 @@ int UtcDaliBuilderPathConstraintsP(void) " \"type\": \"ImageActor\",\n" " \"name\": \"Image1\",\n" " \"size\": [200, 200, 0],\n" - " \"parent-origin\": [0.5, 0.5, 0.5],\n" + " \"parentOrigin\": [0.5, 0.5, 0.5],\n" " \"effect\": \"Ripple2D\",\n" " \"image\": {\n" " \"filename\": \"{DALI_IMAGE_DIR}gallery-medium-25.jpg\",\n" " \"width\": 200,\n" " \"height\": 80,\n" - " \"load-policy\": \"IMMEDIATE\",\n" - " \"release-policy\": \"NEVER\"\n" + " \"loadPolicy\": \"IMMEDIATE\",\n" + " \"releasePolicy\": \"NEVER\"\n" " },\n" " \"signals\": [\n" " {\n" - " \"name\": \"on-stage\",\n" + " \"name\": \"onStage\",\n" " \"action\": \"play\",\n" - " \"animation\": \"path-animation\"\n" + " \"animation\": \"pathAnimation\"\n" " },\n" " {\n" - " \"name\": \"on-stage\",\n" + " \"name\": \"onStage\",\n" " \"action\": \"applyConstraint\",\n" " \"constrainer\": \"constrainer0\",\n" " \"properties\":\n" " [\n" " {\n" " \"source\": \"Image1\",\n" - " \"sourceProperty\": \"position-x\",\n" + " \"sourceProperty\": \"positionX\",\n" " \"target\": \"Image1\",\n" - " \"targetProperty\": \"color-red\",\n" + " \"targetProperty\": \"colorRed\",\n" " \"range\": [-300,300]\n" " }\n" " ]\n" " },\n" " {\n" - " \"name\": \"on-stage\",\n" + " \"name\": \"onStage\",\n" " \"action\": \"applyConstraint\",\n" " \"constrainer\": \"constrainer1\",\n" " \"properties\":\n" " [\n" " {\n" " \"source\": \"Image1\",\n" - " \"sourceProperty\": \"position-x\",\n" + " \"sourceProperty\": \"positionX\",\n" " \"target\": \"Image1\",\n" - " \"targetProperty\": \"color-blue\",\n" + " \"targetProperty\": \"colorBlue\",\n" " \"range\": [-300,300]\n" " }\n" " ]\n" @@ -1355,7 +1355,7 @@ int UtcDaliBuilderPathConstraintsP(void) " {\n" " \"type\": \"PathConstrainer\",\n" " \"points\": [ [0, 0, 0], [0,0,0], [0,0,0] ],\n" - " \"control-points\": [ [0, 0, 0], [0,0,0], [0,0,0] ]\n" + " \"controlPoints\": [ [0, 0, 0], [0,0,0], [0,0,0] ]\n" " },\n" " \"constrainer1\":\n" " {\n" @@ -1364,15 +1364,15 @@ int UtcDaliBuilderPathConstraintsP(void) " }\n" " },\n" " \"animations\": {\n" - " \"path-animation\": {\n" + " \"pathAnimation\": {\n" " \"duration\": 3.0,\n" " \"properties\":\n" " [{\n" " \"actor\": \"Image1\",\n" " \"path\":\"path0\",\n" " \"forward\":[1,0,0],\n" - " \"alpha-function\": \"EASE_IN_OUT\",\n" - " \"time-period\": {\n" + " \"alphaFunction\": \"EASE_IN_OUT\",\n" + " \"timePeriod\": {\n" " \"delay\": 0,\n" " \"duration\": 3\n" " }\n" @@ -1381,8 +1381,8 @@ int UtcDaliBuilderPathConstraintsP(void) " \"actor\": \"Image1\",\n" " \"property\": \"uTime\",\n" " \"value\": 10.0,\n" - " \"alpha-function\": \"LINEAR\",\n" - " \"time-period\": {\n" + " \"alphaFunction\": \"LINEAR\",\n" + " \"timePeriod\": {\n" " \"delay\": 0,\n" " \"duration\": 10.0\n" " },\n" @@ -1396,8 +1396,8 @@ int UtcDaliBuilderPathConstraintsP(void) " \"actor\": \"Image1\",\n" " \"property\": \"uTime\",\n" " \"value\": 10.0,\n" - " \"alpha-function\": \"LINEAR\",\n" - " \"time-period\": {\n" + " \"alphaFunction\": \"LINEAR\",\n" + " \"timePeriod\": {\n" " \"delay\": 0,\n" " \"duration\": 10.0\n" " },\n" @@ -1406,17 +1406,17 @@ int UtcDaliBuilderPathConstraintsP(void) " ]\n" " }\n" " },\n" - " \"shader-effects\": {\n" + " \"shaderEffects\": {\n" " \"Ripple2D\": {\n" " \"program\": {\n" " \"vertexPrefix\": \"\",\n" " \"vertex\": \"void main(void)\\n{\\n gl_Position = uProjection * uModelView * vec4(aPosition, 1.0);\\n vTexCoord = aTexCoord;\\n}\\n\\n\",\n" " \"fragmentPrefix\": \"\",\n" " \"fragment\": \"precision mediump float;\\nuniform float uAmplitude; // 0.02; (< 1)\\nuniform float uTime;\\nvoid main()\\n{\\n highp vec2 textureSize = sTextureRect.zw - sTextureRect.xy;\\n highp vec2 pos = -1.0 + 2.0 * vTexCoord.st/textureSize;\\n highp float len = length(pos);\\n highp vec2 texCoord = vTexCoord.st/textureSize + pos/len * sin( len * 12.0 - uTime * 4.0 ) * uAmplitude; \\n gl_FragColor = texture2D(sTexture, texCoord) * uColor;\\n}\\n\\n\\n\",\n" - " \"geometry-type\": \"GEOMETRY_TYPE_IMAGE\"\n" + " \"geometryType\": \"GEOMETRY_TYPE_IMAGE\"\n" " },\n" - " \"geometry-hints\": \"HINT_NONE\",\n" - " \"grid-density\": 0,\n" + " \"geometryHints\": \"HINT_NONE\",\n" + " \"gridDensity\": 0,\n" " \"loop\": true,\n" " \"uAmplitude\": 0.02,\n" " \"uTime\": 0.0\n" diff --git a/automated-tests/src/dali-toolkit/utc-Dali-ConfirmationPopup.cpp b/automated-tests/src/dali-toolkit/utc-Dali-ConfirmationPopup.cpp index 887b6b9..9c3765d 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-ConfirmationPopup.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-ConfirmationPopup.cpp @@ -161,28 +161,28 @@ int UtcDaliConfirmationPopupDynamicSignalGenerationP(void) Actor footerActor = Actor::New(); // The confirmation popup can use any control type for the ok or cancel buttons. - // It requires that the name is "control-ok" to provide the "control-signal-ok" signal. + // It requires that the name is "controlOk" to provide the "controlSignalOk" signal. PushButton buttonOK = PushButton::New(); - buttonOK.SetName( "control-ok" ); + buttonOK.SetName( "controlOk" ); footerActor.Add( buttonOK ); PushButton buttonCancel = PushButton::New(); - buttonCancel.SetName( "control-cancel" ); + buttonCancel.SetName( "controlCancel" ); footerActor.Add( buttonCancel ); popup.SetFooter( footerActor ); - // Tell the confirmation popup to connect to the signal in our button called "on-stage". - popup.SetProperty( Toolkit::ConfirmationPopup::Property::CONNECT_SIGNAL_OK_SELECTED, "on-stage" ); + // Tell the confirmation popup to connect to the signal in our button called "onStage". + popup.SetProperty( Toolkit::ConfirmationPopup::Property::CONNECT_SIGNAL_OK_SELECTED, "onStage" ); std::string resultProperty; DALI_TEST_CHECK( popup.GetProperty( Toolkit::ConfirmationPopup::Property::CONNECT_SIGNAL_OK_SELECTED ).Get( resultProperty ) ); - DALI_TEST_EQUALS( resultProperty, "on-stage", TEST_LOCATION ); + DALI_TEST_EQUALS( resultProperty, "onStage", TEST_LOCATION ); // Connect to the confirmation popup's OK signal. This signal is dynamically created upon connection. gSignalReceivedOK = false; gSignalReceivedCancel = false; TestConnectionTrackerObject* testTracker = new TestConnectionTrackerObject(); - popup.ConnectSignal( testTracker, "control-signal-ok", ConfirmationPopupOKTestFunctor() ); + popup.ConnectSignal( testTracker, "controlSignalOk", ConfirmationPopupOKTestFunctor() ); // Check no signal has occurred yet. DALI_TEST_CHECK( !gSignalReceivedOK ); @@ -197,11 +197,11 @@ int UtcDaliConfirmationPopupDynamicSignalGenerationP(void) // Remove the popup from the stage, and connect the cancel signal. popup.Unparent(); - popup.SetProperty( Toolkit::ConfirmationPopup::Property::CONNECT_SIGNAL_CANCEL_SELECTED, "on-stage" ); + popup.SetProperty( Toolkit::ConfirmationPopup::Property::CONNECT_SIGNAL_CANCEL_SELECTED, "onStage" ); DALI_TEST_CHECK( popup.GetProperty( Toolkit::ConfirmationPopup::Property::CONNECT_SIGNAL_CANCEL_SELECTED ).Get( resultProperty ) ); - DALI_TEST_EQUALS( resultProperty, "on-stage", TEST_LOCATION ); + DALI_TEST_EQUALS( resultProperty, "onStage", TEST_LOCATION ); - popup.ConnectSignal( testTracker, "control-signal-cancel", ConfirmationPopupCancelTestFunctor() ); + popup.ConnectSignal( testTracker, "controlSignalCancel", ConfirmationPopupCancelTestFunctor() ); // Check the cancel signal has not occurred yet. DALI_TEST_CHECK( gSignalReceivedOK ); @@ -233,18 +233,18 @@ int UtcDaliConfirmationPopupDynamicSignalGenerationN(void) Actor footerActor = Actor::New(); PushButton buttonOK = PushButton::New(); - buttonOK.SetName( "control-ok-misnamed" ); + buttonOK.SetName( "controlOkMisnamed" ); popup.SetFooter( buttonOK ); - // Tell the confirmation popup to connect to the signal in our button called "on-stage". - popup.SetProperty( Toolkit::ConfirmationPopup::Property::CONNECT_SIGNAL_OK_SELECTED, "on-stage" ); + // Tell the confirmation popup to connect to the signal in our button called "onStage". + popup.SetProperty( Toolkit::ConfirmationPopup::Property::CONNECT_SIGNAL_OK_SELECTED, "onStage" ); // Connect to the confirmation popup's OK signal. gSignalReceivedOK = false; - // The connection will fail at this point as no actor with the name "control-ok" will be located. + // The connection will fail at this point as no actor with the name "controlOk" will be located. TestConnectionTrackerObject* testTracker = new TestConnectionTrackerObject(); - popup.ConnectSignal( testTracker, "control-signal-ok", ConfirmationPopupOKTestFunctor() ); + popup.ConnectSignal( testTracker, "controlSignalOk", ConfirmationPopupOKTestFunctor() ); // Check no signal has occurred yet. DALI_TEST_CHECK( !gSignalReceivedOK ); diff --git a/automated-tests/src/dali-toolkit/utc-Dali-Control.cpp b/automated-tests/src/dali-toolkit/utc-Dali-Control.cpp index 4bfc808..93311ed 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-Control.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-Control.cpp @@ -385,17 +385,17 @@ int UtcDaliControlBackgroundColor(void) Property::Value propValue = control.GetProperty( Control::Property::BACKGROUND ); Property::Map* resultMap = propValue.GetMap(); - DALI_TEST_CHECK( resultMap->Find( "renderer-type" ) ); - DALI_TEST_CHECK( resultMap->Find( "renderer-type" )->Get() == "color-renderer" ); - DALI_TEST_CHECK( resultMap->Find( "blend-color" ) ); - DALI_TEST_CHECK( resultMap->Find( "blend-color" )->Get() == Color::RED ); + DALI_TEST_CHECK( resultMap->Find( "rendererType" ) ); + DALI_TEST_CHECK( resultMap->Find( "rendererType" )->Get() == "colorRenderer" ); + DALI_TEST_CHECK( resultMap->Find( "blendColor" ) ); + DALI_TEST_CHECK( resultMap->Find( "blendColor" )->Get() == Color::RED ); control.SetBackgroundColor( Color::YELLOW ); propValue = control.GetProperty( Control::Property::BACKGROUND ); resultMap = propValue.GetMap(); - DALI_TEST_CHECK( resultMap->Find( "blend-color" ) ); - DALI_TEST_CHECK( resultMap->Find( "blend-color" )->Get() == Color::YELLOW ); + DALI_TEST_CHECK( resultMap->Find( "blendColor" ) ); + DALI_TEST_CHECK( resultMap->Find( "blendColor" )->Get() == Color::YELLOW ); END_TEST; } @@ -412,18 +412,18 @@ int UtcDaliControlBackgroundImage(void) Property::Value propValue = control.GetProperty( Control::Property::BACKGROUND ); Property::Map* resultMap = propValue.GetMap(); - DALI_TEST_CHECK( resultMap->Find( "renderer-type" ) ); - DALI_TEST_CHECK( resultMap->Find( "renderer-type" )->Get() == "image-renderer" ); - DALI_TEST_CHECK( resultMap->Find( "image-url" ) ); - DALI_TEST_CHECK( resultMap->Find( "image-url" )->Get() == "TestImage" ); + DALI_TEST_CHECK( resultMap->Find( "rendererType" ) ); + DALI_TEST_CHECK( resultMap->Find( "rendererType" )->Get() == "imageRenderer" ); + DALI_TEST_CHECK( resultMap->Find( "imageUrl" ) ); + DALI_TEST_CHECK( resultMap->Find( "imageUrl" )->Get() == "TestImage" ); image = ResourceImage::New("TestImage2"); control.SetBackgroundImage( image ); propValue = control.GetProperty( Control::Property::BACKGROUND ); resultMap = propValue.GetMap(); - DALI_TEST_CHECK( resultMap->Find( "image-url" ) ); - DALI_TEST_CHECK( resultMap->Find( "image-url" )->Get() == "TestImage2" ); + DALI_TEST_CHECK( resultMap->Find( "imageUrl" ) ); + DALI_TEST_CHECK( resultMap->Find( "imageUrl" )->Get() == "TestImage2" ); END_TEST; } @@ -441,31 +441,31 @@ int UtcDaliControlBackgroundProperties(void) control.SetProperty( Control::Property::BACKGROUND, colorMap ); Property::Value propValue = control.GetProperty( Control::Property::BACKGROUND ); Property::Map* resultMap = propValue.GetMap(); - DALI_TEST_CHECK( resultMap->Find( "renderer-type" ) ); - DALI_TEST_CHECK( resultMap->Find( "renderer-type" )->Get() == "color-renderer" ); - DALI_TEST_CHECK( resultMap->Find( "blend-color" ) ); - DALI_TEST_CHECK( resultMap->Find( "blend-color" )->Get() == Color::RED ); + DALI_TEST_CHECK( resultMap->Find( "rendererType" ) ); + DALI_TEST_CHECK( resultMap->Find( "rendererType" )->Get() == "colorRenderer" ); + DALI_TEST_CHECK( resultMap->Find( "blendColor" ) ); + DALI_TEST_CHECK( resultMap->Find( "blendColor" )->Get() == Color::RED ); Property::Map imageMap; imageMap[ "filename" ] = "TestImage"; control.SetProperty( Control::Property::BACKGROUND, imageMap ); propValue = control.GetProperty( Control::Property::BACKGROUND ); resultMap = propValue.GetMap(); - DALI_TEST_CHECK( resultMap->Find( "renderer-type" ) ); - DALI_TEST_CHECK( resultMap->Find( "renderer-type" )->Get() == "image-renderer" ); - DALI_TEST_CHECK( resultMap->Find( "image-url" ) ); - DALI_TEST_CHECK( resultMap->Find( "image-url" )->Get() == "TestImage" ); + DALI_TEST_CHECK( resultMap->Find( "rendererType" ) ); + DALI_TEST_CHECK( resultMap->Find( "rendererType" )->Get() == "imageRenderer" ); + DALI_TEST_CHECK( resultMap->Find( "imageUrl" ) ); + DALI_TEST_CHECK( resultMap->Find( "imageUrl" )->Get() == "TestImage" ); Property::Map rendererMap; - rendererMap["renderer-type"] = "color-renderer"; - rendererMap["blend-color"] = Color::CYAN; + rendererMap["rendererType"] = "colorRenderer"; + rendererMap["blendColor"] = Color::CYAN; control.SetProperty( Control::Property::BACKGROUND, rendererMap ); propValue = control.GetProperty( Control::Property::BACKGROUND ); resultMap = propValue.GetMap(); - DALI_TEST_CHECK( resultMap->Find( "renderer-type" ) ); - DALI_TEST_CHECK( resultMap->Find( "renderer-type" )->Get() == "color-renderer" ); - DALI_TEST_CHECK( resultMap->Find( "blend-color" ) ); - DALI_TEST_CHECK( resultMap->Find( "blend-color" )->Get() == Color::CYAN ); + DALI_TEST_CHECK( resultMap->Find( "rendererType" ) ); + DALI_TEST_CHECK( resultMap->Find( "rendererType" )->Get() == "colorRenderer" ); + DALI_TEST_CHECK( resultMap->Find( "blendColor" ) ); + DALI_TEST_CHECK( resultMap->Find( "blendColor" )->Get() == Color::CYAN ); Property::Map emptyMap; control.SetProperty( Control::Property::BACKGROUND, emptyMap ); @@ -515,7 +515,7 @@ int UtcDaliControlGestureSignals(void) DALI_TEST_CHECK( control.GetPinchGestureDetector() ); DALI_TEST_CHECK( !control.GetLongPressGestureDetector() ); - control.ConnectSignal( &connectionTracker, "long-pressed", &TestVoidCallback ); + control.ConnectSignal( &connectionTracker, "longPressed", &TestVoidCallback ); DALI_TEST_CHECK( control.GetLongPressGestureDetector() ); END_TEST; diff --git a/automated-tests/src/dali-toolkit/utc-Dali-ControlImpl.cpp b/automated-tests/src/dali-toolkit/utc-Dali-ControlImpl.cpp index a886d9d..7eb5f48 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-ControlImpl.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-ControlImpl.cpp @@ -916,7 +916,7 @@ int UtcDaliControlImplOnAccessibilityActivatedP(void) DALI_TEST_CHECK( handle ); Property::Map attributes; - DALI_TEST_EQUALS( false, handle.DoAction("accessibility-activated", attributes), TEST_LOCATION ); + DALI_TEST_EQUALS( false, handle.DoAction("accessibilityActivated", attributes), TEST_LOCATION ); END_TEST; } diff --git a/automated-tests/src/dali-toolkit/utc-Dali-ControlRenderer.cpp b/automated-tests/src/dali-toolkit/utc-Dali-ControlRenderer.cpp index 84df350..a74af90 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-ControlRenderer.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-ControlRenderer.cpp @@ -48,8 +48,8 @@ int UtcDaliControlRendererCopyAndAssignment(void) RendererFactory factory = RendererFactory::Get(); Property::Map propertyMap; - propertyMap.Insert("renderer-type", "color-renderer"); - propertyMap.Insert("blend-color", Color::BLUE); + propertyMap.Insert("rendererType", "colorRenderer"); + propertyMap.Insert("blendColor", Color::BLUE); ControlRenderer controlRenderer = factory.GetControlRenderer( propertyMap ); ControlRenderer controlRendererCopy( controlRenderer ); @@ -81,8 +81,8 @@ int UtcDaliControlRendererSetGetDepthIndex(void) RendererFactory factory = RendererFactory::Get(); Property::Map propertyMap; - propertyMap.Insert("renderer-type", "color-renderer"); - propertyMap.Insert("blend-color", Color::BLUE); + propertyMap.Insert("rendererType", "colorRenderer"); + propertyMap.Insert("blendColor", Color::BLUE); ControlRenderer controlRenderer = factory.GetControlRenderer( propertyMap ); controlRenderer.SetDepthIndex( 1.f ); @@ -147,16 +147,16 @@ int UtcDaliControlRendererSize(void) // gradient renderer Property::Map propertyMap; - propertyMap.Insert("renderer-type", "gradient-renderer"); + propertyMap.Insert("rendererType", "gradientRenderer"); Vector2 start(-1.f, -1.f); Vector2 end(1.f, 1.f); - propertyMap.Insert("gradient-start-position", start); - propertyMap.Insert("gradient-end-position", end); - propertyMap.Insert("gradient-stop-offset", Vector2(0.f, 1.f)); + propertyMap.Insert("gradientStartPosition", start); + propertyMap.Insert("gradientEndPosition", end); + propertyMap.Insert("gradientStopOffset", Vector2(0.f, 1.f)); Property::Array stopColors; stopColors.PushBack( Color::RED ); stopColors.PushBack( Color::GREEN ); - propertyMap.Insert("gradient-stop-color", stopColors); + propertyMap.Insert("gradientStopColor", stopColors); ControlRenderer gradientRenderer = factory.GetControlRenderer(propertyMap); gradientRenderer.SetSize( rendererSize ); DALI_TEST_EQUALS( gradientRenderer.GetSize(), rendererSize, TEST_LOCATION ); @@ -173,8 +173,8 @@ int UtcDaliControlRendererSetOnOffStage(void) RendererFactory factory = RendererFactory::Get(); Property::Map propertyMap; - propertyMap.Insert("renderer-type", "color-renderer"); - propertyMap.Insert("blend-color", Color::BLUE); + propertyMap.Insert("rendererType", "colorRenderer"); + propertyMap.Insert("blendColor", Color::BLUE); ControlRenderer controlRenderer = factory.GetControlRenderer( propertyMap ); Actor actor = Actor::New(); @@ -246,18 +246,18 @@ int UtcDaliControlRendererGetPropertyMap1(void) RendererFactory factory = RendererFactory::Get(); Property::Map propertyMap; - propertyMap.Insert("renderer-type", "color-renderer"); - propertyMap.Insert("blend-color", Color::BLUE); + propertyMap.Insert("rendererType", "colorRenderer"); + propertyMap.Insert("blendColor", Color::BLUE); ControlRenderer colorRenderer = factory.GetControlRenderer( propertyMap ); Property::Map resultMap; colorRenderer.CreatePropertyMap( resultMap ); - Property::Value* typeValue = resultMap.Find( "renderer-type", Property::STRING ); + Property::Value* typeValue = resultMap.Find( "rendererType", Property::STRING ); DALI_TEST_CHECK( typeValue ); - DALI_TEST_CHECK( typeValue->Get() == "color-renderer" ); + DALI_TEST_CHECK( typeValue->Get() == "colorRenderer" ); - Property::Value* colorValue = resultMap.Find( "blend-color", Property::VECTOR4 ); + Property::Value* colorValue = resultMap.Find( "blendColor", Property::VECTOR4 ); DALI_TEST_CHECK( colorValue ); DALI_TEST_CHECK( colorValue->Get() == Color::BLUE ); @@ -266,7 +266,7 @@ int UtcDaliControlRendererGetPropertyMap1(void) factory.ResetRenderer( colorRenderer, actor, Color::CYAN ); colorRenderer.CreatePropertyMap( resultMap ); - colorValue = resultMap.Find( "blend-color", Property::VECTOR4 ); + colorValue = resultMap.Find( "blendColor", Property::VECTOR4 ); DALI_TEST_CHECK( colorValue ); DALI_TEST_CHECK( colorValue->Get() == Color::CYAN ); @@ -280,39 +280,39 @@ int UtcDaliControlRendererGetPropertyMap2(void) RendererFactory factory = RendererFactory::Get(); Property::Map propertyMap; - propertyMap.Insert("renderer-type", "border-renderer"); - propertyMap.Insert("border-color", Color::BLUE); - propertyMap.Insert("border-size", 5.f); + propertyMap.Insert("rendererType", "borderRenderer"); + propertyMap.Insert("borderColor", Color::BLUE); + propertyMap.Insert("borderSize", 5.f); ControlRenderer borderRenderer = factory.GetControlRenderer( propertyMap ); Property::Map resultMap; borderRenderer.CreatePropertyMap( resultMap ); // check the property values from the returned map from control renderer - Property::Value* typeValue = resultMap.Find( "renderer-type", Property::STRING ); + Property::Value* typeValue = resultMap.Find( "rendererType", Property::STRING ); DALI_TEST_CHECK( typeValue ); - DALI_TEST_CHECK( typeValue->Get() == "border-renderer" ); + DALI_TEST_CHECK( typeValue->Get() == "borderRenderer" ); - Property::Value* colorValue = resultMap.Find( "border-color", Property::VECTOR4 ); + Property::Value* colorValue = resultMap.Find( "borderColor", Property::VECTOR4 ); DALI_TEST_CHECK( colorValue ); DALI_TEST_CHECK( colorValue->Get() == Color::BLUE ); - Property::Value* sizeValue = resultMap.Find( "border-size", Property::FLOAT ); + Property::Value* sizeValue = resultMap.Find( "borderSize", Property::FLOAT ); DALI_TEST_CHECK( sizeValue ); DALI_TEST_CHECK( sizeValue->Get() == 5.f ); borderRenderer = factory.GetControlRenderer( 10.f, Color::CYAN ); borderRenderer.CreatePropertyMap( resultMap ); - typeValue = resultMap.Find( "renderer-type", Property::STRING ); + typeValue = resultMap.Find( "rendererType", Property::STRING ); DALI_TEST_CHECK( typeValue ); - DALI_TEST_CHECK( typeValue->Get() == "border-renderer" ); + DALI_TEST_CHECK( typeValue->Get() == "borderRenderer" ); - colorValue = resultMap.Find( "border-color", Property::VECTOR4 ); + colorValue = resultMap.Find( "borderColor", Property::VECTOR4 ); DALI_TEST_CHECK( colorValue ); DALI_TEST_CHECK( colorValue->Get() == Color::CYAN ); - colorValue = resultMap.Find( "border-size", Property::FLOAT ); + colorValue = resultMap.Find( "borderSize", Property::FLOAT ); DALI_TEST_CHECK( colorValue ); DALI_TEST_CHECK( colorValue->Get() == 10.f ); @@ -328,20 +328,20 @@ int UtcDaliControlRendererGetPropertyMap3(void) DALI_TEST_CHECK( factory ); Property::Map propertyMap; - propertyMap.Insert("renderer-type", "gradient-renderer"); + propertyMap.Insert("rendererType", "gradientRenderer"); Vector2 start(-1.f, -1.f); Vector2 end(1.f, 1.f); - propertyMap.Insert("gradient-start-position", start); - propertyMap.Insert("gradient-end-position", end); - propertyMap.Insert("gradient-spread-method", "repeat"); + propertyMap.Insert("gradientStartPosition", start); + propertyMap.Insert("gradientEndPosition", end); + propertyMap.Insert("gradientSpreadMethod", "repeat"); - propertyMap.Insert("gradient-stop-offset", Vector2(0.2f, 0.8f)); + propertyMap.Insert("gradientStopOffset", Vector2(0.2f, 0.8f)); Property::Array stopColors; stopColors.PushBack( Color::RED ); stopColors.PushBack( Color::GREEN ); - propertyMap.Insert("gradient-stop-color", stopColors); + propertyMap.Insert("gradientStopColor", stopColors); ControlRenderer gradientRenderer = factory.GetControlRenderer(propertyMap); @@ -349,34 +349,34 @@ int UtcDaliControlRendererGetPropertyMap3(void) gradientRenderer.CreatePropertyMap( resultMap ); // check the property values from the returned map from control renderer - Property::Value* value = resultMap.Find( "renderer-type", Property::STRING ); + Property::Value* value = resultMap.Find( "rendererType", Property::STRING ); DALI_TEST_CHECK( value ); - DALI_TEST_CHECK( value->Get() == "gradient-renderer" ); + DALI_TEST_CHECK( value->Get() == "gradientRenderer" ); - value = resultMap.Find( "gradient-units", Property::STRING ); + value = resultMap.Find( "gradientUnits", Property::STRING ); DALI_TEST_CHECK( value ); - DALI_TEST_CHECK( value->Get() == "object-bounding-box" ); + DALI_TEST_CHECK( value->Get() == "objectBoundingBox" ); - value = resultMap.Find( "gradient-spread-method", Property::STRING ); + value = resultMap.Find( "gradientSpreadMethod", Property::STRING ); DALI_TEST_CHECK( value ); DALI_TEST_CHECK( value->Get() == "repeat" ); - value = resultMap.Find( "gradient-start-position", Property::VECTOR2 ); + value = resultMap.Find( "gradientStartPosition", Property::VECTOR2 ); DALI_TEST_CHECK( value ); DALI_TEST_EQUALS( value->Get(), start , Math::MACHINE_EPSILON_100, TEST_LOCATION ); - value = resultMap.Find( "gradient-end-position", Property::VECTOR2 ); + value = resultMap.Find( "gradientEndPosition", Property::VECTOR2 ); DALI_TEST_CHECK( value ); DALI_TEST_EQUALS( value->Get(), end , Math::MACHINE_EPSILON_100, TEST_LOCATION ); - value = resultMap.Find( "gradient-stop-offset", Property::ARRAY ); + value = resultMap.Find( "gradientStopOffset", Property::ARRAY ); DALI_TEST_CHECK( value ); Property::Array* offsetArray = value->GetArray(); DALI_TEST_CHECK( offsetArray->Count() == 2 ); DALI_TEST_EQUALS( offsetArray->GetElementAt(0).Get(), 0.2f , Math::MACHINE_EPSILON_100, TEST_LOCATION ); DALI_TEST_EQUALS( offsetArray->GetElementAt(1).Get(), 0.8f , Math::MACHINE_EPSILON_100, TEST_LOCATION ); - value = resultMap.Find( "gradient-stop-color", Property::ARRAY ); + value = resultMap.Find( "gradientStopColor", Property::ARRAY ); DALI_TEST_CHECK( value ); Property::Array* colorArray = value->GetArray(); DALI_TEST_CHECK( colorArray->Count() == 2 ); @@ -395,20 +395,20 @@ int UtcDaliControlRendererGetPropertyMap4(void) DALI_TEST_CHECK( factory ); Property::Map propertyMap; - propertyMap.Insert("renderer-type", "gradient-renderer"); + propertyMap.Insert("rendererType", "gradientRenderer"); Vector2 center(100.f, 100.f); float radius = 100.f; - propertyMap.Insert("gradient-units", "user-space"); - propertyMap.Insert("gradient-center", center); - propertyMap.Insert("gradient-radius", radius); - propertyMap.Insert("gradient-stop-offset", Vector3(0.1f, 0.3f, 1.1f)); + propertyMap.Insert("gradientUnits", "userSpace"); + propertyMap.Insert("gradientCenter", center); + propertyMap.Insert("gradientRadius", radius); + propertyMap.Insert("gradientStopOffset", Vector3(0.1f, 0.3f, 1.1f)); Property::Array stopColors; stopColors.PushBack( Color::RED ); stopColors.PushBack( Color::BLACK ); stopColors.PushBack( Color::GREEN ); - propertyMap.Insert("gradient-stop-color", stopColors); + propertyMap.Insert("gradientStopColor", stopColors); ControlRenderer gradientRenderer = factory.GetControlRenderer(propertyMap); DALI_TEST_CHECK( gradientRenderer ); @@ -417,27 +417,27 @@ int UtcDaliControlRendererGetPropertyMap4(void) gradientRenderer.CreatePropertyMap( resultMap ); // check the property values from the returned map from control renderer - Property::Value* value = resultMap.Find( "renderer-type", Property::STRING ); + Property::Value* value = resultMap.Find( "rendererType", Property::STRING ); DALI_TEST_CHECK( value ); - DALI_TEST_CHECK( value->Get() == "gradient-renderer" ); + DALI_TEST_CHECK( value->Get() == "gradientRenderer" ); - value = resultMap.Find( "gradient-units", Property::STRING ); + value = resultMap.Find( "gradientUnits", Property::STRING ); DALI_TEST_CHECK( value ); - DALI_TEST_CHECK( value->Get() == "user-space" ); + DALI_TEST_CHECK( value->Get() == "userSpace" ); - value = resultMap.Find( "gradient-spread-method", Property::STRING ); + value = resultMap.Find( "gradientSpreadMethod", Property::STRING ); DALI_TEST_CHECK( value ); DALI_TEST_CHECK( value->Get() == "pad" ); - value = resultMap.Find( "gradient-center", Property::VECTOR2 ); + value = resultMap.Find( "gradientCenter", Property::VECTOR2 ); DALI_TEST_CHECK( value ); DALI_TEST_EQUALS( value->Get(), center , Math::MACHINE_EPSILON_100, TEST_LOCATION ); - value = resultMap.Find( "gradient-radius", Property::FLOAT ); + value = resultMap.Find( "gradientRadius", Property::FLOAT ); DALI_TEST_CHECK( value ); DALI_TEST_EQUALS( value->Get(), radius , Math::MACHINE_EPSILON_100, TEST_LOCATION ); - value = resultMap.Find( "gradient-stop-offset", Property::ARRAY ); + value = resultMap.Find( "gradientStopOffset", Property::ARRAY ); DALI_TEST_CHECK( value ); Property::Array* offsetArray = value->GetArray(); DALI_TEST_CHECK( offsetArray->Count() == 3 ); @@ -446,7 +446,7 @@ int UtcDaliControlRendererGetPropertyMap4(void) // any stop value will be clamped to [0.0, 1.0]; DALI_TEST_EQUALS( offsetArray->GetElementAt(2).Get(), 1.0f , Math::MACHINE_EPSILON_100, TEST_LOCATION ); - value = resultMap.Find( "gradient-stop-color", Property::ARRAY ); + value = resultMap.Find( "gradientStopColor", Property::ARRAY ); DALI_TEST_CHECK( value ); Property::Array* colorArray = value->GetArray(); DALI_TEST_CHECK( colorArray->Count() == 3 ); @@ -464,12 +464,12 @@ int UtcDaliControlRendererGetPropertyMap5(void) RendererFactory factory = RendererFactory::Get(); Property::Map propertyMap; - propertyMap.Insert( "renderer-type", "image-renderer" ); - propertyMap.Insert( "image-url", TEST_IMAGE_FILE_NAME ); - propertyMap.Insert( "image-desired-width", 20 ); - propertyMap.Insert( "image-desired-height", 30 ); - propertyMap.Insert( "image-fitting-mode", "fit-height" ); - propertyMap.Insert( "image-sampling-mode", "box-then-nearest" ); + propertyMap.Insert( "rendererType", "imageRenderer" ); + propertyMap.Insert( "imageUrl", TEST_IMAGE_FILE_NAME ); + propertyMap.Insert( "imageDesiredWidth", 20 ); + propertyMap.Insert( "imageDesiredHeight", 30 ); + propertyMap.Insert( "imageFittingMode", "fitHeight" ); + propertyMap.Insert( "imageSamplingMode", "boxThenNearest" ); ControlRenderer imageRenderer = factory.GetControlRenderer(propertyMap); DALI_TEST_CHECK( imageRenderer ); @@ -478,27 +478,27 @@ int UtcDaliControlRendererGetPropertyMap5(void) imageRenderer.CreatePropertyMap( resultMap ); // check the property values from the returned map from control renderer - Property::Value* value = resultMap.Find( "renderer-type", Property::STRING ); + Property::Value* value = resultMap.Find( "rendererType", Property::STRING ); DALI_TEST_CHECK( value ); - DALI_TEST_CHECK( value->Get() == "image-renderer" ); + DALI_TEST_CHECK( value->Get() == "imageRenderer" ); - value = resultMap.Find( "image-url", Property::STRING ); + value = resultMap.Find( "imageUrl", Property::STRING ); DALI_TEST_CHECK( value ); DALI_TEST_CHECK( value->Get() == TEST_IMAGE_FILE_NAME ); - value = resultMap.Find( "image-fitting-mode", Property::STRING ); + value = resultMap.Find( "imageFittingMode", Property::STRING ); DALI_TEST_CHECK( value ); - DALI_TEST_CHECK( value->Get() == "fit-height" ); + DALI_TEST_CHECK( value->Get() == "fitHeight" ); - value = resultMap.Find( "image-sampling-mode", Property::STRING ); + value = resultMap.Find( "imageSamplingMode", Property::STRING ); DALI_TEST_CHECK( value ); - DALI_TEST_CHECK( value->Get() == "box-then-nearest" ); + DALI_TEST_CHECK( value->Get() == "boxThenNearest" ); - value = resultMap.Find( "image-desired-width", Property::INTEGER ); + value = resultMap.Find( "imageDesiredWidth", Property::INTEGER ); DALI_TEST_CHECK( value ); DALI_TEST_CHECK( value->Get() == 20 ); - value = resultMap.Find( "image-desired-height", Property::INTEGER ); + value = resultMap.Find( "imageDesiredHeight", Property::INTEGER ); DALI_TEST_CHECK( value ); DALI_TEST_CHECK( value->Get() == 30 ); @@ -507,27 +507,27 @@ int UtcDaliControlRendererGetPropertyMap5(void) imageRenderer = factory.GetControlRenderer(image); imageRenderer.CreatePropertyMap( resultMap ); - value = resultMap.Find( "renderer-type", Property::STRING ); + value = resultMap.Find( "rendererType", Property::STRING ); DALI_TEST_CHECK( value ); - DALI_TEST_CHECK( value->Get() == "image-renderer" ); + DALI_TEST_CHECK( value->Get() == "imageRenderer" ); - value = resultMap.Find( "image-url", Property::STRING ); + value = resultMap.Find( "imageUrl", Property::STRING ); DALI_TEST_CHECK( value ); DALI_TEST_CHECK( value->Get() == TEST_IMAGE_FILE_NAME ); - value = resultMap.Find( "image-fitting-mode", Property::STRING ); + value = resultMap.Find( "imageFittingMode", Property::STRING ); DALI_TEST_CHECK( value ); - DALI_TEST_CHECK( value->Get() == "shrink-to-fit" ); + DALI_TEST_CHECK( value->Get() == "shrinkToFit" ); - value = resultMap.Find( "image-sampling-mode", Property::STRING ); + value = resultMap.Find( "imageSamplingMode", Property::STRING ); DALI_TEST_CHECK( value ); DALI_TEST_CHECK( value->Get() == "box" ); - value = resultMap.Find( "image-desired-width", Property::INTEGER ); + value = resultMap.Find( "imageDesiredWidth", Property::INTEGER ); DALI_TEST_CHECK( value ); DALI_TEST_CHECK( value->Get() == 100 ); - value = resultMap.Find( "image-desired-height", Property::INTEGER ); + value = resultMap.Find( "imageDesiredHeight", Property::INTEGER ); DALI_TEST_CHECK( value ); DALI_TEST_CHECK( value->Get() == 200 ); @@ -541,24 +541,24 @@ int UtcDaliControlRendererGetPropertyMap6(void) RendererFactory factory = RendererFactory::Get(); Property::Map propertyMap; - propertyMap.Insert( "renderer-type", "n-patch-renderer" ); - propertyMap.Insert( "image-url", TEST_NPATCH_FILE_NAME ); - propertyMap.Insert( "border-only", true ); + propertyMap.Insert( "rendererType", "nPatchRenderer" ); + propertyMap.Insert( "imageUrl", TEST_NPATCH_FILE_NAME ); + propertyMap.Insert( "borderOnly", true ); ControlRenderer nPatchRenderer = factory.GetControlRenderer( propertyMap ); Property::Map resultMap; nPatchRenderer.CreatePropertyMap( resultMap ); // check the property values from the returned map from control renderer - Property::Value* value = resultMap.Find( "renderer-type", Property::STRING ); + Property::Value* value = resultMap.Find( "rendererType", Property::STRING ); DALI_TEST_CHECK( value ); - DALI_TEST_CHECK( value->Get() == "n-patch-renderer" ); + DALI_TEST_CHECK( value->Get() == "nPatchRenderer" ); - value = resultMap.Find( "image-url", Property::STRING ); + value = resultMap.Find( "imageUrl", Property::STRING ); DALI_TEST_CHECK( value ); DALI_TEST_CHECK( value->Get() == TEST_NPATCH_FILE_NAME ); - value = resultMap.Find( "border-only", Property::BOOLEAN ); + value = resultMap.Find( "borderOnly", Property::BOOLEAN ); DALI_TEST_CHECK( value ); DALI_TEST_CHECK( value->Get() ); diff --git a/automated-tests/src/dali-toolkit/utc-Dali-JsonParser.cpp b/automated-tests/src/dali-toolkit/utc-Dali-JsonParser.cpp index f42e16c..1f2c667 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-JsonParser.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-JsonParser.cpp @@ -332,8 +332,8 @@ int UtcDaliJsonParserMethod04(void) 'actor':'bump-image', \ 'property':'uLightPosition', \ 'value':[0.8, 0.0, -1.5], \ - 'alpha-function': 'BOUNCE', \ - 'time-period': { 'duration': 2.5 } \ + 'alphaFunction': 'BOUNCE', \ + 'timePeriod': { 'duration': 2.5 } \ } \ ] \ } \ @@ -349,7 +349,7 @@ int UtcDaliJsonParserMethod04(void) { \ 'duration': 5.0, \ 'loop': true, \ - 'end-action':'DISCARD' \ + 'endAction':'DISCARD' \ } \ } \ } \ @@ -411,8 +411,8 @@ int UtcDaliJsonParserMethod05(void) 'actor':'bump-image', \ 'property':'uLightPosition', \ 'value':[0.8, 0.0, -1.5], \ - 'alpha-function': 'BOUNCE', \ - 'time-period': { 'duration': 2.5 } \ + 'alphaFunction': 'BOUNCE', \ + 'timePeriod': { 'duration': 2.5 } \ } \ ] \ } \ @@ -699,8 +699,8 @@ int UtcDaliJsonParserMethod11(void) 'actor':'bump-image', \ 'property':'uLightPosition', \ 'value':[0.8, 0.0, -1.5], \ - 'alpha-function': 'BOUNCE', \ - 'time-period': { 'duration': 2.5 } \ + 'alphaFunction': 'BOUNCE', \ + 'timePeriod': { 'duration': 2.5 } \ } \ ] \ } \ diff --git a/automated-tests/src/dali-toolkit/utc-Dali-PageTurnView.cpp b/automated-tests/src/dali-toolkit/utc-Dali-PageTurnView.cpp index f2a631c..42b7939 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-PageTurnView.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-PageTurnView.cpp @@ -416,8 +416,8 @@ int UtcDaliPageTurnViewSetGetProperty(void) Stage::GetCurrent().Add( landscapeView ); - // Test "page-size" property - DALI_TEST_CHECK( landscapeView.GetPropertyIndex("page-size") == PageTurnView::Property::PAGE_SIZE ); + // Test "pageSize" property + DALI_TEST_CHECK( landscapeView.GetPropertyIndex("pageSize") == PageTurnView::Property::PAGE_SIZE ); DALI_TEST_EQUALS( landscapeView.GetProperty(PageTurnView::Property::PAGE_SIZE).Get(), PAGE_SIZE, TEST_LOCATION ); Vector2 newSize( PAGE_SIZE.x*0.75, PAGE_SIZE.y*0.5f ); @@ -431,8 +431,8 @@ int UtcDaliPageTurnViewSetGetProperty(void) Wait( application); DALI_TEST_EQUALS( Vector2(landscapeView.GetTargetSize()), Vector2(newSize.x*3.f, newSize.y*1.5f), TEST_LOCATION); - // Test "current-page-id" property - DALI_TEST_CHECK( landscapeView.GetPropertyIndex("current-page-id") == PageTurnView::Property::CURRENT_PAGE_ID ); + // Test "currentPageId" property + DALI_TEST_CHECK( landscapeView.GetPropertyIndex("currentPageId") == PageTurnView::Property::CURRENT_PAGE_ID ); DALI_TEST_EQUALS( landscapeView.GetProperty(PageTurnView::Property::CURRENT_PAGE_ID).Get(), 0, TEST_LOCATION ); int pageId = static_cast(TOTAL_PAGE_NUMBER)/3; @@ -442,8 +442,8 @@ int UtcDaliPageTurnViewSetGetProperty(void) landscapeView.SetProperty( PageTurnView::Property::CURRENT_PAGE_ID, pageId*2 ); DALI_TEST_EQUALS( landscapeView.GetProperty(PageTurnView::Property::CURRENT_PAGE_ID).Get(), pageId*2, TEST_LOCATION ); - // Test "spin-shadow" property - DALI_TEST_CHECK( landscapeView.GetPropertyIndex( "spine-shadow" ) == PageTurnView::Property::SPINE_SHADOW ); + // Test "spinShadow" property + DALI_TEST_CHECK( landscapeView.GetPropertyIndex( "spineShadow" ) == PageTurnView::Property::SPINE_SHADOW ); landscapeView.SetProperty( PageTurnView::Property::SPINE_SHADOW, SPINE_SHADOW_PARAMETER ); DALI_TEST_EQUALS( landscapeView.GetProperty(PageTurnView::Property::SPINE_SHADOW).Get(), SPINE_SHADOW_PARAMETER, TEST_LOCATION ); diff --git a/automated-tests/src/dali-toolkit/utc-Dali-Popup.cpp b/automated-tests/src/dali-toolkit/utc-Dali-Popup.cpp index 3a8b722..f9fd513 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-Popup.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-Popup.cpp @@ -941,7 +941,7 @@ int UtcDaliPopupPropertyBacking(void) popup.SetProperty( Popup::Property::ANIMATION_DURATION, 0.0f ); Stage::GetCurrent().Add( popup ); - Actor backing = popup.FindChildByName( "popup-backing" ); + Actor backing = popup.FindChildByName( "popupBacking" ); DALI_TEST_CHECK( backing ); DALI_TEST_EQUALS( backing.GetCurrentOpacity(), 1.0f, Math::MACHINE_EPSILON_0, TEST_LOCATION ); @@ -1022,35 +1022,35 @@ int UtcDaliPopupPropertyCustomAnimation(void) popup.SetProperty( Popup::Property::ANIMATION_DURATION, 1.0f ); popup.SetProperty( Popup::Property::ANIMATION_MODE, "CUSTOM" ); - Actor popupContainer = popup.FindChildByName( "popup-container" ); + Actor popupContainer = popup.FindChildByName( "popupContainer" ); DALI_TEST_CHECK( popupContainer ); Vector3 entryAnimationDestination( 300.0f, 200.0f, 0.0f ); Vector3 exitAnimationDestination( -300.0f, -200.0f, 0.0f ); Property::Map animationMapEntry; - animationMapEntry.Insert( "actor", "custom-animation-popup" ); + animationMapEntry.Insert( "actor", "customAnimationPopup" ); animationMapEntry.Insert( "property", "position" ); animationMapEntry.Insert( "value", entryAnimationDestination ); - animationMapEntry.Insert( "alpha-function", "EASE_OUT" ); + animationMapEntry.Insert( "alphaFunction", "EASE_OUT" ); Property::Array timePeriodMapEntry; timePeriodMapEntry.PushBack( 0.0f ); timePeriodMapEntry.PushBack( 1.0f ); - animationMapEntry.Insert( "time-period", timePeriodMapEntry ); + animationMapEntry.Insert( "timePeriod", timePeriodMapEntry ); Property::Map animationMapExit; - animationMapExit.Insert( "actor", "custom-animation-popup" ); + animationMapExit.Insert( "actor", "customAnimationPopup" ); animationMapExit.Insert( "property", "position" ); animationMapExit.Insert( "value", exitAnimationDestination ); - animationMapExit.Insert( "alpha-function", "EASE_IN" ); + animationMapExit.Insert( "alphaFunction", "EASE_IN" ); Property::Array timePeriodMapExit; timePeriodMapExit.PushBack( 0.0f ); timePeriodMapExit.PushBack( 1.0f ); - animationMapExit.Insert( "time-period", timePeriodMapExit ); + animationMapExit.Insert( "timePeriod", timePeriodMapExit ); popup.SetProperty( Toolkit::Popup::Property::ENTRY_ANIMATION, animationMapEntry ); popup.SetProperty( Toolkit::Popup::Property::EXIT_ANIMATION, animationMapExit ); @@ -1217,7 +1217,7 @@ int UtcDaliPopupPropertyTail(void) popup.SetDisplayState( Popup::SHOWN ); application.SendNotification(); application.Render(); - tailActor = popup.FindChildByName( "tail-image" ); + tailActor = popup.FindChildByName( "tailImage" ); DALI_TEST_CHECK( tailActor ); float baseValX = tailActor.GetCurrentWorldPosition().x; @@ -1234,7 +1234,7 @@ int UtcDaliPopupPropertyTail(void) popup.SetDisplayState( Popup::SHOWN ); application.SendNotification(); application.Render(); - tailActor = popup.FindChildByName( "tail-image" ); + tailActor = popup.FindChildByName( "tailImage" ); DALI_TEST_CHECK( tailActor ); float baseValY = tailActor.GetCurrentWorldPosition().y; @@ -1250,7 +1250,7 @@ int UtcDaliPopupPropertyTail(void) popup.SetDisplayState( Popup::SHOWN ); application.SendNotification(); application.Render(); - tailActor = popup.FindChildByName( "tail-image" ); + tailActor = popup.FindChildByName( "tailImage" ); DALI_TEST_CHECK( tailActor ); DALI_TEST_EQUALS( tailActor.GetCurrentWorldPosition().x, baseValX, TEST_LOCATION ); DALI_TEST_GREATER( tailActor.GetCurrentWorldPosition().y, baseValY, TEST_LOCATION ); @@ -1265,7 +1265,7 @@ int UtcDaliPopupPropertyTail(void) popup.SetDisplayState( Popup::SHOWN ); application.SendNotification(); application.Render(); - tailActor = popup.FindChildByName( "tail-image" ); + tailActor = popup.FindChildByName( "tailImage" ); DALI_TEST_CHECK( tailActor ); DALI_TEST_GREATER( tailActor.GetCurrentWorldPosition().x, baseValX, TEST_LOCATION ); DALI_TEST_EQUALS( tailActor.GetCurrentWorldPosition().y, baseValY, TEST_LOCATION ); @@ -1282,7 +1282,7 @@ int UtcDaliPopupTypeToast(void) ToolkitTestApplication application; tet_infoline( " UtcDaliPopupTypeToast" ); - TypeInfo typeInfo = TypeRegistry::Get().GetTypeInfo( "popup-toast" ); + TypeInfo typeInfo = TypeRegistry::Get().GetTypeInfo( "PopupToast" ); DALI_TEST_CHECK( typeInfo ) BaseHandle baseHandle = typeInfo.CreateInstance(); @@ -1365,7 +1365,7 @@ int UtcDaliPopupPropertyTypeRegistryConnectSignal(void) TestConnectionTrackerObject* testTracker = new TestConnectionTrackerObject(); // Note: The emmision of this signals has already been tested in other tests. - DALI_TEST_CHECK( popup.ConnectSignal( testTracker, "touched-outside", PopupTestFunctor() ) ); + DALI_TEST_CHECK( popup.ConnectSignal( testTracker, "touchedOutside", PopupTestFunctor() ) ); DALI_TEST_CHECK( popup.ConnectSignal( testTracker, "showing", PopupTestFunctor() ) ); DALI_TEST_CHECK( popup.ConnectSignal( testTracker, "shown", PopupTestFunctor() ) ); DALI_TEST_CHECK( popup.ConnectSignal( testTracker, "hiding", PopupTestFunctor() ) ); diff --git a/automated-tests/src/dali-toolkit/utc-Dali-RendererFactory.cpp b/automated-tests/src/dali-toolkit/utc-Dali-RendererFactory.cpp index a3d65a7..d052c63 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-RendererFactory.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-RendererFactory.cpp @@ -275,8 +275,8 @@ int UtcDaliRendererFactoryGetColorRenderer1(void) Property::Map propertyMap; Vector4 testColor( 1.f, 0.5f, 0.3f, 0.2f ); - propertyMap.Insert("renderer-type", "color-renderer"); - propertyMap.Insert("blend-color", testColor); + propertyMap.Insert("rendererType", "colorRenderer"); + propertyMap.Insert("blendColor", testColor); ControlRenderer controlRenderer = factory.GetControlRenderer(propertyMap); DALI_TEST_CHECK( controlRenderer ); @@ -329,9 +329,9 @@ int UtcDaliRendererFactoryGetBorderRenderer1(void) Property::Map propertyMap; Vector4 testColor( 1.f, 0.5f, 0.3f, 0.2f ); float testSize = 5.f; - propertyMap.Insert("renderer-type", "border-renderer"); - propertyMap.Insert("border-color", testColor); - propertyMap.Insert("border-size", testSize); + propertyMap.Insert("rendererType", "borderRenderer"); + propertyMap.Insert("borderColor", testColor); + propertyMap.Insert("borderSize", testSize); ControlRenderer controlRenderer = factory.GetControlRenderer(propertyMap); DALI_TEST_CHECK( controlRenderer ); @@ -411,23 +411,23 @@ int UtcDaliRendererFactoryGetLinearGradientRenderer(void) DALI_TEST_CHECK( factory ); Property::Map propertyMap; - propertyMap.Insert("renderer-type", "gradient-renderer"); + propertyMap.Insert("rendererType", "gradientRenderer"); Vector2 start(-1.f, -1.f); Vector2 end(1.f, 1.f); - propertyMap.Insert("gradient-start-position", start); - propertyMap.Insert("gradient-end-position", end); - propertyMap.Insert("gradient-spread-method", "repeat"); + propertyMap.Insert("gradientStartPosition", start); + propertyMap.Insert("gradientEndPosition", end); + propertyMap.Insert("gradientSpreadMethod", "repeat"); Property::Array stopOffsets; stopOffsets.PushBack( 0.2f ); stopOffsets.PushBack( 0.8f ); - propertyMap.Insert("gradient-stop-offset", stopOffsets); + propertyMap.Insert("gradientStopOffset", stopOffsets); Property::Array stopColors; stopColors.PushBack( Color::RED ); stopColors.PushBack( Color::GREEN ); - propertyMap.Insert("gradient-stop-color", stopColors); + propertyMap.Insert("gradientStopColor", stopColors); ControlRenderer controlRenderer = factory.GetControlRenderer(propertyMap); DALI_TEST_CHECK( controlRenderer ); @@ -451,23 +451,23 @@ int UtcDaliRendererFactoryGetRadialGradientRenderer(void) DALI_TEST_CHECK( factory ); Property::Map propertyMap; - propertyMap.Insert("renderer-type", "gradient-renderer"); + propertyMap.Insert("rendererType", "gradientRenderer"); Vector2 center(100.f, 100.f); float radius = 100.f; - propertyMap.Insert("gradient-units", "user-space"); - propertyMap.Insert("gradient-center", center); - propertyMap.Insert("gradient-radius", radius); + propertyMap.Insert("gradientUnits", "userSpace"); + propertyMap.Insert("gradientCenter", center); + propertyMap.Insert("gradientRadius", radius); Property::Array stopOffsets; stopOffsets.PushBack( 0.0f ); stopOffsets.PushBack( 1.f ); - propertyMap.Insert("gradient-stop-offset", stopOffsets); + propertyMap.Insert("gradientStopOffset", stopOffsets); Property::Array stopColors; stopColors.PushBack( Color::RED ); stopColors.PushBack( Color::GREEN ); - propertyMap.Insert("gradient-stop-color", stopColors); + propertyMap.Insert("gradientStopColor", stopColors); ControlRenderer controlRenderer = factory.GetControlRenderer(propertyMap); DALI_TEST_CHECK( controlRenderer ); @@ -496,8 +496,8 @@ int UtcDaliRendererFactoryGetImageRenderer1(void) DALI_TEST_CHECK( factory ); Property::Map propertyMap; - propertyMap.Insert( "renderer-type", "image-renderer" ); - propertyMap.Insert( "image-url", TEST_IMAGE_FILE_NAME ); + propertyMap.Insert( "rendererType", "imageRenderer" ); + propertyMap.Insert( "imageUrl", TEST_IMAGE_FILE_NAME ); ControlRenderer controlRenderer = factory.GetControlRenderer( propertyMap ); DALI_TEST_CHECK( controlRenderer ); @@ -555,8 +555,8 @@ int UtcDaliRendererFactoryGetNPatchRenderer1(void) Integration::ResourcePointer ninePatchResource = CustomizeNinePatch( application, ninePatchImageWidth, ninePatchImageHeight, stretchRangesX, stretchRangesY ); Property::Map propertyMap; - propertyMap.Insert( "renderer-type", "n-patch-renderer" ); - propertyMap.Insert( "image-url", TEST_NPATCH_FILE_NAME ); + propertyMap.Insert( "rendererType", "nPatchRenderer" ); + propertyMap.Insert( "imageUrl", TEST_NPATCH_FILE_NAME ); { tet_infoline( "whole grid" ); ControlRenderer controlRenderer = factory.GetControlRenderer( propertyMap ); @@ -571,7 +571,7 @@ int UtcDaliRendererFactoryGetNPatchRenderer1(void) DALI_TEST_EQUALS( textureUnit, 0, TEST_LOCATION ); } - propertyMap.Insert( "border-only", true ); + propertyMap.Insert( "borderOnly", true ); { tet_infoline( "border only" ); ControlRenderer controlRenderer = factory.GetControlRenderer( propertyMap ); @@ -611,8 +611,8 @@ int UtcDaliRendererFactoryGetNPatchRenderer2(void) Integration::ResourcePointer ninePatchResource = CustomizeNinePatch( application, ninePatchImageWidth, ninePatchImageHeight, stretchRangesX, stretchRangesY ); Property::Map propertyMap; - propertyMap.Insert( "renderer-type", "n-patch-renderer" ); - propertyMap.Insert( "image-url", TEST_NPATCH_FILE_NAME ); + propertyMap.Insert( "rendererType", "nPatchRenderer" ); + propertyMap.Insert( "imageUrl", TEST_NPATCH_FILE_NAME ); { ControlRenderer controlRenderer = factory.GetControlRenderer( propertyMap ); DALI_TEST_CHECK( controlRenderer ); @@ -629,7 +629,7 @@ int UtcDaliRendererFactoryGetNPatchRenderer2(void) DALI_TEST_CHECK( actor.GetRendererCount() == 0u ); } - propertyMap.Insert( "border-only", true ); + propertyMap.Insert( "borderOnly", true ); { tet_infoline( "border only" ); ControlRenderer controlRenderer = factory.GetControlRenderer( propertyMap ); @@ -751,8 +751,8 @@ int UtcDaliRendererFactoryGetNPatchRendererN2(void) DALI_TEST_CHECK( factory ); Property::Map propertyMap; - propertyMap.Insert( "renderer-type", "n-patch-renderer" ); - propertyMap.Insert( "image-url", 111 ); + propertyMap.Insert( "rendererType", "nPatchRenderer" ); + propertyMap.Insert( "imageUrl", 111 ); ControlRenderer controlRenderer = factory.GetControlRenderer( propertyMap ); DALI_TEST_CHECK( controlRenderer ); diff --git a/automated-tests/src/dali-toolkit/utc-Dali-ScrollBar.cpp b/automated-tests/src/dali-toolkit/utc-Dali-ScrollBar.cpp index a56ca7c..ff4f5b9 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-ScrollBar.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-ScrollBar.cpp @@ -265,15 +265,15 @@ int UtcDaliToolkitScrollBarSetScrollPropertySourceP(void) Stage::GetCurrent().Add( sourceActor ); // Register the scroll properties - Property::Index propertyScrollPosition = sourceActor.RegisterProperty( "source-position", 0.0f ); - Property::Index propertyMinScrollPosition = sourceActor.RegisterProperty( "source-position-min", 0.0f ); - Property::Index propertyMaxScrollPosition = sourceActor.RegisterProperty( "source-position-max", 100.0f ); - Property::Index propertyScrollContentSize = sourceActor.RegisterProperty( "source-content-size", 500.0f ); + Property::Index propertyScrollPosition = sourceActor.RegisterProperty( "sourcePosition", 0.0f ); + Property::Index propertyMinScrollPosition = sourceActor.RegisterProperty( "sourcePositionMin", 0.0f ); + Property::Index propertyMaxScrollPosition = sourceActor.RegisterProperty( "sourcePositionMax", 100.0f ); + Property::Index propertyScrollContentSize = sourceActor.RegisterProperty( "sourceContentSize", 500.0f ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position" ), propertyScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position-min" ), propertyMinScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position-max" ), propertyMaxScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-content-size" ), propertyScrollContentSize, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePosition" ), propertyScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePositionMin" ), propertyMinScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePositionMax" ), propertyMaxScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourceContentSize" ), propertyScrollContentSize, TEST_LOCATION ); // Set the source of the scroll position properties. scrollBar.SetScrollPropertySource(sourceActor, propertyScrollPosition, propertyMinScrollPosition, propertyMaxScrollPosition, propertyScrollContentSize); @@ -343,15 +343,15 @@ int UtcDaliToolkitScrollBarSetScrollPropertySourceP(void) Stage::GetCurrent().Add( newSourceActor ); // Register the scroll properties - Property::Index newPropertyScrollPosition = newSourceActor.RegisterProperty( "source-position", 0.0f ); - Property::Index newPropertyMinScrollPosition = newSourceActor.RegisterProperty( "source-position-min", 0.0f ); - Property::Index newPropertyMaxScrollPosition = newSourceActor.RegisterProperty( "source-position-max", 200.0f ); - Property::Index newPropertyScrollContentSize = newSourceActor.RegisterProperty( "source-content-size", 400.0f ); + Property::Index newPropertyScrollPosition = newSourceActor.RegisterProperty( "sourcePosition", 0.0f ); + Property::Index newPropertyMinScrollPosition = newSourceActor.RegisterProperty( "sourcePositionMin", 0.0f ); + Property::Index newPropertyMaxScrollPosition = newSourceActor.RegisterProperty( "sourcePositionMax", 200.0f ); + Property::Index newPropertyScrollContentSize = newSourceActor.RegisterProperty( "sourceContentSize", 400.0f ); - DALI_TEST_EQUALS( newSourceActor.GetPropertyIndex( "source-position" ), newPropertyScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( newSourceActor.GetPropertyIndex( "source-position-min" ), newPropertyMinScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( newSourceActor.GetPropertyIndex( "source-position-max" ), newPropertyMaxScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( newSourceActor.GetPropertyIndex( "source-content-size" ), newPropertyScrollContentSize, TEST_LOCATION ); + DALI_TEST_EQUALS( newSourceActor.GetPropertyIndex( "sourcePosition" ), newPropertyScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( newSourceActor.GetPropertyIndex( "sourcePositionMin" ), newPropertyMinScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( newSourceActor.GetPropertyIndex( "sourcePositionMax" ), newPropertyMaxScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( newSourceActor.GetPropertyIndex( "sourceContentSize" ), newPropertyScrollContentSize, TEST_LOCATION ); // Change the source of the scroll position properties to be the new source actor. scrollBar.SetScrollPropertySource(newSourceActor, newPropertyScrollPosition, newPropertyMinScrollPosition, newPropertyMaxScrollPosition, newPropertyScrollContentSize); @@ -513,15 +513,15 @@ int UtcDaliToolkitScrollBarSetScrollPositionIntervalsP(void) Stage::GetCurrent().Add( sourceActor ); // Register the scroll properties - Property::Index propertyScrollPosition = sourceActor.RegisterProperty( "source-position", 0.0f ); - Property::Index propertyMinScrollPosition = sourceActor.RegisterProperty( "source-position-min", 0.0f ); - Property::Index propertyMaxScrollPosition = sourceActor.RegisterProperty( "source-position-max", 800.0f ); - Property::Index propertyScrollContentSize = sourceActor.RegisterProperty( "source-content-size", 2000.0f ); + Property::Index propertyScrollPosition = sourceActor.RegisterProperty( "sourcePosition", 0.0f ); + Property::Index propertyMinScrollPosition = sourceActor.RegisterProperty( "sourcePositionMin", 0.0f ); + Property::Index propertyMaxScrollPosition = sourceActor.RegisterProperty( "sourcePositionMax", 800.0f ); + Property::Index propertyScrollContentSize = sourceActor.RegisterProperty( "sourceContentSize", 2000.0f ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position" ), propertyScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position-min" ), propertyMinScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position-max" ), propertyMaxScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-content-size" ), propertyScrollContentSize, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePosition" ), propertyScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePositionMin" ), propertyMinScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePositionMax" ), propertyMaxScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourceContentSize" ), propertyScrollContentSize, TEST_LOCATION ); // Set the source of the scroll position properties. scrollBar.SetScrollPropertySource(sourceActor, propertyScrollPosition, propertyMinScrollPosition, propertyMaxScrollPosition, propertyScrollContentSize); @@ -675,15 +675,15 @@ int UtcDaliToolkitScrollBarSetIndicatorHeightPolicyP(void) Stage::GetCurrent().Add( sourceActor ); // Register the scroll properties - Property::Index propertyScrollPosition = sourceActor.RegisterProperty( "source-position", 0.0f ); - Property::Index propertyMinScrollPosition = sourceActor.RegisterProperty( "source-position-min", 0.0f ); - Property::Index propertyMaxScrollPosition = sourceActor.RegisterProperty( "source-position-max", 100.0f ); - Property::Index propertyScrollContentSize = sourceActor.RegisterProperty( "source-content-size", 500.0f ); + Property::Index propertyScrollPosition = sourceActor.RegisterProperty( "sourcePosition", 0.0f ); + Property::Index propertyMinScrollPosition = sourceActor.RegisterProperty( "sourcePositionMin", 0.0f ); + Property::Index propertyMaxScrollPosition = sourceActor.RegisterProperty( "sourcePositionMax", 100.0f ); + Property::Index propertyScrollContentSize = sourceActor.RegisterProperty( "sourceContentSize", 500.0f ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position" ), propertyScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position-min" ), propertyMinScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position-max" ), propertyMaxScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-content-size" ), propertyScrollContentSize, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePosition" ), propertyScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePositionMin" ), propertyMinScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePositionMax" ), propertyMaxScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourceContentSize" ), propertyScrollContentSize, TEST_LOCATION ); // Set the source of the scroll position properties. scrollBar.SetScrollPropertySource(sourceActor, propertyScrollPosition, propertyMinScrollPosition, propertyMaxScrollPosition, propertyScrollContentSize); @@ -1355,15 +1355,15 @@ int UtcDaliToolkitScrollBarPanFinishedSignalP(void) Stage::GetCurrent().Add( sourceActor ); // Register the scroll properties - Property::Index propertyScrollPosition = sourceActor.RegisterProperty( "source-position", 0.0f ); - Property::Index propertyMinScrollPosition = sourceActor.RegisterProperty( "source-position-min", 0.0f ); - Property::Index propertyMaxScrollPosition = sourceActor.RegisterProperty( "source-position-max", 100.0f ); - Property::Index propertyScrollContentSize = sourceActor.RegisterProperty( "source-content-size", 500.0f ); + Property::Index propertyScrollPosition = sourceActor.RegisterProperty( "sourcePosition", 0.0f ); + Property::Index propertyMinScrollPosition = sourceActor.RegisterProperty( "sourcePositionMin", 0.0f ); + Property::Index propertyMaxScrollPosition = sourceActor.RegisterProperty( "sourcePositionMax", 100.0f ); + Property::Index propertyScrollContentSize = sourceActor.RegisterProperty( "sourceContentSize", 500.0f ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position" ), propertyScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position-min" ), propertyMinScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position-max" ), propertyMaxScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-content-size" ), propertyScrollContentSize, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePosition" ), propertyScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePositionMin" ), propertyMinScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePositionMax" ), propertyMaxScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourceContentSize" ), propertyScrollContentSize, TEST_LOCATION ); // Set the source of the scroll position properties. scrollBar.SetScrollPropertySource(sourceActor, propertyScrollPosition, propertyMinScrollPosition, propertyMaxScrollPosition, propertyScrollContentSize); @@ -1413,15 +1413,15 @@ int UtcDaliToolkitScrollBarPanFinishedSignalN(void) Stage::GetCurrent().Add( sourceActor ); // Register the scroll properties - Property::Index propertyScrollPosition = sourceActor.RegisterProperty( "source-position", 0.0f ); - Property::Index propertyMinScrollPosition = sourceActor.RegisterProperty( "source-position-min", 0.0f ); - Property::Index propertyMaxScrollPosition = sourceActor.RegisterProperty( "source-position-max", 100.0f ); - Property::Index propertyScrollContentSize = sourceActor.RegisterProperty( "source-content-size", 500.0f ); + Property::Index propertyScrollPosition = sourceActor.RegisterProperty( "sourcePosition", 0.0f ); + Property::Index propertyMinScrollPosition = sourceActor.RegisterProperty( "sourcePositionMin", 0.0f ); + Property::Index propertyMaxScrollPosition = sourceActor.RegisterProperty( "sourcePositionMax", 100.0f ); + Property::Index propertyScrollContentSize = sourceActor.RegisterProperty( "sourceContentSize", 500.0f ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position" ), propertyScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position-min" ), propertyMinScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position-max" ), propertyMaxScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-content-size" ), propertyScrollContentSize, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePosition" ), propertyScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePositionMin" ), propertyMinScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePositionMax" ), propertyMaxScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourceContentSize" ), propertyScrollContentSize, TEST_LOCATION ); // Set the source of the scroll position properties. scrollBar.SetScrollPropertySource(sourceActor, propertyScrollPosition, propertyMinScrollPosition, propertyMaxScrollPosition, propertyScrollContentSize); @@ -1467,15 +1467,15 @@ int UtcDaliToolkitScrollBarScrollPositionIntervalReachedSignalP(void) Stage::GetCurrent().Add( sourceActor ); // Register the scroll properties - Property::Index propertyScrollPosition = sourceActor.RegisterProperty( "source-position", 0.0f ); - Property::Index propertyMinScrollPosition = sourceActor.RegisterProperty( "source-position-min", 0.0f ); - Property::Index propertyMaxScrollPosition = sourceActor.RegisterProperty( "source-position-max", 800.0f ); - Property::Index propertyScrollContentSize = sourceActor.RegisterProperty( "source-content-size", 2000.0f ); + Property::Index propertyScrollPosition = sourceActor.RegisterProperty( "sourcePosition", 0.0f ); + Property::Index propertyMinScrollPosition = sourceActor.RegisterProperty( "sourcePositionMin", 0.0f ); + Property::Index propertyMaxScrollPosition = sourceActor.RegisterProperty( "sourcePositionMax", 800.0f ); + Property::Index propertyScrollContentSize = sourceActor.RegisterProperty( "sourceContentSize", 2000.0f ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position" ), propertyScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position-min" ), propertyMinScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position-max" ), propertyMaxScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-content-size" ), propertyScrollContentSize, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePosition" ), propertyScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePositionMin" ), propertyMinScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePositionMax" ), propertyMaxScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourceContentSize" ), propertyScrollContentSize, TEST_LOCATION ); // Set the source of the scroll position properties. scrollBar.SetScrollPropertySource(sourceActor, propertyScrollPosition, propertyMinScrollPosition, propertyMaxScrollPosition, propertyScrollContentSize); @@ -1575,15 +1575,15 @@ int UtcDaliToolkitScrollBarScrollPositionIntervalReachedSignalN(void) Stage::GetCurrent().Add( sourceActor ); // Register the scroll properties - Property::Index propertyScrollPosition = sourceActor.RegisterProperty( "source-position", 0.0f ); - Property::Index propertyMinScrollPosition = sourceActor.RegisterProperty( "source-position-min", 0.0f ); - Property::Index propertyMaxScrollPosition = sourceActor.RegisterProperty( "source-position-max", 800.0f ); - Property::Index propertyScrollContentSize = sourceActor.RegisterProperty( "source-content-size", 2000.0f ); - - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position" ), propertyScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position-min" ), propertyMinScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-position-max" ), propertyMaxScrollPosition, TEST_LOCATION ); - DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "source-content-size" ), propertyScrollContentSize, TEST_LOCATION ); + Property::Index propertyScrollPosition = sourceActor.RegisterProperty( "sourcePosition", 0.0f ); + Property::Index propertyMinScrollPosition = sourceActor.RegisterProperty( "sourcePositionMin", 0.0f ); + Property::Index propertyMaxScrollPosition = sourceActor.RegisterProperty( "sourcePositionMax", 800.0f ); + Property::Index propertyScrollContentSize = sourceActor.RegisterProperty( "sourceContentSize", 2000.0f ); + + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePosition" ), propertyScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePositionMin" ), propertyMinScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourcePositionMax" ), propertyMaxScrollPosition, TEST_LOCATION ); + DALI_TEST_EQUALS( sourceActor.GetPropertyIndex( "sourceContentSize" ), propertyScrollContentSize, TEST_LOCATION ); // Set the source of the scroll position properties. scrollBar.SetScrollPropertySource(sourceActor, propertyScrollPosition, propertyMinScrollPosition, propertyMaxScrollPosition, propertyScrollContentSize); diff --git a/automated-tests/src/dali-toolkit/utc-Dali-ShaderEffects.cpp b/automated-tests/src/dali-toolkit/utc-Dali-ShaderEffects.cpp index fde3088..96ffb55 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-ShaderEffects.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-ShaderEffects.cpp @@ -136,28 +136,28 @@ int UtcDaliCreateDissolveEffect( bool highPrecision ) Property::Map customShader; DALI_TEST_CHECK( customShaderValue->Get( customShader ) ); - Property::Value* vertexShaderValue = customShader.Find( "vertex-shader" ); + Property::Value* vertexShaderValue = customShader.Find( "vertexShader" ); DALI_TEST_CHECK( vertexShaderValue ); std::string vertexShader; DALI_TEST_CHECK( vertexShaderValue->Get( vertexShader ) ); DALI_TEST_CHECK( !vertexShader.empty() ); - Property::Value* fragmentShaderValue = customShader.Find( "fragment-shader" ); + Property::Value* fragmentShaderValue = customShader.Find( "fragmentShader" ); DALI_TEST_CHECK( fragmentShaderValue ); std::string fragmentShader; DALI_TEST_CHECK( fragmentShaderValue->Get( fragmentShader ) ); DALI_TEST_CHECK( !fragmentShader.empty() ); - Property::Value* gridXValue = customShader.Find( "subdivide-grid-x" ); + Property::Value* gridXValue = customShader.Find( "subdivideGridX" ); DALI_TEST_CHECK( gridXValue ); int gridX = 0; DALI_TEST_CHECK( gridXValue->Get( gridX ) ); DALI_TEST_CHECK( gridX > 1 ); - Property::Value* gridYValue = customShader.Find( "subdivide-grid-y" ); + Property::Value* gridYValue = customShader.Find( "subdivideGridY" ); DALI_TEST_CHECK( gridYValue ); int gridY = 0; @@ -169,7 +169,7 @@ int UtcDaliCreateDissolveEffect( bool highPrecision ) std::string hints; DALI_TEST_CHECK( hintsValue->Get( hints ) ); - DALI_TEST_CHECK( hints == "output-is-transparent" ); + DALI_TEST_CHECK( hints == "outputIsTransparent" ); Actor actor = Actor::New(); Toolkit::DissolveEffectSetCentralLine( actor, Vector2::ONE, Vector2::ONE, 0.0f ); @@ -211,17 +211,17 @@ int UtcDaliCreateDissolveEffect(void) Property::Map customShader; DALI_TEST_CHECK( customShaderValue->Get( customShader ) ); - Property::Value* vertexShaderValue = customShader.Find( "vertex-shader" ); + Property::Value* vertexShaderValue = customShader.Find( "vertexShader" ); DALI_TEST_CHECK( !vertexShaderValue ); - Property::Value* fragmentShaderValue = customShader.Find( "fragment-shader" ); + Property::Value* fragmentShaderValue = customShader.Find( "fragmentShader" ); DALI_TEST_CHECK( fragmentShaderValue ); std::string fragmentShader; DALI_TEST_CHECK( fragmentShaderValue->Get( fragmentShader ) ); DALI_TEST_CHECK( !fragmentShader.empty() ); - Property::Value* gridXValue = customShader.Find( "subdivide-grid-x" ); + Property::Value* gridXValue = customShader.Find( "subdivideGridX" ); DALI_TEST_CHECK( !gridXValue ); Property::Value* hintsValue = customShader.Find( "hints" ); @@ -229,7 +229,7 @@ int UtcDaliCreateDissolveEffect(void) std::string hints; DALI_TEST_CHECK( hintsValue->Get( hints ) ); - DALI_TEST_CHECK( hints == "output-is-transparent" ); + DALI_TEST_CHECK( hints == "outputIsTransparent" ); END_TEST; } @@ -289,28 +289,28 @@ int UtcDaliCreateMotionBlurEffect(void) Property::Map customShader; DALI_TEST_CHECK( customShaderValue->Get( customShader ) ); - Property::Value* vertexShaderValue = customShader.Find( "vertex-shader" ); + Property::Value* vertexShaderValue = customShader.Find( "vertexShader" ); DALI_TEST_CHECK( vertexShaderValue ); std::string vertexShader; DALI_TEST_CHECK( vertexShaderValue->Get( vertexShader ) ); DALI_TEST_CHECK( !vertexShader.empty() ); - Property::Value* fragmentShaderValue = customShader.Find( "fragment-shader" ); + Property::Value* fragmentShaderValue = customShader.Find( "fragmentShader" ); DALI_TEST_CHECK( fragmentShaderValue ); std::string fragmentShader; DALI_TEST_CHECK( fragmentShaderValue->Get( fragmentShader ) ); DALI_TEST_CHECK( !fragmentShader.empty() ); - Property::Value* gridXValue = customShader.Find( "subdivide-grid-x" ); + Property::Value* gridXValue = customShader.Find( "subdivideGridX" ); DALI_TEST_CHECK( gridXValue ); int gridX = 0; DALI_TEST_CHECK( gridXValue->Get( gridX ) ); DALI_TEST_CHECK( gridX > 1 ); - Property::Value* gridYValue = customShader.Find( "subdivide-grid-y" ); + Property::Value* gridYValue = customShader.Find( "subdivideGridY" ); DALI_TEST_CHECK( gridYValue ); int gridY = 0; @@ -322,7 +322,7 @@ int UtcDaliCreateMotionBlurEffect(void) std::string hints; DALI_TEST_CHECK( hintsValue->Get( hints ) ); - DALI_TEST_CHECK( hints == "output-is-transparent" ); + DALI_TEST_CHECK( hints == "outputIsTransparent" ); unsigned int sampleCount( 4 ); Actor actor = Actor::New(); @@ -352,28 +352,28 @@ int UtcDaliCreateMotionStretchEffect(void) Property::Map customShader; DALI_TEST_CHECK( customShaderValue->Get( customShader ) ); - Property::Value* vertexShaderValue = customShader.Find( "vertex-shader" ); + Property::Value* vertexShaderValue = customShader.Find( "vertexShader" ); DALI_TEST_CHECK( vertexShaderValue ); std::string vertexShader; DALI_TEST_CHECK( vertexShaderValue->Get( vertexShader ) ); DALI_TEST_CHECK( !vertexShader.empty() ); - Property::Value* fragmentShaderValue = customShader.Find( "fragment-shader" ); + Property::Value* fragmentShaderValue = customShader.Find( "fragmentShader" ); DALI_TEST_CHECK( fragmentShaderValue ); std::string fragmentShader; DALI_TEST_CHECK( fragmentShaderValue->Get( fragmentShader ) ); DALI_TEST_CHECK( !fragmentShader.empty() ); - Property::Value* gridXValue = customShader.Find( "subdivide-grid-x" ); + Property::Value* gridXValue = customShader.Find( "subdivideGridX" ); DALI_TEST_CHECK( gridXValue ); int gridX = 0; DALI_TEST_CHECK( gridXValue->Get( gridX ) ); DALI_TEST_CHECK( gridX > 1 ); - Property::Value* gridYValue = customShader.Find( "subdivide-grid-y" ); + Property::Value* gridYValue = customShader.Find( "subdivideGridY" ); DALI_TEST_CHECK( gridYValue ); int gridY = 0; @@ -385,7 +385,7 @@ int UtcDaliCreateMotionStretchEffect(void) std::string hints; DALI_TEST_CHECK( hintsValue->Get( hints ) ); - DALI_TEST_CHECK( hints == "output-is-transparent" ); + DALI_TEST_CHECK( hints == "outputIsTransparent" ); Actor actor = Actor::New(); Toolkit::SetMotionStretchProperties( actor ); diff --git a/automated-tests/src/dali-toolkit/utc-Dali-TableView.cpp b/automated-tests/src/dali-toolkit/utc-Dali-TableView.cpp index 14d183b..708fa3c 100644 --- a/automated-tests/src/dali-toolkit/utc-Dali-TableView.cpp +++ b/automated-tests/src/dali-toolkit/utc-Dali-TableView.cpp @@ -39,9 +39,9 @@ namespace const char* const PROPERTY_NAME_ROWS = "rows"; const char* const PROPERTY_NAME_COLUMNS = "columns"; -const char* const PROPERTY_NAME_CELL_PADDING = "cell-padding"; -const char* const PROPERTY_NAME_LAYOUT_ROWS = "layout-rows"; -const char* const PROPERTY_NAME_LAYOUT_COLUMNS = "layout-columns"; +const char* const PROPERTY_NAME_CELL_PADDING = "cellPadding"; +const char* const PROPERTY_NAME_LAYOUT_ROWS = "layoutRows"; +const char* const PROPERTY_NAME_LAYOUT_COLUMNS = "layoutColumns"; const Vector2 CELL_SIZE( 10, 10 ); static bool gObjectCreatedCallBackCalled; @@ -608,7 +608,7 @@ int UtcDaliTableViewSetGetProperty(void) DALI_TEST_CHECK( tableView.GetColumns() == 5u ); DALI_TEST_CHECK( tableView.GetProperty(TableView::Property::COLUMNS).Get() == 5 ); - // Test "cell-padding" property + // Test "cellPadding" property DALI_TEST_CHECK( tableView.GetPropertyIndex( PROPERTY_NAME_CELL_PADDING ) == TableView::Property::CELL_PADDING ); tableView.SetProperty( TableView::Property::CELL_PADDING, Size( 6.f, 8.f ) ); @@ -625,11 +625,11 @@ int UtcDaliTableViewSetGetProperty(void) item2[ "policy" ] = "relative"; item2[ "value" ] = 0.2f; - // Test "layout-rows" property + // Test "layoutRows" property DALI_TEST_CHECK( tableView.GetPropertyIndex(PROPERTY_NAME_LAYOUT_ROWS) == TableView::Property::LAYOUT_ROWS ); /* - * "layout-rows": + * "layoutRows": * { * "1": { "policy": "fixed", "value": 30 }, * "3": { "policy": "relative", "value": 0.2 } @@ -655,11 +655,11 @@ int UtcDaliTableViewSetGetProperty(void) DALI_TEST_CHECK( childMap->Find( "policy" )->Get().compare("relative") == 0 ); DALI_TEST_EQUALS( childMap->Find( "value" )->Get(), 0.2f, TEST_LOCATION ); - // Test "layout-columns" property + // Test "layoutColumns" property DALI_TEST_CHECK( tableView.GetPropertyIndex( PROPERTY_NAME_LAYOUT_COLUMNS ) == TableView::Property::LAYOUT_COLUMNS ); /* - * "layout-columns": + * "layoutColumns": * { * "2": { "policy": "relative", "value": 0.2 }, * "3": { "policy": "fixed", "value": 30 } @@ -700,7 +700,7 @@ int UtcDaliTableViewCustomProperties(void) // Create a child actor with the custom properties Actor child1 = Actor::New(); - child1.RegisterProperty( "cell-index", Vector2( 3, 4 ), Property::READ_WRITE ); + child1.RegisterProperty( "cellIndex", Vector2( 3, 4 ), Property::READ_WRITE ); tableView.Add( child1 ); // Check for actors at actual positions. DALI_TEST_CHECK( tableView.GetChildAt(TableView::CellPosition(3,4)) == child1); @@ -709,9 +709,9 @@ int UtcDaliTableViewCustomProperties(void) Actor child2 = Actor::New(); float rowSpan = 3.f; float columnSpan = 2.f; - child2.RegisterProperty( "cell-index", Vector2( 6, 1 ), Property::READ_WRITE ); - child2.RegisterProperty( "row-span", rowSpan, Property::READ_WRITE ); - child2.RegisterProperty( "column-span", columnSpan, Property::READ_WRITE ); + child2.RegisterProperty( "cellIndex", Vector2( 6, 1 ), Property::READ_WRITE ); + child2.RegisterProperty( "rowSpan", rowSpan, Property::READ_WRITE ); + child2.RegisterProperty( "columnSpan", columnSpan, Property::READ_WRITE ); tableView.Add( child2 ); // Check for actors at actual positions. for( int i=0; i - SNAP_TO_MARKS, ///< Property, name "snap-to-marks", type bool - MARK_TOLERANCE, ///< Property, name "mark-tolerance", type float + SNAP_TO_MARKS, ///< Property, name "snapToMarks", type bool + MARK_TOLERANCE, ///< Property, name "markTolerance", type float }; }; diff --git a/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h b/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h index 4eec4c1..5201c08 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h +++ b/dali-toolkit/devel-api/controls/text-controls/text-selection-popup.h @@ -75,23 +75,23 @@ public: { enum { - POPUP_MAX_SIZE = PROPERTY_START_INDEX, ///< name "popup-max-size", maximum size the Popup can be, type VECTOR2 - POPUP_MIN_SIZE, ///< name "popup-min-size", minimum size the Popup can be, type VECTOR2 - OPTION_MAX_SIZE, ///< name "option-max-size", maximum size an option can be, type VECTOR2 - OPTION_MIN_SIZE, ///< name "option-min-size", minimum size an option can be, type VECTOR2 - OPTION_DIVIDER_SIZE, ///< name "option-divider-size", size of the divider between options type VECTOR2 - POPUP_CLIPBOARD_BUTTON_ICON_IMAGE, ///< name "popup-clipboard-button-image", The image to use as the popup clipboard icon, type STRING - POPUP_CUT_BUTTON_ICON_IMAGE, ///< name "popup-cut-button-image", The image to use as the popup cut icon, type STRING - POPUP_COPY_BUTTON_ICON_IMAGE, ///< name "popup-copy-button-image", The image to use as the popup copy icon, type STRING - POPUP_PASTE_BUTTON_ICON_IMAGE, ///< name "popup-paste-button-image", The image to use as the popup paste icon, type STRING - POPUP_SELECT_BUTTON_ICON_IMAGE, ///< name "popup-select-button-image", The image to use as the popup select icon, type STRING - POPUP_SELECT_ALL_BUTTON_ICON_IMAGE, ///< name "popup-select-all-button-image", The image to use as the popup select all icon, type STRING - POPUP_DIVIDER_COLOR, ///< name "popup-divider-color", The color of the divider between options, type VECTOR4 - POPUP_ICON_COLOR, ///< name "popup-icon-color", The color of the icons (if supplied), type VECTOR4 - POPUP_PRESSED_COLOR, ///< name "popup-pressed-color", The color of the option when pressed, type VECTOR4 - POPUP_PRESSED_IMAGE, ///< name "popup-pressed-image", The image to use for the option when pressed, type STRING - POPUP_FADE_IN_DURATION, ///< name "popup-fade-in-duration", The duration of the fade-in animation, type FLOAT - POPUP_FADE_OUT_DURATION, ///< name "popup-fade-out-duration", The duration of the fade-out animation, type FLOAT + POPUP_MAX_SIZE = PROPERTY_START_INDEX, ///< name "popupMaxSize", maximum size the Popup can be, type VECTOR2 + POPUP_MIN_SIZE, ///< name "popupMinSize", minimum size the Popup can be, type VECTOR2 + OPTION_MAX_SIZE, ///< name "optionMaxSize", maximum size an option can be, type VECTOR2 + OPTION_MIN_SIZE, ///< name "optionMinSize", minimum size an option can be, type VECTOR2 + OPTION_DIVIDER_SIZE, ///< name "optionDividerSize", size of the divider between options type VECTOR2 + POPUP_CLIPBOARD_BUTTON_ICON_IMAGE, ///< name "popupClipboardButtonImage", The image to use as the popup clipboard icon, type STRING + POPUP_CUT_BUTTON_ICON_IMAGE, ///< name "popupCutButtonImage", The image to use as the popup cut icon, type STRING + POPUP_COPY_BUTTON_ICON_IMAGE, ///< name "popupCopyButtonImage", The image to use as the popup copy icon, type STRING + POPUP_PASTE_BUTTON_ICON_IMAGE, ///< name "popupPasteButtonImage", The image to use as the popup paste icon, type STRING + POPUP_SELECT_BUTTON_ICON_IMAGE, ///< name "popupSelectButtonImage", The image to use as the popup select icon, type STRING + POPUP_SELECT_ALL_BUTTON_ICON_IMAGE, ///< name "popupSelectAllButtonImage", The image to use as the popup select all icon, type STRING + POPUP_DIVIDER_COLOR, ///< name "popupDividerColor", The color of the divider between options, type VECTOR4 + POPUP_ICON_COLOR, ///< name "popupIconColor", The color of the icons (if supplied), type VECTOR4 + POPUP_PRESSED_COLOR, ///< name "popupPressedColor", The color of the option when pressed, type VECTOR4 + POPUP_PRESSED_IMAGE, ///< name "popupPressedImage", The image to use for the option when pressed, type STRING + POPUP_FADE_IN_DURATION, ///< name "popupFadeInDuration", The duration of the fade-in animation, type FLOAT + POPUP_FADE_OUT_DURATION, ///< name "popupFadeOutDuration", The duration of the fade-out animation, type FLOAT }; }; diff --git a/dali-toolkit/devel-api/controls/text-controls/text-selection-toolbar.h b/dali-toolkit/devel-api/controls/text-controls/text-selection-toolbar.h index 1e48c56..0a3b941 100644 --- a/dali-toolkit/devel-api/controls/text-controls/text-selection-toolbar.h +++ b/dali-toolkit/devel-api/controls/text-controls/text-selection-toolbar.h @@ -62,9 +62,9 @@ public: { enum { - MAX_SIZE = PROPERTY_START_INDEX, ///< name "max-size", The maximum size the Popup can be, type VECTOR2 - ENABLE_OVERSHOOT, ///< name "enable-overshoot", Whether the overshoot image is enabled, type BOOLEAN - SCROLL_VIEW, ///< name "scroll-view", Properties to set on scroll view type Property::Map + MAX_SIZE = PROPERTY_START_INDEX, ///< name "maxSize", The maximum size the Popup can be, type VECTOR2 + ENABLE_OVERSHOOT, ///< name "enableOvershoot", Whether the overshoot image is enabled, type BOOLEAN + SCROLL_VIEW, ///< name "scrollView", Properties to set on scroll view type Property::Map }; }; diff --git a/dali-toolkit/devel-api/focus-manager/keyinput-focus-manager.h b/dali-toolkit/devel-api/focus-manager/keyinput-focus-manager.h index 6240350..330f0be 100644 --- a/dali-toolkit/devel-api/focus-manager/keyinput-focus-manager.h +++ b/dali-toolkit/devel-api/focus-manager/keyinput-focus-manager.h @@ -41,10 +41,10 @@ class KeyInputFocusManager; * UnhandledKeyEventSignal() is emitted. * * Signals - * | %Signal Name | Method | - * |-------------------------|-----------------------------------| - * | key-input-focus-changed | @ref KeyInputFocusChangedSignal() | - * | unhandled-key-event | @ref UnhandledKeyEventSignal() | + * | %Signal Name | Method | + * |----------------------|-----------------------------------| + * | keyInputFocusChanged | @ref KeyInputFocusChangedSignal() | + * | unhandledKeyEvent | @ref UnhandledKeyEventSignal() | */ class DALI_IMPORT_API KeyInputFocusManager : public BaseHandle { diff --git a/dali-toolkit/devel-api/shader-effects/dissolve-effect.h b/dali-toolkit/devel-api/shader-effects/dissolve-effect.h index e160532..f97f4f4 100644 --- a/dali-toolkit/devel-api/shader-effects/dissolve-effect.h +++ b/dali-toolkit/devel-api/shader-effects/dissolve-effect.h @@ -245,13 +245,13 @@ inline Property::Map CreateDissolveEffect( bool useHighPrecision = true ) vertexShaderString.append( vertexShader ); fragmentShaderString.append( fragmentShader ); - customShader[ "vertex-shader" ] = vertexShaderString; - customShader[ "fragment-shader" ] = fragmentShaderString; + customShader[ "vertexShader" ] = vertexShaderString; + customShader[ "fragmentShader" ] = fragmentShaderString; - customShader[ "subdivide-grid-x" ] = 20; - customShader[ "subdivide-grid-y" ] = 20; + customShader[ "subdivideGridX" ] = 20; + customShader[ "subdivideGridY" ] = 20; - customShader[ "hints" ] = "output-is-transparent"; + customShader[ "hints" ] = "outputIsTransparent"; map[ "shader" ] = customShader; return map; diff --git a/dali-toolkit/devel-api/shader-effects/distance-field-effect.h b/dali-toolkit/devel-api/shader-effects/distance-field-effect.h index aaeb537f..d495030 100644 --- a/dali-toolkit/devel-api/shader-effects/distance-field-effect.h +++ b/dali-toolkit/devel-api/shader-effects/distance-field-effect.h @@ -165,8 +165,8 @@ inline Dali::Property::Map CreateDistanceFieldEffect() fragmentShaderString.append( fragmentShaderPrefix ); fragmentShaderString.append( fragmentShader ); - customShader[ "fragment-shader" ] = fragmentShaderString; - customShader[ "hints" ] = "output-is-transparent"; + customShader[ "fragmentShader" ] = fragmentShaderString; + customShader[ "hints" ] = "outputIsTransparent"; map[ "shader" ] = customShader; return map; diff --git a/dali-toolkit/devel-api/shader-effects/motion-blur-effect.h b/dali-toolkit/devel-api/shader-effects/motion-blur-effect.h index aede5f1..2151444 100644 --- a/dali-toolkit/devel-api/shader-effects/motion-blur-effect.h +++ b/dali-toolkit/devel-api/shader-effects/motion-blur-effect.h @@ -223,14 +223,14 @@ inline Property::Map CreateMotionBlurEffect() Property::Map map; Property::Map customShader; - customShader[ "vertex-shader" ] = vertexSource; - customShader[ "fragment-shader" ] = fragmentSource; + customShader[ "vertexShader" ] = vertexSource; + customShader[ "fragmentShader" ] = fragmentSource; - customShader[ "subdivide-grid-x" ] = 10; - customShader[ "subdivide-grid-y" ] = 10; + customShader[ "subdivideGridX" ] = 10; + customShader[ "subdivideGridY" ] = 10; // NOTE: we must turn on alpha blending for the actor (HINT_BLENDING) - customShader[ "hints" ] = "output-is-transparent"; + customShader[ "hints" ] = "outputIsTransparent"; map[ "shader" ] = customShader; return map; diff --git a/dali-toolkit/devel-api/shader-effects/motion-stretch-effect.h b/dali-toolkit/devel-api/shader-effects/motion-stretch-effect.h index 5e43953..332fa48 100644 --- a/dali-toolkit/devel-api/shader-effects/motion-stretch-effect.h +++ b/dali-toolkit/devel-api/shader-effects/motion-stretch-effect.h @@ -188,14 +188,14 @@ inline Property::Map CreateMotionStretchEffect() Property::Map map; Property::Map customShader; - customShader[ "vertex-shader" ] = vertexSource; - customShader[ "fragment-shader" ] = fragmentSource; + customShader[ "vertexShader" ] = vertexSource; + customShader[ "fragmentShader" ] = fragmentSource; - customShader[ "subdivide-grid-x" ] = 10; - customShader[ "subdivide-grid-y" ] = 10; + customShader[ "subdivideGridX" ] = 10; + customShader[ "subdivideGridY" ] = 10; // NOTE: we must turn on alpha blending for the actor (HINT_BLENDING) - customShader[ "hints" ] = "output-is-transparent"; + customShader[ "hints" ] = "outputIsTransparent"; map[ "shader" ] = customShader; return map; diff --git a/dali-toolkit/devel-api/styling/style-manager.h b/dali-toolkit/devel-api/styling/style-manager.h index a1596e1..8c9f3b5 100644 --- a/dali-toolkit/devel-api/styling/style-manager.h +++ b/dali-toolkit/devel-api/styling/style-manager.h @@ -138,7 +138,7 @@ public: /** * @brief Set a constant for use when building styles * - * A constant is used in JSON files e.g. "my-image":"{ROOT_PATH}/mypath/image.jpg" + * A constant is used in JSON files e.g. "myImage":"{ROOT_PATH}/mypath/image.jpg" * where the string "{ROOT_PATH}" is substituted with the value. * * @param[in] key The key of the constant diff --git a/dali-toolkit/devel-api/transition-effects/cube-transition-effect.h b/dali-toolkit/devel-api/transition-effects/cube-transition-effect.h index 7b915a6..9c30573 100644 --- a/dali-toolkit/devel-api/transition-effects/cube-transition-effect.h +++ b/dali-toolkit/devel-api/transition-effects/cube-transition-effect.h @@ -74,9 +74,9 @@ class CubeTransitionEffect; * @endcode * * Signals - * | %Signal Name | Method | - * |----------------------|----------------------------------| - * | transition-completed | @ref TransitionCompletedSignal() | + * | %Signal Name | Method | + * |---------------------|----------------------------------| + * | transitionCompleted | @ref TransitionCompletedSignal() | */ class DALI_IMPORT_API CubeTransitionEffect : public Control { diff --git a/dali-toolkit/internal/accessibility-manager/accessibility-manager-impl.cpp b/dali-toolkit/internal/accessibility-manager/accessibility-manager-impl.cpp index 935e09f..3e14751 100644 --- a/dali-toolkit/internal/accessibility-manager/accessibility-manager-impl.cpp +++ b/dali-toolkit/internal/accessibility-manager/accessibility-manager-impl.cpp @@ -46,16 +46,16 @@ namespace // unnamed namespace // Signals -const char* const SIGNAL_FOCUS_CHANGED = "focus-changed"; -const char* const SIGNAL_FOCUS_OVERSHOT = "focus-overshot"; -const char* const SIGNAL_FOCUSED_ACTOR_ACTIVATED = "focused-actor-activated"; +const char* const SIGNAL_FOCUS_CHANGED = "focusChanged"; +const char* const SIGNAL_FOCUS_OVERSHOT = "focusOvershot"; +const char* const SIGNAL_FOCUSED_ACTOR_ACTIVATED = "focusedActorActivated"; #if defined(DEBUG_ENABLED) Debug::Filter* gLogFilter = Debug::Filter::New(Debug::NoLogging, false, "LOG_FOCUS_MANAGER"); #endif const char* const ACTOR_FOCUSABLE("focusable"); -const char* const IS_FOCUS_GROUP("is-focus-group"); +const char* const IS_FOCUS_GROUP("isFocusGroup"); const char* FOCUS_BORDER_IMAGE_PATH = DALI_IMAGE_DIR "B16-8_TTS_focus.png"; const Vector4 FOCUS_BORDER_IMAGE_BORDER = Vector4(7.0f, 7.0f, 7.0f, 7.0f); diff --git a/dali-toolkit/internal/builder/builder-actor.cpp b/dali-toolkit/internal/builder/builder-actor.cpp index fbe8c33..d04e7e8 100644 --- a/dali-toolkit/internal/builder/builder-actor.cpp +++ b/dali-toolkit/internal/builder/builder-actor.cpp @@ -47,32 +47,32 @@ Actor SetupActor( const TreeNode& child, Actor& actor, const Replacement& consta // we allow enums strings for parent-origin and anchor-point but as with the current json // strings always succeed if they exist then check its not vector. If they are Vec3s then // this has already been set as a generic property. - if( !IsVector3( child, "parent-origin") ) + if( !IsVector3( child, "parentOrigin") ) { - if( OptionalVector3 v = constant.IsVector3( IsChild(child, "parent-origin") ) ) + if( OptionalVector3 v = constant.IsVector3( IsChild(child, "parentOrigin") ) ) { actor.SetParentOrigin( *v ); } - else if( OptionalString origin = constant.IsString( IsChild(child, "parent-origin") ) ) + else if( OptionalString origin = constant.IsString( IsChild(child, "parentOrigin") ) ) { actor.SetParentOrigin( GetAnchorConstant(*origin) ); } } - if( !IsVector3(child, "anchor-point") ) + if( !IsVector3(child, "anchorPoint") ) { - if( OptionalVector3 v = constant.IsVector3( IsChild(child, "anchor-point") ) ) + if( OptionalVector3 v = constant.IsVector3( IsChild(child, "anchorPoint") ) ) { actor.SetAnchorPoint( *v ); } - else if( OptionalString anchor = constant.IsString( IsChild(child, "anchor-point") ) ) + else if( OptionalString anchor = constant.IsString( IsChild(child, "anchorPoint") ) ) { actor.SetAnchorPoint( GetAnchorConstant(*anchor) ); } } // Add custom properties - if( OptionalChild customPropertiesChild = IsChild(child, "custom-properties") ) + if( OptionalChild customPropertiesChild = IsChild(child, "customProperties") ) { const TreeNode& customPropertiesNode = *customPropertiesChild; const TreeConstIter endIter = customPropertiesNode.CEnd(); diff --git a/dali-toolkit/internal/builder/builder-animations.cpp b/dali-toolkit/internal/builder/builder-animations.cpp index ddf2cda..980fc90 100644 --- a/dali-toolkit/internal/builder/builder-animations.cpp +++ b/dali-toolkit/internal/builder/builder-animations.cpp @@ -159,7 +159,7 @@ Animation CreateAnimation( const TreeNode& child, const Replacement& constant, D Animation animation( Animation::New( 0.f ) ); - // duration needs to be set before AnimateTo calls for correct operation when AnimateTo has no "time-period". + // duration needs to be set before AnimateTo calls for correct operation when AnimateTo has no "timePeriod". OptionalFloat duration = constant.IsFloat( IsChild(child, "duration" ) ); if( duration ) @@ -172,7 +172,7 @@ Animation CreateAnimation( const TreeNode& child, const Replacement& constant, D animation.SetLooping( *looping ); } - if( OptionalString endAction = constant.IsString( IsChild(child, "end-action" ) ) ) + if( OptionalString endAction = constant.IsString( IsChild(child, "endAction" ) ) ) { if("BAKE" == *endAction) { @@ -188,7 +188,7 @@ Animation CreateAnimation( const TreeNode& child, const Replacement& constant, D } } - if( OptionalString endAction = constant.IsString( IsChild(child, "disconnect-action" ) ) ) + if( OptionalString endAction = constant.IsString( IsChild(child, "disconnectAction" ) ) ) { if("BAKE" == *endAction) { @@ -267,7 +267,7 @@ Animation CreateAnimation( const TreeNode& child, const Replacement& constant, D AlphaFunction alphaFunction( AlphaFunction::DEFAULT ); TimePeriod timePeriod( 0.f ); - OptionalChild timeChild = IsChild( pKeyChild.second, "time-period" ); + OptionalChild timeChild = IsChild( pKeyChild.second, "timePeriod" ); if( timeChild ) { @@ -276,12 +276,12 @@ Animation CreateAnimation( const TreeNode& child, const Replacement& constant, D durationSum = std::max( durationSum, timePeriod.delaySeconds + timePeriod.durationSeconds ); - if( OptionalString alphaChild = constant.IsString( IsChild(pKeyChild.second, "alpha-function" ) ) ) + if( OptionalString alphaChild = constant.IsString( IsChild(pKeyChild.second, "alphaFunction" ) ) ) { alphaFunction = GetAlphaFunction( *alphaChild ); } - if( OptionalChild keyFrameChild = IsChild(pKeyChild.second, "key-frames") ) + if( OptionalChild keyFrameChild = IsChild(pKeyChild.second, "keyFrames") ) { DALI_ASSERT_ALWAYS( property && "Animation must specify a property name" ); Property prop = Property( targetHandle, propIndex ); @@ -313,7 +313,7 @@ Animation CreateAnimation( const TreeNode& child, const Replacement& constant, D } AlphaFunction kfAlphaFunction( AlphaFunction::DEFAULT ); - if( OptionalString alphaFuncStr = constant.IsString( IsChild(pKeyChild.second, "alpha-function") ) ) + if( OptionalString alphaFuncStr = constant.IsString( IsChild(pKeyChild.second, "alphaFunction") ) ) { kfAlphaFunction = GetAlphaFunction( *alphaFuncStr ); } diff --git a/dali-toolkit/internal/builder/builder-impl.cpp b/dali-toolkit/internal/builder/builder-impl.cpp index 11b92f6..1535eeb 100644 --- a/dali-toolkit/internal/builder/builder-impl.cpp +++ b/dali-toolkit/internal/builder/builder-impl.cpp @@ -301,7 +301,7 @@ void Builder::SetProperties( const TreeNode& node, Handle& handle, const Replace if( !SetPropertyFromNode( keyChild.second, type, value, constant ) ) { // verbose as this might not be a problem - // eg parent-origin can be a string which is picked up later + // eg parentOrigin can be a string which is picked up later DALI_SCRIPT_VERBOSE("Could not convert property:%s\n", key.c_str()); } else @@ -547,7 +547,7 @@ void Builder::SetupTask( RenderTask& task, const TreeNode& node, const Replaceme const Stage& stage = Stage::GetCurrent(); Layer root = stage.GetRootLayer(); - if( OptionalString s = constant.IsString( IsChild(node, "source-actor") ) ) + if( OptionalString s = constant.IsString( IsChild(node, "sourceActor") ) ) { Actor actor = root.FindChildByName(*s); if(actor) @@ -560,7 +560,7 @@ void Builder::SetupTask( RenderTask& task, const TreeNode& node, const Replaceme } } - if( OptionalString s = constant.IsString( IsChild(node, "camera-actor") ) ) + if( OptionalString s = constant.IsString( IsChild(node, "cameraActor") ) ) { CameraActor actor = CameraActor::DownCast( root.FindChildByName(*s) ); if(actor) @@ -573,7 +573,7 @@ void Builder::SetupTask( RenderTask& task, const TreeNode& node, const Replaceme } } - if( OptionalString s = constant.IsString( IsChild(node, "target-frame-buffer") ) ) + if( OptionalString s = constant.IsString( IsChild(node, "targetFrameBuffer") ) ) { FrameBufferImage fb = GetFrameBufferImage( *s, constant ); if(fb) @@ -586,7 +586,7 @@ void Builder::SetupTask( RenderTask& task, const TreeNode& node, const Replaceme } } - if( OptionalString s = constant.IsString( IsChild(node, "screen-to-frame-buffer-function") ) ) + if( OptionalString s = constant.IsString( IsChild(node, "screenToFrameBufferFunction") ) ) { if("DEFAULT_SCREEN_TO_FRAMEBUFFER_FUNCTION" == *s) { @@ -603,8 +603,7 @@ void Builder::SetupTask( RenderTask& task, const TreeNode& node, const Replaceme } // other setup is via the property system - SetProperties( node, task, constant ); // @ todo, remove 'source-actor', 'camera-actor'? - + SetProperties( node, task, constant ); } void Builder::CreateRenderTask( const std::string &name ) @@ -615,7 +614,7 @@ void Builder::CreateRenderTask( const std::string &name ) const Stage& stage = Stage::GetCurrent(); - OptionalChild tasks = IsChild(*mParser.GetRoot(), "render-tasks"); + OptionalChild tasks = IsChild(*mParser.GetRoot(), "renderTasks"); if(tasks) { @@ -673,7 +672,7 @@ ShaderEffect Builder::GetShaderEffect( const std::string &name, const Replacemen } else { - if( OptionalChild effects = IsChild( *mParser.GetRoot(), "shader-effects") ) + if( OptionalChild effects = IsChild( *mParser.GetRoot(), "shaderEffects") ) { if( OptionalChild effect = IsChild( *effects, name ) ) { @@ -709,7 +708,7 @@ FrameBufferImage Builder::GetFrameBufferImage( const std::string &name, const Re } else { - if( OptionalChild images = IsChild( *mParser.GetRoot(), "frame-buffer-images") ) + if( OptionalChild images = IsChild( *mParser.GetRoot(), "frameBufferImages") ) { if( OptionalChild image = IsChild( *images, name ) ) { @@ -758,8 +757,8 @@ Path Builder::GetPath( const std::string& name ) ret = Path::New(); ret.SetProperty( Path::Property::POINTS, points); - //control-points property - if( OptionalChild pointsProperty = IsChild( *path, "control-points") ) + //controlPoints property + if( OptionalChild pointsProperty = IsChild( *path, "controlPoints") ) { Dali::Property::Value points(Property::ARRAY); if( SetPropertyFromNode( *pointsProperty, Property::ARRAY, points ) ) @@ -832,8 +831,8 @@ PathConstrainer Builder::GetPathConstrainer( const std::string& name ) ret = PathConstrainer::New(); ret.SetProperty( PathConstrainer::Property::POINTS, points); - //control-points property - if( OptionalChild pointsProperty = IsChild( *pathConstrainer, "control-points") ) + //controlPoints property + if( OptionalChild pointsProperty = IsChild( *pathConstrainer, "controlPoints") ) { Dali::Property::Value points(Property::ARRAY); if( SetPropertyFromNode( *pointsProperty, Property::ARRAY, points ) ) @@ -941,7 +940,7 @@ Dali::LinearConstrainer Builder::GetLinearConstrainer( const std::string& name ) ret = Dali::LinearConstrainer::New(); ret.SetProperty( LinearConstrainer::Property::VALUE, points); - //control-points property + //controlPoints property if( OptionalChild pointsProperty = IsChild( *linearConstrainer, "progress") ) { Dali::Property::Value points(Property::ARRAY); @@ -1043,7 +1042,7 @@ void Builder::AddActors( const std::string §ionName, Actor toActor ) // to add automatically if( "stage" == sectionName ) { - if( OptionalChild renderTasks = IsChild(*mParser.GetRoot(), "render-tasks") ) + if( OptionalChild renderTasks = IsChild(*mParser.GetRoot(), "renderTasks") ) { if( OptionalChild tasks = IsChild(*renderTasks, "stage") ) { diff --git a/dali-toolkit/internal/builder/builder-set-property.cpp b/dali-toolkit/internal/builder/builder-set-property.cpp index c2d77a7..7cd45b6 100644 --- a/dali-toolkit/internal/builder/builder-set-property.cpp +++ b/dali-toolkit/internal/builder/builder-set-property.cpp @@ -102,7 +102,7 @@ Vector4 HexStringToVector4( const char* s ) /** * A property value type can be forced when its unknown by a disambiguation convention in the json * ie "myarray": [1,2,3,4] ; would be a vector but - * "myarray": {"type-cast":"array", "value":[1,2,3,4]} would be an array + * "myarray": {"typeCast":"array", "value":[1,2,3,4]} would be an array * @param child The node whos string to search for a disambiguated type * @param value The value to set * @param overrideMap The user overriding constant map @@ -113,7 +113,7 @@ bool Disambiguated(const TreeNode& child, // ConstantLut& constantLut, Dali::Property::Value& value, const Replacement& replacement ) { - OptionalString childType = IsString( IsChild(child, "type-cast") ); + OptionalString childType = IsString( IsChild(child, "typeCast") ); OptionalChild childValue = IsChild(child, "value"); if( childType && childValue && (2 == child.Size()) ) diff --git a/dali-toolkit/internal/builder/builder-signals.cpp b/dali-toolkit/internal/builder/builder-signals.cpp index b3372f2..ed22ef3 100644 --- a/dali-toolkit/internal/builder/builder-signals.cpp +++ b/dali-toolkit/internal/builder/builder-signals.cpp @@ -459,7 +459,7 @@ struct SignalConnector template void SetActionOnSignal(const TreeNode &root, const TreeNode &child, Actor actor, Dali::Toolkit::Internal::Builder* const builder, SignalConnector& connector) { - OptionalString childActorName(IsString( IsChild(&child, "child-actor")) ); + OptionalString childActorName(IsString( IsChild(&child, "childActor")) ); OptionalString actorName(IsString( IsChild(&child, "actor")) ); OptionalString propertyName(IsString( IsChild(&child, "property")) ); OptionalChild valueChild( IsChild(&child, "value") ); diff --git a/dali-toolkit/internal/controls/buttons/button-impl.cpp b/dali-toolkit/internal/controls/buttons/button-impl.cpp index a4c5101..4548ac9 100644 --- a/dali-toolkit/internal/controls/buttons/button-impl.cpp +++ b/dali-toolkit/internal/controls/buttons/button-impl.cpp @@ -77,29 +77,29 @@ BaseHandle Create() DALI_TYPE_REGISTRATION_BEGIN( Toolkit::Button, Toolkit::Control, Create ); DALI_PROPERTY_REGISTRATION( Toolkit, Button, "disabled", BOOLEAN, DISABLED ) -DALI_PROPERTY_REGISTRATION( Toolkit, Button, "auto-repeating", BOOLEAN, AUTO_REPEATING ) -DALI_PROPERTY_REGISTRATION( Toolkit, Button, "initial-auto-repeating-delay", FLOAT, INITIAL_AUTO_REPEATING_DELAY ) -DALI_PROPERTY_REGISTRATION( Toolkit, Button, "next-auto-repeating-delay", FLOAT, NEXT_AUTO_REPEATING_DELAY ) +DALI_PROPERTY_REGISTRATION( Toolkit, Button, "autoRepeating", BOOLEAN, AUTO_REPEATING ) +DALI_PROPERTY_REGISTRATION( Toolkit, Button, "initialAutoRepeatingDelay", FLOAT, INITIAL_AUTO_REPEATING_DELAY ) +DALI_PROPERTY_REGISTRATION( Toolkit, Button, "nextAutoRepeatingDelay", FLOAT, NEXT_AUTO_REPEATING_DELAY ) DALI_PROPERTY_REGISTRATION( Toolkit, Button, "togglable", BOOLEAN, TOGGLABLE ) DALI_PROPERTY_REGISTRATION( Toolkit, Button, "selected", BOOLEAN, SELECTED ) -DALI_PROPERTY_REGISTRATION( Toolkit, Button, "unselected-state-image", STRING, UNSELECTED_STATE_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, Button, "selected-state-image", STRING, SELECTED_STATE_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, Button, "disabled-state-image", STRING, DISABLED_STATE_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, Button, "unselected-color", VECTOR4, UNSELECTED_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, Button, "selected-color", VECTOR4, SELECTED_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, Button, "unselectedStateImage", STRING, UNSELECTED_STATE_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, Button, "selectedStateImage", STRING, SELECTED_STATE_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, Button, "disabledStateImage", STRING, DISABLED_STATE_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, Button, "unselectedColor", VECTOR4, UNSELECTED_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, Button, "selectedColor", VECTOR4, SELECTED_COLOR ) DALI_PROPERTY_REGISTRATION( Toolkit, Button, "label", MAP, LABEL ) // Deprecated properties: -DALI_PROPERTY_REGISTRATION( Toolkit, Button, "label-text", STRING, LABEL_TEXT ) +DALI_PROPERTY_REGISTRATION( Toolkit, Button, "labelText", STRING, LABEL_TEXT ) // Signals: DALI_SIGNAL_REGISTRATION( Toolkit, Button, "pressed", SIGNAL_PRESSED ) DALI_SIGNAL_REGISTRATION( Toolkit, Button, "released", SIGNAL_RELEASED ) DALI_SIGNAL_REGISTRATION( Toolkit, Button, "clicked", SIGNAL_CLICKED ) -DALI_SIGNAL_REGISTRATION( Toolkit, Button, "state-changed", SIGNAL_STATE_CHANGED ) +DALI_SIGNAL_REGISTRATION( Toolkit, Button, "stateChanged", SIGNAL_STATE_CHANGED ) // Actions: -DALI_ACTION_REGISTRATION( Toolkit, Button, "button-click", ACTION_BUTTON_CLICK ) +DALI_ACTION_REGISTRATION( Toolkit, Button, "buttonClick", ACTION_BUTTON_CLICK ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/controls/buttons/push-button-impl.cpp b/dali-toolkit/internal/controls/buttons/push-button-impl.cpp index b168916..4331c87 100644 --- a/dali-toolkit/internal/controls/buttons/push-button-impl.cpp +++ b/dali-toolkit/internal/controls/buttons/push-button-impl.cpp @@ -53,11 +53,11 @@ BaseHandle Create() DALI_TYPE_REGISTRATION_BEGIN( Toolkit::PushButton, Toolkit::Button, Create ) -DALI_PROPERTY_REGISTRATION( Toolkit, PushButton, "unselected-icon", STRING, UNSELECTED_ICON ) -DALI_PROPERTY_REGISTRATION( Toolkit, PushButton, "selected-icon", STRING, SELECTED_ICON ) -DALI_PROPERTY_REGISTRATION( Toolkit, PushButton, "icon-alignment", STRING, ICON_ALIGNMENT ) -DALI_PROPERTY_REGISTRATION( Toolkit, PushButton, "label-padding", STRING, LABEL_PADDING ) -DALI_PROPERTY_REGISTRATION( Toolkit, PushButton, "icon-padding", STRING, ICON_PADDING ) +DALI_PROPERTY_REGISTRATION( Toolkit, PushButton, "unselectedIcon", STRING, UNSELECTED_ICON ) +DALI_PROPERTY_REGISTRATION( Toolkit, PushButton, "selectedIcon", STRING, SELECTED_ICON ) +DALI_PROPERTY_REGISTRATION( Toolkit, PushButton, "iconAlignment", STRING, ICON_ALIGNMENT ) +DALI_PROPERTY_REGISTRATION( Toolkit, PushButton, "labelPadding", STRING, LABEL_PADDING ) +DALI_PROPERTY_REGISTRATION( Toolkit, PushButton, "iconPadding", STRING, ICON_PADDING ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/controls/magnifier/magnifier-impl.cpp b/dali-toolkit/internal/controls/magnifier/magnifier-impl.cpp index 45a3152..e758f1f 100644 --- a/dali-toolkit/internal/controls/magnifier/magnifier-impl.cpp +++ b/dali-toolkit/internal/controls/magnifier/magnifier-impl.cpp @@ -50,10 +50,10 @@ Dali::BaseHandle Create() DALI_TYPE_REGISTRATION_BEGIN( Toolkit::Magnifier, Toolkit::Control, Create ) -DALI_PROPERTY_REGISTRATION( Toolkit, Magnifier, "frame-visibility", BOOLEAN, FRAME_VISIBILITY ) -DALI_PROPERTY_REGISTRATION( Toolkit, Magnifier, "magnification-factor", FLOAT, MAGNIFICATION_FACTOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, Magnifier, "frameVisibility", BOOLEAN, FRAME_VISIBILITY ) +DALI_PROPERTY_REGISTRATION( Toolkit, Magnifier, "magnificationFactor", FLOAT, MAGNIFICATION_FACTOR ) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, Magnifier, "source-position", VECTOR3, SOURCE_POSITION ) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, Magnifier, "sourcePosition", VECTOR3, SOURCE_POSITION ) DALI_TYPE_REGISTRATION_END() @@ -198,7 +198,7 @@ void Magnifier::Initialize() // Use a 1 frame delayed source position to determine the camera actor's position. // This is necessary as the viewport is determined by the Magnifier's Actor's World position (which is computed // at the end of the update cycle i.e. after constraints have been applied.) - //Property::Index propertySourcePositionDelayed = mCameraActor.RegisterProperty("delayed-source-position", Vector3::ZERO); + //Property::Index propertySourcePositionDelayed = mCameraActor.RegisterProperty("delayedSourcePosition", Vector3::ZERO); constraint = Constraint::New( mCameraActor, Actor::Property::POSITION, CameraActorPositionConstraint(stageSize, mDefaultCameraDistance) ); constraint.AddSource( Source( mSourceActor, Actor::Property::WORLD_POSITION ) ); diff --git a/dali-toolkit/internal/controls/model3d-view/model3d-view-impl.cpp b/dali-toolkit/internal/controls/model3d-view/model3d-view-impl.cpp index f1f7a39..2c27f85 100644 --- a/dali-toolkit/internal/controls/model3d-view/model3d-view-impl.cpp +++ b/dali-toolkit/internal/controls/model3d-view/model3d-view-impl.cpp @@ -52,15 +52,15 @@ BaseHandle Create() // Setup properties, signals and actions using the type-registry. DALI_TYPE_REGISTRATION_BEGIN( Toolkit::Model3dView, Toolkit::Control, Create ); -DALI_PROPERTY_REGISTRATION( Toolkit, Model3dView, "geometry-url", STRING, GEOMETRY_URL) -DALI_PROPERTY_REGISTRATION( Toolkit, Model3dView, "material-url", STRING, MATERIAL_URL) -DALI_PROPERTY_REGISTRATION( Toolkit, Model3dView, "images-url", STRING, IMAGES_URL) -DALI_PROPERTY_REGISTRATION( Toolkit, Model3dView, "illumination-type", INTEGER, ILLUMINATION_TYPE) -DALI_PROPERTY_REGISTRATION( Toolkit, Model3dView, "texture0-url", STRING, TEXTURE0_URL) -DALI_PROPERTY_REGISTRATION( Toolkit, Model3dView, "texture1-url", STRING, TEXTURE1_URL) -DALI_PROPERTY_REGISTRATION( Toolkit, Model3dView, "texture2-url", STRING, TEXTURE2_URL) - -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, Model3dView, "light-position", VECTOR3, LIGHT_POSITION) +DALI_PROPERTY_REGISTRATION( Toolkit, Model3dView, "geometryUrl", STRING, GEOMETRY_URL) +DALI_PROPERTY_REGISTRATION( Toolkit, Model3dView, "materialUrl", STRING, MATERIAL_URL) +DALI_PROPERTY_REGISTRATION( Toolkit, Model3dView, "imagesUrl", STRING, IMAGES_URL) +DALI_PROPERTY_REGISTRATION( Toolkit, Model3dView, "illuminationType", INTEGER, ILLUMINATION_TYPE) +DALI_PROPERTY_REGISTRATION( Toolkit, Model3dView, "texture0Url", STRING, TEXTURE0_URL) +DALI_PROPERTY_REGISTRATION( Toolkit, Model3dView, "texture1Url", STRING, TEXTURE1_URL) +DALI_PROPERTY_REGISTRATION( Toolkit, Model3dView, "texture2Url", STRING, TEXTURE2_URL) + +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, Model3dView, "lightPosition", VECTOR3, LIGHT_POSITION) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.cpp b/dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.cpp index 14e8405..f3e2ed1 100644 --- a/dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.cpp +++ b/dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.cpp @@ -224,14 +224,14 @@ BaseHandle Create() // Setup properties, signals and actions using the type-registry. DALI_TYPE_REGISTRATION_BEGIN( Toolkit::PageTurnView, Toolkit::Control, Create ); -DALI_PROPERTY_REGISTRATION( Toolkit, PageTurnView, "page-size", VECTOR2, PAGE_SIZE ) -DALI_PROPERTY_REGISTRATION( Toolkit, PageTurnView, "current-page-id", INTEGER, CURRENT_PAGE_ID ) -DALI_PROPERTY_REGISTRATION( Toolkit, PageTurnView, "spine-shadow", VECTOR2, SPINE_SHADOW ) - -DALI_SIGNAL_REGISTRATION( Toolkit, PageTurnView, "page-turn-started", SIGNAL_PAGE_TURN_STARTED ) -DALI_SIGNAL_REGISTRATION( Toolkit, PageTurnView, "page-turn-finished", SIGNAL_PAGE_TURN_FINISHED ) -DALI_SIGNAL_REGISTRATION( Toolkit, PageTurnView, "page-pan-started", SIGNAL_PAGE_PAN_STARTED ) -DALI_SIGNAL_REGISTRATION( Toolkit, PageTurnView, "page-pan-finished", SIGNAL_PAGE_PAN_FINISHED ) +DALI_PROPERTY_REGISTRATION( Toolkit, PageTurnView, "pageSize", VECTOR2, PAGE_SIZE ) +DALI_PROPERTY_REGISTRATION( Toolkit, PageTurnView, "currentPageId", INTEGER, CURRENT_PAGE_ID ) +DALI_PROPERTY_REGISTRATION( Toolkit, PageTurnView, "spineShadow", VECTOR2, SPINE_SHADOW ) + +DALI_SIGNAL_REGISTRATION( Toolkit, PageTurnView, "pageTurnStarted", SIGNAL_PAGE_TURN_STARTED ) +DALI_SIGNAL_REGISTRATION( Toolkit, PageTurnView, "pageTurnFinished", SIGNAL_PAGE_TURN_FINISHED ) +DALI_SIGNAL_REGISTRATION( Toolkit, PageTurnView, "pagePanStarted", SIGNAL_PAGE_PAN_STARTED ) +DALI_SIGNAL_REGISTRATION( Toolkit, PageTurnView, "pagePanFinished", SIGNAL_PAGE_PAN_FINISHED ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/controls/popup/confirmation-popup-impl.cpp b/dali-toolkit/internal/controls/popup/confirmation-popup-impl.cpp index cb0c9e9..183c613 100644 --- a/dali-toolkit/internal/controls/popup/confirmation-popup-impl.cpp +++ b/dali-toolkit/internal/controls/popup/confirmation-popup-impl.cpp @@ -52,8 +52,8 @@ struct ControlDetailType * the app-developer | which will provide | app developer choose which signal * can connect to. | the signal. | within the control to connect to. */ const ControlDetailType ControlDetails[] = { - { "control-signal-ok", "control-ok", "connect-signal-ok-selected" }, - { "control-signal-cancel", "control-cancel", "connect-signal-cancel-selected" }, + { "controlSignalOk", "controlOk", "connectSignalOkSelected" }, + { "controlSignalCancel", "controlCancel", "connectSignalCancelSelected" }, }; const unsigned int ControlDetailsCount = sizeof( ControlDetails ) / sizeof( ControlDetails[0] ); diff --git a/dali-toolkit/internal/controls/popup/popup-impl.cpp b/dali-toolkit/internal/controls/popup/popup-impl.cpp index 9153cbe..031f0fa 100755 --- a/dali-toolkit/internal/controls/popup/popup-impl.cpp +++ b/dali-toolkit/internal/controls/popup/popup-impl.cpp @@ -70,7 +70,7 @@ const Vector3 DEFAULT_TOAST_BOTTOM_PARENT_ORIGIN( 0.5f, 0.94f, 0.5f ); const Vector3 DEFAULT_TOAST_WIDTH_OF_STAGE_RATIO( 0.75f, 0.75f, 0.75f ); ///< Amount of the stage's width that the toast popup will take up. /** - * Creation function for named type "popup-toast". + * Creation function for named type "popupToast". * @return Handle to the new toast popup object. */ BaseHandle CreateToast() @@ -111,32 +111,32 @@ DALI_TYPE_REGISTRATION_BEGIN( Toolkit::Popup, Toolkit::Control, Create ) DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "title", MAP, TITLE ) DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "content", MAP, CONTENT ) DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "footer", MAP, FOOTER ) -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "display-state", STRING, DISPLAY_STATE ) -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "touch-transparent", BOOLEAN, TOUCH_TRANSPARENT ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "displayState", STRING, DISPLAY_STATE ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "touchTransparent", BOOLEAN, TOUCH_TRANSPARENT ) // Contextual related properties. -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "tail-visibility", BOOLEAN, TAIL_VISIBILITY ) -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "tail-position", VECTOR3, TAIL_POSITION ) -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "contextual-mode", STRING, CONTEXTUAL_MODE ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "tailVisibility", BOOLEAN, TAIL_VISIBILITY ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "tailPosition", VECTOR3, TAIL_POSITION ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "contextualMode", STRING, CONTEXTUAL_MODE ) // Animation related properties. -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "animation-duration", FLOAT, ANIMATION_DURATION ) -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "animation-mode", STRING, ANIMATION_MODE ) -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "entry-animation", MAP, ENTRY_ANIMATION ) -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "exit-animation", MAP, EXIT_ANIMATION ) -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "auto-hide-delay", INTEGER, AUTO_HIDE_DELAY ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "animationDuration", FLOAT, ANIMATION_DURATION ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "animationMode", STRING, ANIMATION_MODE ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "entryAnimation", MAP, ENTRY_ANIMATION ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "exitAnimation", MAP, EXIT_ANIMATION ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "autoHideDelay", INTEGER, AUTO_HIDE_DELAY ) // Style related properties. -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "backing-enabled", BOOLEAN, BACKING_ENABLED ) -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "backing-color", VECTOR4, BACKING_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "popup-background-image", STRING, POPUP_BACKGROUND_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "tail-up-image", STRING, TAIL_UP_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "tail-down-image", STRING, TAIL_DOWN_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "tail-left-image", STRING, TAIL_LEFT_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "tail-right-image", STRING, TAIL_RIGHT_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "backingEnabled", BOOLEAN, BACKING_ENABLED ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "backingColor", VECTOR4, BACKING_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "popupBackgroundImage", STRING, POPUP_BACKGROUND_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "tailUpImage", STRING, TAIL_UP_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "tailDownImage", STRING, TAIL_DOWN_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "tailLeftImage", STRING, TAIL_LEFT_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, Popup, "tailRightImage", STRING, TAIL_RIGHT_IMAGE ) // Signals. -DALI_SIGNAL_REGISTRATION( Toolkit, Popup, "touched-outside", SIGNAL_TOUCHED_OUTSIDE ) +DALI_SIGNAL_REGISTRATION( Toolkit, Popup, "touchedOutside", SIGNAL_TOUCHED_OUTSIDE ) DALI_SIGNAL_REGISTRATION( Toolkit, Popup, "showing", SIGNAL_SHOWING ) DALI_SIGNAL_REGISTRATION( Toolkit, Popup, "shown", SIGNAL_SHOWN ) DALI_SIGNAL_REGISTRATION( Toolkit, Popup, "hiding", SIGNAL_HIDING ) @@ -147,7 +147,7 @@ DALI_TYPE_REGISTRATION_END() // Named type registration. // Toast Popup: Non-modal popup that displays information at the bottom of the screen. -TypeRegistration typeRegistrationToast( "popup-toast", typeid( Toolkit::Popup ), CreateToast ); +TypeRegistration typeRegistrationToast( "PopupToast", typeid( Toolkit::Popup ), CreateToast ); // Enumeration to / from string conversion tables @@ -259,7 +259,7 @@ void Popup::OnInitialize() // Create a new layer so all Popup components can appear above all other actors. mLayer = Layer::New(); - mLayer.SetName( "popup-layer" ); + mLayer.SetName( "popupLayer" ); mLayer.SetParentOrigin( ParentOrigin::CENTER ); mLayer.SetAnchorPoint( AnchorPoint::CENTER ); @@ -277,7 +277,7 @@ void Popup::OnInitialize() mLayer.Add( mBacking ); mPopupContainer = Actor::New(); - mPopupContainer.SetName( "popup-container" ); + mPopupContainer.SetName( "popupContainer" ); mPopupContainer.SetParentOrigin( ParentOrigin::CENTER ); mPopupContainer.SetAnchorPoint( AnchorPoint::CENTER ); mPopupContainer.SetResizePolicy( ResizePolicy::FIT_TO_CHILDREN, Dimension::ALL_DIMENSIONS ); @@ -289,7 +289,7 @@ void Popup::OnInitialize() // Adds the default background image. SetPopupBackgroundImage( ImageActor::New( ResourceImage::New( DEFAULT_BACKGROUND_IMAGE_PATH ) ) ); - mPopupLayout.SetName( "popup-layout-table" ); + mPopupLayout.SetName( "popupLayoutTable" ); mPopupLayout.SetParentOrigin( ParentOrigin::CENTER ); mPopupLayout.SetAnchorPoint( AnchorPoint::CENTER ); @@ -557,7 +557,7 @@ void Popup::SetPopupBackgroundImage( Actor image ) // Adds new background to the dialog. mPopupBackgroundImage = image; - mPopupBackgroundImage.SetName( "popup-background-image" ); + mPopupBackgroundImage.SetName( "popupBackgroundImage" ); mPopupBackgroundImage.SetAnchorPoint( AnchorPoint::CENTER ); mPopupBackgroundImage.SetParentOrigin( ParentOrigin::CENTER ); @@ -625,7 +625,7 @@ void Popup::SetContent( Actor content ) if( mContent ) { - mContent.SetName( "popup-content" ); + mContent.SetName( "popupContent" ); mPopupLayout.AddChild( mContent, Toolkit::TableView::CellPosition( 1, 0 ) ); } @@ -832,7 +832,7 @@ void Popup::LayoutTail() // Adds the tail actor. Image tail = ResourceImage::New( image ); mTailImage = ImageActor::New( tail ); - mTailImage.SetName( "tail-image" ); + mTailImage.SetName( "tailImage" ); const Vector3 anchorPoint = AnchorPoint::BOTTOM_RIGHT - position; mTailImage.SetParentOrigin( position ); mTailImage.SetAnchorPoint( anchorPoint ); @@ -856,7 +856,7 @@ Toolkit::Control Popup::CreateBacking() { Toolkit::Control backing = Control::New(); backing.SetBackgroundColor( Vector4( mBackingColor.r, mBackingColor.g, mBackingColor.b, 1.0f ) ); - backing.SetName( "popup-backing" ); + backing.SetName( "popupBacking" ); // Must always be positioned top-left of stage, regardless of parent. backing.SetPositionInheritanceMode( DONT_INHERIT_POSITION ); diff --git a/dali-toolkit/internal/controls/renderers/border/border-renderer.cpp b/dali-toolkit/internal/controls/renderers/border/border-renderer.cpp index 43c6bde..2192016 100644 --- a/dali-toolkit/internal/controls/renderers/border/border-renderer.cpp +++ b/dali-toolkit/internal/controls/renderers/border/border-renderer.cpp @@ -37,12 +37,12 @@ namespace Internal namespace { -const char * const RENDERER_TYPE("renderer-type"); -const char * const RENDERER_TYPE_VALUE("border-renderer"); +const char * const RENDERER_TYPE("rendererType"); +const char * const RENDERER_TYPE_VALUE("borderRenderer"); -const char * const COLOR_NAME("border-color"); +const char * const COLOR_NAME("borderColor"); const char * const COLOR_UNIFORM_NAME("uBorderColor"); -const char * const SIZE_NAME("border-size"); +const char * const SIZE_NAME("borderSize"); const char * const SIZE_UNIFORM_NAME("uBorderSize"); const char * const POSITION_ATTRIBUTE_NAME("aPosition"); diff --git a/dali-toolkit/internal/controls/renderers/border/border-renderer.h b/dali-toolkit/internal/controls/renderers/border/border-renderer.h index 37c59d2..63160fb 100644 --- a/dali-toolkit/internal/controls/renderers/border/border-renderer.h +++ b/dali-toolkit/internal/controls/renderers/border/border-renderer.h @@ -37,10 +37,10 @@ namespace Internal * * The following properties are required for create a BorderRender * - * | %Property Name | Type | - * |------------------|-------------| - * | border-color | VECTOR4 | - * | border-size | FLOAT | + * | %Property Name | Type | + * |-----------------|-------------| + * | borderColor | VECTOR4 | + * | borderSize | FLOAT | */ class BorderRenderer : public ControlRenderer diff --git a/dali-toolkit/internal/controls/renderers/color/color-renderer.cpp b/dali-toolkit/internal/controls/renderers/color/color-renderer.cpp index 5039c81..b6074eb 100644 --- a/dali-toolkit/internal/controls/renderers/color/color-renderer.cpp +++ b/dali-toolkit/internal/controls/renderers/color/color-renderer.cpp @@ -37,9 +37,9 @@ namespace Internal namespace { -const char * const RENDERER_TYPE("renderer-type"); -const char * const RENDERER_TYPE_VALUE("color-renderer"); -const char * const COLOR_NAME("blend-color"); +const char * const RENDERER_TYPE("rendererType"); +const char * const RENDERER_TYPE_VALUE("colorRenderer"); +const char * const COLOR_NAME("blendColor"); const char * const COLOR_UNIFORM_NAME("uBlendColor"); diff --git a/dali-toolkit/internal/controls/renderers/color/color-renderer.h b/dali-toolkit/internal/controls/renderers/color/color-renderer.h index 70ad107..6d13204 100644 --- a/dali-toolkit/internal/controls/renderers/color/color-renderer.h +++ b/dali-toolkit/internal/controls/renderers/color/color-renderer.h @@ -35,9 +35,9 @@ namespace Internal * * The following properties are required for create a ColorRender * - * | %Property Name | Type | - * |------------------|-------------| - * | blend-color | VECTOR4 | + * | %Property Name | Type | + * |-----------------|-------------| + * | blendColor | VECTOR4 | */ class ColorRenderer: public ControlRenderer { diff --git a/dali-toolkit/internal/controls/renderers/control-renderer-data-impl.cpp b/dali-toolkit/internal/controls/renderers/control-renderer-data-impl.cpp index 129ac03..9992bf5 100644 --- a/dali-toolkit/internal/controls/renderers/control-renderer-data-impl.cpp +++ b/dali-toolkit/internal/controls/renderers/control-renderer-data-impl.cpp @@ -38,19 +38,19 @@ namespace { //custom shader const char * const CUSTOM_SHADER( "shader" ); -const char * const CUSTOM_VERTEX_SHADER( "vertex-shader" ); -const char * const CUSTOM_FRAGMENT_SHADER( "fragment-shader" ); -const char * const CUSTOM_SUBDIVIDE_GRID_X( "subdivide-grid-x" ); -const char * const CUSTOM_SUBDIVIDE_GRID_Y( "subdivide-grid-y" ); +const char * const CUSTOM_VERTEX_SHADER( "vertexShader" ); +const char * const CUSTOM_FRAGMENT_SHADER( "fragmentShader" ); +const char * const CUSTOM_SUBDIVIDE_GRID_X( "subdivideGridX" ); +const char * const CUSTOM_SUBDIVIDE_GRID_Y( "subdivideGridY" ); const char * const CUSTOM_SHADER_HINTS( "hints" ); ///< type STRING for a hint from the below hint strings or an ARRAY of of hint strings /** * where hints should be contain strings of the following shader hints: - * "none" | corresponds to HINT_NONE - * "requires-self-depth-test" | corresponds to HINT_REQUIRES_SELF_DEPTH_TEST - * "output-is-transparent" | corresponds to HINT_OUTPUT_IS_TRANSPARENT - * "output-is-opaque" | corresponds to HINT_OUTPUT_IS_OPAQUE - * "modifies-geometry" | corresponds to HINT_MODIFIES_GEOMETRY + * "none" | corresponds to HINT_NONE + * "requiresSelfDepthTest" | corresponds to HINT_REQUIRES_SELF_DEPTH_TEST + * "outputIsTransparent" | corresponds to HINT_OUTPUT_IS_TRANSPARENT + * "outputIsOpaque" | corresponds to HINT_OUTPUT_IS_OPAQUE + * "modifiesGeometry" | corresponds to HINT_MODIFIES_GEOMETRY */ Shader::ShaderHints HintFromString( std::string hintString ) @@ -59,19 +59,19 @@ Shader::ShaderHints HintFromString( std::string hintString ) { return Shader::HINT_NONE; } - else if( hintString == "requires-self-depth-test" ) + else if( hintString == "requiresSelfDepthTest" ) { return Shader::HINT_REQUIRES_SELF_DEPTH_TEST; } - else if( hintString == "output-is-transparent" ) + else if( hintString == "outputIsTransparent" ) { return Shader::HINT_OUTPUT_IS_TRANSPARENT; } - else if( hintString == "output-is-opaque" ) + else if( hintString == "outputIsOpaque" ) { return Shader::HINT_OUTPUT_IS_OPAQUE; } - else if( hintString == "modifies-geometry" ) + else if( hintString == "modifiesGeometry" ) { return Shader::HINT_MODIFIES_GEOMETRY; } diff --git a/dali-toolkit/internal/controls/renderers/control-renderer-impl.cpp b/dali-toolkit/internal/controls/renderers/control-renderer-impl.cpp index 96f5066..04792c5 100644 --- a/dali-toolkit/internal/controls/renderers/control-renderer-impl.cpp +++ b/dali-toolkit/internal/controls/renderers/control-renderer-impl.cpp @@ -29,10 +29,10 @@ namespace { //custom shader const char * const CUSTOM_SHADER( "shader" ); -const char * const CUSTOM_VERTEX_SHADER( "vertex-shader" ); -const char * const CUSTOM_FRAGMENT_SHADER( "fragment-shader" ); -const char * const CUSTOM_SUBDIVIDE_GRID_X( "subdivide-grid-x" ); -const char * const CUSTOM_SUBDIVIDE_GRID_Y( "subdivide-grid-y" ); +const char * const CUSTOM_VERTEX_SHADER( "vertexShader" ); +const char * const CUSTOM_FRAGMENT_SHADER( "fragmentShader" ); +const char * const CUSTOM_SUBDIVIDE_GRID_X( "subdivideGridX" ); +const char * const CUSTOM_SUBDIVIDE_GRID_Y( "subdivideGridY" ); const char * const CUSTOM_SHADER_HINTS( "hints" ); ///< type INTEGER; (bitfield) values from enum Shader::Hints } diff --git a/dali-toolkit/internal/controls/renderers/control-renderer-impl.h b/dali-toolkit/internal/controls/renderers/control-renderer-impl.h index 7258e29..883d4d6 100644 --- a/dali-toolkit/internal/controls/renderers/control-renderer-impl.h +++ b/dali-toolkit/internal/controls/renderers/control-renderer-impl.h @@ -45,18 +45,18 @@ namespace Internal * * The following properties are optional * - * | %Property Name | Type | - * |---------------------------|------------------| - * | custom-shader | MAP | + * | %Property Name | Type | + * |-------------------------|------------------| + * | customShader | MAP | * * where custom-shader is a map with the following properties: - * | %Property Name | Type | - * |---------------------------|------------------| - * | vertex-shader | STRING | - * | fragment-shader | STRING | - * | subdivide-grid-x | INT | - * | subdivide-grid-y | INT | - * | shader-hints | INT | + * | %Property Name | Type | + * |-------------------------|------------------| + * | vertexShader | STRING | + * | fragmentShader | STRING | + * | subdivideGridX | INT | + * | subdivideGridY | INT | + * | shaderHints | INT | */ class ControlRenderer : public BaseObject { diff --git a/dali-toolkit/internal/controls/renderers/gradient/gradient-renderer.cpp b/dali-toolkit/internal/controls/renderers/gradient/gradient-renderer.cpp index 00a6050..f9b4bcd 100644 --- a/dali-toolkit/internal/controls/renderers/gradient/gradient-renderer.cpp +++ b/dali-toolkit/internal/controls/renderers/gradient/gradient-renderer.cpp @@ -43,26 +43,26 @@ namespace Internal namespace { -const char * const RENDERER_TYPE("renderer-type"); -const char * const RENDERER_TYPE_VALUE("gradient-renderer"); +const char * const RENDERER_TYPE("rendererType"); +const char * const RENDERER_TYPE_VALUE("gradientRenderer"); // properties: linear gradient -const char * const GRADIENT_START_POSITION_NAME("gradient-start-position"); // Property::VECTOR2 -const char * const GRADIENT_END_POSITION_NAME("gradient-end-position"); // Property::VECTOR2 +const char * const GRADIENT_START_POSITION_NAME("gradientStartPosition"); // Property::VECTOR2 +const char * const GRADIENT_END_POSITION_NAME("gradientEndPosition"); // Property::VECTOR2 // properties: radial gradient -const char * const GRADIENT_CENTER_NAME("gradient-center"); // Property::VECTOR2 -const char * const GRADIENT_RADIUS_NAME("gradient-radius"); // Property::FLOAT +const char * const GRADIENT_CENTER_NAME("gradientCenter"); // Property::VECTOR2 +const char * const GRADIENT_RADIUS_NAME("gradientRadius"); // Property::FLOAT // properties: linear&radial gradient -const char * const GRADIENT_STOP_OFFSET_NAME("gradient-stop-offset"); // Property::Array FLOAT -const char * const GRADIENT_STOP_COLOR_NAME("gradient-stop-color"); // Property::Array VECTOR4 -const char * const GRADIENT_UNITS_NAME("gradient-units"); // Property::String "userSpaceOnUse | objectBoundingBox" -const char * const GRADIENT_SPREAD_METHOD_NAME("gradient-spread-method"); // Property::String "pad | reflect | repeat" +const char * const GRADIENT_STOP_OFFSET_NAME("gradientStopOffset"); // Property::Array FLOAT +const char * const GRADIENT_STOP_COLOR_NAME("gradientStopColor"); // Property::Array VECTOR4 +const char * const GRADIENT_UNITS_NAME("gradientUnits"); // Property::String "userSpaceOnUse | objectBoundingBox" +const char * const GRADIENT_SPREAD_METHOD_NAME("gradientSpreadMethod"); // Property::String "pad | reflect | repeat" // string values -const char * const UNIT_USER_SPACE("user-space"); -const char * const UNIT_BOUNDING_BOX("object-bounding-box"); +const char * const UNIT_USER_SPACE("userSpace"); +const char * const UNIT_BOUNDING_BOX("objectBoundingBox"); const char * const SPREAD_PAD("pad"); const char * const SPREAD_REFLECT("reflect"); const char * const SPREAD_REPEAT("repeat"); diff --git a/dali-toolkit/internal/controls/renderers/gradient/gradient-renderer.h b/dali-toolkit/internal/controls/renderers/gradient/gradient-renderer.h index 0747a1c..87cb854 100644 --- a/dali-toolkit/internal/controls/renderers/gradient/gradient-renderer.h +++ b/dali-toolkit/internal/controls/renderers/gradient/gradient-renderer.h @@ -40,31 +40,31 @@ class Gradient; * * The following properties are essential for create a LINEAR GradientRender * - * | %Property Name | Type | - * |---------------------------|------------------| - * | gradient-start-position | VECTOR2 | - * | gradient-end-position | VECTOR2 | - * | gradient-stop-offset | ARRAY of FLOAT | - * | gradient-stop-color | ARRAY of VECTOR4 | + * | %Property Name | Type | + * |-------------------------|------------------| + * | gradientStartPosition | VECTOR2 | + * | gradientEndPosition | VECTOR2 | + * | gradientStopOffset | ARRAY of FLOAT | + * | gradientStopColor | ARRAY of VECTOR4 | * * The following properties are essential for create a RADIAL GradientRender * - * | %Property Name | Type | - * |---------------------------|------------------| - * | gradient-center | VECTOR2 | - * | gradient-radius | FLOAT | - * | gradient-stop-offset | ARRAY of FLOAT | - * | gradient-stop-color | ARRAY of VECTOR4 | + * | %Property Name | Type | + * |-------------------------|------------------| + * | gradientCenter | VECTOR2 | + * | gradientRadius | FLOAT | + * | gradientStopOffset | ARRAY of FLOAT | + * | gradientStopColor | ARRAY of VECTOR4 | * * The following properties are optional for both LINEAR and RADIAL GradientRender. * - * | %Property Name | Type | - * |---------------------------|------------------| - * | gradient-units | STRING | - * | gradient-spread-method | STRING | + * | %Property Name | Type | + * |-------------------------|------------------| + * | gradientUnits | STRING | + * | gradientSpreadMethod | STRING | * - * Valid values for gradient-units are 'user-space' and 'object-bounding-box'. - * Valid values for gradient-spread-method are 'pad', 'repeat' and 'reflect.' + * Valid values for gradientUnits are 'userSpace' and 'objectBoundingBox'. + * Valid values for gradientSpreadMethod are 'pad', 'repeat' and 'reflect.' * If not provided, 'objectBoundingBox' is used as default gradient units, and 'pad' is used as default spread method. */ class GradientRenderer: public ControlRenderer diff --git a/dali-toolkit/internal/controls/renderers/image/image-renderer.cpp b/dali-toolkit/internal/controls/renderers/image/image-renderer.cpp index ea055a4..b78cdab 100644 --- a/dali-toolkit/internal/controls/renderers/image/image-renderer.cpp +++ b/dali-toolkit/internal/controls/renderers/image/image-renderer.cpp @@ -39,31 +39,31 @@ namespace Internal namespace { -const char * const RENDERER_TYPE("renderer-type"); -const char * const RENDERER_TYPE_VALUE("image-renderer"); +const char * const RENDERER_TYPE("rendererType"); +const char * const RENDERER_TYPE_VALUE("imageRenderer"); // property names -const char * const IMAGE_URL_NAME( "image-url" ); -const char * const IMAGE_FITTING_MODE( "image-fitting-mode" ); -const char * const IMAGE_SAMPLING_MODE( "image-sampling-mode" ); -const char * const IMAGE_DESIRED_WIDTH( "image-desired-width" ); -const char * const IMAGE_DESIRED_HEIGHT( "image-desired-height" ); +const char * const IMAGE_URL_NAME( "imageUrl" ); +const char * const IMAGE_FITTING_MODE( "imageFittingMode" ); +const char * const IMAGE_SAMPLING_MODE( "imageSamplingMode" ); +const char * const IMAGE_DESIRED_WIDTH( "imageDesiredWidth" ); +const char * const IMAGE_DESIRED_HEIGHT( "imageDesiredHeight" ); // fitting modes -const char * const SHRINK_TO_FIT("shrink-to-fit"); -const char * const SCALE_TO_FILL("scale-to-fill"); -const char * const FIT_WIDTH("fit-width"); -const char * const FIT_HEIGHT("fit-height"); +const char * const SHRINK_TO_FIT("shrinkToFit"); +const char * const SCALE_TO_FILL("scaleToFill"); +const char * const FIT_WIDTH("fitWidth"); +const char * const FIT_HEIGHT("fitHeight"); const char * const DEFAULT("default"); // sampling modes const char * const BOX("box"); const char * const NEAREST("nearest"); const char * const LINEAR("linear"); -const char * const BOX_THEN_NEAREST("box-then-nearest"); -const char * const BOX_THEN_LINEAR("box-then-linear"); -const char * const NO_FILTER("no-filter"); -const char * const DONT_CARE("dont-care"); +const char * const BOX_THEN_NEAREST("boxThenNearest"); +const char * const BOX_THEN_LINEAR("boxThenLinear"); +const char * const NO_FILTER("noFilter"); +const char * const DONT_CARE("dontCare"); std::string TEXTURE_UNIFORM_NAME = "sTexture"; diff --git a/dali-toolkit/internal/controls/renderers/image/image-renderer.h b/dali-toolkit/internal/controls/renderers/image/image-renderer.h index e01efd0..8498e54 100644 --- a/dali-toolkit/internal/controls/renderers/image/image-renderer.h +++ b/dali-toolkit/internal/controls/renderers/image/image-renderer.h @@ -43,29 +43,29 @@ typedef IntrusivePtr< ImageRenderer > ImageRendererPtr; * * The following properties are optional * - * | %Property Name | Type | - * |---------------------------|------------------| - * | image-url | STRING | - * | image-fitting-mode | STRING | - * | image-sampling-mode | STRING | - * | image-desired-width | INT | - * | image-desired-height | INT | + * | %Property Name | Type | + * |-------------------------|------------------| + * | imageUrl | STRING | + * | imageFittingMode | STRING | + * | imageSamplingMode | STRING | + * | imageDesiredWidth | INT | + * | imageDesiredHeight | INT | * - * where image-fitting-mode should be one of the following fitting modes: - * "shrink-to-fit" - * "scale-to-fill" - * "fit-width" - * "fit-height" + * where imageFittingMode should be one of the following fitting modes: + * "shrinkToFit" + * "scaleToFill" + * "fitWidth" + * "fitHeight" * "default" * - * where image-sampling-mode should be one of the following sampling modes: + * where imageSamplingMode should be one of the following sampling modes: * "box" * "nearest" * "linear" - * "box-then-nearest" - * "box-then-linear" - * "no-filter" - * "dont-care" + * "boxThenNearest" + * "boxThenLinear" + * "noFilter" + * "dontCare" * "default" * */ diff --git a/dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.cpp b/dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.cpp index 64a1763..13bf830 100644 --- a/dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.cpp +++ b/dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.cpp @@ -41,11 +41,11 @@ namespace Internal namespace { -const char * const RENDERER_TYPE("renderer-type"); -const char * const RENDERER_TYPE_VALUE("n-patch-renderer"); +const char * const RENDERER_TYPE("rendererType"); +const char * const RENDERER_TYPE_VALUE("nPatchRenderer"); -const char * const IMAGE_URL_NAME("image-url"); -const char * const BORDER_ONLY("border-only"); +const char * const IMAGE_URL_NAME("imageUrl"); +const char * const BORDER_ONLY("borderOnly"); std::string TEXTURE_UNIFORM_NAME = "sTexture"; @@ -222,7 +222,7 @@ void NPatchRenderer::DoInitialize( Actor& actor, const Property::Map& propertyMa Property::Value* imageURLValue = propertyMap.Find( IMAGE_URL_NAME ); if( imageURLValue ) { - //Read the border-only property first since InitialiseFromImage relies on mBorderOnly to be properly set + //Read the borderOnly property first since InitialiseFromImage relies on mBorderOnly to be properly set Property::Value* borderOnlyValue = propertyMap.Find( BORDER_ONLY ); if( borderOnlyValue ) { diff --git a/dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.h b/dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.h index 0844e7b..b6c22e8 100644 --- a/dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.h +++ b/dali-toolkit/internal/controls/renderers/npatch/npatch-renderer.h @@ -43,10 +43,10 @@ namespace Internal * * The following properties are optional * - * | %Property Name | Type | - * |---------------------------|------------------| - * | image-url | STRING | - * | border-only | BOOLEAN + * | %Property Name | Type | + * |--------------------------|------------------| + * | imageUrl | STRING | + * | borderOnly | BOOLEAN * */ class NPatchRenderer: public ControlRenderer diff --git a/dali-toolkit/internal/controls/renderers/renderer-factory-impl.cpp b/dali-toolkit/internal/controls/renderers/renderer-factory-impl.cpp index a91aa71..4e6bd38 100644 --- a/dali-toolkit/internal/controls/renderers/renderer-factory-impl.cpp +++ b/dali-toolkit/internal/controls/renderers/renderer-factory-impl.cpp @@ -34,13 +34,13 @@ namespace { -const char * const RENDERER_TYPE_NAME( "renderer-type" ); +const char * const RENDERER_TYPE_NAME( "rendererType" ); -const char * const COLOR_RENDERER("color-renderer"); -const char * const BORDER_RENDERER("border-renderer"); -const char * const GRADIENT_RENDERER("gradient-renderer"); -const char * const IMAGE_RENDERER("image-renderer"); -const char * const N_PATCH_RENDERER("n-patch-renderer"); +const char * const COLOR_RENDERER("colorRenderer"); +const char * const BORDER_RENDERER("borderRenderer"); +const char * const GRADIENT_RENDERER("gradientRenderer"); +const char * const IMAGE_RENDERER("imageRenderer"); +const char * const N_PATCH_RENDERER("nPatchRenderer"); const char * const BROKEN_RENDERER_IMAGE_URL( DALI_IMAGE_DIR "broken.png"); } diff --git a/dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.cpp b/dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.cpp index f92f721..ff3dbb1 100755 --- a/dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.cpp +++ b/dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.cpp @@ -133,15 +133,15 @@ BaseHandle Create() // Setup properties, signals and actions using the type-registry. DALI_TYPE_REGISTRATION_BEGIN( Toolkit::ScrollBar, Toolkit::Control, Create ); -DALI_PROPERTY_REGISTRATION( Toolkit, ScrollBar, "scroll-direction", STRING, SCROLL_DIRECTION ) -DALI_PROPERTY_REGISTRATION( Toolkit, ScrollBar, "indicator-height-policy", STRING, INDICATOR_HEIGHT_POLICY ) -DALI_PROPERTY_REGISTRATION( Toolkit, ScrollBar, "indicator-fixed-height", FLOAT, INDICATOR_FIXED_HEIGHT ) -DALI_PROPERTY_REGISTRATION( Toolkit, ScrollBar, "indicator-show-duration", FLOAT, INDICATOR_SHOW_DURATION ) -DALI_PROPERTY_REGISTRATION( Toolkit, ScrollBar, "indicator-hide-duration", FLOAT, INDICATOR_HIDE_DURATION ) -DALI_PROPERTY_REGISTRATION( Toolkit, ScrollBar, "scroll-position-intervals", ARRAY, SCROLL_POSITION_INTERVALS ) - -DALI_SIGNAL_REGISTRATION( Toolkit, ScrollBar, "pan-finished", PAN_FINISHED_SIGNAL ) -DALI_SIGNAL_REGISTRATION( Toolkit, ScrollBar, "scroll-position-interval-reached", SCROLL_POSITION_INTERVAL_REACHED_SIGNAL ) +DALI_PROPERTY_REGISTRATION( Toolkit, ScrollBar, "scrollDirection", STRING, SCROLL_DIRECTION ) +DALI_PROPERTY_REGISTRATION( Toolkit, ScrollBar, "indicatorHeightPolicy", STRING, INDICATOR_HEIGHT_POLICY ) +DALI_PROPERTY_REGISTRATION( Toolkit, ScrollBar, "indicatorFixedHeight", FLOAT, INDICATOR_FIXED_HEIGHT ) +DALI_PROPERTY_REGISTRATION( Toolkit, ScrollBar, "indicatorShowDuration", FLOAT, INDICATOR_SHOW_DURATION ) +DALI_PROPERTY_REGISTRATION( Toolkit, ScrollBar, "indicatorHideDuration", FLOAT, INDICATOR_HIDE_DURATION ) +DALI_PROPERTY_REGISTRATION( Toolkit, ScrollBar, "scrollPositionIntervals", ARRAY, SCROLL_POSITION_INTERVALS ) + +DALI_SIGNAL_REGISTRATION( Toolkit, ScrollBar, "panFinished", PAN_FINISHED_SIGNAL ) +DALI_SIGNAL_REGISTRATION( Toolkit, ScrollBar, "scrollPositionIntervalReached", SCROLL_POSITION_INTERVAL_REACHED_SIGNAL ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp b/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp index a181c9a..17299bc 100644 --- a/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp +++ b/dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp @@ -46,14 +46,14 @@ namespace // Unnamed namespace DALI_TYPE_REGISTRATION_BEGIN( Toolkit::ItemView, Toolkit::Scrollable, NULL) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ItemView, "layout-position", FLOAT, LAYOUT_POSITION) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ItemView, "scroll-speed", FLOAT, SCROLL_SPEED) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ItemView, "layoutPosition", FLOAT, LAYOUT_POSITION) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ItemView, "scrollSpeed", FLOAT, SCROLL_SPEED) DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ItemView, "overshoot", FLOAT, OVERSHOOT) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ItemView, "scroll-direction", VECTOR2, SCROLL_DIRECTION) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ItemView, "layout-orientation", INTEGER, LAYOUT_ORIENTATION) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ItemView, "scroll-content-size", FLOAT, SCROLL_CONTENT_SIZE) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ItemView, "scrollDirection", VECTOR2, SCROLL_DIRECTION) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ItemView, "layoutOrientation", INTEGER, LAYOUT_ORIENTATION) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ItemView, "scrollContentSize", FLOAT, SCROLL_CONTENT_SIZE) -DALI_SIGNAL_REGISTRATION( Toolkit, ItemView, "layout-activated", LAYOUT_ACTIVATED_SIGNAL ) +DALI_SIGNAL_REGISTRATION( Toolkit, ItemView, "layoutActivated", LAYOUT_ACTIVATED_SIGNAL ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp index 929cab2..0bda5ea 100644 --- a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp +++ b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp @@ -74,7 +74,7 @@ const unsigned long MINIMUM_TIME_BETWEEN_DOWN_AND_UP_FOR_RESET( 150u ); const float TOUCH_DOWN_TIMER_INTERVAL = 100.0f; const float DEFAULT_SCROLL_UPDATE_DISTANCE( 30.0f ); ///< Default distance to travel in pixels for scroll update signal -const std::string INTERNAL_MAX_POSITION_PROPERTY_NAME( "internal-max-position" ); +const std::string INTERNAL_MAX_POSITION_PROPERTY_NAME( "internalMaxPosition" ); // Helpers //////////////////////////////////////////////////////////////////////////////////////// @@ -244,29 +244,29 @@ BaseHandle Create() // Setup properties, signals and actions using the type-registry. DALI_TYPE_REGISTRATION_BEGIN( Toolkit::ScrollView, Toolkit::Scrollable, Create ) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scroll-position", VECTOR2, SCROLL_POSITION) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scroll-pre-position", VECTOR2, SCROLL_PRE_POSITION) -DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scroll-pre-position-x", SCROLL_PRE_POSITION_X, SCROLL_PRE_POSITION, 0) -DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scroll-pre-position-y", SCROLL_PRE_POSITION_Y, SCROLL_PRE_POSITION, 1) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scroll-pre-position-max", VECTOR2, SCROLL_PRE_POSITION_MAX) -DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scroll-pre-position-max-x", SCROLL_PRE_POSITION_MAX_X, SCROLL_PRE_POSITION_MAX, 0) -DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scroll-pre-position-max-y", SCROLL_PRE_POSITION_MAX_Y, SCROLL_PRE_POSITION_MAX, 1) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "overshoot-x", FLOAT, OVERSHOOT_X) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "overshoot-y", FLOAT, OVERSHOOT_Y) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scroll-final", VECTOR2, SCROLL_FINAL) -DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scroll-final-x", SCROLL_FINAL_X, SCROLL_FINAL,0) -DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scroll-final-y", SCROLL_FINAL_Y, SCROLL_FINAL,1) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scrollPosition", VECTOR2, SCROLL_POSITION) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scrollPrePosition", VECTOR2, SCROLL_PRE_POSITION) +DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scrollPrePositionX", SCROLL_PRE_POSITION_X, SCROLL_PRE_POSITION, 0) +DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scrollPrePositionY", SCROLL_PRE_POSITION_Y, SCROLL_PRE_POSITION, 1) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scrollPrePositionMax", VECTOR2, SCROLL_PRE_POSITION_MAX) +DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scrollPrePositionMaxX", SCROLL_PRE_POSITION_MAX_X, SCROLL_PRE_POSITION_MAX, 0) +DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scrollPrePositionMaxY", SCROLL_PRE_POSITION_MAX_Y, SCROLL_PRE_POSITION_MAX, 1) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "overshootX", FLOAT, OVERSHOOT_X) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "overshootY", FLOAT, OVERSHOOT_Y) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scrollFinal", VECTOR2, SCROLL_FINAL) +DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scrollFinalX", SCROLL_FINAL_X, SCROLL_FINAL,0) +DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scrollFinalY", SCROLL_FINAL_Y, SCROLL_FINAL,1) DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "wrap", BOOLEAN, WRAP) DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "panning", BOOLEAN, PANNING) DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scrolling", BOOLEAN, SCROLLING) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scroll-domain-size", VECTOR2, SCROLL_DOMAIN_SIZE) -DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scroll-domain-size-x", SCROLL_DOMAIN_SIZE_X, SCROLL_DOMAIN_SIZE, 0) -DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scroll-domain-size-y", SCROLL_DOMAIN_SIZE_Y, SCROLL_DOMAIN_SIZE, 1) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scroll-domain-offset", VECTOR2, SCROLL_DOMAIN_OFFSET) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scroll-position-delta", VECTOR2, SCROLL_POSITION_DELTA) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "start-page-position", VECTOR3, START_PAGE_POSITION) - -DALI_SIGNAL_REGISTRATION( Toolkit, ScrollView, "value-changed", SIGNAL_SNAP_STARTED ) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scrollDomainSize", VECTOR2, SCROLL_DOMAIN_SIZE) +DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scrollDomainSizeX", SCROLL_DOMAIN_SIZE_X, SCROLL_DOMAIN_SIZE, 0) +DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, ScrollView, "scrollDomainSizeY", SCROLL_DOMAIN_SIZE_Y, SCROLL_DOMAIN_SIZE, 1) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scrollDomainOffset", VECTOR2, SCROLL_DOMAIN_OFFSET) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "scrollPositionDelta", VECTOR2, SCROLL_POSITION_DELTA) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, ScrollView, "startPagePosition", VECTOR3, START_PAGE_POSITION) + +DALI_SIGNAL_REGISTRATION( Toolkit, ScrollView, "valueChanged", SIGNAL_SNAP_STARTED ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.h b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.h index c2b62bf..082a046 100644 --- a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.h +++ b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.h @@ -525,7 +525,7 @@ private: // private overriden functions from CustomActorImpl and Controls virtual void OnChildRemove(Actor& child); /** - * From CustomActorImpl; called after a touch-signal is received by the owning actor. + * From CustomActorImpl; called after a touchSignal is received by the owning actor. * * We don't listen to these events as content within the contain may consume events. * @@ -535,7 +535,7 @@ private: // private overriden functions from CustomActorImpl and Controls virtual bool OnTouchEvent(const TouchEvent& event); /** - * From CustomActorImpl; called after a wheel-event is received by the owning actor. + * From CustomActorImpl; called after a wheelEvent is received by the owning actor. * @param[in] event The wheel event. * @return True if the event should be consumed. */ @@ -653,8 +653,8 @@ private: /** * This is called internally whenever the Scroll Rulers are - * modified. This will update the properties: 'scroll-position-min' - * and 'scroll-position-max' to reflect the changes. + * modified. This will update the properties: 'scrollPositionMin' + * and 'scrollPositionMax' to reflect the changes. */ void UpdatePropertyDomain(); diff --git a/dali-toolkit/internal/controls/scrollable/scrollable-impl.cpp b/dali-toolkit/internal/controls/scrollable/scrollable-impl.cpp index 79b463f..98ab55b 100644 --- a/dali-toolkit/internal/controls/scrollable/scrollable-impl.cpp +++ b/dali-toolkit/internal/controls/scrollable/scrollable-impl.cpp @@ -46,24 +46,24 @@ BaseHandle Create() // Setup properties, signals and actions using the type-registry. DALI_TYPE_REGISTRATION_BEGIN( Toolkit::Scrollable, Toolkit::Control, Create ); -DALI_PROPERTY_REGISTRATION( Toolkit, Scrollable, "overshoot-effect-color", VECTOR4, OVERSHOOT_EFFECT_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, Scrollable, "overshoot-animation-speed", FLOAT, OVERSHOOT_ANIMATION_SPEED ) +DALI_PROPERTY_REGISTRATION( Toolkit, Scrollable, "overshootEffectColor", VECTOR4, OVERSHOOT_EFFECT_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, Scrollable, "overshootAnimationSpeed", FLOAT, OVERSHOOT_ANIMATION_SPEED ) const int OVERSHOOT_SIZE = Dali::Toolkit::Scrollable::Property::OVERSHOOT_ANIMATION_SPEED + 1; // OVERSHOOT_SIZE is not public yet -Dali::PropertyRegistration p1( typeRegistration, "overshoot-size", OVERSHOOT_SIZE, Property::VECTOR2, Dali::Toolkit::Internal::Scrollable::SetProperty, Dali::Toolkit::Internal::Scrollable::GetProperty ); - -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, Scrollable, "scroll-relative-position", VECTOR2, SCROLL_RELATIVE_POSITION) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, Scrollable, "scroll-position-min", VECTOR2, SCROLL_POSITION_MIN) -DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, Scrollable, "scroll-position-min-x", SCROLL_POSITION_MIN_X, SCROLL_POSITION_MIN, 0) -DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, Scrollable, "scroll-position-min-y", SCROLL_POSITION_MIN_Y, SCROLL_POSITION_MIN, 1) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, Scrollable, "scroll-position-max", VECTOR2, SCROLL_POSITION_MAX) -DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, Scrollable, "scroll-position-max-x", SCROLL_POSITION_MAX_X, SCROLL_POSITION_MAX, 0) -DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, Scrollable, "scroll-position-max-y", SCROLL_POSITION_MAX_Y, SCROLL_POSITION_MAX, 1) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, Scrollable, "can-scroll-vertical", BOOLEAN, CAN_SCROLL_VERTICAL) -DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, Scrollable, "can-scroll-horizontal", BOOLEAN, CAN_SCROLL_HORIZONTAL) - -DALI_SIGNAL_REGISTRATION( Toolkit, Scrollable, "scroll-started", SIGNAL_SCROLL_STARTED ) -DALI_SIGNAL_REGISTRATION( Toolkit, Scrollable, "scroll-completed", SIGNAL_SCROLL_COMPLETED ) -DALI_SIGNAL_REGISTRATION( Toolkit, Scrollable, "scroll-updated", SIGNAL_SCROLL_UPDATED ) +Dali::PropertyRegistration p1( typeRegistration, "overshootSize", OVERSHOOT_SIZE, Property::VECTOR2, Dali::Toolkit::Internal::Scrollable::SetProperty, Dali::Toolkit::Internal::Scrollable::GetProperty ); + +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, Scrollable, "scrollRelativePosition", VECTOR2, SCROLL_RELATIVE_POSITION) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, Scrollable, "scrollPositionMin", VECTOR2, SCROLL_POSITION_MIN) +DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, Scrollable, "scrollPositionMinX", SCROLL_POSITION_MIN_X, SCROLL_POSITION_MIN, 0) +DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, Scrollable, "scrollPositionMinY", SCROLL_POSITION_MIN_Y, SCROLL_POSITION_MIN, 1) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, Scrollable, "scrollPositionMax", VECTOR2, SCROLL_POSITION_MAX) +DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, Scrollable, "scrollPositionMaxX", SCROLL_POSITION_MAX_X, SCROLL_POSITION_MAX, 0) +DALI_ANIMATABLE_PROPERTY_COMPONENT_REGISTRATION( Toolkit, Scrollable, "scrollPositionMaxY", SCROLL_POSITION_MAX_Y, SCROLL_POSITION_MAX, 1) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, Scrollable, "canScrollVertical", BOOLEAN, CAN_SCROLL_VERTICAL) +DALI_ANIMATABLE_PROPERTY_REGISTRATION( Toolkit, Scrollable, "canScrollHorizontal", BOOLEAN, CAN_SCROLL_HORIZONTAL) + +DALI_SIGNAL_REGISTRATION( Toolkit, Scrollable, "scrollStarted", SIGNAL_SCROLL_STARTED ) +DALI_SIGNAL_REGISTRATION( Toolkit, Scrollable, "scrollCompleted", SIGNAL_SCROLL_COMPLETED ) +DALI_SIGNAL_REGISTRATION( Toolkit, Scrollable, "scrollUpdated", SIGNAL_SCROLL_UPDATED ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/controls/shadow-view/shadow-view-impl.cpp b/dali-toolkit/internal/controls/shadow-view/shadow-view-impl.cpp index 80682f1..c1d614f 100644 --- a/dali-toolkit/internal/controls/shadow-view/shadow-view-impl.cpp +++ b/dali-toolkit/internal/controls/shadow-view/shadow-view-impl.cpp @@ -257,13 +257,13 @@ void ShadowView::OnInitialize() Property::Map customShader; - customShader[ "vertex-shader" ] = RENDER_SHADOW_VERTEX_SOURCE; - customShader[ "fragment-shader" ] = RENDER_SHADOW_FRAGMENT_SOURCE; + customShader[ "vertexShader" ] = RENDER_SHADOW_VERTEX_SOURCE; + customShader[ "fragmentShader" ] = RENDER_SHADOW_FRAGMENT_SOURCE; - customShader[ "subdivide-grid-x" ] = 20; - customShader[ "subdivide-grid-y" ] = 20; + customShader[ "subdivideGridX" ] = 20; + customShader[ "subdivideGridY" ] = 20; - customShader[ "hints" ] = "output-is-transparent"; + customShader[ "hints" ] = "outputIsTransparent"; mShadowRenderShader[ "shader" ] = customShader; diff --git a/dali-toolkit/internal/controls/slider/slider-impl.cpp b/dali-toolkit/internal/controls/slider/slider-impl.cpp index 38ceffe..ca94e91 100755 --- a/dali-toolkit/internal/controls/slider/slider-impl.cpp +++ b/dali-toolkit/internal/controls/slider/slider-impl.cpp @@ -52,28 +52,28 @@ BaseHandle Create() // Setup properties, signals and actions using the type-registry. DALI_TYPE_REGISTRATION_BEGIN( Toolkit::Slider, Toolkit::Control, Create ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "lower-bound", FLOAT, LOWER_BOUND ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "upper-bound", FLOAT, UPPER_BOUND ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "lowerBound", FLOAT, LOWER_BOUND ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "upperBound", FLOAT, UPPER_BOUND ) DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "value", FLOAT, VALUE ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "hit-region", VECTOR2, HIT_REGION ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "backing-region", VECTOR2, BACKING_REGION ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "handle-region", VECTOR2, HANDLE_REGION ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "backing-image-name", STRING, BACKING_IMAGE_NAME ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "handle-image-name", STRING, HANDLE_IMAGE_NAME ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "progress-image-name", STRING, PROGRESS_IMAGE_NAME ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "popup-image-name", STRING, POPUP_IMAGE_NAME ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "popup-arrow-image-name", STRING, POPUP_ARROW_IMAGE_NAME ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "disable-color", VECTOR4, DISABLE_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "popup-text-color", VECTOR4, POPUP_TEXT_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "value-precision", INTEGER, VALUE_PRECISION ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "show-popup", BOOLEAN, SHOW_POPUP ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "show-value", BOOLEAN, SHOW_VALUE ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "hitRegion", VECTOR2, HIT_REGION ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "backingRegion", VECTOR2, BACKING_REGION ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "handleRegion", VECTOR2, HANDLE_REGION ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "backingImageName", STRING, BACKING_IMAGE_NAME ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "handleImageName", STRING, HANDLE_IMAGE_NAME ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "progressImageName", STRING, PROGRESS_IMAGE_NAME ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "popupImageName", STRING, POPUP_IMAGE_NAME ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "popupArrowImageName", STRING, POPUP_ARROW_IMAGE_NAME ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "disableColor", VECTOR4, DISABLE_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "popupTextColor", VECTOR4, POPUP_TEXT_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "valuePrecision", INTEGER, VALUE_PRECISION ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "showPopup", BOOLEAN, SHOW_POPUP ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "showValue", BOOLEAN, SHOW_VALUE ) DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "enabled", BOOLEAN, ENABLED ) DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "marks", ARRAY, MARKS ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "snap-to-marks", BOOLEAN, SNAP_TO_MARKS ) -DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "mark-tolerance", FLOAT, MARK_TOLERANCE ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "snapToMarks", BOOLEAN, SNAP_TO_MARKS ) +DALI_PROPERTY_REGISTRATION( Toolkit, Slider, "markTolerance", FLOAT, MARK_TOLERANCE ) -DALI_SIGNAL_REGISTRATION( Toolkit, Slider, "value-changed", SIGNAL_VALUE_CHANGED ) +DALI_SIGNAL_REGISTRATION( Toolkit, Slider, "valueChanged", SIGNAL_VALUE_CHANGED ) DALI_SIGNAL_REGISTRATION( Toolkit, Slider, "mark", SIGNAL_MARK ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.cpp b/dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.cpp index 2c93d41..cd36331 100644 --- a/dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.cpp +++ b/dali-toolkit/internal/controls/super-blur-view/super-blur-view-impl.cpp @@ -137,7 +137,7 @@ Toolkit::SuperBlurView SuperBlurView::New( unsigned int blurLevels ) void SuperBlurView::OnInitialize() { - mBlurStrengthPropertyIndex = Self().RegisterProperty( "blur-strength",0.f ); + mBlurStrengthPropertyIndex = Self().RegisterProperty( "blurStrength", 0.f ); DALI_ASSERT_ALWAYS( mImageActors.size() == mBlurLevels+1 && "must synchronize the ImageActor group if blur levels got changed " ); for(unsigned int i=0; i<=mBlurLevels;i++) diff --git a/dali-toolkit/internal/controls/table-view/table-view-impl.cpp b/dali-toolkit/internal/controls/table-view/table-view-impl.cpp index f482fdd..d2e46fd 100644 --- a/dali-toolkit/internal/controls/table-view/table-view-impl.cpp +++ b/dali-toolkit/internal/controls/table-view/table-view-impl.cpp @@ -39,11 +39,11 @@ namespace * * These non-animatable properties should be registered to the child which would be added to the table */ -const char * const CELL_INDEX_PROPERTY_NAME("cell-index"); -const char * const ROW_SPAN_PROPERTY_NAME("row-span"); -const char * const COLUMN_SPAN_PROPERTY_NAME("column-span"); -const char * const CELL_HORIZONTAL_ALIGNMENT_PROPERTY_NAME("cell-horizontal-alignment"); -const char * const CELL_VERTICAL_ALIGNMENT_PROPERTY_NAME("cell-vertical-alignment"); +const char * const CELL_INDEX_PROPERTY_NAME("cellIndex"); +const char * const ROW_SPAN_PROPERTY_NAME("rowSpan"); +const char * const COLUMN_SPAN_PROPERTY_NAME("columnSpan"); +const char * const CELL_HORIZONTAL_ALIGNMENT_PROPERTY_NAME("cellHorizontalAlignment"); +const char * const CELL_VERTICAL_ALIGNMENT_PROPERTY_NAME("cellVerticalAlignment"); /** * @brief Should the tableview fit around the given actor @@ -144,9 +144,9 @@ DALI_TYPE_REGISTRATION_BEGIN( Toolkit::TableView, Toolkit::Control, Create ); DALI_PROPERTY_REGISTRATION( Toolkit, TableView, "rows", INTEGER, ROWS ) DALI_PROPERTY_REGISTRATION( Toolkit, TableView, "columns", INTEGER, COLUMNS ) -DALI_PROPERTY_REGISTRATION( Toolkit, TableView, "cell-padding", VECTOR2, CELL_PADDING ) -DALI_PROPERTY_REGISTRATION( Toolkit, TableView, "layout-rows", MAP, LAYOUT_ROWS ) -DALI_PROPERTY_REGISTRATION( Toolkit, TableView, "layout-columns", MAP, LAYOUT_COLUMNS ) +DALI_PROPERTY_REGISTRATION( Toolkit, TableView, "cellPadding", VECTOR2, CELL_PADDING ) +DALI_PROPERTY_REGISTRATION( Toolkit, TableView, "layoutRows", MAP, LAYOUT_ROWS ) +DALI_PROPERTY_REGISTRATION( Toolkit, TableView, "layoutColumns", MAP, LAYOUT_COLUMNS ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp index 5a6ce62..c078a25 100644 --- a/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-field-impl.cpp @@ -84,43 +84,43 @@ BaseHandle Create() // Setup properties, signals and actions using the type-registry. DALI_TYPE_REGISTRATION_BEGIN( Toolkit::TextField, Toolkit::Control, Create ); -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "rendering-backend", INTEGER, RENDERING_BACKEND ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "renderingBackend", INTEGER, RENDERING_BACKEND ) DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "text", STRING, TEXT ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "placeholder-text", STRING, PLACEHOLDER_TEXT ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "placeholder-text-focused", STRING, PLACEHOLDER_TEXT_FOCUSED ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "font-family", STRING, FONT_FAMILY ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "font-style", STRING, FONT_STYLE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "point-size", FLOAT, POINT_SIZE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "max-length", INTEGER, MAX_LENGTH ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "exceed-policy", INTEGER, EXCEED_POLICY ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "horizontal-alignment", STRING, HORIZONTAL_ALIGNMENT ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "vertical-alignment", STRING, VERTICAL_ALIGNMENT ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "text-color", VECTOR4, TEXT_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "placeholder-text-color", VECTOR4, PLACEHOLDER_TEXT_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "shadow-offset", VECTOR2, SHADOW_OFFSET ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "shadow-color", VECTOR4, SHADOW_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "primary-cursor-color", VECTOR4, PRIMARY_CURSOR_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "secondary-cursor-color", VECTOR4, SECONDARY_CURSOR_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "enable-cursor-blink", BOOLEAN, ENABLE_CURSOR_BLINK ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "cursor-blink-interval", FLOAT, CURSOR_BLINK_INTERVAL ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "cursor-blink-duration", FLOAT, CURSOR_BLINK_DURATION ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "cursor-width", INTEGER, CURSOR_WIDTH ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "grab-handle-image", STRING, GRAB_HANDLE_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "grab-handle-pressed-image", STRING, GRAB_HANDLE_PRESSED_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "scroll-threshold", FLOAT, SCROLL_THRESHOLD ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "scroll-speed", FLOAT, SCROLL_SPEED ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "selection-handle-image-left", MAP, SELECTION_HANDLE_IMAGE_LEFT ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "selection-handle-image-right", MAP, SELECTION_HANDLE_IMAGE_RIGHT ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "selection-handle-pressed-image-left", MAP, SELECTION_HANDLE_PRESSED_IMAGE_LEFT ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "selection-handle-pressed-image-right", MAP, SELECTION_HANDLE_PRESSED_IMAGE_RIGHT ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "selection-handle-marker-image-left", MAP, SELECTION_HANDLE_MARKER_IMAGE_LEFT ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "selection-handle-marker-image-right", MAP, SELECTION_HANDLE_MARKER_IMAGE_RIGHT ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "selection-highlight-color", VECTOR4, SELECTION_HIGHLIGHT_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "decoration-bounding-box", RECTANGLE, DECORATION_BOUNDING_BOX ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "input-method-settings", MAP, INPUT_METHOD_SETTINGS ) - -DALI_SIGNAL_REGISTRATION( Toolkit, TextField, "text-changed", SIGNAL_TEXT_CHANGED ) -DALI_SIGNAL_REGISTRATION( Toolkit, TextField, "max-length-reached", SIGNAL_MAX_LENGTH_REACHED ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "placeholderText", STRING, PLACEHOLDER_TEXT ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "placeholderTextFocused", STRING, PLACEHOLDER_TEXT_FOCUSED ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "fontFamily", STRING, FONT_FAMILY ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "fontStyle", STRING, FONT_STYLE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "pointSize", FLOAT, POINT_SIZE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "maxLength", INTEGER, MAX_LENGTH ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "exceedPolicy", INTEGER, EXCEED_POLICY ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "horizontalAlignment", STRING, HORIZONTAL_ALIGNMENT ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "verticalAlignment", STRING, VERTICAL_ALIGNMENT ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "textColor", VECTOR4, TEXT_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "placeholderTextColor", VECTOR4, PLACEHOLDER_TEXT_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "shadowOffset", VECTOR2, SHADOW_OFFSET ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "shadowColor", VECTOR4, SHADOW_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "primaryCursorColor", VECTOR4, PRIMARY_CURSOR_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "secondaryCursorColor", VECTOR4, SECONDARY_CURSOR_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "enableCursorBlink", BOOLEAN, ENABLE_CURSOR_BLINK ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "cursorBlinkInterval", FLOAT, CURSOR_BLINK_INTERVAL ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "cursorBlinkDuration", FLOAT, CURSOR_BLINK_DURATION ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "cursorWidth", INTEGER, CURSOR_WIDTH ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "grabHandleImage", STRING, GRAB_HANDLE_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "grabHandlePressedImage", STRING, GRAB_HANDLE_PRESSED_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "scrollThreshold", FLOAT, SCROLL_THRESHOLD ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "scrollSpeed", FLOAT, SCROLL_SPEED ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "selectionHandleImageLeft", MAP, SELECTION_HANDLE_IMAGE_LEFT ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "selectionHandleImageRight", MAP, SELECTION_HANDLE_IMAGE_RIGHT ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "selectionHandlePressedImageLeft", MAP, SELECTION_HANDLE_PRESSED_IMAGE_LEFT ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "selectionHandlePressedImageRight", MAP, SELECTION_HANDLE_PRESSED_IMAGE_RIGHT ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "selectionHandleMarkerImageLeft", MAP, SELECTION_HANDLE_MARKER_IMAGE_LEFT ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "selectionHandleMarkerImageRight", MAP, SELECTION_HANDLE_MARKER_IMAGE_RIGHT ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "selectionHighlightColor", VECTOR4, SELECTION_HIGHLIGHT_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "decorationBoundingBox", RECTANGLE, DECORATION_BOUNDING_BOX ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextField, "inputMethodSettings", MAP, INPUT_METHOD_SETTINGS ) + +DALI_SIGNAL_REGISTRATION( Toolkit, TextField, "textChanged", SIGNAL_TEXT_CHANGED ) +DALI_SIGNAL_REGISTRATION( Toolkit, TextField, "maxLengthReached", SIGNAL_MAX_LENGTH_REACHED ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/controls/text-controls/text-font-style.h b/dali-toolkit/internal/controls/text-controls/text-font-style.h index 35696af..68c230c 100644 --- a/dali-toolkit/internal/controls/text-controls/text-font-style.h +++ b/dali-toolkit/internal/controls/text-controls/text-font-style.h @@ -36,38 +36,38 @@ namespace Text const Scripting::StringEnum FONT_WIDTH_STRING_TABLE[] = { - { "ultra-condensed", TextAbstraction::FontWidth::ULTRA_CONDENSED }, - { "extra-condensed", TextAbstraction::FontWidth::EXTRA_CONDENSED }, + { "ultraCondensed", TextAbstraction::FontWidth::ULTRA_CONDENSED }, + { "extraCondensed", TextAbstraction::FontWidth::EXTRA_CONDENSED }, { "condensed", TextAbstraction::FontWidth::CONDENSED }, - { "semi-condensed", TextAbstraction::FontWidth::SEMI_CONDENSED }, + { "semiCondensed", TextAbstraction::FontWidth::SEMI_CONDENSED }, { "normal", TextAbstraction::FontWidth::NORMAL }, - { "semi-expanded", TextAbstraction::FontWidth::SEMI_EXPANDED }, + { "semiExpanded", TextAbstraction::FontWidth::SEMI_EXPANDED }, { "expanded", TextAbstraction::FontWidth::EXPANDED }, - { "extra-expanded", TextAbstraction::FontWidth::EXTRA_EXPANDED }, - { "ultra-expanded", TextAbstraction::FontWidth::ULTRA_EXPANDED }, + { "extraExpanded", TextAbstraction::FontWidth::EXTRA_EXPANDED }, + { "ultraExpanded", TextAbstraction::FontWidth::ULTRA_EXPANDED }, }; const unsigned int FONT_WIDTH_STRING_TABLE_COUNT = sizeof( FONT_WIDTH_STRING_TABLE ) / sizeof( FONT_WIDTH_STRING_TABLE[0] ); const Scripting::StringEnum FONT_WEIGHT_STRING_TABLE[] = { { "thin", TextAbstraction::FontWeight::THIN }, - { "ultra-light", TextAbstraction::FontWeight::ULTRA_LIGHT }, - { "extra-light", TextAbstraction::FontWeight::EXTRA_LIGHT }, + { "ultraLight", TextAbstraction::FontWeight::ULTRA_LIGHT }, + { "extraLight", TextAbstraction::FontWeight::EXTRA_LIGHT }, { "light", TextAbstraction::FontWeight::LIGHT }, - { "demi-light", TextAbstraction::FontWeight::DEMI_LIGHT }, - { "semi-light", TextAbstraction::FontWeight::SEMI_LIGHT }, + { "demiLight", TextAbstraction::FontWeight::DEMI_LIGHT }, + { "semiLight", TextAbstraction::FontWeight::SEMI_LIGHT }, { "book", TextAbstraction::FontWeight::BOOK }, { "normal", TextAbstraction::FontWeight::NORMAL }, { "regular", TextAbstraction::FontWeight::REGULAR }, { "medium", TextAbstraction::FontWeight::MEDIUM }, - { "demi-bold", TextAbstraction::FontWeight::DEMI_BOLD }, - { "semi-bold", TextAbstraction::FontWeight::SEMI_BOLD }, + { "demiBold", TextAbstraction::FontWeight::DEMI_BOLD }, + { "semiBold", TextAbstraction::FontWeight::SEMI_BOLD }, { "bold", TextAbstraction::FontWeight::BOLD }, - { "ultra-bold", TextAbstraction::FontWeight::ULTRA_BOLD }, - { "extra-bold", TextAbstraction::FontWeight::EXTRA_BOLD }, + { "ultraBold", TextAbstraction::FontWeight::ULTRA_BOLD }, + { "extraBold", TextAbstraction::FontWeight::EXTRA_BOLD }, { "black", TextAbstraction::FontWeight::BLACK }, { "heavy", TextAbstraction::FontWeight::HEAVY }, - { "extra-black", TextAbstraction::FontWeight::EXTRA_BLACK } + { "extraBlack", TextAbstraction::FontWeight::EXTRA_BLACK } }; const unsigned int FONT_WEIGHT_STRING_TABLE_COUNT = sizeof( FONT_WEIGHT_STRING_TABLE ) / sizeof( FONT_WEIGHT_STRING_TABLE[0] ); diff --git a/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp index fd0bcae..6b19664 100644 --- a/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-label-impl.cpp @@ -79,20 +79,20 @@ BaseHandle Create() // Setup properties, signals and actions using the type-registry. DALI_TYPE_REGISTRATION_BEGIN( Toolkit::TextLabel, Toolkit::Control, Create ); -DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "rendering-backend", INTEGER, RENDERING_BACKEND ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "renderingBackend", INTEGER, RENDERING_BACKEND ) DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "text", STRING, TEXT ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "font-family", STRING, FONT_FAMILY ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "font-style", STRING, FONT_STYLE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "point-size", FLOAT, POINT_SIZE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "multi-line", BOOLEAN, MULTI_LINE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "horizontal-alignment", STRING, HORIZONTAL_ALIGNMENT ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "vertical-alignment", STRING, VERTICAL_ALIGNMENT ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "text-color", VECTOR4, TEXT_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "shadow-offset", VECTOR2, SHADOW_OFFSET ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "shadow-color", VECTOR4, SHADOW_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "underline-enabled", BOOLEAN, UNDERLINE_ENABLED ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "underline-color", VECTOR4, UNDERLINE_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "underline-height", FLOAT, UNDERLINE_HEIGHT ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "fontFamily", STRING, FONT_FAMILY ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "fontStyle", STRING, FONT_STYLE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "pointSize", FLOAT, POINT_SIZE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "multiLine", BOOLEAN, MULTI_LINE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "horizontalAlignment", STRING, HORIZONTAL_ALIGNMENT ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "verticalAlignment", STRING, VERTICAL_ALIGNMENT ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "textColor", VECTOR4, TEXT_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "shadowOffset", VECTOR2, SHADOW_OFFSET ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "shadowColor", VECTOR4, SHADOW_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "underlineEnabled", BOOLEAN, UNDERLINE_ENABLED ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "underlineColor", VECTOR4, UNDERLINE_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextLabel, "underlineHeight", FLOAT, UNDERLINE_HEIGHT ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.cpp index 3a42d6a..6c69704 100644 --- a/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-selection-popup-impl.cpp @@ -80,10 +80,10 @@ const Dali::Vector4 DEFAULT_OPTION_PRESSED_COLOR( Dali::Vector4( 0.24f, 0.72f, 0 const char* const OPTION_SELECT_WORD = "option-select_word"; // "Select Word" popup option. const char* const OPTION_SELECT_ALL("option-select_all"); // "Select All" popup option. -const char* const OPTION_CUT("option-cut"); // "Cut" popup option. -const char* const OPTION_COPY("option-copy"); // "Copy" popup option. -const char* const OPTION_PASTE("option-paste"); // "Paste" popup option. -const char* const OPTION_CLIPBOARD("option-clipboard"); // "Clipboard" popup option. +const char* const OPTION_CUT("optionCut"); // "Cut" popup option. +const char* const OPTION_COPY("optionCopy"); // "Copy" popup option. +const char* const OPTION_PASTE("optionPaste"); // "Paste" popup option. +const char* const OPTION_CLIPBOARD("optionClipboard"); // "Clipboard" popup option. BaseHandle Create() { @@ -94,23 +94,23 @@ BaseHandle Create() DALI_TYPE_REGISTRATION_BEGIN( Toolkit::TextSelectionPopup, Toolkit::Control, Create ); -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popup-max-size", VECTOR2, POPUP_MAX_SIZE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popup-min-size", VECTOR2, POPUP_MIN_SIZE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "option-max-size", VECTOR2, OPTION_MAX_SIZE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "option-min-size", VECTOR2, OPTION_MIN_SIZE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "option-divider-size", VECTOR2, OPTION_DIVIDER_SIZE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popup-clipboard-button-image", STRING, POPUP_CLIPBOARD_BUTTON_ICON_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popup-cut-button-image", STRING, POPUP_CUT_BUTTON_ICON_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popup-copy-button-image", STRING, POPUP_COPY_BUTTON_ICON_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popup-paste-button-image", STRING, POPUP_PASTE_BUTTON_ICON_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popup-select-button-image", STRING, POPUP_SELECT_BUTTON_ICON_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popup-select-all-button-image", STRING, POPUP_SELECT_ALL_BUTTON_ICON_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popup-divider-color", VECTOR4, POPUP_DIVIDER_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popup-icon-color", VECTOR4, POPUP_ICON_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popup-pressed-color", VECTOR4, POPUP_PRESSED_COLOR ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popup-pressed-image", STRING, POPUP_PRESSED_IMAGE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popup-fade-in-duration", FLOAT, POPUP_FADE_IN_DURATION ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popup-fade-out-duration", FLOAT, POPUP_FADE_OUT_DURATION ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popupMaxSize", VECTOR2, POPUP_MAX_SIZE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popupMinSize", VECTOR2, POPUP_MIN_SIZE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "optionMaxSize", VECTOR2, OPTION_MAX_SIZE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "optionMinSize", VECTOR2, OPTION_MIN_SIZE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "optionDividerSize", VECTOR2, OPTION_DIVIDER_SIZE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popupClipboardButtonImage", STRING, POPUP_CLIPBOARD_BUTTON_ICON_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popupCutButtonImage", STRING, POPUP_CUT_BUTTON_ICON_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popupCopyButtonImage", STRING, POPUP_COPY_BUTTON_ICON_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popupPasteButtonImage", STRING, POPUP_PASTE_BUTTON_ICON_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popupSelectButtonImage", STRING, POPUP_SELECT_BUTTON_ICON_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popupSelectAllButtonImage", STRING, POPUP_SELECT_ALL_BUTTON_ICON_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popupDividerColor", VECTOR4, POPUP_DIVIDER_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popupIconColor", VECTOR4, POPUP_ICON_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popupPressedColor", VECTOR4, POPUP_PRESSED_COLOR ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popupPressedImage", STRING, POPUP_PRESSED_IMAGE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popupFadeInDuration", FLOAT, POPUP_FADE_IN_DURATION ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionPopup, "popupFadeOutDuration", FLOAT, POPUP_FADE_OUT_DURATION ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.cpp b/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.cpp index 5995cee..9ca5fb7 100644 --- a/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.cpp +++ b/dali-toolkit/internal/controls/text-controls/text-selection-toolbar-impl.cpp @@ -51,9 +51,9 @@ BaseHandle Create() DALI_TYPE_REGISTRATION_BEGIN( Toolkit::TextSelectionToolbar, Toolkit::Control, Create ); -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionToolbar, "max-size", VECTOR2, MAX_SIZE ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionToolbar, "enable-overshoot", BOOLEAN, ENABLE_OVERSHOOT ) -DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionToolbar, "scroll-view", MAP, SCROLL_VIEW ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionToolbar, "maxSize", VECTOR2, MAX_SIZE ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionToolbar, "enableOvershoot", BOOLEAN, ENABLE_OVERSHOOT ) +DALI_PROPERTY_REGISTRATION( Toolkit, TextSelectionToolbar, "scrollView", MAP, SCROLL_VIEW ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/feedback/feedback-style.cpp b/dali-toolkit/internal/feedback/feedback-style.cpp index c1dca7e..da2f055 100644 --- a/dali-toolkit/internal/feedback/feedback-style.cpp +++ b/dali-toolkit/internal/feedback/feedback-style.cpp @@ -289,19 +289,19 @@ void FeedbackStyle::LoadFromString( const string& data ) DALI_ASSERT_ALWAYS(type && TreeNode::STRING == type->GetType() && "Signal must have a type"); signalFeedbackInfo.mSignalName = type->GetString(); - GetIfString( (*signalIter).second, "haptic-feedback-pattern", + GetIfString( (*signalIter).second, "hapticFeedbackPattern", signalFeedbackInfo.mHasHapticFeedbackInfo, signalFeedbackInfo.mHapticFeedbackPattern ); - GetIfString( (*signalIter).second, "haptic-feedback-file", + GetIfString( (*signalIter).second, "hapticFeedbackFile", signalFeedbackInfo.mHasHapticFeedbackInfo, signalFeedbackInfo.mHapticFeedbackFile ); - GetIfString( (*signalIter).second, "sound-feedback-pattern", + GetIfString( (*signalIter).second, "soundFeedbackPattern", signalFeedbackInfo.mHasSoundFeedbackInfo, signalFeedbackInfo.mSoundFeedbackPattern ); - GetIfString( (*signalIter).second, "haptic-feedback-file", + GetIfString( (*signalIter).second, "hapticFeedbackFile", signalFeedbackInfo.mHasSoundFeedbackInfo, signalFeedbackInfo.mSoundFeedbackFile ); diff --git a/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp b/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp index 0c37f7c..4e57496 100644 --- a/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp +++ b/dali-toolkit/internal/focus-manager/keyboard-focus-manager-impl.cpp @@ -53,7 +53,7 @@ namespace // Unnamed namespace Debug::Filter* gLogFilter = Debug::Filter::New(Debug::NoLogging, false, "LOG_KEYBOARD_FOCUS_MANAGER"); #endif -const char* const IS_FOCUS_GROUP_PROPERTY_NAME = "is-keyboard-focus-group"; // This property will be replaced by a flag in Control. +const char* const IS_FOCUS_GROUP_PROPERTY_NAME = "isKeyboardFocusGroup"; // This property will be replaced by a flag in Control. const char* const FOCUS_BORDER_IMAGE_PATH = DALI_IMAGE_DIR "keyboard_focus.png"; const Vector4 FOCUS_BORDER_IMAGE_BORDER = Vector4(7.0f, 7.0f, 7.0f, 7.0f); @@ -78,10 +78,10 @@ BaseHandle Create() DALI_TYPE_REGISTRATION_BEGIN_CREATE( Toolkit::KeyboardFocusManager, Dali::BaseHandle, Create, true ) -DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboard-pre-focus-change", SIGNAL_PRE_FOCUS_CHANGE ) -DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboard-focus-changed", SIGNAL_FOCUS_CHANGED ) -DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboard-focus-group-changed", SIGNAL_FOCUS_GROUP_CHANGED ) -DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboard-focused-actor-enter-key", SIGNAL_FOCUSED_ACTOR_ENTER_KEY ) +DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboardPreFocusChange", SIGNAL_PRE_FOCUS_CHANGE ) +DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboardFocusChanged", SIGNAL_FOCUS_CHANGED ) +DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboardFocusGroupChanged", SIGNAL_FOCUS_GROUP_CHANGED ) +DALI_SIGNAL_REGISTRATION( Toolkit, KeyboardFocusManager, "keyboardFocusedActorEnterKey", SIGNAL_FOCUSED_ACTOR_ENTER_KEY ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/internal/focus-manager/keyinput-focus-manager-impl.cpp b/dali-toolkit/internal/focus-manager/keyinput-focus-manager-impl.cpp index 48f0ebf..9f5d27a 100644 --- a/dali-toolkit/internal/focus-manager/keyinput-focus-manager-impl.cpp +++ b/dali-toolkit/internal/focus-manager/keyinput-focus-manager-impl.cpp @@ -41,8 +41,8 @@ namespace // Signals -const char* const SIGNAL_KEY_INPUT_FOCUS_CHANGED = "key-input-focus-changed"; -const char* const SIGNAL_UNHANDLED_KEY_EVENT = "unhandled-key-event"; +const char* const SIGNAL_KEY_INPUT_FOCUS_CHANGED = "keyInputFocusChanged"; +const char* const SIGNAL_UNHANDLED_KEY_EVENT = "unhandledKeyEvent"; } diff --git a/dali-toolkit/internal/styling/style-manager-impl.cpp b/dali-toolkit/internal/styling/style-manager-impl.cpp index 41f20e3..2861611 100644 --- a/dali-toolkit/internal/styling/style-manager-impl.cpp +++ b/dali-toolkit/internal/styling/style-manager-impl.cpp @@ -34,7 +34,7 @@ namespace const char* LANDSCAPE_QUALIFIER = "landscape"; const char* PORTRAIT_QUALIFIER = "portrait"; -const char* FONT_SIZE_QUALIFIER = "font-size-"; +const char* FONT_SIZE_QUALIFIER = "FontSize"; const char* DEFAULT_THEME = DALI_STYLE_DIR "dali-toolkit-default-theme.json"; @@ -289,7 +289,7 @@ void StyleManager::ApplyStyle( Toolkit::Builder builder, Toolkit::Control contro { // Apply the style for logical font size std::stringstream fontSizeQualifier; - fontSizeQualifier << styleName << "-" << FONT_SIZE_QUALIFIER << mDefaultFontSize; + fontSizeQualifier << styleName << FONT_SIZE_QUALIFIER << mDefaultFontSize; builder.ApplyStyle( fontSizeQualifier.str(), control ); } } diff --git a/dali-toolkit/internal/transition-effects/cube-transition-effect-impl.cpp b/dali-toolkit/internal/transition-effects/cube-transition-effect-impl.cpp index f633607..757858f 100644 --- a/dali-toolkit/internal/transition-effects/cube-transition-effect-impl.cpp +++ b/dali-toolkit/internal/transition-effects/cube-transition-effect-impl.cpp @@ -40,7 +40,7 @@ namespace // Setup properties, signals and actions using the type-registry. DALI_TYPE_REGISTRATION_BEGIN( Toolkit::CubeTransitionEffect, Dali::BaseHandle, NULL ); -DALI_SIGNAL_REGISTRATION( Toolkit, CubeTransitionEffect, "transition-completed", SIGNAL_TRANSITION_COMPLETED ) +DALI_SIGNAL_REGISTRATION( Toolkit, CubeTransitionEffect, "transitionCompleted", SIGNAL_TRANSITION_COMPLETED ) DALI_TYPE_REGISTRATION_END() diff --git a/dali-toolkit/public-api/accessibility-manager/accessibility-manager.h b/dali-toolkit/public-api/accessibility-manager/accessibility-manager.h index b244aca..1deee33 100644 --- a/dali-toolkit/public-api/accessibility-manager/accessibility-manager.h +++ b/dali-toolkit/public-api/accessibility-manager/accessibility-manager.h @@ -49,11 +49,11 @@ class AccessibilityManager; * focused actor and emits a signal when the focus is changed. * * Signals - * | %Signal Name | Method | - * |-------------------------|------------------------------------| - * | focus-changed | @ref FocusChangedSignal() | - * | focus-overshot | @ref FocusOvershotSignal() | - * | focused-actor-activated | @ref FocusedActorActivatedSignal() | + * | %Signal Name | Method | + * |-----------------------|------------------------------------| + * | focusChanged | @ref FocusChangedSignal() | + * | focusOvershot | @ref FocusOvershotSignal() | + * | focusedActorActivated | @ref FocusedActorActivatedSignal() | */ class DALI_IMPORT_API AccessibilityManager : public BaseHandle { diff --git a/dali-toolkit/public-api/controls/buttons/button.h b/dali-toolkit/public-api/controls/buttons/button.h index abb119f..cce1c66 100644 --- a/dali-toolkit/public-api/controls/buttons/button.h +++ b/dali-toolkit/public-api/controls/buttons/button.h @@ -69,17 +69,17 @@ class Button; * Is not mandatory set all images. A button could be defined only by setting its \e background image or by setting its \e background and \e selected images. * * Signals - * | %Signal Name | Method | - * |-------------------|-----------------------------| - * | pressed | @ref PressedSignal() | - * | released | @ref ReleasedSignal() | - * | clicked | @ref ClickedSignal() | - * | state-changed | @ref StateChangedSignal() | + * | %Signal Name | Method | + * |------------------|-----------------------------| + * | pressed | @ref PressedSignal() | + * | released | @ref ReleasedSignal() | + * | clicked | @ref ClickedSignal() | + * | stateChanged | @ref StateChangedSignal() | * * Actions - * | %Action Name | %Button method called | - * |-------------------|-----------------------------| - * | button-click | %DoClickAction() | + * | %Action Name | %Button method called | + * |------------------|-----------------------------| + * | buttonClick | %DoClickAction() | */ class DALI_IMPORT_API Button : public Control { @@ -102,20 +102,20 @@ public: enum { DISABLED = PROPERTY_START_INDEX, ///< name "disabled", @see SetDisabled(), type bool - AUTO_REPEATING, ///< name "auto-repeating", @see SetAutoRepeating(), type bool - INITIAL_AUTO_REPEATING_DELAY, ///< name "initial-auto-repeating-delay", @see SetInitialAutoRepeatingDelay(), type float - NEXT_AUTO_REPEATING_DELAY, ///< name "next-auto-repeating-delay", @see SetNextAutoRepeatingDelay(), type float + AUTO_REPEATING, ///< name "autoRepeating", @see SetAutoRepeating(), type bool + INITIAL_AUTO_REPEATING_DELAY, ///< name "initialAutoRepeatingDelay", @see SetInitialAutoRepeatingDelay(), type float + NEXT_AUTO_REPEATING_DELAY, ///< name "nextAutoRepeatingDelay", @see SetNextAutoRepeatingDelay(), type float TOGGLABLE, ///< name "togglable", @see SetTogglableButton(), type bool SELECTED, ///< name "selected", @see SetSelected(), type bool - UNSELECTED_STATE_IMAGE, ///< name "unselected-state-image", @see SetUnselectedImage(), type std::string - SELECTED_STATE_IMAGE, ///< name "selected-state-image", @see SetSelectedImage(), type std::string - DISABLED_STATE_IMAGE, ///< name "disabled-state-image", @see SetDisabledImage(), type std::string - UNSELECTED_COLOR, ///< name "unselected-color", type Vector4 - SELECTED_COLOR, ///< name "selected-color", type Vector4 + UNSELECTED_STATE_IMAGE, ///< name "unselectedStateImage", @see SetUnselectedImage(), type std::string + SELECTED_STATE_IMAGE, ///< name "selectedStateImage", @see SetSelectedImage(), type std::string + DISABLED_STATE_IMAGE, ///< name "disabledStateImage", @see SetDisabledImage(), type std::string + UNSELECTED_COLOR, ///< name "unselectedColor", type Vector4 + SELECTED_COLOR, ///< name "selectedColor", type Vector4 LABEL, ///< name "label", type Property::Map // Deprecated properties: - LABEL_TEXT, ///< name "label-text", @see SetLabelText(), type std::string + LABEL_TEXT, ///< name "labelText", @see SetLabelText(), type std::string }; }; diff --git a/dali-toolkit/public-api/controls/buttons/push-button.h b/dali-toolkit/public-api/controls/buttons/push-button.h index c887574..48ad719 100644 --- a/dali-toolkit/public-api/controls/buttons/push-button.h +++ b/dali-toolkit/public-api/controls/buttons/push-button.h @@ -68,11 +68,11 @@ public: { enum { - UNSELECTED_ICON = PROPERTY_START_INDEX, ///< Property, name "unselected-icon", type std::string - SELECTED_ICON, ///< Property, name "selected-icon", type std::string - ICON_ALIGNMENT, ///< Property, name "icon-alignment", type std::string - LABEL_PADDING, ///< Property, name "label-padding", type Vector4 - ICON_PADDING, ///< Property, name "icon-padding", type Vector4 + UNSELECTED_ICON = PROPERTY_START_INDEX, ///< Property, name "unselectedIcon", type std::string + SELECTED_ICON, ///< Property, name "selectedIcon", type std::string + ICON_ALIGNMENT, ///< Property, name "iconAlignment", type std::string + LABEL_PADDING, ///< Property, name "labelPadding", type Vector4 + ICON_PADDING, ///< Property, name "iconPadding", type Vector4 }; }; diff --git a/dali-toolkit/public-api/controls/control-impl.cpp b/dali-toolkit/public-api/controls/control-impl.cpp index 771114b..b37b4fb 100644 --- a/dali-toolkit/public-api/controls/control-impl.cpp +++ b/dali-toolkit/public-api/controls/control-impl.cpp @@ -66,7 +66,7 @@ BaseHandle Create() * @param[in] attributes The attributes with which to perfrom this action. * @return true if action has been accepted by this control */ -const char* ACTION_ACCESSIBILITY_ACTIVATED = "accessibility-activated"; +const char* ACTION_ACCESSIBILITY_ACTIVATED = "accessibilityActivated"; static bool DoAction( BaseObject* object, const std::string& actionName, const Property::Map& attributes ) { bool ret = false; @@ -93,13 +93,13 @@ static bool DoAction( BaseObject* object, const std::string& actionName, const P * @return True if the signal was connected. * @post If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the caller is responsible for deleting the unused functor. */ -const char* SIGNAL_KEY_EVENT = "key-event"; -const char* SIGNAL_KEY_INPUT_FOCUS_GAINED = "key-input-focus-gained"; -const char* SIGNAL_KEY_INPUT_FOCUS_LOST = "key-input-focus-lost"; +const char* SIGNAL_KEY_EVENT = "keyEvent"; +const char* SIGNAL_KEY_INPUT_FOCUS_GAINED = "keyInputFocusGained"; +const char* SIGNAL_KEY_INPUT_FOCUS_LOST = "keyInputFocusLost"; const char* SIGNAL_TAPPED = "tapped"; const char* SIGNAL_PANNED = "panned"; const char* SIGNAL_PINCHED = "pinched"; -const char* SIGNAL_LONG_PRESSED = "long-pressed"; +const char* SIGNAL_LONG_PRESSED = "longPressed"; static bool DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor ) { Dali::BaseHandle handle( object ); @@ -355,9 +355,9 @@ public: }; // Properties registered without macro to use specific member variables. -PropertyRegistration Control::Impl::PROPERTY_1( typeRegistration, "style-name", Toolkit::Control::Property::STYLE_NAME, Property::STRING, &Control::Impl::SetProperty, &Control::Impl::GetProperty ); +PropertyRegistration Control::Impl::PROPERTY_1( typeRegistration, "styleName", Toolkit::Control::Property::STYLE_NAME, Property::STRING, &Control::Impl::SetProperty, &Control::Impl::GetProperty ); PropertyRegistration Control::Impl::PROPERTY_2( typeRegistration, "background", Toolkit::Control::Property::BACKGROUND, Property::MAP, &Control::Impl::SetProperty, &Control::Impl::GetProperty ); -PropertyRegistration Control::Impl::PROPERTY_3( typeRegistration, "key-input-focus", Toolkit::Control::Property::KEY_INPUT_FOCUS, Property::BOOLEAN, &Control::Impl::SetProperty, &Control::Impl::GetProperty ); +PropertyRegistration Control::Impl::PROPERTY_3( typeRegistration, "keyInputFocus", Toolkit::Control::Property::KEY_INPUT_FOCUS, Property::BOOLEAN, &Control::Impl::SetProperty, &Control::Impl::GetProperty ); Toolkit::Control Control::New() { diff --git a/dali-toolkit/public-api/controls/control.h b/dali-toolkit/public-api/controls/control.h index 51f6bd1..9afebab 100644 --- a/dali-toolkit/public-api/controls/control.h +++ b/dali-toolkit/public-api/controls/control.h @@ -54,18 +54,18 @@ class Control; * Signals * | %Signal Name | Method | * |------------------------|-----------------------------------------------------| - * | key-event | @ref KeyEventSignal() | - * | key-input-focus-gained | @ref KeyInputFocusGainedSignal() | - * | key-input-focus-lost | @ref KeyInputFocusLostSignal() | + * | keyEvent | @ref KeyEventSignal() | + * | keyInputFocusGained | @ref KeyInputFocusGainedSignal() | + * | keyInputFocusLost | @ref KeyInputFocusLostSignal() | * | tapped | @ref GetTapGestureDetector().DetectedSignal() | * | panned | @ref GetPanGestureDetector().DetectedSignal() | * | pinched | @ref GetPinchGestureDetector().DetectedSignal() | - * | long-pressed | @ref GetLongPressGestureDetector().DetectedSignal() | + * | longPressed | @ref GetLongPressGestureDetector().DetectedSignal() | * * Actions - * | %Action Name | %Control method called | - * |-------------------------|----------------------------------------------------| - * | accessibility-activated | %OnAccessibilityActivated() | + * | %Action Name | %Control method called | + * |------------------------|----------------------------------------------------| + * | accessibilityActivated | %OnAccessibilityActivated() | */ class DALI_IMPORT_API Control : public CustomActor { @@ -88,9 +88,9 @@ public: { enum { - STYLE_NAME = PROPERTY_START_INDEX, ///< name "style-name", @see SetStyleName, type std::string + STYLE_NAME = PROPERTY_START_INDEX, ///< name "styleName", @see SetStyleName, type std::string BACKGROUND, ///< name "background", @since DALi 1.1.4, type Map - KEY_INPUT_FOCUS, ///< name "key-input-focus", @see SetKeyInputFocus, type bool + KEY_INPUT_FOCUS, ///< name "keyInputFocus", @see SetKeyInputFocus, type bool }; }; diff --git a/dali-toolkit/public-api/controls/model3d-view/model3d-view.h b/dali-toolkit/public-api/controls/model3d-view/model3d-view.h index 0f7da0b..e1ad741 100644 --- a/dali-toolkit/public-api/controls/model3d-view/model3d-view.h +++ b/dali-toolkit/public-api/controls/model3d-view/model3d-view.h @@ -62,15 +62,15 @@ public: { enum { - GEOMETRY_URL = PROPERTY_START_INDEX, ///< name "geometry-url", The path to the geometry file, type STRING - MATERIAL_URL, ///< name "material-url", The path to the material file, type STRING - IMAGES_URL, ///< name "images-url", The path to the images directory, type STRING - ILLUMINATION_TYPE, ///< name "illumination-type", The type of illumination, type INTEGER - TEXTURE0_URL, ///< name "texture0-url", The path to first texture, type STRING - TEXTURE1_URL, ///< name "texture1-url", The path to second texture, type STRING - TEXTURE2_URL, ///< name "texture2-url", The path to third texture, type STRING - - LIGHT_POSITION = ANIMATABLE_PROPERTY_START_INDEX ///< name "light-position", The coordinates of the light, type Vector3 + GEOMETRY_URL = PROPERTY_START_INDEX, ///< name "geometryUrl", The path to the geometry file, type STRING + MATERIAL_URL, ///< name "materialUrl", The path to the material file, type STRING + IMAGES_URL, ///< name "imagesUrl", The path to the images directory, type STRING + ILLUMINATION_TYPE, ///< name "illuminationType", The type of illumination, type INTEGER + TEXTURE0_URL, ///< name "texture0Url", The path to first texture, type STRING + TEXTURE1_URL, ///< name "texture1Url", The path to second texture, type STRING + TEXTURE2_URL, ///< name "texture2Url", The path to third texture, type STRING + + LIGHT_POSITION = ANIMATABLE_PROPERTY_START_INDEX ///< name "lightPosition", The coordinates of the light, type Vector3 }; }; diff --git a/dali-toolkit/public-api/controls/page-turn-view/page-turn-view.h b/dali-toolkit/public-api/controls/page-turn-view/page-turn-view.h index 9898791..3a0943c 100644 --- a/dali-toolkit/public-api/controls/page-turn-view/page-turn-view.h +++ b/dali-toolkit/public-api/controls/page-turn-view/page-turn-view.h @@ -54,12 +54,12 @@ class PageTurnView; * page turning. * * Signals - * | %Signal Name | Method | - * |--------------------|-------------------------------| - * | page-turn-started | @ref PageTurnStartedSignal() | - * | page-turn-finished | @ref PageTurnFinishedSignal() | - * | page-pan-started | @ref PagePanStartedSignal() | - * | page-pan-finished | @ref PagePanFinishedSignal() | + * | %Signal Name | Method | + * |------------------|-------------------------------| + * | pageTurnStarted | @ref PageTurnStartedSignal() | + * | pageTurnFinished | @ref PageTurnFinishedSignal() | + * | pagePanStarted | @ref PagePanStartedSignal() | + * | pagePanFinished | @ref PagePanFinishedSignal() | * * @since DALi 1.1.4 */ @@ -80,14 +80,14 @@ public: { enum { - PAGE_SIZE = PROPERTY_START_INDEX, ///< name "page-size", type Vector2 - CURRENT_PAGE_ID, ///< name "current-page-id", type Integer + PAGE_SIZE = PROPERTY_START_INDEX, ///< name "pageSize", type Vector2 + CURRENT_PAGE_ID, ///< name "currentPageId", type Integer /** * The two values are the major&minor radius (in pixels) to form an ellipse shape. * The top-left quarter of this ellipse is used to calculate spine normal for simulating shadow. */ - SPINE_SHADOW, ///< name "spine-shadow", type Vector2 + SPINE_SHADOW, ///< name "spineShadow", type Vector2 }; }; diff --git a/dali-toolkit/public-api/controls/scroll-bar/scroll-bar.h b/dali-toolkit/public-api/controls/scroll-bar/scroll-bar.h index f513a3e..819d42d 100755 --- a/dali-toolkit/public-api/controls/scroll-bar/scroll-bar.h +++ b/dali-toolkit/public-api/controls/scroll-bar/scroll-bar.h @@ -43,10 +43,10 @@ class ScrollBar; * indicating the current scroll position of the scrollable object. * * Signals - * | %Signal Name | Method | - * |----------------------------------|--------------------------------------------| - * | pan-finished | @ref PanFinishedSignal() | - * | scroll-position-interval-reached | @ref ScrollPositionIntervalReachedSignal() | + * | %Signal Name | Method | + * |-------------------------------|--------------------------------------------| + * | panFinished | @ref PanFinishedSignal() | + * | scrollPositionIntervalReached | @ref ScrollPositionIntervalReachedSignal() | */ class DALI_IMPORT_API ScrollBar : public Control { @@ -70,12 +70,12 @@ public: { enum { - SCROLL_DIRECTION = PROPERTY_START_INDEX, ///< name "scroll-direction", @see SetScrollDirection(), type std::string - INDICATOR_HEIGHT_POLICY, ///< name "indicator-height-policy", @see SetIndicatorHeightPolicy(), type std::string - INDICATOR_FIXED_HEIGHT, ///< name "indicator-fixed-height", @see SetIndicatorFixedHeight(), type float - INDICATOR_SHOW_DURATION, ///< name "indicator-show-duration", @see SetIndicatorShowDuration(), type float - INDICATOR_HIDE_DURATION, ///< name "indicator-hide-duration", @see SetIndicatorHideDuration(), type float - SCROLL_POSITION_INTERVALS ///< name "scroll-position-intervals",@see SetScrollPositionIntervals() type Property::Array + SCROLL_DIRECTION = PROPERTY_START_INDEX, ///< name "scrollDirection", @see SetScrollDirection(), type std::string + INDICATOR_HEIGHT_POLICY, ///< name "indicatorHeightPolicy", @see SetIndicatorHeightPolicy(), type std::string + INDICATOR_FIXED_HEIGHT, ///< name "indicatorFixedHeight", @see SetIndicatorFixedHeight(), type float + INDICATOR_SHOW_DURATION, ///< name "indicatorShowDuration", @see SetIndicatorShowDuration(), type float + INDICATOR_HIDE_DURATION, ///< name "indicatorHideDuration", @see SetIndicatorHideDuration(), type float + SCROLL_POSITION_INTERVALS ///< name "scrollPositionIntervals", @see SetScrollPositionIntervals() type Property::Array }; }; diff --git a/dali-toolkit/public-api/controls/scrollable/item-view/item-view.h b/dali-toolkit/public-api/controls/scrollable/item-view/item-view.h index 38b5856..e790a82 100644 --- a/dali-toolkit/public-api/controls/scrollable/item-view/item-view.h +++ b/dali-toolkit/public-api/controls/scrollable/item-view/item-view.h @@ -52,9 +52,9 @@ typedef IntrusivePtr ItemLayoutPtr; * Actors are provided from an external ItemFactory, to display the currently visible items. * * Signals - * | %Signal Name | Method | - * |----------------------------------|--------------------------------------------| - * | layout-activated | @ref LayoutActivatedSignal() | + * | %Signal Name | Method | + * |---------------------------------|--------------------------------------------| + * | layoutActivated | @ref LayoutActivatedSignal() | */ class DALI_IMPORT_API ItemView : public Scrollable @@ -74,12 +74,12 @@ public: { enum { - LAYOUT_POSITION = ANIMATABLE_PROPERTY_START_INDEX, ///< Property, name "layout-position", type float - SCROLL_SPEED, ///< Property, name "scroll-speed", type float + LAYOUT_POSITION = ANIMATABLE_PROPERTY_START_INDEX, ///< Property, name "layoutPosition", type float + SCROLL_SPEED, ///< Property, name "scrollSpeed", type float OVERSHOOT, ///< Property, name "overshoot", type float - SCROLL_DIRECTION, ///< Property, name "scroll-direction", type Vector2 - LAYOUT_ORIENTATION, ///< Property, name "layout-orientation", type integer - SCROLL_CONTENT_SIZE ///< Property, name "scroll-content-size", type float + SCROLL_DIRECTION, ///< Property, name "scrollDirection", type Vector2 + LAYOUT_ORIENTATION, ///< Property, name "layoutOrientation", type integer + SCROLL_CONTENT_SIZE ///< Property, name "scrollContentSize", type float }; }; diff --git a/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view.h b/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view.h index 7ebb168..9a66cfc 100644 --- a/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view.h +++ b/dali-toolkit/public-api/controls/scrollable/scroll-view/scroll-view.h @@ -459,27 +459,27 @@ public: { enum { - SCROLL_POSITION = ANIMATABLE_PROPERTY_START_INDEX, ///< Property, name "scroll-position", type Vector2 - SCROLL_PRE_POSITION, ///< Property, name "scroll-pre-position", type Vector2 - SCROLL_PRE_POSITION_X, ///< Property, name "scroll-pre-position-x", type float - SCROLL_PRE_POSITION_Y, ///< Property, name "scroll-pre-position-y", type float - SCROLL_PRE_POSITION_MAX, ///< Property, name "scroll-pre-position-max", type Vector2 - SCROLL_PRE_POSITION_MAX_X, ///< Property, name "scroll-pre-position-max-x", type float - SCROLL_PRE_POSITION_MAX_Y, ///< Property, name "scroll-pre-position-max-y", type float - OVERSHOOT_X, ///< Property, name "overshoot-x", type float - OVERSHOOT_Y, ///< Property, name "overshoot-y", type float - SCROLL_FINAL, ///< Property, name "scroll-final", type Vector2 - SCROLL_FINAL_X, ///< Property, name "scroll-final-x", type float - SCROLL_FINAL_Y, ///< Property, name "scroll-final-y", type float + SCROLL_POSITION = ANIMATABLE_PROPERTY_START_INDEX, ///< Property, name "scrollPosition", type Vector2 + SCROLL_PRE_POSITION, ///< Property, name "scrollPrePosition", type Vector2 + SCROLL_PRE_POSITION_X, ///< Property, name "scrollPrePositionX", type float + SCROLL_PRE_POSITION_Y, ///< Property, name "scrollPrePositionY", type float + SCROLL_PRE_POSITION_MAX, ///< Property, name "scrollPrePositionMax", type Vector2 + SCROLL_PRE_POSITION_MAX_X, ///< Property, name "scrollPrePositionMaxX", type float + SCROLL_PRE_POSITION_MAX_Y, ///< Property, name "scrollPrePositionMaxY", type float + OVERSHOOT_X, ///< Property, name "overshootX", type float + OVERSHOOT_Y, ///< Property, name "overshootY", type float + SCROLL_FINAL, ///< Property, name "scrollFinal", type Vector2 + SCROLL_FINAL_X, ///< Property, name "scrollFinalX", type float + SCROLL_FINAL_Y, ///< Property, name "scrollFinalY", type float WRAP, ///< Property, name "wrap", type bool PANNING, ///< Property, name "panning", type bool SCROLLING, ///< Property, name "scrolling", type bool - SCROLL_DOMAIN_SIZE, ///< Property, name "scroll-domain-size" type Vector2 - SCROLL_DOMAIN_SIZE_X, ///< Property, name "scroll-domain-size-x" type float - SCROLL_DOMAIN_SIZE_Y, ///< Property, name "scroll-domain-size-y" type float - SCROLL_DOMAIN_OFFSET, ///< Property, name "scroll-domain-offset" type Vector2 - SCROLL_POSITION_DELTA, ///< Property, name "scroll-position-delta" type Vector2 - START_PAGE_POSITION ///< Property, name "start-page-position" type Vector3 + SCROLL_DOMAIN_SIZE, ///< Property, name "scrollDomainSize", type Vector2 + SCROLL_DOMAIN_SIZE_X, ///< Property, name "scrollDomainSizeX", type float + SCROLL_DOMAIN_SIZE_Y, ///< Property, name "scrollDomainSizeY", type float + SCROLL_DOMAIN_OFFSET, ///< Property, name "scrollDomainOffset", type Vector2 + SCROLL_POSITION_DELTA, ///< Property, name "scrollPositionDelta", type Vector2 + START_PAGE_POSITION ///< Property, name "startPagePosition", type Vector3 }; }; diff --git a/dali-toolkit/public-api/controls/scrollable/scrollable.h b/dali-toolkit/public-api/controls/scrollable/scrollable.h index a7fd42b..76dbb07 100644 --- a/dali-toolkit/public-api/controls/scrollable/scrollable.h +++ b/dali-toolkit/public-api/controls/scrollable/scrollable.h @@ -43,11 +43,11 @@ class Scrollable; * Scrollables such as ScrollView and ItemView can be derived from this class. * * Signals - * | %Signal Name | Method | - * |-------------------|------------------------------| - * | scroll-started | @ref ScrollStartedSignal() | - * | scroll-completed | @ref ScrollUpdatedSignal() | - * | scroll-updated | @ref ScrollCompletedSignal() | + * | %Signal Name | Method | + * |------------------|------------------------------| + * | scrollStarted | @ref ScrollStartedSignal() | + * | scrollCompleted | @ref ScrollUpdatedSignal() | + * | scrollUpdated | @ref ScrollCompletedSignal() | */ class DALI_IMPORT_API Scrollable : public Control { @@ -73,19 +73,19 @@ public: enum { // Event side properties - OVERSHOOT_EFFECT_COLOR = PROPERTY_START_INDEX, ///< Property, name "overshoot-effect-color", @see SetOvershootEffectColor(), type Vector4 - OVERSHOOT_ANIMATION_SPEED, ///< Property, name "overshoot-animation-speed", @see SetOvershootAnimationSpeed(), type float + OVERSHOOT_EFFECT_COLOR = PROPERTY_START_INDEX, ///< Property, name "overshootEffectColor", @see SetOvershootEffectColor(), type Vector4 + OVERSHOOT_ANIMATION_SPEED, ///< Property, name "overshootAnimationSpeed", @see SetOvershootAnimationSpeed(), type float // Animatable properties - SCROLL_RELATIVE_POSITION = ANIMATABLE_PROPERTY_START_INDEX, ///< Property, name "scroll-relative-position", type Vector2 - SCROLL_POSITION_MIN, ///< Property, name "scroll-position-min", type Vector2 - SCROLL_POSITION_MIN_X, ///< Property, name "scroll-position-min-x", type float - SCROLL_POSITION_MIN_Y, ///< Property, name "scroll-position-min-y", type float - SCROLL_POSITION_MAX, ///< Property, name "scroll-position-max", type Vector2 - SCROLL_POSITION_MAX_X, ///< Property, name "scroll-position-max-x", type float - SCROLL_POSITION_MAX_Y, ///< Property, name "scroll-position-max-y", type float - CAN_SCROLL_VERTICAL, ///< Property, name "can-scroll-vertical", type bool - CAN_SCROLL_HORIZONTAL ///< Property, name "can-scroll-horizontal", type bool + SCROLL_RELATIVE_POSITION = ANIMATABLE_PROPERTY_START_INDEX, ///< Property, name "scrollRelativePosition", type Vector2 + SCROLL_POSITION_MIN, ///< Property, name "scrollPositionMin", type Vector2 + SCROLL_POSITION_MIN_X, ///< Property, name "scrollPositionMinX", type float + SCROLL_POSITION_MIN_Y, ///< Property, name "scrollPositionMinY", type float + SCROLL_POSITION_MAX, ///< Property, name "scrollPositionMax", type Vector2 + SCROLL_POSITION_MAX_X, ///< Property, name "scrollPositionMaxX", type float + SCROLL_POSITION_MAX_Y, ///< Property, name "scrollPositionMaxY", type float + CAN_SCROLL_VERTICAL, ///< Property, name "canScrollVertical", type bool + CAN_SCROLL_HORIZONTAL ///< Property, name "canScrollHorizontal", type bool }; }; diff --git a/dali-toolkit/public-api/controls/table-view/table-view.h b/dali-toolkit/public-api/controls/table-view/table-view.h index d3a9517..1774f60 100644 --- a/dali-toolkit/public-api/controls/table-view/table-view.h +++ b/dali-toolkit/public-api/controls/table-view/table-view.h @@ -55,30 +55,30 @@ class TableView; * * These properties are registered dynamically to the child and is non-animatable. * - * | %Property Name | Type | - * |---------------------------|-------------| - * | cell-index | Vector2 | - * | row-span | float | - * | column-span | float | - * | cell-horizontal-alignment | string | - * | cell-vertical-alignment | string | + * | %Property Name | Type | + * |-------------------------|-------------| + * | cellIndex | Vector2 | + * | rowSpan | float | + * | columnSpan | float | + * | cellHorizontalAlignment | string | + * | cellVerticalAlignment | string | * * The row-span or column span has integer value, but its type is float here due to the limitation of the builder's ability to differentiate integer and float from Json string. - * The available values for cell-horizontal-alignment are: left, center, right. - * The available values for cell-vertical-alignment are: top, center, bottom. + * The available values for cellHorizontalAlignment are: left, center, right. + * The available values for cellVerticalAlignment are: top, center, bottom. * * @code - * "name":"gallery-1", + * "name":"gallery1", * "type":"ImageActor", * "image": { * "filename": "{DALI_IMAGE_DIR}gallery-small-1.jpg" * }, - * "custom-properties": { - * "cell-index":[1,1], // property to specify the top-left cell this child occupies, if not set, the first available cell is used - * "row-span":3, // property to specify how many rows this child occupies, if not set, default value is 1 - * "column-span": 2, // property to specify how many columns this child occupies, if nor set, default value is 1 - * "cell-horizontal-alignment": "left", // property to specify how to align horizontally inside the cells, if not set, default value is 'left' - * "cell-vertical-alignment": "center" // property to specify how to align vertically inside the cells, if not set, default value is 'top' + * "customProperties": { + * "cellIndex":[1,1], // property to specify the top-left cell this child occupies, if not set, the first available cell is used + * "rowSpan":3, // property to specify how many rows this child occupies, if not set, default value is 1 + * "columnSpan": 2, // property to specify how many columns this child occupies, if nor set, default value is 1 + * "cellHorizontalAlignment": "left", // property to specify how to align horizontally inside the cells, if not set, default value is 'left' + * "cellVerticalAlignment": "center" // property to specify how to align vertically inside the cells, if not set, default value is 'top' * } * @endcode */ @@ -101,7 +101,7 @@ public: * LayoutRows: set the height of the rows. * It has the format as follows in script: * @code - * "layout-rows": + * "layoutRows": { "0": { "policy": "fixed", "value": 40 }, //@see SetFixedHight "2": { "policy": "relative", "value": 0.33 }, //@see SetRelativeHeight @@ -112,7 +112,7 @@ public: * LayoutColumns: set the height of the rows. * It has the format as follows in script: * @code - * "layout-columns": + * "layoutColumns": { "0": { "policy": "fixed", "value": 40 }, //@see SetFixedWidth "1": { "policy": "fit", "value":0.0 } //@see SetFitHeight, the value is not used, its width is decided by the children in this column @@ -126,9 +126,9 @@ public: { ROWS = PROPERTY_START_INDEX, ///< name "rows", type unsigned int COLUMNS, ///< name "columns", type unsigned int - CELL_PADDING, ///< name "cell-padding", type Vector2 - LAYOUT_ROWS, ///< name "layout-rows", type Map - LAYOUT_COLUMNS, ///< name "layout-columns", type Map + CELL_PADDING, ///< name "cellPadding", type Vector2 + LAYOUT_ROWS, ///< name "layoutRows", type Map + LAYOUT_COLUMNS, ///< name "layoutColumns", type Map }; }; diff --git a/dali-toolkit/public-api/controls/text-controls/text-field.h b/dali-toolkit/public-api/controls/text-controls/text-field.h index ea6da67..f4642cf 100644 --- a/dali-toolkit/public-api/controls/text-controls/text-field.h +++ b/dali-toolkit/public-api/controls/text-controls/text-field.h @@ -40,10 +40,10 @@ class TextField; * @brief A control which provides a single-line editable text field. * * * Signals - * | %Signal Name | Method | - * |------------------------|-----------------------------------------------------| - * | text-changed | @ref TextChangedSignal() | - * | max-length-reached | @ref MaxLengthReachedSignal() | + * | %Signal Name | Method | + * |----------------------|-----------------------------------------------------| + * | textChanged | @ref TextChangedSignal() | + * | maxLengthReached | @ref MaxLengthReachedSignal() | * */ class DALI_IMPORT_API TextField : public Control @@ -66,40 +66,40 @@ public: { enum { - RENDERING_BACKEND = PROPERTY_START_INDEX, ///< name "rendering-backend", The type or rendering e.g. bitmap-based, type INT + RENDERING_BACKEND = PROPERTY_START_INDEX, ///< name "renderingBackend", The type or rendering e.g. bitmap-based, type INT TEXT, ///< name "text", The text to display in UTF-8 format, type STRING - PLACEHOLDER_TEXT, ///< name "placeholder-text", The text to display when the TextField is empty and inactive, type STRING - PLACEHOLDER_TEXT_FOCUSED, ///< name "placeholder-text-focused", The text to display when the TextField is empty with key-input focus, type STRING - FONT_FAMILY, ///< name "font-family", The requested font family, type STRING - FONT_STYLE, ///< name "font-style", The requested font style, type STRING - POINT_SIZE, ///< name "point-size", The size of font in points, type FLOAT - MAX_LENGTH, ///< name "max-length" The maximum number of characters that can be inserted, type INTEGER - EXCEED_POLICY, ///< name "exceed-policy" Specifies how the text is truncated when it does not fit, type INTEGER - HORIZONTAL_ALIGNMENT, ///< name "horizontal-alignment", The line horizontal alignment, type STRING, values "BEGIN", "CENTER", "END" - VERTICAL_ALIGNMENT, ///< name "vertical-alignment", The line vertical alignment, type STRING, values "TOP", "CENTER", "BOTTOM" - TEXT_COLOR, ///< name "text-color", The text color, type VECTOR4 - PLACEHOLDER_TEXT_COLOR, ///< name "placeholder-text-color", The placeholder-text color, type VECTOR4 - SHADOW_OFFSET, ///< name "shadow-offset", The drop shadow offset 0 indicates no shadow, type VECTOR2 - SHADOW_COLOR, ///< name "shadow-color", The color of a drop shadow, type VECTOR4 - PRIMARY_CURSOR_COLOR, ///< name "primary-cursor-color", The color to apply to the primary cursor, type VECTOR4 - SECONDARY_CURSOR_COLOR, ///< name "secondary-cursor-color", The color to apply to the secondary cursor, type VECTOR4 - ENABLE_CURSOR_BLINK, ///< name "enable-cursor-blink", Whether the cursor should blink or not, type BOOLEAN - CURSOR_BLINK_INTERVAL, ///< name "cursor-blink-interval", The time interval in seconds between cursor on/off states, type FLOAT - CURSOR_BLINK_DURATION, ///< name "cursor-blink-duration", The cursor will stop blinking after this number of seconds (if non-zero), type FLOAT - CURSOR_WIDTH, ///< name "cursor-width", The cursor width, type INTEGER - GRAB_HANDLE_IMAGE, ///< name "grab-handle-image", The image to display for the grab handle, type STRING - GRAB_HANDLE_PRESSED_IMAGE, ///< name "grab-handle-pressed-image", The image to display when the grab handle is pressed, type STRING - SCROLL_THRESHOLD, ///< name "scroll-threshold" Scrolling will occur if the cursor is this close to the control border, type FLOAT - SCROLL_SPEED, ///< name "scroll-speed" The scroll speed in pixels per second, type FLOAT - SELECTION_HANDLE_IMAGE_LEFT, ///< name "selection-handle-image-left", The image to display for the left selection handle, type MAP - SELECTION_HANDLE_IMAGE_RIGHT, ///< name "selection-handle-image-right", The image to display for the right selection handle, type MAP - SELECTION_HANDLE_PRESSED_IMAGE_LEFT, ///< name "selection-handle-pressed-image-left" The image to display when the left selection handle is pressed, type MAP - SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, ///< name "selection-handle-pressed-image-right" The image to display when the right selection handle is pressed, type MAP - SELECTION_HANDLE_MARKER_IMAGE_LEFT, ///< name "selection-handle-marker-image-left", The image to display for the left selection handle marker, type MAP - SELECTION_HANDLE_MARKER_IMAGE_RIGHT, ///< name "selection-handle-marker-image-right", The image to display for the right selection handle marker, type MAP - SELECTION_HIGHLIGHT_COLOR, ///< name "selection-highlight-color" The color of the selection highlight, type VECTOR4 - DECORATION_BOUNDING_BOX, ///< name "decoration-bounding-box" The decorations (handles etc) will positioned within this area on-screen, type RECTANGLE - INPUT_METHOD_SETTINGS ///< name "input-method-settings" The settings to relating to the System's Input Method, Key and Value type MAP + PLACEHOLDER_TEXT, ///< name "placeholderText", The text to display when the TextField is empty and inactive, type STRING + PLACEHOLDER_TEXT_FOCUSED, ///< name "placeholderTextFocused", The text to display when the TextField is empty with key-input focus, type STRING + FONT_FAMILY, ///< name "fontFamily", The requested font family, type STRING + FONT_STYLE, ///< name "fontStyle", The requested font style, type STRING + POINT_SIZE, ///< name "pointSize", The size of font in points, type FLOAT + MAX_LENGTH, ///< name "maxLength" The maximum number of characters that can be inserted, type INTEGER + EXCEED_POLICY, ///< name "exceedPolicy" Specifies how the text is truncated when it does not fit, type INTEGER + HORIZONTAL_ALIGNMENT, ///< name "horizontalAlignment", The line horizontal alignment, type STRING, values "BEGIN", "CENTER", "END" + VERTICAL_ALIGNMENT, ///< name "verticalAlignment", The line vertical alignment, type STRING, values "TOP", "CENTER", "BOTTOM" + TEXT_COLOR, ///< name "textColor", The text color, type VECTOR4 + PLACEHOLDER_TEXT_COLOR, ///< name "placeholderTextColor", The placeholder-text color, type VECTOR4 + SHADOW_OFFSET, ///< name "shadowOffset", The drop shadow offset 0 indicates no shadow, type VECTOR2 + SHADOW_COLOR, ///< name "shadowColor", The color of a drop shadow, type VECTOR4 + PRIMARY_CURSOR_COLOR, ///< name "primaryCursorColor", The color to apply to the primary cursor, type VECTOR4 + SECONDARY_CURSOR_COLOR, ///< name "secondaryCursorColor", The color to apply to the secondary cursor, type VECTOR4 + ENABLE_CURSOR_BLINK, ///< name "enableCursorBlink", Whether the cursor should blink or not, type BOOLEAN + CURSOR_BLINK_INTERVAL, ///< name "cursorBlinkInterval", The time interval in seconds between cursor on/off states, type FLOAT + CURSOR_BLINK_DURATION, ///< name "cursorBlinkDuration", The cursor will stop blinking after this number of seconds (if non-zero), type FLOAT + CURSOR_WIDTH, ///< name "cursorWidth", The cursor width, type INTEGER + GRAB_HANDLE_IMAGE, ///< name "grabHandleImage", The image to display for the grab handle, type STRING + GRAB_HANDLE_PRESSED_IMAGE, ///< name "grabHandlePressedImage", The image to display when the grab handle is pressed, type STRING + SCROLL_THRESHOLD, ///< name "scrollThreshold" Scrolling will occur if the cursor is this close to the control border, type FLOAT + SCROLL_SPEED, ///< name "scrollSpeed" The scroll speed in pixels per second, type FLOAT + SELECTION_HANDLE_IMAGE_LEFT, ///< name "selectionHandleImageLeft", The image to display for the left selection handle, type MAP + SELECTION_HANDLE_IMAGE_RIGHT, ///< name "selectionHandleImageRight", The image to display for the right selection handle, type MAP + SELECTION_HANDLE_PRESSED_IMAGE_LEFT, ///< name "selectionHandlePressedImageLeft", The image to display when the left selection handle is pressed, type MAP + SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, ///< name "selectionHandlePressedImageRight", The image to display when the right selection handle is pressed, type MAP + SELECTION_HANDLE_MARKER_IMAGE_LEFT, ///< name "selectionHandleMarkerImageLeft", The image to display for the left selection handle marker, type MAP + SELECTION_HANDLE_MARKER_IMAGE_RIGHT, ///< name "selectionHandleMarkerImageRight", The image to display for the right selection handle marker, type MAP + SELECTION_HIGHLIGHT_COLOR, ///< name "selectionHighlightColor", The color of the selection highlight, type VECTOR4 + DECORATION_BOUNDING_BOX, ///< name "decorationBoundingBox", The decorations (handles etc) will positioned within this area on-screen, type RECTANGLE + INPUT_METHOD_SETTINGS ///< name "inputMethodSettings", The settings to relating to the System's Input Method, Key and Value type MAP }; }; diff --git a/dali-toolkit/public-api/controls/text-controls/text-label.h b/dali-toolkit/public-api/controls/text-controls/text-label.h index 6e4931e..190d25c 100644 --- a/dali-toolkit/public-api/controls/text-controls/text-label.h +++ b/dali-toolkit/public-api/controls/text-controls/text-label.h @@ -61,20 +61,20 @@ public: { enum { - RENDERING_BACKEND = PROPERTY_START_INDEX, ///< name "rendering-backend", The type or rendering e.g. bitmap-based, type INT + RENDERING_BACKEND = PROPERTY_START_INDEX, ///< name "renderingBackend", The type or rendering e.g. bitmap-based, type INT TEXT, ///< name "text", The text to display in UTF-8 format, type STRING - FONT_FAMILY, ///< name "font-family", The requested font family, type STRING - FONT_STYLE, ///< name "font-style", The requested font style, type STRING - POINT_SIZE, ///< name "point-size", The size of font in points, type FLOAT - MULTI_LINE, ///< name "multi-line", The single-line or multi-line layout option, type BOOLEAN - HORIZONTAL_ALIGNMENT, ///< name "horizontal-alignment", The line horizontal alignment, type STRING, values "BEGIN", "CENTER", "END" - VERTICAL_ALIGNMENT, ///< name "vertical-alignment", The line vertical alignment, type STRING, values "TOP", "CENTER", "BOTTOM" - TEXT_COLOR, ///< name "text-color", The text color, type VECTOR4 - SHADOW_OFFSET, ///< name "shadow-offset", The drop shadow offset 0 indicates no shadow, type VECTOR2 - SHADOW_COLOR, ///< name "shadow-color", The color of a drop shadow, type VECTOR4 - UNDERLINE_ENABLED, ///< name "underline-enabled", The underline enabled flag, type BOOLEAN - UNDERLINE_COLOR, ///< name "underline-color", The color of the underline, type VECTOR4 - UNDERLINE_HEIGHT ///< name "underline-height", Overrides the underline height from font metrics, type FLOAT + FONT_FAMILY, ///< name "fontFamily", The requested font family, type STRING + FONT_STYLE, ///< name "fontStyle", The requested font style, type STRING + POINT_SIZE, ///< name "pointSize", The size of font in points, type FLOAT + MULTI_LINE, ///< name "multiLine", The single-line or multi-line layout option, type BOOLEAN + HORIZONTAL_ALIGNMENT, ///< name "horizontalAlignment", The line horizontal alignment, type STRING, values "BEGIN", "CENTER", "END" + VERTICAL_ALIGNMENT, ///< name "verticalAlignment", The line vertical alignment, type STRING, values "TOP", "CENTER", "BOTTOM" + TEXT_COLOR, ///< name "textColor", The text color, type VECTOR4 + SHADOW_OFFSET, ///< name "shadowOffset", The drop shadow offset 0 indicates no shadow, type VECTOR2 + SHADOW_COLOR, ///< name "shadowColor", The color of a drop shadow, type VECTOR4 + UNDERLINE_ENABLED, ///< name "underlineEnabled", The underline enabled flag, type BOOLEAN + UNDERLINE_COLOR, ///< name "underlineColor", The color of the underline, type VECTOR4 + UNDERLINE_HEIGHT ///< name "underlineHeight", Overrides the underline height from font metrics, type FLOAT }; }; diff --git a/dali-toolkit/public-api/focus-manager/keyboard-focus-manager.h b/dali-toolkit/public-api/focus-manager/keyboard-focus-manager.h index da38050..78152a1 100644 --- a/dali-toolkit/public-api/focus-manager/keyboard-focus-manager.h +++ b/dali-toolkit/public-api/focus-manager/keyboard-focus-manager.h @@ -46,12 +46,12 @@ class KeyboardFocusManager; * is changed. * * Signals - * | %Signal Name | Method | - * |----------------------------------|------------------------------------| - * | keyboard-pre-focus-change | @ref PreFocusChangeSignal() | - * | keyboard-focus-changed | @ref FocusChangedSignal() | - * | keyboard-focus-group-changed | @ref FocusGroupChangedSignal() | - * | keyboard-focused-actor-enter-key | @ref FocusedActorEnterKeySignal() | + * | %Signal Name | Method | + * |-------------------------------|------------------------------------| + * | keyboardPreFocusChange | @ref PreFocusChangeSignal() | + * | keyboardFocusChanged | @ref FocusChangedSignal() | + * | keyboardFocusGroupChanged | @ref FocusGroupChangedSignal() | + * | keyboardFocusedActorAenterKey | @ref FocusedActorEnterKeySignal() | */ class DALI_IMPORT_API KeyboardFocusManager : public BaseHandle { diff --git a/dali-toolkit/styles/480x800/dali-toolkit-default-theme.json b/dali-toolkit/styles/480x800/dali-toolkit-default-theme.json index 5682ba1..7b4b130 100644 --- a/dali-toolkit/styles/480x800/dali-toolkit-default-theme.json +++ b/dali-toolkit/styles/480x800/dali-toolkit-default-theme.json @@ -34,103 +34,103 @@ distributing this software or its derivatives. { "textlabel": { - "point-size":18 + "pointSize":18 }, - "textlabel-font-size-0": + "textlabelFontSize0": { - "point-size":8 + "pointSize":8 }, - "textlabel-font-size-1": + "textlabelFontSize1": { - "point-size":10 + "pointSize":10 }, - "textlabel-font-size-2": + "textlabelFontSize2": { - "point-size":15 + "pointSize":15 }, - "textlabel-font-size-3": + "textlabelFontSize3": { - "point-size":19 + "pointSize":19 }, - "textlabel-font-size-4": + "textlabelFontSize4": { - "point-size":25 + "pointSize":25 }, "textfield": { - "point-size":18, - "primary-cursor-color":[0.0,0.72,0.9,1.0], - "secondary-cursor-color":[0.0,0.72,0.9,1.0], - "cursor-width":1, - "selection-highlight-color":[0.75,0.96,1.0,1.0], - "grab-handle-image" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png", - "selection-handle-image-left" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" }, - "selection-handle-image-right": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" } + "pointSize":18, + "primaryCursorColor":[0.0,0.72,0.9,1.0], + "secondaryCursorColor":[0.0,0.72,0.9,1.0], + "cursorWidth":1, + "selectionHighlightColor":[0.75,0.96,1.0,1.0], + "grabHandleImage" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png", + "selectionHandleImageLeft" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" }, + "selectionHandleImageRight": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" } }, - "textfield-font-size-0": + "textfieldFontSize0": { - "point-size":10 + "pointSize":10 }, - "textfield-font-size-1": + "textfieldFontSize1": { - "point-size":10 + "pointSize":10 }, - "textfield-font-size-2": + "textfieldFontSize2": { - "point-size":10 + "pointSize":10 }, - "textfield-font-size-3": + "textfieldFontSize3": { - "point-size":10 + "pointSize":10 }, - "textfield-font-size-4": + "textfieldFontSize4": { - "point-size":10 + "pointSize":10 }, "textselectionpopup": { - "popup-max-size":[400,100], - "option-divider-size":[2,0], - "popup-divider-color":[0.23,0.72,0.8,0.11], - "popup-icon-color":[1.0,1.0,1.0,1.0], - "popup-pressed-color":[0.24,0.72,0.8,0.11], + "popupMaxSize":[400,100], + "optionDividerSize":[2,0], + "popupDividerColor":[0.23,0.72,0.8,0.11], + "popupIconColor":[1.0,1.0,1.0,1.0], + "popupPressedColor":[0.24,0.72,0.8,0.11], "background": { "filename": "{DALI_IMAGE_DIR}selection-popup-bg.9.png" }, - "popup-fade-in-duration":0.25, - "popup-fade-out-duration":0.25 + "popupFadeInDuration":0.25, + "popupFadeOutDuration":0.25 }, "textselectionpopupbutton": { "label": { - "point-size":8, - "font-style":"{\"weight\":\"light\"}" + "pointSize":8, + "fontStyle":"{\"weight\":\"light\"}" } }, "textselectiontoolbar": { - "enable-overshoot":true, - "scroll-view": + "enableOvershoot":true, + "scrollView": { - "overshoot-animation-speed":120.0, - "overshoot-size":[480.0,42.0] + "overshootAnimationSpeed":120.0, + "overshootSize":[480.0,42.0] } }, "scrollview": { - "overshoot-effect-color":"B018", - "overshoot-animation-speed":120.0, - "overshoot-size":[480.0,42.0] + "overshootEffectColor":"B018", + "overshootAnimationSpeed":120.0, + "overshootSize":[480.0,42.0] }, "itemview": { - "overshoot-effect-color":"B018", - "overshoot-animation-speed":120.0, - "overshoot-size":[480.0,42.0] + "overshootEffectColor":"B018", + "overshootAnimationSpeed":120.0, + "overshootSize":[480.0,42.0] } } } diff --git a/dali-toolkit/styles/720x1280/dali-toolkit-default-theme.json b/dali-toolkit/styles/720x1280/dali-toolkit-default-theme.json index ff98976..525857b 100644 --- a/dali-toolkit/styles/720x1280/dali-toolkit-default-theme.json +++ b/dali-toolkit/styles/720x1280/dali-toolkit-default-theme.json @@ -34,103 +34,103 @@ distributing this software or its derivatives. { "textlabel": { - "point-size":18 + "pointSize":18 }, - "textlabel-font-size-0": + "textlabelFontSize0": { - "point-size":8 + "pointSize":8 }, - "textlabel-font-size-1": + "textlabelFontSize1": { - "point-size":10 + "pointSize":10 }, - "textlabel-font-size-2": + "textlabelFontSize2": { - "point-size":15 + "pointSize":15 }, - "textlabel-font-size-3": + "textlabelFontSize3": { - "point-size":19 + "pointSize":19 }, - "textlabel-font-size-4": + "textlabelFontSize4": { - "point-size":25 + "pointSize":25 }, "textfield": { - "point-size":18, - "primary-cursor-color":[0.0,0.72,0.9,1.0], - "secondary-cursor-color":[0.0,0.72,0.9,1.0], - "cursor-width":3, - "selection-highlight-color":[0.75,0.96,1.0,1.0], - "grab-handle-image" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png", - "selection-handle-image-left" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" }, - "selection-handle-image-right": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" } + "pointSize":18, + "primaryCursorColor":[0.0,0.72,0.9,1.0], + "secondaryCursorColor":[0.0,0.72,0.9,1.0], + "cursorWidth":3, + "selectionHighlightColor":[0.75,0.96,1.0,1.0], + "grabHandleImage" : "{DALI_STYLE_IMAGE_DIR}cursor_handler_drop_center.png", + "selectionHandleImageLeft" : {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_left.png" }, + "selectionHandleImageRight": {"filename":"{DALI_STYLE_IMAGE_DIR}selection_handle_drop_right.png" } }, - "textfield-font-size-0": + "textfieldFontSize0": { - "point-size":10 + "pointSize":10 }, - "textfield-font-size-1": + "textfieldFontSize1": { - "point-size":10 + "pointSize":10 }, - "textfield-font-size-2": + "textfieldFontSize2": { - "point-size":10 + "pointSize":10 }, - "textfield-font-size-3": + "textfieldFontSize3": { - "point-size":10 + "pointSize":10 }, - "textfield-font-size-4": + "textfieldFontSize4": { - "point-size":10 + "pointSize":10 }, "textselectionpopup": { - "popup-max-size":[656,72], - "option-divider-size":[2,0], - "popup-divider-color":[0.23,0.72,0.8,0.11], - "popup-icon-color":[1.0,1.0,1.0,1.0], - "popup-pressed-color":[0.24,0.72,0.8,0.11], + "popupMaxSize":[656,72], + "optionDividerSize":[2,0], + "popupDividerColor":[0.23,0.72,0.8,0.11], + "popupIconColor":[1.0,1.0,1.0,1.0], + "popupPressedColor":[0.24,0.72,0.8,0.11], "background": { "filename": "{DALI_IMAGE_DIR}selection-popup-bg.9.png" }, - "popup-fade-in-duration":0.25, - "popup-fade-out-duration":0.25 + "popupFadeInDuration":0.25, + "popupFadeOutDuration":0.25 }, "textselectionpopupbutton": { "label": { - "point-size":8, - "font-style":"{\"weight\":\"light\"}" + "pointSize":8, + "fontStyle":"{\"weight\":\"light\"}" } }, "textselectiontoolbar": { - "enable-overshoot":true, - "scroll-view": + "enableOvershoot":true, + "scrollView": { - "overshoot-animation-speed":360.0, - "overshoot-size":[720.0,130.0] + "overshootAnimationSpeed":360.0, + "overshootSize":[720.0,130.0] } }, "scrollview": { - "overshoot-effect-color":"B018", - "overshoot-animation-speed":360.0, - "overshoot-size":[720.0,130.0] + "overshootEffectColor":"B018", + "overshootAnimationSpeed":360.0, + "overshootSize":[720.0,130.0] }, "itemview": { - "overshoot-effect-color":"B018", - "overshoot-animation-speed":360.0, - "overshoot-size":[720.0,130.0] + "overshootEffectColor":"B018", + "overshootAnimationSpeed":360.0, + "overshootSize":[720.0,130.0] } } } diff --git a/dali-toolkit/styles/default-feedback-theme.json b/dali-toolkit/styles/default-feedback-theme.json index 25b0c7d..5b6c9b9 100644 --- a/dali-toolkit/styles/default-feedback-theme.json +++ b/dali-toolkit/styles/default-feedback-theme.json @@ -12,7 +12,7 @@ [ { "type": "clicked", - "sound-feedback-pattern": "FEEDBACK_PATTERN_TAP" + "soundFeedbackPattern": "FEEDBACK_PATTERN_TAP" } ] } diff --git a/docs/content/example-code/property-example.cpp b/docs/content/example-code/property-example.cpp index e0f40e6..388385d 100644 --- a/docs/content/example-code/property-example.cpp +++ b/docs/content/example-code/property-example.cpp @@ -25,7 +25,7 @@ namespace { // The name we will use to register our custom property by. -const char* const TAG_PROPERTY_NAME = "tag-identifier"; +const char* const TAG_PROPERTY_NAME = "tagIdentifier"; const char* const PUSHBUTTON_PRESS_IMAGE = DALI_IMAGE_DIR "button-down.9.png"; const char* const PUSHBUTTON_BUTTON_IMAGE = DALI_IMAGE_DIR "button-up.9.png"; diff --git a/docs/content/programming-guide/properties.h b/docs/content/programming-guide/properties.h index d984cf1..b9c87e9 100644 --- a/docs/content/programming-guide/properties.h +++ b/docs/content/programming-guide/properties.h @@ -39,10 +39,10 @@ struct Property { enum { - PIXEL_AREA = DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, ///< name "pixel-area", type Rect + PIXEL_AREA = DEFAULT_DERIVED_ACTOR_PROPERTY_START_INDEX, ///< name "pixelArea", type Rect STYLE, ///< name "style", type std::string BORDER, ///< name "border", type Vector4 - IMAGE, ///< name "image", type Map {"filename":"", "load-policy":...} + IMAGE, ///< name "image", type Map {"filename":"", "loadPolicy":...} }; }; @endcode @@ -63,7 +63,7 @@ namespace // Unnamed namespace // Name Type writable animatable constraint-input enum for index-checking DALI_PROPERTY_TABLE_BEGIN -DALI_PROPERTY( "pixel-area", RECTANGLE, true, false, true, Dali::ImageActor::Property::PIXEL_AREA ) +DALI_PROPERTY( "pixelArea", RECTANGLE, true, false, true, Dali::ImageActor::Property::PIXEL_AREA ) DALI_PROPERTY( "style", STRING, true, false, true, Dali::ImageActor::Property::STYLE ) DALI_PROPERTY( "border", VECTOR4, true, false, true, Dali::ImageActor::Property::BORDER ) DALI_PROPERTY( "image", MAP, true, false, false, Dali::ImageActor::Property::IMAGE ) @@ -117,15 +117,15 @@ Note that the “PropertyRange” contents “PROPERTY_START_INDEX” is also us enum { DISABLED = PROPERTY_START_INDEX, ///< name "disabled", @see SetDisabled(), type bool - AUTO_REPEATING, ///< name "auto-repeating", @see SetAutoRepeating(), type bool - INITIAL_AUTO_REPEATING_DELAY, ///< name "initial-auto-repeating-delay", @see SetInitialAutoRepeatingDelay(), type float - NEXT_AUTO_REPEATING_DELAY, ///< name "next-auto-repeating-delay", @see SetNextAutoRepeatingDelay(), type float + AUTO_REPEATING, ///< name "autoRepeating", @see SetAutoRepeating(), type bool + INITIAL_AUTO_REPEATING_DELAY, ///< name "initialAutoRepeatingDelay", @see SetInitialAutoRepeatingDelay(), type float + NEXT_AUTO_REPEATING_DELAY, ///< name "nextAutoRepeatingDelay", @see SetNextAutoRepeatingDelay(), type float TOGGLABLE, ///< name "togglable", @see SetTogglableButton(), type bool SELECTED, ///< name "selected", @see SetSelected(), type bool - NORMAL_STATE_ACTOR, ///< name "normal-state-actor", @see SetButtonImage(), type Map - SELECTED_STATE_ACTOR, ///< name "selected-state-actor", @see SetSelectedImage(), type Map - DISABLED_STATE_ACTOR, ///< name "disabled-state-actor", @see SetDisabledImage(), type Map - LABEL_ACTOR, ///< name "label-actor", @see SetLabel(), type Map + NORMAL_STATE_ACTOR, ///< name "normalStateActor", @see SetButtonImage(), type Map + SELECTED_STATE_ACTOR, ///< name "selectedStateActor", @see SetSelectedImage(), type Map + DISABLED_STATE_ACTOR, ///< name "disabledStateActor", @see SetDisabledImage(), type Map + LABEL_ACTOR, ///< name "labelActor", @see SetLabel(), type Map }; }; @endcode @@ -227,23 +227,23 @@ This is a basic example of a button defined in JSON by setting the default prope // First Button { "type": "PushButton", - "parent-origin": "TOP_CENTER", - "anchor-point": "TOP_CENTER", + "parentOrigin": "TOP_CENTER", + "anchorPoint": "TOP_CENTER", "position": [0, 0, 0], "size": [0, 200, 0], - "normal-state-actor": { + "normalStateActor": { "type": "ImageActor", "image": { "filename": "{DALI_IMAGE_DIR}blocks-brick-1.png" } }, - "selected-state-actor": { + "selectedStateActor": { "type": "ImageActor", "image": { "filename": "{DALI_IMAGE_DIR}blocks-brick-2.png" } }, - "label-actor": { + "labelActor": { "type": "TextLabel", "text": "Normal" } diff --git a/docs/content/shared-javascript-and-cpp-documentation/font-selection.md b/docs/content/shared-javascript-and-cpp-documentation/font-selection.md index 348bf1b..c8f46da 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/font-selection.md +++ b/docs/content/shared-javascript-and-cpp-documentation/font-selection.md @@ -14,34 +14,34 @@ Alternatively a font may be requested using either or all of FONT_FAMILY, FONT_S - FONT_STYLE Is a json formatted string with the font's style. Possible *key, value* pairs are: + *width* Modifies the space between glyphs. Possible values are: - - *ultra-condensed* - - *extra-condensed* + - *ultraCondensed* + - *extraCondensed* - *condensed* - - *semi-condensed* + - *semiCondensed* - *normal* - - *semi-expanded* + - *semiExpanded* - *expanded* - - *extra-expanded* - - *ultra-expanded* + - *extraExpanded* + - *ultraExpanded* + *weight* Modifies the thickness or darkness of the glyphs. Possible values are: - *thin* - - *ultra-light* - - *extra-light* + - *ultraLight* + - *extraLight* - *light* - - *demi-light* - - *semi-light* + - *demiLight* + - *semiLight* - *book* - *normal* - *regular* - *medium* - - *demi-bold* - - *semi-bold* + - *demiBold* + - *semiBold* - *bold* - - *ultra-bold* - - *extra-bold* + - *ultraBold* + - *extraBold* - *black* - *heavy* - - *extra-black* + - *extraBlack* + *slant* Whether to use italics. Usually *italic* is a different font whilst the *oblique* has been generated by slanting the *normal* one. Possible values are: - *normal* - *roman* Same as *normal* @@ -87,15 +87,15 @@ To change the font for standard text controls, this JSON syntax can be used: { "textlabel": { - "font-family":"FreeSerif", - "font-style":"{\"weight\":\"bold\",\"slant\":\"italic\"}", - "point-size":8 + "fontFamily":"FreeSerif", + "fontStyle":"{\"weight\":\"bold\",\"slant\":\"italic\"}", + "pointSize":8 } } } ~~~ -However the same point-size is unlikely to be suitable for all text controls in an application. +However the same pointSize is unlikely to be suitable for all text controls in an application. To set custom sizes simply set a "style name" for each case, and then provide a style override in JSON: ~~~{.cpp} @@ -115,19 +115,19 @@ To set custom sizes simply set a "style name" for each case, and then provide a { "textlabel": { - "font-family":"FreeSerif", - "font-style":"{\"weight\":\"bold\",\"slant\":\"italic\"}", - "point-size":8 + "fontFamily":"FreeSerif", + "fontStyle":"{\"weight\":\"bold\",\"slant\":\"italic\"}", + "pointSize":8 }, "custom": { - "point-size":10 + "pointSize":10 } } } ~~~ -In the example above, standard text labels will have point-size 8, and "custom" labels will have point-size 10. +In the example above, standard text labels will have pointSize 8, and "custom" labels will have pointSize 10. */ diff --git a/docs/content/shared-javascript-and-cpp-documentation/popup.md b/docs/content/shared-javascript-and-cpp-documentation/popup.md index c302f82..a86442f 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/popup.md +++ b/docs/content/shared-javascript-and-cpp-documentation/popup.md @@ -111,7 +111,7 @@ Here is the code to produce the above example: C++ ~~~{.cpp} -TypeInfo typeInfo = TypeRegistry::Get().GetTypeInfo( "popup-toast" ); +TypeInfo typeInfo = TypeRegistry::Get().GetTypeInfo( "PopupToast" ); if( typeInfo ) { BaseHandle baseHandle = typeInfo.CreateInstance(); @@ -185,22 +185,22 @@ These signals are dynamically created. The controls (typically PushButtons) must ## Step 1 {#popupconfirmationstep1} Name your controls. -- Name your first control, or OK control: "control-ok" -- Name your second control, or Cancel control: "control-cancel" +- Name your first control, or OK control: "controlOk" +- Name your second control, or Cancel control: "controlCancel" ## Step 2 {#popupconfirmationstep2} Tell the ConfirmationPopup the names of the signals to connect to for each control. For example, if we are using PushButtons as controls, the signal name would be "clicked". This allows us to use different control types. -- Set property "connect-signal-ok-selected" with the name of the signal to connect to within the first control. -- Set property "connect-signal-cancel-selected" with the name of the signal to connect to within the second control. +- Set property "connectSignalOkSelected" with the name of the signal to connect to within the first control. +- Set property "connectSignalCancelSelected" with the name of the signal to connect to within the second control. ## Step 3 {#popupconfirmationstep3} Connect to the following respective signals within ConfirmationPopup: -- Connect to signal "control-signal-ok" to be signalled for the first control. -- Connect to signal "control-signal-cancel" to be signalled for the second control. +- Connect to signal "controlSignalOk" to be signalled for the first control. +- Connect to signal "controlSignalCancel" to be signalled for the second control. The ConfirmationPopup will dynamically make the connection between the signalling control, and your signal handler. @@ -307,77 +307,77 @@ This time without an image around the buttons. This could be added in the same w "stage": [ { "type": "ConfirmationPopup", - "name": "confirmation-popup", - "parent-origin": [0.5, 0.55, 0.5], - "anchor-point": "CENTER", - "width-resize-policy": "SIZE_RELATIVE_TO_PARENT", - "height-resize-policy": "USE_NATURAL_SIZE", - "size-mode-factor": [0.65, 1.0, 1.0], - "tail-visibility": false, - "display-change-animation-duration": 1.0, - "contextual-mode": "NON_CONTEXTUAL", - "animation-mode": "ZOOM", - "connect-signal-ok-selected": "clicked", - "connect-signal-cancel-selected": "clicked", + "name": "confirmationPopup", + "parentOrigin": [0.5, 0.55, 0.5], + "anchorPoint": "CENTER", + "widthResizePolicy": "SIZE_RELATIVE_TO_PARENT", + "heightResizePolicy": "USE_NATURAL_SIZE", + "sizeModeFactor": [0.65, 1.0, 1.0], + "tailVisibility": false, + "displayChangeAnimationDuration": 1.0, + "contextualMode": "NON_CONTEXTUAL", + "animationMode": "ZOOM", + "connectSignalOkSelected": "clicked", + "connectSignalCancelSelected": "clicked", "title": { "type": "TextLabel", "text": "Title text", - "text-color": [1, 1, 1, 1] + "textColor": [1, 1, 1, 1] }, "content": { "type": "TextLabel", "text": "Content text", "padding": [20, 20, 20, 0], - "text-color": [1, 1, 1, 1] + "textColor": [1, 1, 1, 1] }, "footer": { "type": "Control", "size": [0, 80, 0], - "width-resize-policy": "FILL_TO_PARENT", - "height-resize-policy": "FIXED", - "parent-origin": "CENTER", - "anchor-point": "CENTER", + "widthResizePolicy": "FILL_TO_PARENT", + "heightResizePolicy": "FIXED", + "parentOrigin": "CENTER", + "anchorPoint": "CENTER", "actors": [ { "type": "PushButton", - "name": "control-ok", - "parent-origin": "CENTER_LEFT", - "anchor-point": "CENTER_LEFT", + "name": "controlOk", + "parentOrigin": "CENTER_LEFT", + "anchorPoint": "CENTER_LEFT", "position": [20, 0, 0], "size": [0, 0, 0], - "label-text": "OK" + "labelText": "OK" }, { "type": "PushButton", - "name": "control-cancel", - "parent-origin": "CENTER_RIGHT", - "anchor-point": "CENTER_RIGHT", + "name": "controlCancel", + "parentOrigin": "CENTER_RIGHT", + "anchorPoint": "CENTER_RIGHT", "position": [-20, 0, 0], "size": [0, 0, 0], - "label-text": "Cancel" + "labelText": "Cancel" } ] }, "signals": [ { - "name": "control-signal-ok", + "name": "controlSignalOk", "action": "set", - "actor": "confirmation-popup", - "property": "display-state", + "actor": "confirmationPopup", + "property": "displayState", "value": "HIDDEN" }, { - "name": "control-signal-cancel", + "name": "controlSignalCancel", "action": "set", - "actor": "confirmation-popup", - "property": "display-state", + "actor": "confirmationPopup", + "property": "displayState", "value": "HIDDEN" }, { - "name": "touched-outside", + "name": "touchedOutside", "action": "set", - "actor": "confirmation-popup", - "property": "display-state", + "actor": "confirmationPopup", + "property": "displayState", "value": "HIDDEN" } ] diff --git a/docs/content/shared-javascript-and-cpp-documentation/programming-languages.md b/docs/content/shared-javascript-and-cpp-documentation/programming-languages.md index 85393d6..e2c4de2 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/programming-languages.md +++ b/docs/content/shared-javascript-and-cpp-documentation/programming-languages.md @@ -62,7 +62,7 @@ actor.connect( "touched", onPressed ); "actor":"image", "property":"position", "value":[200,-100,0], - "alpha-function": "BOUNCE" + "alphaFunction": "BOUNCE" } ] } @@ -72,8 +72,8 @@ actor.connect( "touched", onPressed ); { "name":"image", "type":"Actor", - "anchor-point": "CENTER", - "parent-origin": "CENTER", + "anchorPoint": "CENTER", + "parentOrigin": "CENTER", "signals" : [ { "name" : "touched", "action": "play", "animation": "move" } diff --git a/docs/content/shared-javascript-and-cpp-documentation/resource-image-scaling.md b/docs/content/shared-javascript-and-cpp-documentation/resource-image-scaling.md index cc21bc0..887f082 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/resource-image-scaling.md +++ b/docs/content/shared-javascript-and-cpp-documentation/resource-image-scaling.md @@ -39,8 +39,8 @@ var image = new dali.ResourceImage( { url: "gallery-large-12.jpg", width: stageX, height: stageY, - fitting-mode: "SCALE_TO_FILL", - sampling-mode: "BOX_THEN_LINEAR" + fittingMode: "SCALE_TO_FILL", + samplingMode: "BOX_THEN_LINEAR" }); ~~~ @@ -231,22 +231,22 @@ ResourceImage image4 = ResourceImage::New( "flower.png", // JavaScript var image1 = new dali.ResourceImage( { url:"flower.png", width:240, height:240, - fitting-mode:"SCALE_TO_FILL", sampling-mode:"NEAREST" + fittingMode:"SCALE_TO_FILL", samplingMode:"NEAREST" } ); var image2 = new dali.ResourceImage( { url:"flower.png", width:240, height:240, - fitting-mode:"SCALE_TO_FILL", sampling-mode:"NO_FILTER" + fittingMode:"SCALE_TO_FILL", samplingMode:"NO_FILTER" } ); var image3 = new dali.ResourceImage( { url:"flower.png", width:240, height:240, - fitting-mode:"SCALE_TO_FILL", sampling-mode:"BOX" + fittingMode:"SCALE_TO_FILL", samplingMode:"BOX" } ); var image4 = new dali.ResourceImage( { url:"flower.png", width:240, height:240, - fitting-mode:"SCALE_TO_FILL", sampling-mode:"BOX_THEN_LINEAR" + fittingMode:"SCALE_TO_FILL", samplingMode:"BOX_THEN_LINEAR" } ); ~~~ diff --git a/docs/content/shared-javascript-and-cpp-documentation/script-hello.md b/docs/content/shared-javascript-and-cpp-documentation/script-hello.md index 2edd73b..4f2e234 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/script-hello.md +++ b/docs/content/shared-javascript-and-cpp-documentation/script-hello.md @@ -12,7 +12,7 @@ "name": "text-label", "type": "TextLabel", "text": "Hello World", - "parent-origin": "CENTER" + "parentOrigin": "CENTER" }] } ~~~ diff --git a/docs/content/shared-javascript-and-cpp-documentation/script-json-specification.md b/docs/content/shared-javascript-and-cpp-documentation/script-json-specification.md index 881bdd3..f6887cb 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/script-json-specification.md +++ b/docs/content/shared-javascript-and-cpp-documentation/script-json-specification.md @@ -178,7 +178,7 @@ an optional actor sub hierarchy. { // } "filename":"{IMAGES}/b.jpg" // }, // - "parent-origin": "CENTER" // + "parentOrigin": "CENTER" // ... // "actors": // A tree of sub actors [ // @@ -186,7 +186,7 @@ an optional actor sub hierarchy. "type":"TextView" // "name":"text", // "text":"Hello World", // - "parent-origin": "CENTER", // + "parentOrigin": "CENTER", // } // ] // } // @@ -280,9 +280,9 @@ They can also be created automatically from JSON in an actor signal. { // "duration": 10, // Duration in seconds "loop": false, // Whether to loop. - "end-action": "Bake", // Whether to set final value(bake) or + "endAction": "Bake", // Whether to set final value(bake) or // reset - "disconnect-aciton": "Discard", // Whether 'Bake' or 'Discard' when disconnected + "disconnectAction": "Discard", // Whether 'Bake' or 'Discard' when disconnected "properties": [ // Properties changed in this animation @@ -290,9 +290,9 @@ They can also be created automatically from JSON in an actor signal. "actor":"image", // Actor found by name from the stage "property":"rotation", // Property to change "value":[0, 0.1, 0, 0], // Value to set - "alpha-function": "EASE\_IN\_OUT", // Interpolation function + "alphaFunction": "EASE\_IN\_OUT", // Interpolation function // - "time-period": // Time period for change + "timePeriod": // Time period for change {"delay": 0, "duration": 3 } @@ -323,15 +323,15 @@ animation property. [190.0,-150.0,0.0] ], // curvature automatically creates - "curvature":0.35, // control-points + "curvature":0.35, // controlPoints // - "control-points": [...] // Otherwise control-points can be + "controlPoints": [...] // Otherwise controlPoints can be // directly specified. } // }, // "animations": // { // - "path-animation": + "pathAnimation": { "duration": 3.0, "properties": @@ -342,8 +342,8 @@ animation property. "path":"path0", // animation. "forward":[1,0,0], // Forward vector specifies orientation // whilst travelling along the path - "alpha-function": "EASE\_IN\_OUT", // (optional) - "time-period": + "alphaFunction": "EASE\_IN\_OUT", // (optional) + "timePeriod": { "delay": 0, "duration": 3 @@ -373,7 +373,7 @@ be animated by one animation. ~~~ { // - "shader-effects": // Shader Effect section + "shaderEffects": // Shader Effect section { // "myshader1": // Shader instance name { // @@ -383,10 +383,10 @@ be animated by one animation. "vertex":"", // Glsl vertex program "fragmentPrefix": "", "fragment": "", // Glsl fragment program. - "geometry-type": "GEOMETRY_TYPE_IMAGE", // Geometry type(see DALi documentation) + "geometryType": "GEOMETRY_TYPE_IMAGE", // Geometry type(see DALi documentation) }, - "geometry-hints": "HINT_NONE": // Geometry hints (see DALi documentation) - "grid-density": 0, // Grid density(see DALi documentation) + "geometryHints": "HINT_NONE": // Geometry hints (see DALi documentation) + "gridDensity": 0, // Grid density(see DALi documentation) "image": { "filename": "" // Effect image available as a second texture unit. @@ -440,7 +440,7 @@ uniforms with 'u'. ... ] }, - "shader-effects": + "shaderEffects": { "myshader1": { diff --git a/docs/content/shared-javascript-and-cpp-documentation/script-overview.md b/docs/content/shared-javascript-and-cpp-documentation/script-overview.md index d8eab23..6837b33 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/script-overview.md +++ b/docs/content/shared-javascript-and-cpp-documentation/script-overview.md @@ -38,7 +38,7 @@ JSON file contains different sections: - **Templates** actor & control tree creation - **Styles** used to style actor & control trees - **Animations** -- **Instances** of objects for path, shader-effects, render-tasks, frame-buffers +- **Instances** of objects for path, shaderEffects, renderTasks, frameBuffers - **Stage**. A list of actors / controls that can be added to the stage - **Constants** (e.g. positions / colors, that can be references by other parts of the JSON file); - **Actions** @@ -53,27 +53,27 @@ JSON file contains different sections: { "name":"users", "type":"Actor", - "parent-origin":"TOP_CENTER", - "anchor-point":"TOP_CENTER", + "parentOrigin":"TOP_CENTER", + "anchorPoint":"TOP_CENTER", "size":"{DEFAULT_MENU_USER_SIZE}", - "color-mode":"USE_OWN_COLOR", + "colorMode":"USE_OWN_COLOR", "actors": [ { "name":"usersBackground", "type":"ImageActor", - "parent-origin":"CENTER", - "anchor-point":"CENTER", + "parentOrigin":"CENTER", + "anchorPoint":"CENTER", "size":"{DEFAULT_MENU_USER_SIZE}", - "color-mode":"USE_OWN_COLOR", + "colorMode":"USE_OWN_COLOR", "image":{ "filename":"{IMAGE_PATH}white-pixel.png" }, "color":"{DEFAULT_MENU_BACKGROUND_COLOR}" }, { "name":"icon", "type":"ImageActor", - "parent-origin":"TOP_CENTER", - "anchor-point":"TOP_CENTER", + "parentOrigin":"TOP_CENTER", + "anchorPoint":"TOP_CENTER", "position":[0,41,1], "image":{ "filename":"{IMAGE_PATH}ico_man_nor.png" } }, @@ -128,7 +128,7 @@ Actor userActorTree = builder.Create("users"); }, "label": { - "color-alpha":1, + "colorAlpha":1, "text":"LIVE" } } @@ -160,23 +160,23 @@ builder.ApplyStyle( "live-tv-focus", tvIcon ); [ { "actor":"background", - "property":"position-x", + "property":"positionX", "value":30, - "alpha-function":"EASE_IN_OUT" + "alphaFunction":"EASE_IN_OUT" }, { "actor":"itemsBackground", - "property":"color-alpha", + "property":"colorAlpha", "value":0.85, - "time-period": {"delay": 0.25, "duration": 0.25 }, - "alpha-function":"EASE_IN_OUT" + "timePeriod": {"delay": 0.25, "duration": 0.25 }, + "alphaFunction":"EASE_IN_OUT" }, { "actor":"usersBackground", - "property":"color-alpha", + "property":"colorAlpha", "value":0.85, - "time-period": {"delay": 0.25, "duration": 0.25 }, - "alpha-function":"EASE_IN_OUT" + "timePeriod": {"delay": 0.25, "duration": 0.25 }, + "alphaFunction":"EASE_IN_OUT" } ] }, @@ -203,19 +203,19 @@ Animation anim = builder.createAnimation( "animate-show", propertyMap ); “stage": [{ "name":"simple-table", "type":"TableView", - "background-color": [0.5,0.5,0,1], - "parent-origin": "CENTER", + "backgroundColor": [0.5,0.5,0,1], + "parentOrigin": "CENTER", "size":[400,500,1], "rows": 4, "columns":4, - "cell-padding": [10, 5], - "layout-animation-duration": 0.5, - "layout-rows": { // set the height of the rows + "cellPadding": [10, 5], + "layoutAnimationDuration": 0.5, + "layoutRows": { // set the height of the rows "0": { "policy": "fixed", "value": 40 }, "1": { "policy": "relative", "value": 0.33 }, "2": { "policy": "fixed", "value": 120 } }, - "layout-columns": { // set the widths of the columns + "layoutColumns": { // set the widths of the columns "1": { "policy": "fixed", "value": 150 }, "2": { "policy": "relative", "value": 0.35 }, "3": { "policy": "relative", "value": 0.15 } @@ -226,10 +226,10 @@ Animation anim = builder.createAnimation( "animate-show", propertyMap ); "image": { "filename": "{DALI_IMAGE_DIR}gallery-large-1.jpg" }, - "custom-properties": { // properties registered dynamically - "cell-indices": [0,0],// property to specify the top-left cell this child occupies - "row-span":4, // property to specify how many rows this child occupies, if not set, default value is 1 - "column-spam":1 // property to specify how many columns this child occupies + "customProperties": { // properties registered dynamically + "cellIndices": [0,0],// property to specify the top-left cell this child occupies + "rowSpan":4, // property to specify how many rows this child occupies, if not set, default value is 1 + "columnSpan":1 // property to specify how many columns this child occupies .... ~~~ diff --git a/docs/content/shared-javascript-and-cpp-documentation/text-label.md b/docs/content/shared-javascript-and-cpp-documentation/text-label.md index 1b63a42..5986eee 100644 --- a/docs/content/shared-javascript-and-cpp-documentation/text-label.md +++ b/docs/content/shared-javascript-and-cpp-documentation/text-label.md @@ -33,7 +33,7 @@ dali.stage.add( label ); ~~~ The label must also be added to the stage, or to an actor which is on the stage. -The position of the label on-screen is dependent on the parent-origin and anchor-point properties. +The position of the label on-screen is dependent on the parentOrigin and anchorPoint properties. | | | |--|--| diff --git a/node-addon/javascript-application-options.cpp b/node-addon/javascript-application-options.cpp index 7811583..fbfbb3f 100644 --- a/node-addon/javascript-application-options.cpp +++ b/node-addon/javascript-application-options.cpp @@ -37,9 +37,9 @@ struct StereoInfo }; StereoInfo StereoModeTable[] = { { "mono", Dali::MONO}, - { "stereo-horizontal", Dali::STEREO_HORIZONTAL }, - { "stereo-vertical", Dali::STEREO_VERTICAL }, - { "stereo-interlaced", Dali::STEREO_INTERLACED }, + { "stereoHorizontal", Dali::STEREO_HORIZONTAL }, + { "stereoVertical", Dali::STEREO_VERTICAL }, + { "stereoInterlaced", Dali::STEREO_INTERLACED }, }; const unsigned int numberViewModes = sizeof( StereoModeTable ) / sizeof( StereoModeTable[0] ); @@ -114,8 +114,8 @@ bool ParseStereoScopicOptions( v8::Isolate* isolate, const v8::Local { v8::HandleScope scope(isolate); - v8::Local modeValue = stereoObject->Get( v8::String::NewFromUtf8( isolate, "stereoscopic-mode" ) ); - v8::Local stereoBaseValue = stereoObject->Get( v8::String::NewFromUtf8( isolate, "stereo-base" ) ); + v8::Local modeValue = stereoObject->Get( v8::String::NewFromUtf8( isolate, "stereoscopicMode" ) ); + v8::Local stereoBaseValue = stereoObject->Get( v8::String::NewFromUtf8( isolate, "stereoBase" ) ); if( !modeValue->IsString() ) { @@ -163,7 +163,7 @@ bool GetApplicationOptions(const v8::FunctionCallbackInfo& args, Appl } // get the stereoscopic settings - v8::Local stereoValue= object->Get( v8::String::NewFromUtf8( isolate, "view-mode" ) ); + v8::Local stereoValue= object->Get( v8::String::NewFromUtf8( isolate, "viewMode" ) ); if( stereoValue->IsObject() ) { ok = ParseStereoScopicOptions( isolate, stereoValue->ToObject(), options.stereo ); @@ -174,7 +174,7 @@ bool GetApplicationOptions(const v8::FunctionCallbackInfo& args, Appl } // get the style sheet - v8::Local stylesheetValue= object->Get( v8::String::NewFromUtf8( isolate, "style-sheet" ) ); + v8::Local stylesheetValue= object->Get( v8::String::NewFromUtf8( isolate, "styleSheet" ) ); if( stylesheetValue->IsString() ) { options.stylesheet = Dali::V8Plugin::V8Utils::v8StringToStdString( stylesheetValue ); diff --git a/plugins/dali-script-v8/docs/content/actor.js b/plugins/dali-script-v8/docs/content/actor.js index e2ce270..300ae3d 100644 --- a/plugins/dali-script-v8/docs/content/actor.js +++ b/plugins/dali-script-v8/docs/content/actor.js @@ -72,13 +72,13 @@ Note that since DALi is a 3D toolkit, this behaviour is the result of a default The actor provides the following call back events -| Name | Description | Parameters passed to call back | -|-------------------|----------------------------------------|--------------------------| -|touched | touch event | (actor, touchEvent ) | -|hovered | mouse or pointer hovering over actor | (actor, hoverEvent) | -|mouse-wheel-event | mouse wheel events | (actor, wheelEvent) | -|on-stage | actor has been moved on stage | (actor) | -|off-stage | actor has been moved off stage | (actor) | +| Name | Description | Parameters passed to call back | +|-----------------|----------------------------------------|--------------------------| +|touched | touch event | (actor, touchEvent ) | +|hovered | mouse or pointer hovering over actor | (actor, hoverEvent) | +|mouseWheelEvent | mouse wheel events | (actor, wheelEvent) | +|onStage | actor has been moved on stage | (actor) | +|offStage | actor has been moved off stage | (actor) | #### Touch event @@ -162,7 +162,7 @@ mouseWheelEvent = { } // connect to touch events -myActor.connect( "mouse-wheel-event", onMouseWheel ); +myActor.connect( "mouseWheelEvent", onMouseWheel ); ``` #### Key events diff --git a/plugins/dali-script-v8/docs/content/animation.js b/plugins/dali-script-v8/docs/content/animation.js index 727c139..43c258f 100644 --- a/plugins/dali-script-v8/docs/content/animation.js +++ b/plugins/dali-script-v8/docs/content/animation.js @@ -150,7 +150,7 @@ createColorShiftAndZoomEffect = function() { }" // Shader API - // geometryType = "image", "text", "mesh", "textured-mesh" + // geometryType = "image", "text", "mesh", "texturedMesh" // fragmentPrefex ="" // prefix ( optional) // fragmentShader = "" // fragment shader ( optional) // geometryHints = [ "gridX", "gridY", "grid","depthBuffer","blending" ] ( optional) diff --git a/plugins/dali-script-v8/docs/content/dali.js b/plugins/dali-script-v8/docs/content/dali.js index 611d004..e03a9d2 100644 --- a/plugins/dali-script-v8/docs/content/dali.js +++ b/plugins/dali-script-v8/docs/content/dali.js @@ -38,7 +38,7 @@ mScript.ExecuteFile( mScriptFileName); A DALi application uses a hierachy of Dali::Actor objects to position visible content. An actor inherits a position relative to its parent, and can be moved relative to this point. UI controls can be built by combining multiple actors. -To display the contents of an actor, it must be connected to the Dali::Stage. This provides an invisible root (top-level) actor, to which all other actors are added. A direct or indirect child of the root actor is considered "on-stage". Multi-touch events are received through signals emitted by on-stage actors. +To display the contents of an actor, it must be connected to the Dali::Stage. This provides an invisible root (top-level) actor, to which all other actors are added. A direct or indirect child of the root actor is considered "onStage". Multi-touch events are received through signals emitted by on-stage actors. The following example shows how to connect a new actor to the stage: ``` diff --git a/plugins/dali-script-v8/docs/content/keyboard-focus-manager.js b/plugins/dali-script-v8/docs/content/keyboard-focus-manager.js index 2bcae22..821b5dd 100644 --- a/plugins/dali-script-v8/docs/content/keyboard-focus-manager.js +++ b/plugins/dali-script-v8/docs/content/keyboard-focus-manager.js @@ -18,7 +18,7 @@ The application is required to help the manager when moving focus. Connect to the pre-focus-change call back as follows: ``` // listen for pre-focus change events -dali.keyboardFocusManager.connect("keyboard-pre-focus-change", this.preFocusChanged); +dali.keyboardFocusManager.connect("keyboardPreFocusChange", this.preFocusChanged); // example call back handler @@ -39,7 +39,7 @@ myApp.preFocusChanged = function( currentFocusedActor, proposedActorToFocus, dir } } -dali.keyboardFocusManager.connect("keyboard-pre-focus-change", myCallback) +dali.keyboardFocusManager.connect("keyboardPreFocusChange", myCallback) ``` KeyboardFocusManager makes the best guess for which actor to focus towards the given direction, but applications might want to change that. @@ -58,7 +58,7 @@ myCallback( originalFocusedActor, currentFocusedActor) { } -dali.keyboardFocusManager.connect("keyboard-focus-change", myCallback) +dali.keyboardFocusManager.connect("keyboardFocusChange", myCallback) ``` @class KeyboardFocusManager diff --git a/plugins/dali-script-v8/docs/content/pan-gesture-detector.js b/plugins/dali-script-v8/docs/content/pan-gesture-detector.js index 3285651..1e82183 100644 --- a/plugins/dali-script-v8/docs/content/pan-gesture-detector.js +++ b/plugins/dali-script-v8/docs/content/pan-gesture-detector.js @@ -20,7 +20,7 @@ dali.stage.add(actor); panGestureDetector.attach(actor); // Connect the detected signal -panGestureDetector.connect("pan-detected", onPan); +panGestureDetector.connect("panDetected", onPan); onPan = function(actor, panGesture) { @@ -38,4 +38,4 @@ panGestureDetector.detach(actor); ``` @class PanGestureDetector -*/ \ No newline at end of file +*/ diff --git a/plugins/dali-script-v8/docs/content/resource-image.js b/plugins/dali-script-v8/docs/content/resource-image.js index 618f3cf..ccdfe77 100644 --- a/plugins/dali-script-v8/docs/content/resource-image.js +++ b/plugins/dali-script-v8/docs/content/resource-image.js @@ -33,11 +33,11 @@ var options = { } var image = new dali.ResourceImage( options ); -image.connect("image-loading-finished", finished ); +image.connect("imageLoadingFinished", finished ); var imageActor = new dali.ImageActor( image ); ``` @class ResourceImage @extends Image - */ \ No newline at end of file + */ diff --git a/plugins/dali-script-v8/docs/content/stage.js b/plugins/dali-script-v8/docs/content/stage.js index cfcdb76..f11a83d 100644 --- a/plugins/dali-script-v8/docs/content/stage.js +++ b/plugins/dali-script-v8/docs/content/stage.js @@ -27,7 +27,7 @@ dali.stage.remove( imageActor ); ### Key Events -Key events are received through the key-event callback. +Key events are received through the keyEvent callback. ``` daliApp.myCallback = function (keyEvent) @@ -48,7 +48,7 @@ daliApp.myCallback = function (keyEvent) } } -dali.stage.connect("key-event", daliApp.myCallback); +dali.stage.connect("keyEvent", daliApp.myCallback); ``` The key event object has the following properties @@ -65,4 +65,4 @@ The key event object has the following properties } ``` @class Stage -*/ \ No newline at end of file +*/ diff --git a/plugins/dali-script-v8/src/animation/animation-api.cpp b/plugins/dali-script-v8/src/animation/animation-api.cpp index 653f1d3..e3fc2d7 100644 --- a/plugins/dali-script-v8/src/animation/animation-api.cpp +++ b/plugins/dali-script-v8/src/animation/animation-api.cpp @@ -247,7 +247,7 @@ bool GetAnimationParameters( v8::Isolate* isolate, { // used for things like anim.AnimateBy( myImageActor, property-name, property-value (or Javascript number array)); // 1 extract property handle from param1. - // 2 extract property name from param2 ( can be in the format "u-color" or "uColor" + // 2 extract property name from param2 ( in the format "uColor" ) // 3 extract PropertyValue from param3 // 4 extract animation options ( delay, duration, alpha func) @@ -273,9 +273,7 @@ bool GetAnimationParameters( v8::Isolate* isolate, if( index == Property::INVALID_INDEX ) { - // convert the property name from "uColor" to "u-color" - std::string convetedName = V8Utils::JavaScriptNameToPropertyName( propertyName ); - index = animParams.target.GetPropertyIndex( convetedName ); + index = animParams.target.GetPropertyIndex( propertyName ); } animParams.propertyIndex = index; diff --git a/plugins/dali-script-v8/src/animation/constrainer-api.cpp b/plugins/dali-script-v8/src/animation/constrainer-api.cpp index 701f4d4..8f55d27 100644 --- a/plugins/dali-script-v8/src/animation/constrainer-api.cpp +++ b/plugins/dali-script-v8/src/animation/constrainer-api.cpp @@ -116,8 +116,7 @@ bool GetApplyParameters( const v8::FunctionCallbackInfo< v8::Value >& args, Acto targetPropertyIndex = targetActor.GetPropertyIndex( propertyName ); if( targetPropertyIndex == Property::INVALID_INDEX ) { - std::string convertedName = V8Utils::JavaScriptNameToPropertyName( propertyName ); - targetPropertyIndex = targetActor.GetPropertyIndex( convertedName ); + targetPropertyIndex = targetActor.GetPropertyIndex( propertyName ); if( targetPropertyIndex == Property::INVALID_INDEX ) { @@ -140,8 +139,7 @@ bool GetApplyParameters( const v8::FunctionCallbackInfo< v8::Value >& args, Acto sourcePropertyIndex = targetActor.GetPropertyIndex( propertyName ); if( sourcePropertyIndex == Property::INVALID_INDEX ) { - std::string convertedName = V8Utils::JavaScriptNameToPropertyName( propertyName ); - sourcePropertyIndex = targetActor.GetPropertyIndex( convertedName ); + sourcePropertyIndex = targetActor.GetPropertyIndex( propertyName ); if( sourcePropertyIndex == Property::INVALID_INDEX ) { @@ -210,7 +208,7 @@ bool GetApplyParameters( const v8::FunctionCallbackInfo< v8::Value >& args, Acto * var constraintPosition = { "target":targetActor, * "targetProperty":"position", * "source":sourceActor, - * "sourceProperty":"color-alpha", + * "sourceProperty":"colorAlpha", * "range":range * "wrap":wrap * }; diff --git a/plugins/dali-script-v8/src/events/pan-gesture-detector-api.cpp b/plugins/dali-script-v8/src/events/pan-gesture-detector-api.cpp index e1216b4..18cb0a8 100644 --- a/plugins/dali-script-v8/src/events/pan-gesture-detector-api.cpp +++ b/plugins/dali-script-v8/src/events/pan-gesture-detector-api.cpp @@ -61,7 +61,7 @@ PanGestureDetector PanGestureDetectorApi::New( const v8::FunctionCallbackInfo< v /** * Attaches an actor to the pan gesture. * - * The pan-detected signal will be dispatched when the pan gesture occurs on + * The panDetected signal will be dispatched when the pan gesture occurs on * the attached actor. You can attach several actors to a pan gesture detector. * @method attach * @for PanGestureDetector diff --git a/plugins/dali-script-v8/src/module-loader/module-loader.cpp b/plugins/dali-script-v8/src/module-loader/module-loader.cpp index 12ad13c..6623374 100644 --- a/plugins/dali-script-v8/src/module-loader/module-loader.cpp +++ b/plugins/dali-script-v8/src/module-loader/module-loader.cpp @@ -105,7 +105,7 @@ bool ModuleLoader::ExecuteScriptFromFile( v8::Isolate* isolate, } /** - * ### var module = require("module-name"); + * ### var module = require("moduleName"); * * * There is no standard for modules or the 'require' keyword in JavaScript.
@@ -161,7 +161,7 @@ bool ModuleLoader::ExecuteScriptFromFile( v8::Isolate* isolate, * from an object literal with name-value pairs (exports object) to a function. * * // my_first_module.js - * module.exports = function() { log("hello-world"); } + * module.exports = function() { log("helloWorld"); } * *
* diff --git a/plugins/dali-script-v8/src/object/handle-wrapper.cpp b/plugins/dali-script-v8/src/object/handle-wrapper.cpp index 2705eb0..2915670 100644 --- a/plugins/dali-script-v8/src/object/handle-wrapper.cpp +++ b/plugins/dali-script-v8/src/object/handle-wrapper.cpp @@ -92,9 +92,7 @@ void HandleWrapper::PropertyGet( v8::Local propertyName, Handle handle = handleWrapper->mHandle; // get the property index - // convert from camel case to dali property style with hyphens - std::string daliPropertyName = V8Utils::JavaScriptNameToPropertyName(name); - Dali::Property::Index index = handle.GetPropertyIndex( daliPropertyName ); + Dali::Property::Index index = handle.GetPropertyIndex( name ); if(index != Dali::Property::INVALID_INDEX) { @@ -149,9 +147,7 @@ void HandleWrapper::PropertySet( v8::Local propertyName, // DALI_ASSERT_DEBUG( handleWrapper && "not a dali object"); Handle handle = handleWrapper->mHandle; - // convert from camel case to dali property style with hyphens - std::string daliPropertyName = V8Utils::JavaScriptNameToPropertyName(name); - Dali::Property::Index index = handle.GetPropertyIndex( daliPropertyName ); + Dali::Property::Index index = handle.GetPropertyIndex( name ); if(index != Dali::Property::INVALID_INDEX) { diff --git a/plugins/dali-script-v8/src/shader-effects/shader-effect-api.cpp b/plugins/dali-script-v8/src/shader-effects/shader-effect-api.cpp index 5143d49..ea2df91 100644 --- a/plugins/dali-script-v8/src/shader-effects/shader-effect-api.cpp +++ b/plugins/dali-script-v8/src/shader-effects/shader-effect-api.cpp @@ -120,7 +120,7 @@ ShaderEffect GetShaderEffect( v8::Isolate* isolate, const v8::FunctionCallbackIn * @for ShaderEffect * @method ShaderEffect * @param {Object} shaderOptions - * @param {String} [shaderOptions.geometryType] Type of geometry to be rendered with the effect. "image", "text", "mesh", "textured-mesh", default is image. + * @param {String} [shaderOptions.geometryType] Type of geometry to be rendered with the effect. "image", "text", "mesh", "texturedMesh", default is image. * @param {String} [shaderOptions.vertexShaderPrefix] This string will be inserted before the default uniforms for the vertex shader(ideal for #defines) * @param {String} [shaderOptions.vertexShader] VertexShader code for the effect. If not defined, the default version will be used * @param {String} [shaderOptions.fragmentShaderPrefix] This string will be inserted before the default uniforms for the fragment shader(ideal for #defines) diff --git a/plugins/dali-script-v8/src/signals/signal-manager.cpp b/plugins/dali-script-v8/src/signals/signal-manager.cpp index b4ce8fc..9f61ffc 100644 --- a/plugins/dali-script-v8/src/signals/signal-manager.cpp +++ b/plugins/dali-script-v8/src/signals/signal-manager.cpp @@ -55,22 +55,22 @@ namespace // un-named namespace { const char* const SIGNAL_TOUCHED = "touched"; const char* const SIGNAL_HOVERED = "hovered"; -const char* const SIGNAL_WHEEL_EVENT = "wheel-event"; -const char* const SIGNAL_ON_STAGE = "on-stage"; -const char* const SIGNAL_OFF_STAGE = "off-stage"; +const char* const SIGNAL_WHEEL_EVENT = "wheelEvent"; +const char* const SIGNAL_ON_STAGE = "onStage"; +const char* const SIGNAL_OFF_STAGE = "offStage"; const char* const ANIMATION_SIGNAL_FINISHED = "finished"; -const char* const SIGNAL_PAN_DETECTED = "pan-detected"; +const char* const SIGNAL_PAN_DETECTED = "panDetected"; -const char* const STAGE_SIGNAL_KEY_EVENT = "key-event"; -const char* const STAGE_SIGNAL_EVENT_PROCESSING_FINISHED = "event-processing-finished"; +const char* const STAGE_SIGNAL_KEY_EVENT = "keyEvent"; +const char* const STAGE_SIGNAL_EVENT_PROCESSING_FINISHED = "eventProcessingFinished"; const char* const STAGE_SIGNAL_TOUCHED = "touched"; -const char* const SIGNAL_IMAGE_LOADING_FINISHED = "image-loading-finished"; +const char* const SIGNAL_IMAGE_LOADING_FINISHED = "imageLoadingFinished"; const char* const SIGNAL_IMAGE_UPLOADED = "uploaded"; -const char* const KEYBOARD_FOCUS_MANAGER_SIGNAL_PRE_FOCUS_CHANGE = "keyboard-pre-focus-change"; -const char* const KEYBOARD_FOCUS_MANAGER_SIGNAL_FOCUS_CHANGED = "keyboard-focus-changed"; -const char* const KEYBOARD_FOCUS_MANAGER_SIGNAL_FOCUS_GROUP_CHANGED = "keyboard-focus-group-changed"; -const char* const KEYBOARD_FOCUS_MANAGER_SIGNAL_FOCUSED_ACTOR_ENTER_KEY = "keyboard-focused-actor-enter-key"; +const char* const KEYBOARD_FOCUS_MANAGER_SIGNAL_PRE_FOCUS_CHANGE = "keyboardPreFocusChange"; +const char* const KEYBOARD_FOCUS_MANAGER_SIGNAL_FOCUS_CHANGED = "keyboardFocusChanged"; +const char* const KEYBOARD_FOCUS_MANAGER_SIGNAL_FOCUS_GROUP_CHANGED = "keyboardFocusGroupChanged"; +const char* const KEYBOARD_FOCUS_MANAGER_SIGNAL_FOCUSED_ACTOR_ENTER_KEY = "keyboardFocusedActorEnterKey"; const unsigned int MAX_SIGNAL_NAME_LENGTH = 64; } // un-named name space diff --git a/plugins/dali-script-v8/src/toolkit/builder/builder-api.cpp b/plugins/dali-script-v8/src/toolkit/builder/builder-api.cpp index 55e6ae7..7af23dc 100644 --- a/plugins/dali-script-v8/src/toolkit/builder/builder-api.cpp +++ b/plugins/dali-script-v8/src/toolkit/builder/builder-api.cpp @@ -257,7 +257,7 @@ void BuilderApi::Create( const v8::FunctionCallbackInfo< v8::Value >& args ) // options = // { - // template: "my-temppalte", + // template: "myTemplate", // constants: { IMAGE_DIR: "/usr/apps" , SHADER_DIR: "/usr/apps/.."} // } // diff --git a/plugins/dali-script-v8/src/utils/v8-utils.cpp b/plugins/dali-script-v8/src/utils/v8-utils.cpp index f843d1d..8d83b55 100644 --- a/plugins/dali-script-v8/src/utils/v8-utils.cpp +++ b/plugins/dali-script-v8/src/utils/v8-utils.cpp @@ -268,42 +268,6 @@ std::string PropertyNameToJavaScriptName(const std::string& hyphenatedName) -std::string JavaScriptNameToPropertyName(const std::string& camelCase) -{ - std::string ret; - - int countUpper = 0; - for(unsigned int i = 0; i < camelCase.size(); ++i) - { - if(std::isupper(camelCase[i])) - { - countUpper++; - } - } - - if(countUpper) - { - ret.reserve(camelCase.size() + countUpper); - - for(unsigned int i = 0; i < camelCase.size(); ++i) - { - char c = camelCase[i]; - if(std::isupper(c)) - { - ret.push_back('-'); - } - - ret.push_back(std::tolower(c)); - } - } - else - { - return camelCase ; - } - - return ret; -} - void ScriptError( const char* function, v8::Isolate* isolate, std::string errorString ) { v8::EscapableHandleScope scope( isolate); diff --git a/plugins/dali-script-v8/src/utils/v8-utils.h b/plugins/dali-script-v8/src/utils/v8-utils.h index 7cd6891..1551868 100644 --- a/plugins/dali-script-v8/src/utils/v8-utils.h +++ b/plugins/dali-script-v8/src/utils/v8-utils.h @@ -133,14 +133,6 @@ std::string GetJavaScriptFunctionName( const char* functionName ); std::string PropertyNameToJavaScriptName(const std::string& hyphenatedName); /** - * Convert camelCase to hyphenated to (Wrapper property name to Dali property) - * E.g. anchorPoint to "anchor-point" - * @param[in] camelCase a std::string camelCase - * @return a hyphenated std::string conversion - */ - std::string JavaScriptNameToPropertyName(const std::string& camelCase); - -/** * Script error, throws an exception */ void ScriptError( const char* function, v8::Isolate* isolate, std::string errorString ); -- 2.7.4