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=294e601502689753a67eac468517387903872032;hp=c612f7d32800cb2f718a3e46c21c63886b166c34;hb=4ff601968ee16e6d401977900d2aed328bdc6707;hpb=7a24e2759c8627d8b77e1472d207739ab5677ebe diff --git a/dali-toolkit/internal/styling/style-manager-impl.h b/dali-toolkit/internal/styling/style-manager-impl.h index c612f7d..294e601 100644 --- a/dali-toolkit/internal/styling/style-manager-impl.h +++ b/dali-toolkit/internal/styling/style-manager-impl.h @@ -38,13 +38,15 @@ namespace Toolkit namespace Internal { + +class FeedbackStyle; + /** * @copydoc Toolkit::StyleManager */ class StyleManager : public Dali::BaseObject, public ConnectionTracker { public: - /** * Singleton access * @@ -57,6 +59,14 @@ public: */ StyleManager(); +protected: + /** + * @brief Destructor + */ + virtual ~StyleManager(); + +public: // Public API + /** * @copydoc Toolkit::StyleManager::SetOrientationValue */ @@ -78,6 +88,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 ); @@ -98,17 +113,18 @@ public: void RequestDefaultTheme(); /** - * Determine if a theme change has been requested - * @return Whether a theme request is pending + * @brief Apply the theme style to a control. + * + * @param[in] control The control to apply style. */ - bool IsThemeRequestPending(); + void ApplyThemeStyle( Toolkit::Control control ); /** - * @brief Apply the theme style to a control. + * @brief Apply the theme style to a control at initialization. * * @param[in] control The control to apply style. */ - void ApplyThemeStyle( Toolkit::Control control ); + void ApplyThemeStyleAtInit( Toolkit::Control control ); /** * @copydoc Toolkit::StyleManager::ApplyStyle @@ -123,24 +139,14 @@ public: */ Toolkit::StyleManager::StyleChangeSignalType& StyleChangeSignal(); -protected: - - /** - * @brief Destructor - */ - virtual ~StyleManager(); - - -public: +private: + typedef std::vector StringList; /** * @brief Set the current theme. Called only once per event processing cycle. + * @param[in] themeFile The name of the theme file to read. */ - void SetTheme(); - -private: - - typedef std::vector StringList; + void SetTheme( const std::string& themeFile ); /** * @brief Internal helper method to read a file from file system. @@ -243,7 +249,7 @@ private: 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 @@ -251,6 +257,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 }; @@ -280,4 +288,3 @@ inline const Internal::StyleManager& GetImpl( const Dali::Toolkit::StyleManager& } // namespace Dali #endif // __DALI_TOOLKIT_INTERNAL_STYLE_MANAGER_H__ -