| 195 | //----------------------------------------------------------------------------- |
| 196 | |
| 197 | GuiInspectorField *GuiInspectorGroup::findField( const char *fieldName ) |
| 198 | { |
| 199 | // If we don't have any field children we can't very well find one then can we? |
| 200 | if( mChildren.empty() ) |
| 201 | return NULL; |
| 202 | |
| 203 | Vector<GuiInspectorField*>::iterator i = mChildren.begin(); |
| 204 | |
| 205 | for( ; i != mChildren.end(); i++ ) |
| 206 | { |
| 207 | if( (*i)->getFieldName() != NULL && dStricmp( (*i)->getFieldName(), fieldName ) == 0 ) |
| 208 | return (*i); |
| 209 | } |
| 210 | |
| 211 | return NULL; |
| 212 | } |
| 213 | |
| 214 | //----------------------------------------------------------------------------- |
| 215 | |