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=a171740836ecf37ac0f813e9b3233b4a055d117f;hb=0297bd30ec1f17d6087f9b876e58ef0c510e9585;hpb=a6568aa338639aaf72157941cac1a79c05b67c59 diff --git a/dali-toolkit/devel-api/styling/style-manager.h b/dali-toolkit/devel-api/styling/style-manager.h index a171740..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 ) > StyleChangeSignalType; + typedef Signal< void ( StyleManager, StyleChange::Type ) > StyleChangedSignalType; /** * @brief Create a StyleManager handle; this can be initialised with StyleManager::Get() @@ -115,6 +104,12 @@ public: Orientation GetOrientation(); /** + * @brief Retrieves the default font family. + * @return The default font family. + */ + std::string GetDefaultFontFamily() const; + + /** * @brief Make a request to set the theme JSON file to one that exists in the Toolkit package. * * Multiple requests per event processing cycle can be made, but only the final one will be acted @@ -132,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 @@ -165,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: