| [2608] | 1 | /*********************************************************************** | 
|---|
 | 2 |         WindowFactoryManager | 
|---|
 | 3 | ***********************************************************************/ | 
|---|
 | 4 | class FalagardWindowMapping | 
|---|
 | 5 | { | 
|---|
 | 6 |     string d_windowType @ windowType; | 
|---|
 | 7 |     string d_lookName @ lookName; | 
|---|
 | 8 |     string d_baseType @ baseType; | 
|---|
 | 9 |     string d_rendererType @ rendererType; | 
|---|
 | 10 | }; | 
|---|
 | 11 |  | 
|---|
 | 12 | class WindowFactory | 
|---|
 | 13 | { | 
|---|
 | 14 |     string getTypeName() const; | 
|---|
 | 15 | }; | 
|---|
 | 16 |  | 
|---|
 | 17 | class WindowFactoryManager | 
|---|
 | 18 | { | 
|---|
 | 19 |     static WindowFactoryManager& getSingleton(); | 
|---|
 | 20 |  | 
|---|
 | 21 |     bool isFactoryPresent(string name) const; | 
|---|
 | 22 |     void addWindowTypeAlias(string aliasName, string targetType); | 
|---|
 | 23 |     void removeWindowTypeAlias(string aliasName, string targetType); | 
|---|
 | 24 |     void addFalagardWindowMapping(string newType, string targetType, string lookName, string renderer); | 
|---|
 | 25 |     void removeFalagardWindowMapping(string type); | 
|---|
 | 26 |     bool isFalagardMappedType(string type) const; | 
|---|
 | 27 |     string getMappedLookForType(string type) const; | 
|---|
 | 28 |     string getMappedRendererForType(string type) const; | 
|---|
 | 29 |     String getDereferencedAliasType(string type) const; | 
|---|
 | 30 |     const FalagardWindowMapping& getFalagardMappingForType(string type) const; | 
|---|
 | 31 |  | 
|---|
 | 32 |     WindowFactoryIterator getIterator() const; | 
|---|
 | 33 |     FalagardMappingIterator getFalagardMappingIterator() const; | 
|---|
 | 34 | }; | 
|---|