| 274 | //----------------------------------------------------------------------------- |
| 275 | |
| 276 | void GuiInspector::clearGroups() |
| 277 | { |
| 278 | #ifdef DEBUG_SPEW |
| 279 | Platform::outputDebugString( "[GuiInspector] Clearing %i (%s)", getId(), getName() ); |
| 280 | #endif |
| 281 | |
| 282 | // If we have no groups, there's nothing to clear! |
| 283 | if( mGroups.empty() ) |
| 284 | return; |
| 285 | |
| 286 | mHLField = NULL; |
| 287 | |
| 288 | if( isMethod( "onClear" ) ) |
| 289 | Con::executef( this, "onClear" ); |
| 290 | |
| 291 | Vector<GuiInspectorGroup*>::iterator i = mGroups.begin(); |
| 292 | |
| 293 | freeze(true); |
| 294 | |
| 295 | // Delete Groups |
| 296 | for( ; i != mGroups.end(); i++ ) |
| 297 | { |
| 298 | if((*i) && (*i)->isProperlyAdded()) |
| 299 | (*i)->deleteObject(); |
| 300 | } |
| 301 | |
| 302 | mGroups.clear(); |
| 303 | |
| 304 | freeze(false); |
| 305 | updatePanes(); |
| 306 | } |
| 307 | |
| 308 | //----------------------------------------------------------------------------- |
| 309 |
nothing calls this directly
no test coverage detected