25 #ifndef WUIWIDGETFACTORY_H
26 #define WUIWIDGETFACTORY_H
32 #include "WUIGridWidget.h"
33 #include "WUIPropertyGroupWidget.h"
34 #include "WUITabbedWidget.h"
35 #include "WUIViewWidget.h"
36 #include "core/common/WException.h"
37 #include "core/common/WPropertyTypes.h"
48 typedef std::shared_ptr< WUIWidgetFactory >
SPtr;
53 typedef std::shared_ptr< const WUIWidgetFactory >
ConstSPtr;
71 if( !parent->allowNesting() )
73 throw WException(
"Parent of widget \"" + title +
"\" does not allow nesting." );
95 if( !parent->allowNesting() )
97 throw WException(
"Parent of widget \"" + title +
"\" does not allow nesting." );
122 if( !parent->allowNesting() )
124 throw WException(
"Parent of widget \"" + title +
"\" does not allow nesting." );
154 if( !parent->allowNesting() )
156 throw WException(
"Parent of widget \"" + title +
"\" does not allow nesting." );
188 widget->setParent( parent );
192 parent->registerChild( widget );
std::shared_ptr< WCondition > SPtr
Shared pointer type for WCondition.
ProjectionMode
List of possible camera modes.