18 #define YUILogComponent "we"
22 #include "YUIException.h"
23 #include "YExternalWidgets.h"
31 YUI_THROW(
YUIException(
"UI must be initialized first" ) );
33 yuiMilestone() <<
"Creating Libyui Widget Extension object" << std::endl;
35 _externalWidgets =
this;
47 return _externalWidgets;
55 YUI_THROW(
YUIException(
"UI must be initialized first" ) );
57 if (!_externalWidgets)
58 YUI_THROW(
YUIException(
"WE (Widget Extension) must be initialized first" ) );
63 YUI_CHECK_PTR( factory );
91 if ( YExternalWidgets::_externalWidgets )
93 yuiMilestone() <<
"Shutting down WE" << std::endl;
94 delete YExternalWidgets::_externalWidgets;
96 YExternalWidgets::_externalWidgets = 0;