\
int clss::factoryid_ = -1; \
\
{ \
if ( factoryid_ < 0 ) \
factoryid_ =
uiAF().
add( displaynm, attr::attribName(), grp, \
clss::createInstance, (int)domtyp, (int)dimtyp ); \
} \
\
uiAttrDescEd* clss::createInstance(
uiParent* p,
bool is2d ) \
{ \
uiAttrDescEd* de = new clss( p, is2d ); \
de->setDisplayName( displaynm ); \
de->setDomainType( domtyp ); \
de->setDimensionType( dimtyp ); \
return de; \
} \
\
const char* clss::attribName() const \
{ \
return attr::attribName(); \
}
Definition: uiparent.h:26
uiAttributeFactory & uiAF()
int add(const char *displaynm, const char *attrnm, const char *grpnm, uiAttrDescEdCreateFunc, int, int)