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=283cf9621f2e2445f361ff7e626edefba1273a88;hp=0eec8917250cb9457ec7977dd8530180fad47abc;hb=0297bd30ec1f17d6087f9b876e58ef0c510e9585;hpb=c04d1be7d4dec47c2274160833021aafe10f720d diff --git a/dali-toolkit/internal/styling/style-manager-impl.h b/dali-toolkit/internal/styling/style-manager-impl.h index 0eec891..283cf96 100644 --- a/dali-toolkit/internal/styling/style-manager-impl.h +++ b/dali-toolkit/internal/styling/style-manager-impl.h @@ -136,16 +136,25 @@ public: /** * @copydoc Toolkit::StyleManager::StyleChangeSignal + * This signal is sent after all the controls have been updated + * due to style change */ - Toolkit::StyleManager::StyleChangeSignalType& StyleChangeSignal(); + Toolkit::StyleManager::StyleChangedSignalType& StyleChangedSignal(); + + /** + * This signal is sent to the controls following a style change. + * It should not be exposed in the public API + */ + Toolkit::StyleManager::StyleChangedSignalType& ControlStyleChangeSignal(); 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(); + void SetTheme( const std::string& themeFile ); /** * @brief Internal helper method to read a file from file system. @@ -231,6 +240,12 @@ private: */ void StyleMonitorChange( StyleMonitor styleMonitor, StyleChange::Type styleChange ); + /** + * Emit signals to controls first, app second + */ + void EmitStyleChangeSignals( StyleChange::Type styleChange ); + + // Undefined StyleManager(const StyleManager&); @@ -248,9 +263,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 @@ -261,7 +274,8 @@ private: Toolkit::Internal::FeedbackStyle* mFeedbackStyle; ///< Feedback style // Signals - Toolkit::StyleManager::StyleChangeSignalType mStyleChangeSignal; ///< Emitted when the style( theme/font ) changes + Toolkit::StyleManager::StyleChangedSignalType mControlStyleChangeSignal; ///< Emitted when the style( theme/font ) changes for the controls to style themselves + Toolkit::StyleManager::StyleChangedSignalType mStyleChangedSignal; ///< Emitted after the controls have been styled }; } // namespace Internal