This commit is contained in:
Beeks
2010-08-22 15:14:30 -04:00
parent 88cf144936
commit 5ce4286fd7
164 changed files with 31303 additions and 22286 deletions

View File

@@ -2182,34 +2182,34 @@ void LLFloaterView::closeAllChildren(bool app_quitting)
floaterp->close(app_quitting);
}
}
}
// <edit>
void LLFloaterView::minimizeAllChildren()
{
// iterate over a copy of the list, because closing windows will destroy
// some windows on the list.
child_list_t child_list = *(getChildList());
for (child_list_const_iter_t it = child_list.begin(); it != child_list.end(); ++it)
{
LLView* viewp = *it;
child_list_const_iter_t exists = std::find(getChildList()->begin(), getChildList()->end(), viewp);
if (exists == getChildList()->end())
{
// this floater has already been removed
continue;
}
LLFloater* floaterp = (LLFloater*)viewp;
if (!floaterp->isDead())
{
floaterp->setMinimized(TRUE);
}
}
}
// </edit>
}
// <edit>
void LLFloaterView::minimizeAllChildren()
{
// iterate over a copy of the list, because closing windows will destroy
// some windows on the list.
child_list_t child_list = *(getChildList());
for (child_list_const_iter_t it = child_list.begin(); it != child_list.end(); ++it)
{
LLView* viewp = *it;
child_list_const_iter_t exists = std::find(getChildList()->begin(), getChildList()->end(), viewp);
if (exists == getChildList()->end())
{
// this floater has already been removed
continue;
}
LLFloater* floaterp = (LLFloater*)viewp;
if (!floaterp->isDead())
{
floaterp->setMinimized(TRUE);
}
}
}
// </edit>
BOOL LLFloaterView::allChildrenClosed()
{