X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fstyling%2Fstyle-manager-impl.h;h=ab5e24d2ef73fb33eb9cd93323d782f857a81743;hp=648c11d8d1f885391b28c44c5194ea0bed94fd42;hb=785904f5477a648bc0005dcbb39bd3a85077e32d;hpb=306d2f61a1b64179e801fa8a0bb2bd7b4e9dd682 diff --git a/dali-toolkit/internal/styling/style-manager-impl.h b/dali-toolkit/internal/styling/style-manager-impl.h index 648c11d..ab5e24d 100644 --- a/dali-toolkit/internal/styling/style-manager-impl.h +++ b/dali-toolkit/internal/styling/style-manager-impl.h @@ -19,16 +19,16 @@ // EXTERNAL INCLUDES #include -#include -#include -#include +#include +#include +#include #include #include #include // INTERNAL INCLUDES -#include -#include +#include +#include namespace Dali { @@ -38,6 +38,9 @@ namespace Toolkit namespace Internal { + +class FeedbackStyle; + /** * @copydoc Toolkit::StyleManager */ @@ -78,6 +81,11 @@ public: Orientation GetOrientation(); /** + * @copydoc Toolkit::StyleManager::GetDefaultFontFamily + */ + std::string GetDefaultFontFamily() const; + + /** * @copydoc Toolkit::StyleManager::SetStyleConstant */ void SetStyleConstant( const std::string& key, const Property::Value& value ); @@ -111,6 +119,13 @@ public: void ApplyThemeStyle( Toolkit::Control control ); /** + * @brief Apply the theme style to a control at initialization. + * + * @param[in] control The control to apply style. + */ + void ApplyThemeStyleAtInit( Toolkit::Control control ); + + /** * @copydoc Toolkit::StyleManager::ApplyStyle */ void ApplyStyle( Toolkit::Control control, const std::string& jsonFileName, const std::string& styleName ); @@ -140,7 +155,7 @@ public: private: - typedef std::list StringList; + typedef std::vector StringList; /** * @brief Internal helper method to read a file from file system. @@ -222,9 +237,9 @@ private: * Callback for when style monitor raises a signal * * @param[in] styleMonitor The style monitor object - * @param[in] styleChange The style change data + * @param[in] styleChange The style change type */ - void StyleMonitorChange( StyleMonitor styleMonitor, StyleChange styleChange ); + void StyleMonitorChange( StyleMonitor styleMonitor, StyleChange::Type styleChange ); // Undefined StyleManager(const StyleManager&); @@ -237,10 +252,15 @@ private: typedef std::map< std::string, Toolkit::Builder > BuilderMap; Toolkit::Builder mThemeBuilder; ///< Builder for all default theme properties + StyleMonitor mStyleMonitor; ///< Style monitor handle Orientation mOrientation; ///< Handle to application orientation object int mOrientationDegrees; ///< Directly set value of orientation + int mDefaultFontSize; ///< Logical size, not a point-size + + std::string mDefaultFontFamily; + std::string mThemeFile; ///< The full path of the current theme file Property::Map mThemeBuilderConstants; ///< Contants to give the theme builder @@ -248,6 +268,8 @@ private: BuilderMap mBuilderCache; ///< Cache of builders keyed by JSON file name + Toolkit::Internal::FeedbackStyle* mFeedbackStyle; ///< Feedback style + // Signals Toolkit::StyleManager::StyleChangeSignalType mStyleChangeSignal; ///< Emitted when the style( theme/font ) changes };