/**
* @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<std::string> 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.
*/
void StyleMonitorChange( StyleMonitor styleMonitor, StyleChange::Type styleChange );
+ /**
+ * Emit signals to controls first, app second
+ */
+ void EmitStyleChangeSignals( StyleChange::Type styleChange );
+
+
// Undefined
StyleManager(const StyleManager&);
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
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