MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / ClearSelection

Method ClearSelection

ReClass/ReClassEx.cpp:510–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510void CReClassExApp::ClearSelection( )
511{
512 for (UINT i = 0; i < m_Classes.size( ); i++)
513 {
514 m_Classes[i]->Unselect( );
515 for (UINT n = 0; n < m_Classes[i]->NodeCount( ); n++)
516 {
517 CNodeBase* pNode = m_Classes[i]->GetNode( n );
518 pNode->Unselect( );
519
520 NodeType nt = pNode->GetType( );
521 if (nt == nt_vtable)
522 {
523 CNodeVTable* pVTable = (CNodeVTable*)pNode;
524 for (UINT f = 0; f < pVTable->NodeCount( ); f++)
525 {
526 pVTable->GetNode( f )->Unselect( );
527 }
528 }
529 if (nt == nt_array)
530 {
531 CNodeArray* pArray = (CNodeArray*)pNode;
532 pArray->Unselect( );
533 }
534 if (nt == nt_pointer)
535 {
536 CNodePtr* pPtr = (CNodePtr*)pNode;
537 pPtr->Unselect( );
538 }
539 }
540 }
541}
542
543void CReClassExApp::ClearHidden( )
544{

Callers

nothing calls this directly

Calls 5

UnselectMethod · 0.80
NodeCountMethod · 0.80
GetNodeMethod · 0.80
GetTypeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected