//////////////////////////////////////////////////////////////////////////////////////////////////// // NoesisGUI - http://www.noesisengine.com // Copyright (c) 2013 Noesis Technologies S.L. All Rights Reserved. //////////////////////////////////////////////////////////////////////////////////////////////////// #ifndef __GUI_BASEDICTIONARY_H__ #define __GUI_BASEDICTIONARY_H__ #include #include #include #include #include #include namespace Noesis { NS_WARNING_PUSH NS_MSVC_WARNING_DISABLE(4251 4275) //////////////////////////////////////////////////////////////////////////////////////////////////// /// Base class for dictionaries. //////////////////////////////////////////////////////////////////////////////////////////////////// class NS_GUI_CORE_API BaseDictionary: public BaseComponent, public IDictionary, public INotifyDictionaryChanged { public: virtual ~BaseDictionary() = 0; /// Removes listeners subscribed to DictionaryChanged event void RemoveDictionaryChangedListeners(); /// From INotifyDictionaryChanged //@{ NotifyDictionaryChangedEventHandler& DictionaryChanged() final; //@} protected: NotifyDictionaryChangedEventHandler mDictionaryChanged; NS_DECLARE_REFLECTION(BaseDictionary, BaseComponent) }; NS_WARNING_POP } #endif