| 1644 | //----------------------------------------------------------------------------- |
| 1645 | |
| 1646 | void GuiWindowCtrl::selectWindow(void) |
| 1647 | { |
| 1648 | // First make sure this window is the front most of its siblings |
| 1649 | GuiControl *parent = getParent(); |
| 1650 | if (parent && *parent->end() != this ) |
| 1651 | { |
| 1652 | // Valid collapse groups have to be selected together |
| 1653 | if( mCanCollapse && mCollapseGroup >= 0 ) |
| 1654 | { |
| 1655 | CollapseGroupNumVec::iterator iter = parent->mCollapseGroupVec[mCollapseGroup].begin(); |
| 1656 | for(; iter != parent->mCollapseGroupVec[mCollapseGroup].end(); iter++ ) |
| 1657 | { |
| 1658 | parent->pushObjectToBack( (*iter) ); |
| 1659 | } |
| 1660 | } |
| 1661 | else |
| 1662 | { |
| 1663 | parent->pushObjectToBack( this ); |
| 1664 | } |
| 1665 | } |
| 1666 | |
| 1667 | // Also set the first responder to be the one within this window |
| 1668 | setFirstResponder(mFirstResponder); |
| 1669 | } |
| 1670 | |
| 1671 | //----------------------------------------------------------------------------- |
| 1672 |
no test coverage detected