| 1614 | //----------------------------------------------------------------------------- |
| 1615 | |
| 1616 | void GuiWindowCtrl::selectWindow(void) |
| 1617 | { |
| 1618 | // First make sure this window is the front most of its siblings |
| 1619 | GuiControl *parent = getParent(); |
| 1620 | if (parent && *parent->end() != this ) |
| 1621 | { |
| 1622 | // Valid collapse groups have to be selected together |
| 1623 | if( mCanCollapse && mCollapseGroup >= 0 ) |
| 1624 | { |
| 1625 | CollapseGroupNumVec::iterator iter = parent->mCollapseGroupVec[mCollapseGroup].begin(); |
| 1626 | for(; iter != parent->mCollapseGroupVec[mCollapseGroup].end(); iter++ ) |
| 1627 | { |
| 1628 | parent->pushObjectToBack( (*iter) ); |
| 1629 | } |
| 1630 | } |
| 1631 | else |
| 1632 | { |
| 1633 | parent->pushObjectToBack( this ); |
| 1634 | } |
| 1635 | } |
| 1636 | |
| 1637 | // Also set the first responder to be the one within this window |
| 1638 | setFirstResponder(mFirstResponder); |
| 1639 | } |
| 1640 | |
| 1641 | //----------------------------------------------------------------------------- |
| 1642 |
no test coverage detected