X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fstyling%2Fstyle-manager.h;h=2d790a44bd85725dad25e80b04f9cd55b9e9215c;hp=a1596e1d5491d510d76f108c8ca7335f2f5b297d;hb=0297bd30ec1f17d6087f9b876e58ef0c510e9585;hpb=9fd0114ee708e9c197cc539b09acc6b8eaaf1c61 diff --git a/dali-toolkit/devel-api/styling/style-manager.h b/dali-toolkit/devel-api/styling/style-manager.h index a1596e1..2d790a4 100644 --- a/dali-toolkit/devel-api/styling/style-manager.h +++ b/dali-toolkit/devel-api/styling/style-manager.h @@ -43,28 +43,17 @@ class StyleManager; * * The default theme is automatically loaded and applied. * - * If the application wants to customize the theme, RequestThemeChange needs to be called. - * Also, the default orientation is Portrait, if the application wants to adapt to the orientation change, call SetOrientation or SetOrienationValue. - * @code - * const char* CUSTOM_THEME = DALI_SCRIPT_DIR "tizen-dark-theme.json"; - * - * void OnInit(Application& app) - * { - * Toolkit::StyleManager::Get().RequestThemeChange( CUSTOM_THEME ); - * Toolkit::StyleManager::Get().SetOrientation( ... ); - * ... - * } - * @endcode - * - * Internal::Control can be configured to register for the signals that are required from StyleManager, - * such as theme change. + * If the application wants to customize the theme, RequestThemeChange + * needs to be called. Internal::Control can be configured to + * register for the signals that are required from StyleManager, such + * as theme change. */ class DALI_IMPORT_API StyleManager : public BaseHandle { public: // Signals - typedef Signal< void ( StyleManager, StyleChange::Type ) > StyleChangeSignalType; + typedef Signal< void ( StyleManager, StyleChange::Type ) > StyleChangedSignalType; /** * @brief Create a StyleManager handle; this can be initialised with StyleManager::Get() @@ -138,7 +127,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 @@ -171,14 +160,16 @@ public: public: // Signals /** - * @brief This signal is emitted whenever the style (e.g. theme/font change) is changed on device + * @brief This signal is emitted after the style (e.g. theme/font change) has changed + * and the controls have been informed. + * * A callback of the following type may be connected: * @code * void YourCallbackName( StyleManager styleManager, StyleChange change ); * @endcode * @return The signal to connect to. */ - StyleChangeSignalType& StyleChangeSignal(); + StyleChangedSignalType& StyleChangedSignal(); public: