20 #include "LinkedList.h" 22 #include "Decorator.h" 24 typedef LinkedList<Decorator> DecoratorList;
28 const __FlashStringHelper *ID;
29 DecoratorList *Decorators;
35 LinkedList<DecoratorGroupEntry> _shared_decorators;
46 if(_singltone == NULL)
55 entry->Decorators=decorators;
56 _shared_decorators.Add(entry);
61 for(
int i=0;i<_shared_decorators.Count();i++)
63 if(AHelper::compare_F(
id, _shared_decorators[i]->ID))
64 return _shared_decorators[i]->Decorators;
static Environment * Get()
Returns singltone instance of environment.
Definition: Environment.h:44
This singltone class contains shared application resources like decorators.
Definition: Environment.h:32
Definition: Environment.h:25
void RegisterDecoratorsGroup(const __FlashStringHelper *id, DecoratorList *decorators)
Registers decorators group. It is like application resources that can be shred between windows of the...
Definition: Environment.h:51
DecoratorList * FindDecorators(const __FlashStringHelper *id)
Finds registered decorators by the name.
Definition: Environment.h:59