void TreeNode::sibWidth() //----------------------- { WString msg; TreeNode * node; int i; bool sepInc = true; msg.concatf( "%s: _sibWidth = %ld; parents: ", _nm ? _nm : "<>", _sibWidth ); for( i = 0; i < getCount( ParentList ); i += 1 ) { node = getNode( ParentList, i ); msg.concatf( "%s: sibContrib() = %ld; ", node->_nm ? node->_nm : "<>", node->getSibContrib( this, sepInc ) ); } msg.concat( "children: " ); for( i = 0; i < getCount( ChildList ); i += 1 ) { node = getNode( ChildList, i ); msg.concatf( "%s: _sibWidth = %ld; ", node->_nm ? node->_nm : "<>", node->_sibWidth ); } WMessageDialog::message( _parent, MsgPlain, MsgOk, msg.gets(), "Source Browser" ); }
void MComponent::typeDesc( WString& n ) { if( _config->debug() ) { n.concatf( "(%s)->", (const char*)_mask ); } for( int i=0; i<_config->targets().count(); i++ ) { MTarget* tar = (MTarget*)_config->targets()[i]; if( tar->mask() == _mask ) { if( _config->debug() ) { n.concatf( "(%s) ", (const char*)tar->mask() ); } WString name; tar->name( name ); n.concat( name ); return; } } n.concat( "Obsolete form: Rename target type" ); }