MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / clearGroups

Method clearGroups

Engine/source/gui/editor/guiInspector.cpp:276–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274//-----------------------------------------------------------------------------
275
276void 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

Callers

nothing calls this directly

Calls 8

executefFunction · 0.85
isProperlyAddedMethod · 0.80
getNameFunction · 0.50
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
deleteObjectMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected