Commit e47e49fb750cc0e29a5e8a60b29e7bcaa4127173
1 parent
4648d115
Added a tooltip example
Change-Id: I5909a67d2bff74f23c758862198df4da1e6c4627
Showing
21 changed files
with
392 additions
and
4 deletions
build/tizen/CMakeLists.txt
| ... | ... | @@ -105,6 +105,7 @@ CONFIGURE_FILE( ${LOCAL_STYLE_DIR}/contact-cards-example-theme.json.in ${LOCAL_S |
| 105 | 105 | CONFIGURE_FILE( ${LOCAL_STYLE_DIR}/style-example-theme-one.json.in ${LOCAL_STYLE_DIR}/style-example-theme-one.json ) |
| 106 | 106 | CONFIGURE_FILE( ${LOCAL_STYLE_DIR}/style-example-theme-two.json.in ${LOCAL_STYLE_DIR}/style-example-theme-two.json ) |
| 107 | 107 | CONFIGURE_FILE( ${LOCAL_STYLE_DIR}/style-example-theme-three.json.in ${LOCAL_STYLE_DIR}/style-example-theme-three.json ) |
| 108 | +CONFIGURE_FILE( ${LOCAL_STYLE_DIR}/tooltip-example-theme.json.in ${LOCAL_STYLE_DIR}/tooltip-example-theme.json ) | |
| 108 | 109 | MESSAGE("Configured ${LOCAL_STYLE_DIR}/style-example-theme<>.json files") |
| 109 | 110 | |
| 110 | 111 | FILE(GLOB LOCAL_STYLES_LIST "${LOCAL_STYLE_DIR}/*.json") | ... | ... |
com.samsung.dali-demo.xml
| ... | ... | @@ -181,4 +181,7 @@ |
| 181 | 181 | <ui-application appid="animated-images.example" exec="/usr/apps/com.samsung.dali-demo/bin/animated-images.example" nodisplay="true" multiple="false" type="c++app" taskmanage="true"> |
| 182 | 182 | <label>Animated images</label> |
| 183 | 183 | </ui-application> |
| 184 | + <ui-application appid="tooltip.example" exec="/usr/apps/com.samsung.dali-demo/bin/tooltip.example" nodisplay="true" multiple="false" type="c++app" taskmanage="true"> | |
| 185 | + <label>Tooltip</label> | |
| 186 | + </ui-application> | |
| 184 | 187 | </manifest> | ... | ... |
demo/dali-demo.cpp
| ... | ... | @@ -88,6 +88,7 @@ int DALI_EXPORT_API main(int argc, char **argv) |
| 88 | 88 | demo.AddExample(Example("contact-cards.example", DALI_DEMO_STR_TITLE_CONTACT_CARDS)); |
| 89 | 89 | demo.AddExample(Example("flex-container.example", DALI_DEMO_STR_TITLE_FLEXBOX_PLAYGROUND)); |
| 90 | 90 | demo.AddExample(Example("fpp-game.example", DALI_DEMO_STR_TITLE_FPP_GAME)); |
| 91 | + demo.AddExample(Example("tooltip.example", DALI_DEMO_STR_TITLE_TOOLTIP)); | |
| 91 | 92 | |
| 92 | 93 | demo.SortAlphabetically( true ); |
| 93 | 94 | ... | ... |
examples/tooltip/tooltip-example.cpp
0 → 100644
| 1 | +/* | |
| 2 | + * Copyright (c) 2016 Samsung Electronics Co., Ltd. | |
| 3 | + * | |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | + * you may not use this file except in compliance with the License. | |
| 6 | + * You may obtain a copy of the License at | |
| 7 | + * | |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | + * | |
| 10 | + * Unless required by applicable law or agreed to in writing, software | |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | + * See the License for the specific language governing permissions and | |
| 14 | + * limitations under the License. | |
| 15 | + * | |
| 16 | + */ | |
| 17 | + | |
| 18 | +#include <dali-toolkit/dali-toolkit.h> | |
| 19 | +#include <dali-toolkit/devel-api/controls/control-devel.h> | |
| 20 | +#include <dali-toolkit/devel-api/controls/tooltip/tooltip-properties.h> | |
| 21 | +#include <dali-toolkit/devel-api/visuals/text-visual-properties.h> | |
| 22 | +#include <dali-toolkit/devel-api/visuals/visual-properties-devel.h> | |
| 23 | + | |
| 24 | +using namespace Dali; | |
| 25 | +using namespace Dali::Toolkit; | |
| 26 | + | |
| 27 | +namespace | |
| 28 | +{ | |
| 29 | +const Vector4 STAGE_COLOR( 211.0f / 255.0f, 211.0f / 255.0f, 211.0f / 255.0f, 1.0f ); ///< The color of the stage | |
| 30 | +const char * const THEME_PATH( DEMO_STYLE_DIR "tooltip-example-theme.json" ); ///< The theme used for this example | |
| 31 | +const float POSITION_INCREMENTER( 0.2f ); ///< The position difference between the controls along the Y-Axis. | |
| 32 | +} // unnamed namespace | |
| 33 | + | |
| 34 | +/** | |
| 35 | + * @brief Creates a controller which demonstrates the tooltip functionality in control. | |
| 36 | + * | |
| 37 | + * The Control base class supports tooltip functionality. However, the Toolkit Tooltip style is only set on Buttons by default. | |
| 38 | + * This example portrays the different ways in which a tooltip can be displayed and customised. | |
| 39 | + */ | |
| 40 | +class TooltipController : public ConnectionTracker | |
| 41 | +{ | |
| 42 | +public: | |
| 43 | + | |
| 44 | + TooltipController( Application& application ) | |
| 45 | + : mApplication( application ), | |
| 46 | + previousPosition( 0.0f ) | |
| 47 | + { | |
| 48 | + // Connect to the Application's Init signal | |
| 49 | + mApplication.InitSignal().Connect( this, &TooltipController::Create ); | |
| 50 | + } | |
| 51 | + | |
| 52 | +private: | |
| 53 | + | |
| 54 | + // The Init signal is received once (only) during the Application lifetime | |
| 55 | + void Create( Application& application ) | |
| 56 | + { | |
| 57 | + // Hide the indicator bar | |
| 58 | + application.GetWindow().ShowIndicator( Dali::Window::INVISIBLE ); | |
| 59 | + | |
| 60 | + // Set the stage background color and connect to the stage's key signal to allow Back and Escape to exit. | |
| 61 | + Stage stage = Stage::GetCurrent(); | |
| 62 | + stage.SetBackgroundColor( STAGE_COLOR ); | |
| 63 | + stage.KeyEventSignal().Connect( this, &TooltipController::OnKeyEvent ); | |
| 64 | + const Vector2 stageSize = stage.GetSize(); | |
| 65 | + | |
| 66 | + // Add a text label at the top for information purposes | |
| 67 | + Control label = TextLabel::New( "Hover over buttons to see tooltip" ); | |
| 68 | + label.SetParentOrigin( ParentOrigin::TOP_CENTER ); | |
| 69 | + label.SetAnchorPoint( AnchorPoint::TOP_CENTER ); | |
| 70 | + label.SetProperty( TextLabel::Property::HORIZONTAL_ALIGNMENT, "Center" ); | |
| 71 | + stage.Add( label ); | |
| 72 | + | |
| 73 | + // Simple tooltip from stylesheet | |
| 74 | + Control simple = PushButton::New(); | |
| 75 | + simple.SetStyleName( "TooltipTextOnly" ); | |
| 76 | + SetLabel( simple, "Simple" ); | |
| 77 | + Layout( simple, stageSize ); | |
| 78 | + stage.Add( simple ); | |
| 79 | + | |
| 80 | + // Tooltip with icon and text, from stylesheet | |
| 81 | + Control iconWithText = PushButton::New(); | |
| 82 | + iconWithText.SetStyleName( "TooltipArray" ); | |
| 83 | + SetLabel( iconWithText, "Icon with Text" ); | |
| 84 | + Layout( iconWithText, stageSize ); | |
| 85 | + stage.Add( iconWithText ); | |
| 86 | + | |
| 87 | + // Tooltip with custom style, from stylesheet | |
| 88 | + Control customFromStylesheet = PushButton::New(); | |
| 89 | + customFromStylesheet.SetStyleName( "TooltipCustom" ); | |
| 90 | + SetLabel( customFromStylesheet, "Custom From Stylesheet" ); | |
| 91 | + Layout( customFromStylesheet, stageSize ); | |
| 92 | + stage.Add( customFromStylesheet ); | |
| 93 | + | |
| 94 | + // Tooltip with custom style, from code | |
| 95 | + Control customFromCode = PushButton::New(); | |
| 96 | + SetLabel( customFromCode, "Custom From Code" ); | |
| 97 | + Layout( customFromCode, stageSize ); | |
| 98 | + customFromCode.SetProperty( DevelControl::Property::TOOLTIP, | |
| 99 | + Property::Map().Add( Tooltip::Property::CONTENT, | |
| 100 | + Property::Array().Add( Property::Map().Add( Visual::Property::TYPE, Visual::IMAGE ) | |
| 101 | + .Add( ImageVisual::Property::URL, DEMO_IMAGE_DIR "Logo-for-demo.png" ) ) | |
| 102 | + .Add( Property::Map().Add( Visual::Property::TYPE, DevelVisual::TEXT ) | |
| 103 | + .Add( TextVisual::Property::TEXT_COLOR, Color::WHITE ) | |
| 104 | + .Add( TextVisual::Property::TEXT, "Custom coded style\nat hover point" ) | |
| 105 | + .Add( TextVisual::Property::MULTI_LINE, true ) | |
| 106 | + .Add( TextVisual::Property::HORIZONTAL_ALIGNMENT, "CENTER" ) | |
| 107 | + .Add( TextVisual::Property::POINT_SIZE, 16 ) ) ) | |
| 108 | + .Add( Tooltip::Property::LAYOUT, Vector2( 2, 1 ) ) | |
| 109 | + .Add( Tooltip::Property::POSITION, Tooltip::Position::HOVER_POINT ) | |
| 110 | + .Add( Tooltip::Property::BACKGROUND, | |
| 111 | + Property::Map().Add( Tooltip::Background::Property::VISUAL, DEMO_IMAGE_DIR "tooltip.9.png" ) | |
| 112 | + .Add( Tooltip::Background::Property::BORDER, Rect< int >( 1, 5, 5, 1 ) ) ) | |
| 113 | + ); | |
| 114 | + stage.Add( customFromCode ); | |
| 115 | + } | |
| 116 | + | |
| 117 | + /** | |
| 118 | + * @brief Called when any key event is received | |
| 119 | + * | |
| 120 | + * Will use this to quit the application if Back or the Escape key is received | |
| 121 | + * @param[in] event The key event information | |
| 122 | + */ | |
| 123 | + void OnKeyEvent( const KeyEvent& event ) | |
| 124 | + { | |
| 125 | + if( event.state == KeyEvent::Down ) | |
| 126 | + { | |
| 127 | + if ( IsKey( event, Dali::DALI_KEY_ESCAPE ) || IsKey( event, Dali::DALI_KEY_BACK ) ) | |
| 128 | + { | |
| 129 | + mApplication.Quit(); | |
| 130 | + } | |
| 131 | + } | |
| 132 | + } | |
| 133 | + | |
| 134 | + /** | |
| 135 | + * @brief Sets the label on the control. | |
| 136 | + * @param[in] label The label to set. | |
| 137 | + */ | |
| 138 | + void SetLabel( Control control, std::string label ) | |
| 139 | + { | |
| 140 | + if( control ) | |
| 141 | + { | |
| 142 | + control.SetProperty( Button::Property::LABEL, | |
| 143 | + Property::Map().Add( Visual::Property::TYPE, DevelVisual::TEXT ) | |
| 144 | + .Add( TextVisual::Property::TEXT, label ) ); | |
| 145 | + } | |
| 146 | + } | |
| 147 | + | |
| 148 | + /** | |
| 149 | + * @brief Lays out the control in the appropriate location. | |
| 150 | + * @param[in] control The control to layout. | |
| 151 | + * @param[in] stageSize The size of the stage, passing it in so we don't have to retrieve it every time. | |
| 152 | + */ | |
| 153 | + void Layout( Control control, const Vector2& stageSize ) | |
| 154 | + { | |
| 155 | + if( control ) | |
| 156 | + { | |
| 157 | + previousPosition += POSITION_INCREMENTER; | |
| 158 | + control.SetResizePolicy( ResizePolicy::SIZE_RELATIVE_TO_PARENT, Dimension::ALL_DIMENSIONS ); | |
| 159 | + control.SetSizeModeFactor( Vector3( 0.75, 0.1, 1.0 ) ); | |
| 160 | + control.SetAnchorPoint( AnchorPoint::CENTER ); | |
| 161 | + control.SetParentOrigin( ParentOrigin::TOP_CENTER ); | |
| 162 | + control.SetY( stageSize.height * previousPosition ); | |
| 163 | + } | |
| 164 | + } | |
| 165 | + | |
| 166 | +private: | |
| 167 | + Application& mApplication; | |
| 168 | + float previousPosition; | |
| 169 | +}; | |
| 170 | + | |
| 171 | +int DALI_EXPORT_API main( int argc, char **argv ) | |
| 172 | +{ | |
| 173 | + Application application = Application::New( &argc, &argv, THEME_PATH ); | |
| 174 | + | |
| 175 | + TooltipController test( application ); | |
| 176 | + | |
| 177 | + application.MainLoop(); | |
| 178 | + | |
| 179 | + return 0; | |
| 180 | +} | ... | ... |
resources/images/tooltip-tail-above.png
0 → 100644
3.11 KB
resources/images/tooltip-tail-below.png
0 → 100644
3.17 KB
resources/images/tooltip.9.png
0 → 100644
2.95 KB
resources/po/as.po
| ... | ... | @@ -151,5 +151,8 @@ msgstr "অকনিষ্ঠ অৰ্জুন বঁটা" |
| 151 | 151 | msgid "DALI_DEMO_STR_TITLE_TILT_SENSOR" |
| 152 | 152 | msgstr "টিল্ট অনুভূতি" |
| 153 | 153 | |
| 154 | +msgid "DALI_DEMO_STR_TITLE_TOOLTIP" | |
| 155 | +msgstr "Tooltip" | |
| 156 | + | |
| 154 | 157 | msgid "DALI_DEMO_STR_TITLE_FPP_GAME" |
| 155 | 158 | msgstr "FPP খেলা" | ... | ... |
resources/po/de.po
resources/po/en_GB.po
| ... | ... | @@ -151,6 +151,9 @@ msgstr "Text Scrolling" |
| 151 | 151 | msgid "DALI_DEMO_STR_TITLE_TILT_SENSOR" |
| 152 | 152 | msgstr "Tilt Sensor" |
| 153 | 153 | |
| 154 | +msgid "DALI_DEMO_STR_TITLE_TOOLTIP" | |
| 155 | +msgstr "Tooltip" | |
| 156 | + | |
| 154 | 157 | msgid "DALI_DEMO_STR_TITLE_FPP_GAME" |
| 155 | 158 | msgstr "FPP Game" |
| 156 | 159 | ... | ... |
resources/po/en_US.po
| ... | ... | @@ -151,6 +151,9 @@ msgstr "Text Scrolling" |
| 151 | 151 | msgid "DALI_DEMO_STR_TITLE_TILT_SENSOR" |
| 152 | 152 | msgstr "Tilt Sensor" |
| 153 | 153 | |
| 154 | +msgid "DALI_DEMO_STR_TITLE_TOOLTIP" | |
| 155 | +msgstr "Tooltip" | |
| 156 | + | |
| 154 | 157 | msgid "DALI_DEMO_STR_TITLE_FPP_GAME" |
| 155 | 158 | msgstr "FPP Game" |
| 156 | 159 | ... | ... |
resources/po/es.po
| ... | ... | @@ -151,5 +151,8 @@ msgstr "Texto con desplazamiento" |
| 151 | 151 | msgid "DALI_DEMO_STR_TITLE_TILT_SENSOR" |
| 152 | 152 | msgstr "Sensor de inclinacion" |
| 153 | 153 | |
| 154 | +msgid "DALI_DEMO_STR_TITLE_TOOLTIP" | |
| 155 | +msgstr "Tooltip" | |
| 156 | + | |
| 154 | 157 | msgid "DALI_DEMO_STR_TITLE_FPP_GAME" |
| 155 | 158 | msgstr "Juego FPP" | ... | ... |
resources/po/fi.po
| ... | ... | @@ -151,5 +151,8 @@ msgstr "Tekstin Vieritys" |
| 151 | 151 | msgid "DALI_DEMO_STR_TITLE_TILT_SENSOR" |
| 152 | 152 | msgstr "Kallistustunnistin" |
| 153 | 153 | |
| 154 | +msgid "DALI_DEMO_STR_TITLE_TOOLTIP" | |
| 155 | +msgstr "Tooltip" | |
| 156 | + | |
| 154 | 157 | msgid "DALI_DEMO_STR_TITLE_FPP_GAME" |
| 155 | 158 | msgstr "FPP peli" | ... | ... |
resources/po/ko.po
resources/po/ml.po
| ... | ... | @@ -151,5 +151,8 @@ msgstr "ടെക്സ്റ്റ് സ്ക്രോളിംഗ്" |
| 151 | 151 | msgid "DALI_DEMO_STR_TITLE_TILT_SENSOR" |
| 152 | 152 | msgstr "ചെരിവ് സെൻസർ" |
| 153 | 153 | |
| 154 | +msgid "DALI_DEMO_STR_TITLE_TOOLTIP" | |
| 155 | +msgstr "കൂടുതൽ വിവരങ്ങൾ" | |
| 156 | + | |
| 154 | 157 | msgid "DALI_DEMO_STR_TITLE_FPP_GAME" |
| 155 | 158 | msgstr "FPP Game" | ... | ... |
resources/po/ur.po
resources/po/zn_CH.po
resources/style/.gitignore
resources/style/mobile/tooltip-example-theme.json.in
0 → 100644
| 1 | +/* | |
| 2 | + * Copyright (c) 2016 Samsung Electronics Co., Ltd. | |
| 3 | + * | |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | + * you may not use this file except in compliance with the License. | |
| 6 | + * You may obtain a copy of the License at | |
| 7 | + * | |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | + * | |
| 10 | + * Unless required by applicable law or agreed to in writing, software | |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | + * See the License for the specific language governing permissions and | |
| 14 | + * limitations under the License. | |
| 15 | + * | |
| 16 | + */ | |
| 17 | + | |
| 18 | +{ | |
| 19 | + "styles": | |
| 20 | + { | |
| 21 | + "TooltipTextOnly" : | |
| 22 | + { | |
| 23 | + "tooltip": "Using defaults defined in the Toolkit stylesheet" | |
| 24 | + }, | |
| 25 | + | |
| 26 | + "TooltipArray" : | |
| 27 | + { | |
| 28 | + "tooltip" : | |
| 29 | + { | |
| 30 | + "content" : | |
| 31 | + [ | |
| 32 | + { | |
| 33 | + "visualType" : "IMAGE", | |
| 34 | + "url" : "{APPLICATION_RESOURCE_PATH}/images/application-icon-0.png", | |
| 35 | + "desiredWidth" : 75, | |
| 36 | + "desiredHeight" : 75 | |
| 37 | + }, | |
| 38 | + { | |
| 39 | + "visualType" : "TEXT", | |
| 40 | + "text" : "An icon on the left and\nmulti-line text on the right", | |
| 41 | + "multiLine" : true, | |
| 42 | + "pointSize" : 16 | |
| 43 | + } | |
| 44 | + ], | |
| 45 | + "tail" : true | |
| 46 | + } | |
| 47 | + }, | |
| 48 | + | |
| 49 | + "TooltipCustom" : | |
| 50 | + { | |
| 51 | + "tooltip": | |
| 52 | + { | |
| 53 | + "content": | |
| 54 | + { | |
| 55 | + "visualType" : "TEXT", | |
| 56 | + "textColor" : [1,1,1,1], | |
| 57 | + "text" : "Completely custom style\nthat disappears on movement", | |
| 58 | + "multiLine" : true, | |
| 59 | + "pointSize" : 16 | |
| 60 | + }, | |
| 61 | + "waitTime":0.5, | |
| 62 | + "background": | |
| 63 | + { | |
| 64 | + "visual":"{APPLICATION_RESOURCE_PATH}/images/tooltip.9.png", | |
| 65 | + "border":[1,5,5,1] | |
| 66 | + }, | |
| 67 | + "tail": | |
| 68 | + { | |
| 69 | + "visibility":true, | |
| 70 | + "aboveVisual":"{APPLICATION_RESOURCE_PATH}/images/tooltip-tail-above.png", | |
| 71 | + "belowVisual":"{APPLICATION_RESOURCE_PATH}/images/tooltip-tail-below.png" | |
| 72 | + }, | |
| 73 | + "position":"ABOVE", | |
| 74 | + "hoverPointOffset":[10,10], | |
| 75 | + "movementThreshold":5, | |
| 76 | + "disappearOnMovement":true | |
| 77 | + } | |
| 78 | + }, | |
| 79 | + | |
| 80 | + "TableView" : | |
| 81 | + { | |
| 82 | + "cellPadding" : [ 5.0, 5.0 ] | |
| 83 | + } | |
| 84 | + } | |
| 85 | +} | ... | ... |
resources/style/tooltip-example-theme.json.in
0 → 100644
| 1 | +/* | |
| 2 | + * Copyright (c) 2016 Samsung Electronics Co., Ltd. | |
| 3 | + * | |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | + * you may not use this file except in compliance with the License. | |
| 6 | + * You may obtain a copy of the License at | |
| 7 | + * | |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 | + * | |
| 10 | + * Unless required by applicable law or agreed to in writing, software | |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | + * See the License for the specific language governing permissions and | |
| 14 | + * limitations under the License. | |
| 15 | + * | |
| 16 | + */ | |
| 17 | + | |
| 18 | +{ | |
| 19 | + "styles": | |
| 20 | + { | |
| 21 | + "TooltipTextOnly" : | |
| 22 | + { | |
| 23 | + "tooltip": "Using defaults defined in the Toolkit stylesheet" | |
| 24 | + }, | |
| 25 | + | |
| 26 | + "TooltipArray" : | |
| 27 | + { | |
| 28 | + "tooltip" : | |
| 29 | + { | |
| 30 | + "content" : | |
| 31 | + [ | |
| 32 | + { | |
| 33 | + "visualType" : "IMAGE", | |
| 34 | + "url" : "{APPLICATION_RESOURCE_PATH}/images/application-icon-0.png", | |
| 35 | + "desiredWidth" : 75, | |
| 36 | + "desiredHeight" : 75 | |
| 37 | + }, | |
| 38 | + { | |
| 39 | + "visualType" : "TEXT", | |
| 40 | + "text" : "An icon on the left and\nmulti-line text on the right", | |
| 41 | + "multiLine" : true, | |
| 42 | + "pointSize" : 16 | |
| 43 | + } | |
| 44 | + ], | |
| 45 | + "tail" : true | |
| 46 | + } | |
| 47 | + }, | |
| 48 | + | |
| 49 | + "TooltipCustom" : | |
| 50 | + { | |
| 51 | + "tooltip": | |
| 52 | + { | |
| 53 | + "content": | |
| 54 | + { | |
| 55 | + "visualType" : "TEXT", | |
| 56 | + "textColor" : [1,1,1,1], | |
| 57 | + "text" : "Completely custom style\nthat disappears on movement", | |
| 58 | + "multiLine" : true, | |
| 59 | + "pointSize" : 16 | |
| 60 | + }, | |
| 61 | + "waitTime":0.5, | |
| 62 | + "background": | |
| 63 | + { | |
| 64 | + "visual":"{APPLICATION_RESOURCE_PATH}/images/tooltip.9.png", | |
| 65 | + "border":[1,5,5,1] | |
| 66 | + }, | |
| 67 | + "tail": | |
| 68 | + { | |
| 69 | + "visibility":true, | |
| 70 | + "aboveVisual":"{APPLICATION_RESOURCE_PATH}/images/tooltip-tail-above.png", | |
| 71 | + "belowVisual":"{APPLICATION_RESOURCE_PATH}/images/tooltip-tail-below.png" | |
| 72 | + }, | |
| 73 | + "position":"ABOVE", | |
| 74 | + "hoverPointOffset":[10,10], | |
| 75 | + "movementThreshold":5, | |
| 76 | + "disappearOnMovement":true | |
| 77 | + } | |
| 78 | + }, | |
| 79 | + | |
| 80 | + "TableView" : | |
| 81 | + { | |
| 82 | + "cellPadding" : [ 5.0, 5.0 ] | |
| 83 | + } | |
| 84 | + } | |
| 85 | +} | ... | ... |
shared/dali-demo-strings.h
| ... | ... | @@ -43,6 +43,7 @@ extern "C" |
| 43 | 43 | #define DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION") |
| 44 | 44 | #define DALI_DEMO_STR_TITLE_EFFECTS_VIEW dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_EFFECTS_VIEW") |
| 45 | 45 | #define DALI_DEMO_STR_TITLE_EMOJI_TEXT dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_EMOJI_TEXT") |
| 46 | +#define DALI_DEMO_STR_TITLE_FPP_GAME dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_FPP_GAME") | |
| 46 | 47 | #define DALI_DEMO_STR_TITLE_FLEXBOX_PLAYGROUND dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_FLEXBOX_PLAYGROUND") |
| 47 | 48 | #define DALI_DEMO_STR_TITLE_IMAGE_FITTING_SAMPLING dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_IMAGE_FITTING_SAMPLING") |
| 48 | 49 | #define DALI_DEMO_STR_TITLE_IMAGE_SCALING dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_IMAGE_SCALING") |
| ... | ... | @@ -66,8 +67,8 @@ extern "C" |
| 66 | 67 | #define DALI_DEMO_STR_TITLE_NEGOTIATE_SIZE dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_NEGOTIATE_SIZE") |
| 67 | 68 | #define DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW") |
| 68 | 69 | #define DALI_DEMO_STR_TITLE_POPUP dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_POPUP") |
| 69 | -#define DALI_DEMO_STR_TITLE_PROGRESS_BAR dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_PROGRESS_BAR") | |
| 70 | 70 | #define DALI_DEMO_STR_TITLE_PRIMITIVE_SHAPES dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_PRIMITIVE_SHAPES") |
| 71 | +#define DALI_DEMO_STR_TITLE_PROGRESS_BAR dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_PROGRESS_BAR") | |
| 71 | 72 | #define DALI_DEMO_STR_TITLE_REFRACTION dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_REFRACTION") |
| 72 | 73 | #define DALI_DEMO_STR_TITLE_RENDERER_STENCIL dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_RENDERER_STENCIL") |
| 73 | 74 | #define DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI") |
| ... | ... | @@ -82,7 +83,7 @@ extern "C" |
| 82 | 83 | #define DALI_DEMO_STR_TITLE_TEXT_LABEL_MULTI_LANGUAGE dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_TEXT_LABEL_MULTI_LANGUAGE") |
| 83 | 84 | #define DALI_DEMO_STR_TITLE_TEXT_SCROLLING dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_TEXT_SCROLLING") |
| 84 | 85 | #define DALI_DEMO_STR_TITLE_TILT_SENSOR dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_TILT_SENSOR") |
| 85 | -#define DALI_DEMO_STR_TITLE_FPP_GAME dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_FPP_GAME") | |
| 86 | +#define DALI_DEMO_STR_TITLE_TOOLTIP dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_TOOLTIP") | |
| 86 | 87 | #define DALI_DEMO_STR_TITLE_VISUAL_TRANSITIONS dgettext(DALI_DEMO_DOMAIN_LOCAL, "DALI_DEMO_STR_TITLE_VISUAL_TRANSITIONS") |
| 87 | 88 | |
| 88 | 89 | #else // !INTERNATIONALIZATION_ENABLED |
| ... | ... | @@ -98,6 +99,7 @@ extern "C" |
| 98 | 99 | #define DALI_DEMO_STR_TITLE_DISSOLVE_TRANSITION "Dissolve Effect" |
| 99 | 100 | #define DALI_DEMO_STR_TITLE_EFFECTS_VIEW "Effects View" |
| 100 | 101 | #define DALI_DEMO_STR_TITLE_EMOJI_TEXT "Emoji Text" |
| 102 | +#define DALI_DEMO_STR_TITLE_FPP_GAME "First Person Game" | |
| 101 | 103 | #define DALI_DEMO_STR_TITLE_FLEXBOX_PLAYGROUND "Flexbox Playground" |
| 102 | 104 | #define DALI_DEMO_STR_TITLE_IMAGE_FITTING_SAMPLING "Image Fitting and Sampling" |
| 103 | 105 | #define DALI_DEMO_STR_TITLE_IMAGE_SCALING "Image Scaling Grid" |
| ... | ... | @@ -122,6 +124,7 @@ extern "C" |
| 122 | 124 | #define DALI_DEMO_STR_TITLE_PAGE_TURN_VIEW "Page Turn View" |
| 123 | 125 | #define DALI_DEMO_STR_TITLE_POPUP "Popup" |
| 124 | 126 | #define DALI_DEMO_STR_TITLE_PRIMITIVE_SHAPES "Primitive Shapes" |
| 127 | +#define DALI_DEMO_STR_TITLE_PROGRESS_BAR "Progress Bar" | |
| 125 | 128 | #define DALI_DEMO_STR_TITLE_REFRACTION "Refract Effect" |
| 126 | 129 | #define DALI_DEMO_STR_TITLE_RENDERER_STENCIL "Renderer Stencils" |
| 127 | 130 | #define DALI_DEMO_STR_TITLE_SCRIPT_BASED_UI "Script Based UI" |
| ... | ... | @@ -136,8 +139,7 @@ extern "C" |
| 136 | 139 | #define DALI_DEMO_STR_TITLE_TEXT_LABEL_MULTI_LANGUAGE "Text Scripts" |
| 137 | 140 | #define DALI_DEMO_STR_TITLE_TEXT_SCROLLING "Text Scrolling" |
| 138 | 141 | #define DALI_DEMO_STR_TITLE_TILT_SENSOR "Tilt Sensor" |
| 139 | -#define DALI_DEMO_STR_TITLE_PROGRESS_BAR "Progress Bar" | |
| 140 | -#define DALI_DEMO_STR_TITLE_FPP_GAME "First Person Game" | |
| 142 | +#define DALI_DEMO_STR_TITLE_TOOLTIP "Tooltip" | |
| 141 | 143 | #define DALI_DEMO_STR_TITLE_VISUAL_TRANSITIONS "Visual Transitions" |
| 142 | 144 | #endif |
| 143 | 145 | ... | ... |