X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftoolkit-style-monitor.h;h=cd5dcfe9aa6e1f0e5121cf1c8b68e8fc740c3d4a;hp=9bdb67cca352607ee1822e98d5fc00ed593631d9;hb=8a647e87a01c5c78451653c1264a9eea81ac9b20;hpb=0297bd30ec1f17d6087f9b876e58ef0c510e9585 diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-style-monitor.h b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-style-monitor.h index 9bdb67c..cd5dcfe 100644 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-style-monitor.h +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-style-monitor.h @@ -1,8 +1,8 @@ -#ifndef __DALI_TOOLKIT_TOOLKIT_STYLE_MONITOR_H__ -#define __DALI_TOOLKIT_TOOLKIT_STYLE_MONITOR_H__ +#ifndef DALI_TOOLKIT_TOOLKIT_STYLE_MONITOR_H +#define DALI_TOOLKIT_TOOLKIT_STYLE_MONITOR_H /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,64 +22,16 @@ #include // INTERNAL INCLUDES -#define __DALI_STYLE_MONITOR_H__ #include #include #include - -namespace Dali -{ - -namespace Internal -{ -namespace Adaptor -{ -class StyleMonitor; -} -} - -class StyleMonitor : public BaseHandle -{ -public: // Typedefs - typedef Signal< void (StyleMonitor, StyleChange::Type) > StyleChangeSignalType; - static const std::string DEFAULT_FONT_FAMILY; - static const std::string DEFAULT_FONT_STYLE; - static const float DEFAULT_FONT_SIZE; - -public: // Creation & Destruction - StyleMonitor(); - StyleMonitor(const StyleMonitor& monitor); - static StyleMonitor Get(); - ~StyleMonitor(); - static StyleMonitor DownCast( BaseHandle handle ); - -public: // Style Information - std::string GetDefaultFontFamily() const; - std::string GetDefaultFontStyle() const; - float GetDefaultFontSize() const; - const std::string& GetTheme() const; - void SetTheme(std::string themeFilePath); - bool LoadThemeFile( const std::string& filename, std::string& output ); - -public: // Signals - StyleChangeSignalType& StyleChangeSignal(); - void EmitStyleChangeSignal(StyleChange::Type handle); - -public: // Operators - StyleMonitor& operator=(const StyleMonitor& monitor); - -public: - StyleMonitor(Internal::Adaptor::StyleMonitor* styleMonitor); -}; - - -} // namespace Dali +#include namespace Test { namespace StyleMonitor { -void SetThemeFileOutput( const std::string& output ); +void SetThemeFileOutput( const std::string& name, const std::string& output ); void SetDefaultFontFamily(const std::string& family); void SetDefaultFontStyle(const std::string& style); void SetDefaultFontSize( float size ); @@ -87,4 +39,4 @@ void SetDefaultFontSize( float size ); } } -#endif // __DALI_TOOLKIT_TOOLKIT_STYLE_MONITOR_H__ +#endif // DALI_TOOLKIT_TOOLKIT_STYLE_MONITOR_H