Ignore:
Timestamp:
Jan 7, 2010, 2:46:34 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
d97af9
Parents:
34ff5e6
Message:

Added a central registry that allows access to actions by name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/UIElements/UIFactory.cpp

    r34ff5e6 r3e8325  
    1212// all factories that can be used:
    1313#include "UIElements/TextUIFactory.hpp"
     14
     15UIFactory *UIFactory::theFactory = 0;
    1416
    1517UIFactory::UIFactory()
     
    4143  return theFactory;
    4244}
     45
     46
     47void UIFactory::purgeInstance(){
     48  if(theFactory) {
     49    delete theFactory;
     50    theFactory = 0;
     51  }
     52}
Note: See TracChangeset for help on using the changeset viewer.